To access material, start machines and answer questions login.
An (Application Programming Interface) is a structured interface that enables software components to communicate with each other. When a user logs into a mobile banking app, scrolls through a social media feed, or places an order on a delivery platform, the client device makes calls to a back-end server to fetch data, submit information, and trigger actions. Rather than loading full web pages with HTML and styling, APIs typically exchange lightweight data in format. This efficiency and flexibility is why APIs have become the backbone of modern application architecture.
In -driven architectures, the back-end exposes a set of endpoints that any client can call independently. A single may serve a web application, a mobile application, and third-party integrations simultaneously. This means the itself becomes a critical attack surface. If the is vulnerable, every client that depends on it is affected.
security testing shares some overlap with traditional web application testing, but introduces a distinct set of challenges. APIs do not have a visible user interface that restricts what a user can do. There are no buttons to click or forms to fill out. An attacker interacts directly with the raw endpoints, meaning they can craft and send any request without being limited by what a front-end application chooses to expose. This directness opens up vulnerability classes that are less common in traditional web testing, such as Broken Object Level Authorization and mass assignment.
In a typical security engagement, you receive a collection of in-scope endpoints (often as an Insomnia or Postman collection) and test each one for vulnerabilities. You examine how the handles authentication, whether it enforces proper authorisation on every resource, and whether it exposes more data than necessary in its responses. The goal is to find flaws that an attacker could exploit to access unauthorised data, escalate privileges, or disrupt the service.
Learning Objectives
By the end of this room, you will be able to:
- Understand the fundamentals of RESTful APIs, including how requests and responses are structured and how authentication is typically handled
- Read and interpret requests and responses in format
- Identify and exploit common vulnerabilities outlined in the Security Top 10, such as BOLA, Broken Authentication, and Mass Assignment
- Understand how modifying request parameters, headers, and body fields can expose security flaws
- Recognise defensive strategies that protect APIs against the vulnerabilities explored in the room
Prerequisites
Before starting this room, you should be comfortable with the basics of , including request methods, headers, and status codes. The following rooms provide the necessary background:
I am ready to learn about API pentesting!
Ready to learn Cyber Security?
The API Pentesting room is only available for premium users. Signup now to access more than 500 free rooms and learn cyber security through a fun, interactive learning environment.
Already have an account? Log in