An API penetration test checks whether the endpoints behind your web and mobile apps can be abused: reading other users' records, calling admin functions, changing fields they should not, or overwhelming the service. The OWASP API Security Top 10 (2023 edition) is the usual checklist, and most serious findings fall into its first few items, which are all about authorisation. A tester needs your API specification and accounts for at least two users in each role to test it properly.
Why APIs need their own test
A web application test that only clicks through the user interface sees the requests the interface happens to make. The API usually accepts many more: older versions, fields the interface never sends, and endpoints used only by the mobile app or a partner integration. Attackers call the API directly, so the test has to as well.
APIs also return raw data. A screen might show a customer's name, while the API response behind it contains their address, phone number and internal flags. Excessive data in responses is one of the most common API findings.
The OWASP API Security Top 10 (2023)
These are the ten risk categories in the current edition, in OWASP's order, with what a tester does for each.
- API1 Broken Object Level Authorization: change an ID in a request and see whether another user's record comes back.
- API2 Broken Authentication: test token handling, password reset, session expiry and credential stuffing protection.
- API3 Broken Object Property Level Authorization: look for extra fields in responses, and try setting fields such as role or price that should be read-only.
- API4 Unrestricted Resource Consumption: check rate limits, page sizes and expensive operations such as exports or file uploads.
- API5 Broken Function Level Authorization: call admin or internal endpoints with a normal user's token.
- API6 Unrestricted Access to Sensitive Business Flows: abuse flows like sign-up, coupon redemption or booking at machine speed.
- API7 Server Side Request Forgery: find parameters that make the server fetch a URL, and point them at internal addresses.
- API8 Security Misconfiguration: check CORS, verbose errors, HTTP methods and TLS settings.
- API9 Improper Inventory Management: find old versions, test hosts and undocumented endpoints still running.
- API10 Unsafe Consumption of APIs: check how your API trusts data from third-party APIs it calls.
What to give the tester
API tests are far more productive grey box. Without documentation, the tester spends days reconstructing your endpoints from traffic.
- The OpenAPI (Swagger) file, Postman collection or GraphQL schema.
- Two accounts per role, so cross-account access can be tested properly.
- API keys or OAuth client details for machine-to-machine access.
- A list of which endpoints are public, partner-only and internal.
- Any rate limits you believe are in place, so the tester can confirm them.
How the test runs
The tester first maps the full set of endpoints, comparing the documentation with what the server actually answers. Then they work through each endpoint as each role, trying the authorisation checks above, injecting malformed input, and chaining small issues. A typical chain is an endpoint that leaks user IDs combined with another that fails to check ownership of those IDs.
GraphQL APIs get extra checks for introspection being left on in production, deeply nested queries, and batching that bypasses rate limits.
A typical finding, step by step
Here is the shape of a common high-severity API finding. The mobile app calls an endpoint to show a customer's invoices, passing the customer's account number in the URL. The tester logs in as customer A, captures that request, and changes the account number to customer B's, which they learned from a second test account. The API returns customer B's invoices, including names, addresses and amounts.
The interface never offered a way to do this, so a test that only clicked through the app would have missed it. The fix is not to hide account numbers, because they leak in other ways, but to make the API check, on every request, that the logged-in user owns the record being requested. Ideally that check lives in one shared layer so every endpoint inherits it.
The report entry for a finding like this should include both requests and responses, the list of endpoints affected, and a note on whether the same pattern was found elsewhere.
Reading the results
Expect authorisation findings to be rated highest, because they lead directly to data exposure. Fixes usually belong in one shared place, such as middleware that checks object ownership, rather than endpoint by endpoint. Ask the tester to point out where a single fix would close several findings.
For how we run API tests, see VAPT services. If you want a quick outside view first, the free vulnerability scanner checks your public hosts, and our post on web application pentest methodology covers the browser side.
Frequently asked questions
What's the most common API flaw?
Is an API pentest different from a web app pentest?
Should we share our API documentation?
Are GraphQL APIs tested differently?
Test the API behind your app
Send us your API specification and we will scope a grey box test against the OWASP API Security Top 10.

