The Red Agent POV: Exploiting Broken Object-Level Authorization in an Airline GraphQL API
The airline's GraphQL booking API used sequential integer booking IDs without backend authorization checks, allowing an anonymous session to read and modify any booking. An attacker could extract passenger data and alter or cancel itineraries.
This Red Agent POV focuses on Broken Object-Level Authorization (BOLA), and deep dives into a critical authorization bypass vulnerability discovered in an airline’s GraphQL booking API. As part of its ongoing mission, the Red Agent continuously scans the public internet and our customers, helping uncover exploitable…
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
The backend GraphQL resolvers did not check whether the requesting user was authorised to access the specific booking object, relying only on front-end session roles.
Impact
An unauthenticated attacker could read sensitive passenger data and modify or delete active bookings, including hijacking accounts and issuing refunds.
What the attacker needed
No account needed; knowledge of API endpoint; ability to send HTTP requests
The fix
The text does not state that the issue was fixed; it should be fixed by enforcing object-level authorization checks on every resolver and using non-guessable identifiers.
How it was found
- Download and analyse the client-side JavaScript bundles to find the API gateway and token flow.
- Mint an anonymous session token by replaying the token acquisition flow with empty credentials.
- Run a GraphQL introspection query to map the schema and identify sensitive mutations.
- Send a mutation with a predicted sequential booking ID to retrieve a booking record.
- Test twenty sequential IDs to confirm systemic access to distinct customer profiles.
- Cross-reference with REST endpoints to validate the full extent of exposed data.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
This is a case where a website's API (the interface apps use to talk to the server) let anyone who was logged in as a guest access other people's booking details just by changing a number in the request. The numbers were predictable, so a guest could read and even change anyone's travel plans.
What is IDOR?
One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.