Security
API security: the open back door of modern software
The website looks tidy and the login is secure. But behind the interface, an API politely answers every question, including the one about other customers' data.
In short
- APIs are interfaces through which programs exchange data, and they are often less protected than the front end.
- The most common flaw according to OWASP: the API does not check whether a user may see the requested object.
- Protection needs a check on every call, a list of all interfaces and limits on requests.
What it is about
Behind almost every modern application sits an API, an application programming interface. The app uses it to fetch orders, the customer portal loads invoices, the ERP talks to the shop. For people this layer is invisible; for attackers it is a menu.
The problem: front ends get tested because you can see them. Interfaces, on the other hand, often answer every formally correct request, even if it comes from someone who should never see the answer.
How it works
Alongside its well-known Top 10 for web applications, the security community OWASP maintains a separate list for APIs, most recently in the 2023 edition. In first place is "Broken Object Level Authorization": the API checks whether someone is logged in, but not whether the requested object belongs to them. Anyone who swaps invoice number 1001 for 1002 in the address then sees another customer's invoice.
Further entries cover weak authentication, too much data in responses, missing limits on requests and forgotten old versions. For token-based sign-in, the IETF defines the framework with OAuth 2.0 (RFC 6749) and published current security rules for it in January 2025 as RFC 9700.
Where it goes wrong
Many teams rely on their own app only making the right requests. But attackers do not use your app; they send the requests directly. Any check that happens only in the front end is therefore no check at all.
Second, interfaces like to return whole records, and the app merely hides what should not be displayed. Everything is still in the network traffic. Third, old versions such as /v1 keep running long after /v3 is in use, without the fixes of the new one.
How to proceed
Create a list of all interfaces with version, purpose and responsible team. On the server, check on every single call whether the user may read or change exactly this object. Return only the fields that are needed. Limit requests per user and period. Switch old versions off after an announced deadline, and have the APIs tested specifically, not just the website.
Read more: OWASP Top 10: the ten most common web risks, clearly explained, Secure software development: what the NIST SSDF requires and What a penetration test really checks, and what it doesn't.
How Airnite helps
Airnite builds interfaces with object checks from the first line and tests existing APIs in a penetration test exactly as an attacker would: directly, without your app, with other people's numbers.
Checklist
Sources
Every fact in this article is based on the following publications. Primary sources are marked.
- OWASP FoundationOWASP API Security Top 10 – 2023
- IETF / RFC EditorRFC 9700: Best Current Practice for OAuth 2.0 Security
- IETF / RFC EditorRFC 6749: The OAuth 2.0 Authorization Framework
Matching services
Read on
OWASP Top 10: the ten most common web risks, clearly explained
The OWASP Top 10 is the chart of things that go wrong in web applications. Number one has been the same for years, and it has nothing to do with Hollywood hackers.Software & B2B3 minSecure software development: what the NIST SSDF requires
The penetration test shortly before launch finds twelve flaws, the deadline wobbles, everyone is annoyed. Secure development means most of those flaws never arise in the first place.Security3 minWhat a penetration test really checks, and what it doesn't
A pentest is not a hack on demand. It is an agreed break-in attempt with a logbook. Define the scope properly and you get findings your team can actually work through.Current incidents and warnings are covered in the Zero Day magazine. Go to the magazine