Skip to content
IDOR Write-up Intermediate

One “Harmless” Parameter, Full Account Takeover — My Favorite Bug Bounty Find

The user preferences endpoint accepted a user_id parameter and trusted the last value, allowing an attacker to change the user context to another user. By combining this with cache poisoning, the attacker could leak admin data and then trigger a password reset to take over the admin account.

infosecwriteups.com

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 application trusted the last value of a duplicated user_id parameter and did not verify that the authenticated user owned that ID, binding the user context after parsing.

Impact

An attacker could take over the admin account by leaking admin data and triggering a password reset, and the cache poisoning could expose admin data to other users.

What the attacker needed

No authentication required; victim visits a crafted URL or the cache is poisoned

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 website had a page that showed your preferences, like language and theme. It also accepted a hidden number that told it which user you are. By sending that number twice, the attacker could make the site think they were the admin, and then see or change the admin's data. This is like a hotel clerk asking for your room number and believing whatever you say, even if you say two different numbers.

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.