Skip to content
Zilsec

Penetration testing

API penetration testing

A manual security test of your REST or GraphQL API. APIs expose the application's logic directly, so the test concentrates on what matters most there: who is allowed to do what, with which object.

An API has no user interface to hide behind. Every operation is one request away, and the only thing between a user and someone else’s data is the authorisation check on the server. When that check is missing on a single endpoint, one script can copy every record. This is why broken authorisation has topped the OWASP API Security Top 10 in every edition of the list.

What we test

The test covers the OWASP API Security Top 10 (2023):

  • Object-level authorisation: can a user read, change or delete an object that belongs to someone else by changing an identifier
  • Authentication: token handling, JWT validation, password reset, API keys, session lifetime
  • Property-level authorisation: fields a user should not see in responses, and fields a user should not be able to set (mass assignment)
  • Resource consumption: missing limits on requests, page sizes, uploads and expensive operations
  • Function-level authorisation: administrative and internal endpoints reachable with an ordinary account
  • Sensitive business flows: automated abuse of registration, ordering, vouchers or other valuable processes
  • Server-side request forgery and injection in parameters, headers and file imports
  • Configuration and inventory: verbose errors, CORS, old API versions and forgotten test endpoints still online
  • Third-party integrations: how the API trusts data received from other services

GraphQL

GraphQL adds its own questions: is introspection exposed, can queries be nested or batched to exhaust resources or bypass rate limits, and is authorisation enforced on every field rather than only on top-level queries. All of these are part of the test.

What we need from you

  • Documentation of the API: OpenAPI, Postman collection or equivalent
  • Test accounts for each role, in two separate tenants where the API is multi-tenant
  • A staging environment that matches production, or an agreed window on production

What you receive

A report with each finding reproduced as a request and response, a severity based on CVSS 3.1 and a concrete fix, mapped to the OWASP API Security Top 10. A retest of the fixes is agreed in the proposal. The sample report shows the format, and the main penetration testing page describes the whole process.

Frequently asked questions

Do you need an OpenAPI specification?

It helps and makes the test more efficient, but it is not required. A Postman collection, the mobile or web client that uses the API, or plain documentation all work. We also look for endpoints that are not documented.

How is the scope of an API test measured?

By the number of endpoints and the number of roles, because every endpoint is tested from the point of view of each role. A typical API with 30 to 60 endpoints and three roles takes 4 to 8 working days including the report.

Can you test rate limiting without taking the API down?

Yes. We verify whether limits exist and how they can be bypassed with a controlled number of requests. Load and denial-of-service testing is a different activity and is never done without explicit agreement.

Do you test the API of a mobile application?

Yes. The backend API is usually where the serious findings are. It can be tested on its own or together with the mobile application.

Ready to see what an attacker would see?

Tell us about your systems and we will come back within one business day with a recommended approach.