Skip to content
Access control Write-up Beginner

Broken Function Level Authorization leads to disclosing PII Information of all company users

An API endpoint intended for updating a single user's profile did not properly check what the caller was allowed to do, so changing the request method and removing the user identifier returned personal data belonging to all company users. An attacker with an ordinary account could therefore read other people's personally identifiable information.

Mirza Muhammad Fauzan Follow

Published on webresearcher007.medium.com

Personal data, also known as personal information or personally identifiable information, is any information related to an identifiable person.

Mirza Muhammad Fauzan, on webresearcher007.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 endpoint relied on the request shape (a PATCH with a user identifier) rather than enforcing an authorization check on the function itself, so a GET without an identifier returned the full user list.

Impact

Personal data of all company users could be disclosed to any authenticated user able to reach the endpoint.

What the attacker needed

An account on the target API; access to the API collection

How it was found

  1. Import the provided API collection into Postman and find the PATCH request for updating a user profile.
  2. Intercept the request and send it to Burp Suite.
  3. Remove the username body parameter and the user identifier from the URL, and change the method from PATCH to GET.
  4. Forward the modified request to Repeater and observe the response containing PII for all company users.

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 the part of a website that apps talk to behind the scenes. This one had a function meant only for updating your own profile, but it never checked whether the person calling it was allowed to use it that way. By tweaking the request, the tester got back personal details about every user in the company instead of just their own.

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.