Skip to content
IDOR Write-up Beginner

How I Discovered a Critical IDOR Vulnerability That Exposed 383 Users’ Data -Canadian E-commerce…

The API endpoint for listing users trusted a client-supplied role query parameter instead of the verified JWT, so any authenticated user could request admin-level data. By adding a role parameter, an attacker could retrieve the entire user database of over 383 users, including personal information.

harisatish75 Follow

Published on medium.com

Security vulnerabilities are everywhere even in production applications used by hundreds of real users. During one of my routine security assessments, I stumbled upon a critical Insecure Direct Object Reference (IDOR) vulnerability that allowed any authenticated user to access the entire user database of a live…

Harihara Satish Veerappan, 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

The backend used a client-supplied role query parameter for authorization instead of deriving the role from the server-verified JWT.

Impact

Any authenticated user could retrieve the complete user database of over 383 users, exposing personal data that could enable phishing, SIM swap attacks, and account takeover.

What the attacker needed

A standard user account; a valid JWT token

The fix

The fix removed client-side role parameters, enforced server-side JWT validation, added authorization middleware, audited all API endpoints, and added monitoring and rate limiting.

How it was found

  1. Register a standard user account.
  2. Authenticate and obtain a valid JWT bearer token.
  3. Intercept the API call using Burp Suite.
  4. Modify the request to append a role parameter set to admin.
  5. Forward the request and observe the response.

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.

An IDOR is when a website lets you change a value in a request (like a user ID or role) and gives you data you should not see. Here, the server believed a role value sent by the browser instead of checking the logged-in user's real role from their login token. That let any normal user download everyone's personal details.

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.

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.