Horizontal Privilege Escalation via IDOR: Viewing, Editing and Deleting
An IDOR vulnerability in a SaaS staging environment allowed changing a numeric ID in the URL to view, edit, and delete other companies' service bundles. The attacker could read business data, modify prices and occurrence counts, and delete bundles entirely.
Published on scriptjacker.medium.com
Hey Hackers, I am Parth Narula. A penetration tester, bug hunter, red teamer and overall a security researcher.
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 server did not verify that the logged-in user owned the bundle ID before returning or modifying it.
Impact
An attacker could view, edit, and delete other companies' service bundles, leading to a multi-tenant data breach and business logic compromise.
What the attacker needed
A free account; victim clicks a link; none
How it was found
- Browse to a service bundle page with a numeric ID in the URL.
- Change the ID in the address bar to a different number and load the page.
- Observe another company's bundle details are displayed.
- Click edit, change price and number of occurrences, and save.
- Refresh the victim bundle page to see the changes.
- Intercept a delete request, change the ID to a victim bundle ID, and forward it.
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 (Insecure Direct Object Reference) happens when a website uses a simple identifier, like a number in the URL, to pick which record to show, but doesn't check if you are allowed to see that record. Here, changing the number let the researcher see and change another company's data because the server trusted the number without checking ownership.
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.