Top 5 API Vulnerabilities and How API VAPT Can Address Them?
Quick answer
The five biggest API weaknesses are broken object level authorization, broken authentication, broken object property level authorization, unrestricted resource consumption and broken function level authorization. API VAPT finds and proves them, then your team fixes them and a retest confirms the fixes worked.
APIs connect your apps, partners and customers, so a weakness in one can expose data from every system behind it. Many of the most serious API problems are not about clever hacking. They are about checks that were never built: whether this user may see this record, whether this login is strong enough, or whether this request should be allowed at all.
This guide explains the five weaknesses, how API vulnerability assessment and penetration testing (VAPT) checks for them, how to fix them, and how the work supports Australian obligations. For our testing service, see API VAPT.
Key takeaways
- The five weaknesses come from the first five categories of the OWASP API Security Top 10 (2023).
- Most are authorisation and logic problems, which automated scanners often miss and manual testing finds.
- API VAPT finds and proves weaknesses. Fixing them is your team’s job, and a retest confirms the result.
- Testing must be authorised and safe. It should not mean flooding a live API with traffic.
- Testing supports Privacy Act, APRA CPS 234 and PCI DSS work but does not make you compliant on its own.
Where the top 5 comes from
The OWASP API Security Top 10 is the most widely used list of API risks. Its 2023 edition is the current one. This guide covers its first five categories, which are the ones testers most often find serious problems in.
If you have read older articles, the names may look different. Some 2019 categories were merged or renamed in 2023:
| Older term | 2023 OWASP category | What changed |
|---|---|---|
| Broken object level authorization (BOLA) | API1:2023 Broken Object Level Authorization | Still the first category. |
| Broken authentication | API2:2023 Broken Authentication | Still second. |
| Excessive data exposure | API3:2023 Broken Object Property Level Authorization | Merged with mass assignment, with the focus on the missing authorisation check at property level. |
| Mass assignment | API3:2023 Broken Object Property Level Authorization | Merged with excessive data exposure. |
| Lack of resources and rate limiting | API4:2023 Unrestricted Resource Consumption | Same idea, with a broader name that covers costs and capacity as well as request volume. |
| Broken function level authorization | API5:2023 Broken Function Level Authorization | Fifth in the 2023 list. |
Using the 2023 names keeps your reports and your fixes in line with the standard that auditors and testers now use.
The five weaknesses
Each weakness is explained below in plain terms, with the business impact, what API VAPT checks and the usual fix.
| Weakness | What goes wrong | What API VAPT checks | Typical fix |
|---|---|---|---|
| 1. Broken object level authorization | The API returns a record without checking that the caller is allowed to see that specific record, so a user can reach another user’s data by changing an identifier. | Whether every request that points to a record checks the caller’s right to it, tested with accounts of different roles. | Check ownership on every object request in shared code, so no developer can forget it. |
| 2. Broken authentication | Weak login, token or key handling lets someone act as another user. | How strong and consistent login, session, token and key handling is across roles and versions. | Strong authentication, short-lived tokens, multi-factor authentication where suitable and protected keys. |
| 3. Broken object property level authorization | A user can see or change individual fields they should not, such as internal flags or role settings, because the API returns or accepts whole records. | Which fields each role can read and which it can change. | Return and accept only the fields each role is allowed to, with explicit allow lists. |
| 4. Unrestricted resource consumption | The API has no sensible limit on requests, sizes or costly actions, so abuse can cause slowdowns, outages or unexpected bills. | Whether limits, quotas and size caps exist, and whether they hold up when checked carefully and by agreement. | Rate limits, quotas, size limits and cost caps. See our guide to API rate limiting. |
| 5. Broken function level authorization | Ordinary users can call functions meant for administrators because the API trusts the front end to hide them. | Whether each function checks the caller’s role on the server. | Enforce role checks on the server for every function, and deny by default. |
From weakness to business impact
Each weakness has a different business impact, and testing shows which ones are real in your APIs.
Broken object level authorization
What it allows: Reaching another user’s records by changing an identifier
Business impact: Data exposure and privacy breaches
Testing shows: Which records each role can really reach
Broken authentication
What it allows: Acting as another user
Business impact: Account takeover and fraud
Testing shows: How strong logins, tokens and keys really are
Broken object property level authorization
What it allows: Seeing or changing fields a user should not
Business impact: Data leaks and privilege changes
Testing shows: Which fields each role can read or write
Unrestricted resource consumption
What it allows: Requests that drain capacity or run up costs
Business impact: Downtime and unexpected bills
Testing shows: Whether limits and quotas exist and hold
Broken function level authorization
What it allows: Ordinary users calling administrative functions
Business impact: Loss of control over data and settings
Testing shows: Whether every function checks the caller’s role
Rate limiting and authorisation problems are easy to confuse with ordinary bugs, which is why they are so often missed until someone tests for them.
How API VAPT works, safely
API VAPT checks how your API handles identity, permissions, data and abuse, using both automated tools and skilled manual testing. It needs a little preparation from you:
What testers need from you
- API documentation, such as an OpenAPI specification
- A test environment where possible
- Test accounts for each user role
- A clear scope, timing and contact for the testing period
What you should agree in writing
- Which APIs and environments are in scope, and which are not
- How sensitive data and live systems are protected
- Which checks are not allowed, such as sending heavy traffic to live systems
- How testing stops if something goes wrong
| Automated testing | Manual testing | |
|---|---|---|
| Good at | Broad, repeatable coverage of known weakness patterns | Authorisation, business logic and combinations of weaknesses |
| Often misses | Authorisation and logic flaws that depend on who the caller is | Nothing by design, but it takes more time |
| Best used | Regularly, including in your build pipeline | At set points, such as before launch or after major change |
Test safely
- Test on a staging copy first where you can
- Use dedicated test accounts and never real customers
- Do not run load or denial-of-service tests against live systems unless you have specifically agreed it
- Carry out rate limit checks carefully, by agreement, and with your operations team informed
- Keep a record of what was tested and when
After testing, you receive a report that explains each finding, its severity and how to fix it. A retest then confirms that the fixes worked. Ask in advance whether a retest is included. See our API VAPT service for how we approach it.
Fixing and preventing, with Australian context
API VAPT tells you what is wrong. These practices fix it and keep it from coming back:
1. Keep an API inventory
List every API, version and endpoint, including old, test and partner-facing ones. You cannot protect what you do not know is live.
2. Centralise authorisation
Put object, property and function checks in shared code so they apply to every endpoint and cannot be forgotten.
3. Strengthen authentication
Use strong, well-tested authentication, short-lived tokens and multi-factor authentication where it suits the risk.
4. Filter what responses return
Return only the fields each caller needs, and accept only the fields each caller may change.
5. Set limits and quotas
Limit request volume, sizes and costly actions, with stricter limits on sensitive flows.
6. Log and alert
Record API activity and set alerts for unusual patterns, so abuse is noticed early.
7. Test in the pipeline
Add automated API checks to your build process and run manual testing at set points.
8. Retest after fixing
Confirm each fix worked and kept the API working for real users.
How this supports Australian requirements
No Australian law says every business must run an API penetration test. But several frameworks expect you to protect personal information and to check that your controls work, and API testing gives you evidence.
| Framework | What it asks | How API VAPT supports it |
|---|---|---|
| Privacy Act and Notifiable Data Breaches scheme | Entities covered by the Privacy Act must protect personal information and notify eligible data breaches that are likely to cause serious harm. | Testing finds exposure, such as one user reaching another’s data, before a breach happens, and supports showing that you took reasonable steps. |
| APRA CPS 234 | Regulated entities must keep information security controls that match the threats and test that they work. | Regular testing of APIs, including those run by third parties, supports this. |
| PCI DSS | Requires regular security testing for systems in scope for card data. | Testing the APIs that handle card data supports the requirement. Confirm the details with your assessor. |
| ISO 27001 and SOC 2 | Customers often ask for independent assurance. | Test results are useful evidence. See our guides to ISO 27001 and SOC 2. |
Organisations that also handle European personal data may have GDPR obligations as well. Testing supports all of these frameworks but does not by itself make you compliant. Your regulator, auditor or customer decides what evidence they need.
Frequently asked questions
What is API VAPT?
API VAPT is vulnerability assessment and penetration testing of your APIs. A vulnerability assessment finds and ranks weaknesses, and a penetration test shows how they could be combined and how far they could reach. You receive a report with prioritised fixes.
What are the top API vulnerabilities?
The first five categories of the OWASP API Security Top 10 (2023) are broken object level authorization, broken authentication, broken object property level authorization, unrestricted resource consumption and broken function level authorization. Most are authorisation and logic problems rather than simple coding errors.
Does API VAPT fix vulnerabilities?
No. API VAPT finds and proves vulnerabilities and tells you how to fix them. Your development and operations teams make the fixes, and a retest confirms they worked.
What is the difference between automated and manual API testing?
Automated testing gives broad, repeatable coverage of known weakness patterns and suits regular use. Manual testing uses skilled testers to find authorisation and business logic flaws that automated tools often miss. Most organisations use both.
How often should I run API VAPT?
There is no single schedule. Test after major releases or changes, when you add partner or mobile integrations, before important customer or audit dates, and on a regular cycle that suits your risk and any rules that apply to you. Automated checks in your build pipeline help between tests.
Will API testing disrupt my live API?
It should not. Good providers agree the scope, timing and rules in writing, test on a staging copy where possible, use test accounts and avoid heavy traffic against live systems unless you have specifically agreed it. Tell your operations team when testing is happening.
Does API VAPT help with compliance?
Yes, it supports compliance work. The Privacy Act, APRA CPS 234, PCI DSS and ISO 27001 all expect you to protect and check your systems, and test results provide evidence. Testing does not by itself make you compliant.
Should I test my APIs in-house or use an outside provider?
In-house teams can run regular automated checks, but formal tests benefit from an independent provider with specialist skills and fresh eyes. Many organisations use both, with outside testing at set points and automated checks in between.
Find out which of these weaknesses your APIs have
Tell us about your APIs. We will explain your options and send a clear scope and quote for an API security test.
CyberSapiens, Level 1, 206 Lorimer St, Port Melbourne VIC 3207
Get a free API security quote