Skip to content
IDOR Write-up Beginner

API-pocalypse Now: When an Internal Swagger File Opened the Floo

An internal Swagger UI was publicly accessible, exposing API endpoints. A normal user token could access other users' data via IDOR and change roles to admin, leading to full data export.

iski Follow

Published on infosecwriteups.com

Free Link 🎈

Iski, on infosecwriteups.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 API endpoints lacked proper authorization checks, allowing any authenticated user to access resources belonging to others and modify roles.

Impact

An attacker with a normal account could read other users' data, escalate privileges to admin, and export all user transactions, emails, roles, and internal debug logs.

What the attacker needed

A free account; knowledge of the Swagger UI URL

How it was found

  1. Find the Swagger UI URL via Wayback Machine and open it.
  2. Enumerate endpoints from the Swagger UI and save the Swagger JSON.
  3. Register a normal account and obtain a token.
  4. Test IDOR by requesting another user's data with the normal token.
  5. Use the role update endpoint to change another user's role to admin.
  6. Export all transactions using the now-admin token.

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 API documentation page was left open to the public, showing all the hidden commands. The system did not check if a user was allowed to access certain data, so any logged-in user could read other people's information and even make themselves admin.

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.

More by iski

View all

186 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Insecure direct object reference (IDOR)

The lesson behind this report.

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.