APIs connect web apps, mobile clients and automation tools to important business data. Their most serious failures are often not exotic exploits but authorization mistakes: an API trusts that a caller is allowed to access an object or perform an action simply because the caller has authenticated.
Use the official OWASP framework
The OWASP API Security Top 10 (2023) is a useful starting point for reviews and threat modeling. It is not a substitute for testing application-specific business logic.
Prioritize realistic abuse cases involving sensitive data, user roles, automated workflows and third-party integrations.
Authorization is not the same as authentication
Broken Object Level Authorization (API1) occurs when a caller can manipulate an identifier to reach an object they do not own. Broken Object Property Level Authorization (API3) concerns exposure or modification of individual object fields. Broken Function Level Authorization (API5) lets a user invoke an operation reserved for a different role.
Validate access on the server for every relevant object, field and action. Do not rely on a mobile app hiding a button or a UI omitting a link.
Authentication and resource controls
Broken Authentication (API2) can involve poorly protected credentials, weak session handling or flawed token verification. Unrestricted Resource Consumption (API4) includes requests that exhaust CPU, memory, third-party spend or expensive queries.
Use established identity components, short-lived credentials where appropriate, rate limits, pagination, request-size limits and budgets for expensive operations. Monitor anomalies and provide clear error handling.
Business logic and server-side requests
Unrestricted Access to Sensitive Business Flows (API6) can allow automated abuse of workflows that are legitimate in isolation, such as bulk reservations or account creation. Server Side Request Forgery (API7) can occur when servers fetch attacker-controlled URLs.
Threat-model workflows and apply abuse controls. For remote URL fetches, use destination allowlists and safe network egress controls; simple string filters are insufficient.
Configuration, inventory and upstream trust
Security Misconfiguration (API8), Improper Inventory Management (API9) and Unsafe Consumption of APIs (API10) all become more likely when old endpoints remain exposed, controls differ by environment or upstream responses are implicitly trusted.
Maintain an inventory of deployed versions and owners, enforce consistent configuration, validate inputs from other APIs, and retire obsolete endpoints.
A practical API review checklist
- Map endpoints and data owners
- Test authorization across user roles and object IDs
- Review token validation and expiration
- Test rate and payload limits
- Inspect external URL fetch behavior
- Verify audit logs and alerting
- Inventory old versions and third-party dependencies
Perform penetration testing only with explicit authorization and an agreed scope. Automated scanners find some implementation issues but rarely understand the business rules needed to identify every authorization flaw.
Where to go next
Use the OWASP testing guidance and write unit/integration tests for the access decisions most likely to be missed during feature changes. Repeat these checks after API changes, especially when introducing agents, automation or new data consumers.
Background reading: original source article. This guide has been substantially rewritten and should be independently verified before operational use.







