Technical topic hubs

API Penetration Testing: Endpoints, Permissions and Workflows

Understand API penetration testing, including object access, roles, tokens and business workflows. Prepare a scope that reaches beyond the interface.

API penetration testing examines the interfaces used by websites, mobile applications, partners and other services. It tests the requests directly, including actions that the visible interface hides or restricts.

An endpoint can return a technically valid response while exposing the wrong customer's information. Useful API test coverage therefore needs the intended permission model, representative records and knowledge of the business operations behind each request.

What should an API penetration test include?

Start with an inventory of API hosts, versions and operations. Include management routes, integrations and older versions that remain reachable. REST, GraphQL and other interfaces need an approach suited to their design.

Test areaExample question
Object permissionsCan a customer retrieve or amend a record belonging to someone else?
Function permissionsCan a normal account invoke an administrative operation?
Property permissionsCan a request set a protected field or receive sensitive fields unnecessarily?
AuthenticationAre tokens validated for the intended issuer, audience, expiry and use?
Business flowsCan a user bypass an approval or repeat an action that should happen once?
Resource useAre expensive operations, bulk requests and third-party calls constrained?
Connected servicesAre outbound requests, callbacks and responses from other systems handled safely?

The OWASP API Security Top 10 is a useful risk reference. It does not replace an operation inventory or a testing plan for your application.

Why endpoint counts are only a starting point

Twenty endpoints with several roles, tenants and account states can require more investigation than a larger set of simple public operations. Describe the relationships that change the expected result.

An invoice download, for example, may need checks for the owner, another user in the same company, a separate customer and a support account. A background export or attachment route may enforce a different check from the main invoice endpoint.

Provide an operation list, an API definition or request collection, sample requests and an explanation of the expected permissions. Identify undocumented operations and the environment in which the documentation was generated.

Prepare accounts and usable records

Create controlled accounts with different privilege levels and access to separate customer data. Populate records that can be read, changed, approved and deleted within the agreed boundaries.

Explain token acquisition and refresh, client certificates, request signing and IP restrictions. If access depends on an interactive login, make sure the tester can complete it without relying on an unavailable staff member.

Agree how to handle payment providers, messaging services, webhooks and other third parties. A callback destination or supplier API may need to be simulated or excluded, with the consequence recorded.

Test business outcomes as well as responses

A response code alone may not establish what happened. An operation that returns an error might still create a record or trigger a background task. The assessment should consider side effects, asynchronous work and the final account state where access allows.

Set limits for resource-intensive checks. Rate limiting and consumption controls can be assessed through controlled methods without authorising an availability test by default.

Use findings to improve the permission model

Ask the report to identify the affected operations, required access, observed impact and evidence. Where a missing authorisation check appears in several routes, investigate the common cause.

Build regression checks around permitted and denied actions for each relevant role and tenant. During retesting, verify the original request and agreed related routes, including bulk actions, exports and alternative API versions.

Repeat focused assessment when new roles, integrations or sensitive operations are introduced. Keep an accurate API inventory so the next engagement can cover what is actually deployed.

Read our Testing methodology to discuss coverage, or Book a demo with the systems and objectives you have in mind.

See your first test report this week.

Book a 30 minute demo. We will verify one of your targets with you and run a test against it, so you can judge the results on your own systems.

Book a demo