Skip to content
Access control Write-up Beginner

How a Simple POST → GET Change Exposed 26,000+ User Records (R

An API endpoint that normally used POST returned full user data when the request method was changed to GET, without proper server-side authorization checks. This exposed approximately 26,707 user records containing sensitive personal information.

Prabhakar Follow

Published on medium.com

I didn’t hack anything. I didn’t bypass authentication.

Prabhakar, 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 did not verify whether the requester was authorized to access the data and accepted both POST and GET methods without enforcing strict method rules.

Impact

The response contained sensitive personally identifiable information for approximately 26,707 users, which could lead to mass data exposure, user data scraping, privacy violations, and regulatory issues.

What the attacker needed

Access to the API endpoint; a valid token

The fix

The API should enforce proper server-side authorization to verify that the requester is allowed to access the data, and should validate HTTP methods strictly.

How it was found

  1. While testing an application, find an API endpoint used in the normal workflow that includes authentication headers and a valid token.
  2. Change the HTTP method of the request from POST to GET.
  3. Observe that the API still responds, but now returns full user data without errors or restrictions.

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 API is a way for software to talk to a server. Normally, the server should check if you are allowed to see the data you ask for. Here, the server only checked how the request was made (using POST or GET) but not who was making it, so changing the request type let anyone see everyone's personal details.

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.