Skip to content

Penetration Testing

API Penetration Testing

REST · GraphQL · SOAP · gRPC

APIs connect your web and mobile apps with partners, payment service providers, and cloud services – and often give attackers a direct path to your data. With API penetration testing, we manually examine your interfaces for broken authorization, weak authentication, and abusable business logic, guided by the OWASP API Security Top 10.

  • Fixed price after scoping
  • Free retest
  • Quote within 24 hours

Definition

What is API penetration testing?

In API penetration testing, we examine your application programming interfaces specifically for exploitable vulnerabilities. We attack the endpoints directly – without going through a user interface – and investigate whether authentication, authorization, input handling, or business processes can be abused.

Hardly any modern application works without APIs. They feed data to single-page applications and mobile apps, connect partners and payment service providers, link microservices, and provide open banking interfaces under PSD2 (the EU’s revised Payment Services Directive). The user interface often shows only a fraction of what the API actually returns – such as complete customer records, internal fields, or functions that never appear in the front end.

Many of the most critical API vulnerabilities don’t stem from missing input filters but from missing authorization checks at the object, property, and function levels. A scanner can’t know that account A must not see account B’s invoices. That’s why we test multiple user accounts and roles against each other – exactly as an attacker would, using a legitimately registered account of their own.

If your APIs process personal data, payments, or health data, an API pentest also provides important evidence: for the effectiveness review under Art. 32 GDPR, for ISO/IEC 27001, PCI DSS 4.0.1, or DORA – and for customers and partners who rely on the security of your platform.

Our approach

How we test your API

Our starting point is your API documentation – for example, an OpenAPI or Swagger specification, a GraphQL schema, a WSDL file, Protobuf definitions, or a Postman collection. If there is none, we reconstruct the endpoints from the traffic of your web or mobile app and from the JavaScript code it delivers.

We test with at least two accounts per role so we can systematically check access across user and tenant boundaries. We examine the in-scope endpoints across their methods, parameters, and object IDs, and we analyze tokens such as JWTs or OAuth access tokens for signature, validity, and scope of permissions.

In addition to the OWASP API Security Top 10 (2023 edition), we develop custom test cases for your business processes. After all, the most dangerous flaws often hide in workflows that only your API implements in this particular way.

Discuss your requirements
A classic BOLA test – same request, different account.

Common vulnerabilities

API vulnerabilities from the OWASP API Security Top 10

Broken object level authorization (BOLA)

The API doesn’t check whether the requesting account is allowed to access a specific object. Replace order number 1042 with 1043 in a request, and you’re suddenly reading someone else’s data – number one in the OWASP API Security Top 10.

Broken authentication

Missing protection against credential stuffing, accepted unsigned JWTs (“alg: none”), tokens that never expire, or API keys in the code of publicly distributed apps.

Broken object property level authorization (BOPLA)

The API returns more fields than necessary or accepts additional fields from the request without validation – such as a role of “admin” (mass assignment).

Unrestricted resource consumption

Without rate limits and size and pagination limits, you risk brute-force attacks, mass data extraction, overload, or high costs for paid SMS, email, or AI services.

Broken function level authorization (BFLA)

Administrative or internal functions are reachable from regular accounts – often, switching the HTTP method or guessing an admin path is all it takes.

Unrestricted access to sensitive business flows

Processes such as registration, ticket purchases, voucher distribution, or reviews can be abused through automation on a scale that harms your business.

Server-side request forgery (SSRF)

The API fetches URLs it is given, for example for webhooks or file imports. Attackers can use this to reach internal services or cloud metadata containing stored credentials.

Improper inventory management

Forgotten legacy versions, test endpoints, and undocumented “shadow APIs” remain reachable – often without the safeguards of the current version.

Scope

What we test

We define the exact scope during scoping. An API penetration test typically covers these areas.

  • Inventory & attack surface

    Endpoints, versions, HTTP methods, undocumented routes, legacy versions, and publicly discoverable specifications.

  • Authentication

    Login and token flows, API keys, OAuth 2.0, OpenID Connect, mTLS, and protection against credential stuffing.

  • Token security

    JWT signature validation, choice of algorithm, expiration times, revocation, scopes, and how tokens are stored on the client.

  • Authorization at every level

    Access at the object, property, and function levels (BOLA, BOPLA, BFLA) as well as tenant isolation in multi-tenant platforms.

  • Input validation & injection

    SQL and NoSQL injection, command injection, XXE in XML interfaces, insecure deserialization, and schema validation.

  • Business logic & workflows

    Order of process steps, state transitions, race conditions, limits, and automated abuse.

  • Resources & rate limiting

    Throttling, pagination, payload sizes, batch requests, and particularly resource-intensive queries.

  • Configuration & transport

    TLS, CORS, HTTP headers, error messages, debug endpoints, and the rules of your API gateway and WAF.

  • Integrations & third parties

    Webhooks, callbacks, SSRF, and the secure handling of data from external APIs (unsafe consumption of APIs).

API technologies

Testing REST, GraphQL, SOAP, and gRPC

Every API technology comes with its own attack surface. Our test cases are tailored accordingly.

  • Resource-oriented

    REST APIs

    The most widespread API style – many endpoints, many object IDs, and therefore many places where authorization checks can be missing.

    • BOLA and BFLA across all HTTP methods
    • Mass assignment in PUT and PATCH requests
    • Comparison against the OpenAPI specification
  • Query language

    GraphQL

    A single endpoint, but virtually unlimited query options – authorization has to be enforced on every field and in every resolver.

    • Introspection and schema reconstruction
    • Nested queries, aliases, and batching
    • Authorization at the field and resolver level
  • Enterprise & microservices

    SOAP & gRPC

    XML-based web services in ERP, banking, and public administration environments, plus gRPC for communication between microservices.

    • XXE and attacks on XML signatures (WS-Security)
    • WSDL and Protobuf analysis, server reflection
    • Authentication via metadata and mTLS

Process

How your API pentest works

Structured, closely coordinated, and with traceable results – following the same proven approach as all our penetration testing engagements.

  1. 01

    Scoping

    We clarify which APIs, versions, and environments will be tested, which roles exist, and what documentation is available. Within 24 hours (on business days), you receive a fixed-price quote.

  2. 02

    Documentation & test accounts

    You provide the specification and at least two test accounts per role. For machine-to-machine interfaces, we need API keys or client credentials.

  3. 03

    Inventory & threat model

    We catalog all endpoints, objects, and roles and derive concrete abuse scenarios from your business processes.

  4. 04

    Manual testing

    We test the in-scope endpoints against the OWASP API Security Top 10 and your specific scenarios, verify findings manually, and document them with request and response.

  5. 05

    Report & debrief

    You receive an executive summary, technical findings with CVSS ratings, and concrete remediation recommendations – explained in a debrief on request.

  6. 06

    Retest & test certificate

    We retest fixed vulnerabilities free of charge. With the test certificate, you can prove to customers, partners, and auditors that the test was carried out.

Your benefits

Why choose Rootsektor for your API pentest

  • Prevent data leaks

    We specifically look for gaps that attackers could use to siphon off customer or business data at scale – so you can close them before anyone exploits them.

  • Real roles, real tests

    We test multiple accounts and roles against each other, uncovering authorization flaws that automated scanners usually miss.

  • Fixed price & quote within 24 hours

    Within 24 hours of scoping, you receive a fixed-price quote – with no hidden costs.

  • Retest & test certificate

    We retest fixed vulnerabilities free of charge, and you can present the test certificate to customers, partners, insurers, and auditors.

API · OWASP API SECURITY TOP 10 · CVSS

Reporting

An API pentest report your team can work with

For each vulnerability, we document the affected endpoint, the request used, and the API’s response – so your development team can reproduce every finding directly. The executive summary puts the results into context for senior management and shows where the greatest risk lies.

  • Executive summary with an overall rating and areas for action
  • Affected endpoints, requests, and responses as evidence
  • Risk rating using CVSS and mapping to the OWASP API Security Top 10
  • Remediation recommendations, e.g., on authorization, token handling, and rate limiting
  • Free retest of fixed vulnerabilities
  • Test certificate upon completion of the test

Your API is the gateway to your data

Find out whether it’s really locked. After scoping, you’ll receive a fixed-price quote within 24 hours.

FAQ

Frequently asked questions about API penetration testing

Didn’t find your question? Call us at +49 2932 465265-0 or email info@rootsektor.de.

How does an API pentest differ from a web pentest?

A web pentest examines the application through the browser – including client-side risks such as cross-site scripting or clickjacking. An API pentest goes straight to the endpoints and focuses on authorization, tokens, data fields, and workflows, including interfaces without a user interface of their own, such as partner or machine-to-machine APIs. If your application has its own front end, the API test combines well with a web application penetration test.

What documentation do you need for an API pentest?

Ideally, an up-to-date specification – such as OpenAPI, a GraphQL schema, WSDL, or Protobuf files – or a Postman collection, plus at least two test accounts per role and, where applicable, API keys. On request, we sign a non-disclosure agreement before any sensitive documents are exchanged.

Can you test without documentation?

Yes. In a black-box test, we reconstruct the endpoints from the traffic of your web or mobile app, from the JavaScript code it delivers, and from publicly available sources. That’s realistic, but it uses up testing time that a gray-box test with documentation and test accounts can invest in depth instead. For most APIs, we therefore recommend the gray-box approach.

How much does an API penetration test cost?

The effort depends on the number of endpoints or operations, the roles and authentication methods, the complexity of the business logic, and the API technology. After scoping, you receive a fixed-price quote within 24 hours (on business days) – with no additional charges for the agreed scope and including a free retest.

Can you also test internal APIs and microservices?

Yes. We test internal interfaces either on site or remotely – via VPN or a provided test system in your network. We also examine communication between services, such as service-to-service authentication, mTLS, and trust in internal networks. If your services run in the cloud, the test combines well with a cloud penetration test.

Isn’t an API gateway enough?

An API gateway handles important tasks such as authentication, rate limiting, and logging. But whether account A may access account B’s object is decided by the business logic behind the gateway – and that’s exactly where BOLA, BOPLA, and BFLA arise. That’s why we test both: the gateway configuration and the authorization logic of the services behind it.

How often should APIs be tested?

At least once a year and after significant changes – such as new endpoints, a new API version, changed authentication methods, or new integrations. With frequent releases, it pays to build targeted testing of changes into your development process.

Have your API tested

Tell us about your interfaces, the technology you use, and your preferred dates. We’ll agree on the scope with you and send you a fixed-price quote within 24 hours of scoping – for companies in Germany and internationally.

Fields marked with * are required.

For questions or a callback

We will get in touch and, if you wish, sign the non-disclosure agreement before our first conversation – including on the basis of your own template.

We use your information solely to process your request. For more information, see our privacy policy. Please do not send passwords or login credentials through this form.