Skip to content
Access control Write-up Intermediate

First Bug Bounty Reward — Broken Access Control

A GraphQL endpoint exposed an export file type that returned a download URL to an internal XML export containing show and event details plus base64-encoded session tokens, and a favoriteEvents query allowed enumerating other users' favourite events without authentication. An attacker could download internal data and view other users' favourites.

medium.com

Published on medium.com

After many duplicates, invalids, and near misses, I finally landed my first valid bug — and got rewarded for it!

Defidev, on medium.com

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

Likely the GraphQL resolvers for exportFile and favoriteEvents did not enforce authentication or authorisation checks.

Impact

An unauthenticated attacker could download an internal XML export containing event details and base64-encoded session tokens, and could enumerate other users' favourite events; the tokens were not immediately usable.

What the attacker needed

No authentication needed; GraphQL endpoint reachable

How it was found

  1. Intercept traffic to find the GraphQL endpoint.
  2. Test introspection and find the schema is exposed.
  3. Use GraphQL Voyager to explore the schema.
  4. Query the ExportFileType enum values.
  5. Request exportFile with the ebl type and download the returned file.
  6. Enumerate IDs on the favoriteEvents query to get other users' 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.

The website's programming interface (GraphQL) let the author ask for files and data that should have required a login. Because the server did not check who was asking, the author could download an internal export file and list other people's favourite events.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.