Using Browser Tools For Bug Hunting: An Interesting 0$ Write IDOR On Instagram
A bug report form on Instagram sent a user identifier parameter that could be changed to another user's ID, allowing an attacker to submit bug reports on behalf of any user. The attacker could tamper with the parameter to impersonate other accounts when filing reports.
Published on faizanwrites.medium.com
I’ve been crazy for hacking Instagram, trying hard to get a valid bug and one day as I observed: Instagram app provides more account & app options to the user on mobile as compared to a user browsing on desktop. This scratched my brain, and uh oh!
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 user_identifier in the request matched the authenticated user, allowing tampering.
Impact
An attacker could submit bug reports on behalf of any other Instagram user, potentially causing false reports or reputational damage.
What the attacker needed
An Instagram account; browser developer tools; mobile view simulation
How it was found
- Open Profile Settings in Instagram with the browser set to mobile view.
- Click on the circular settings options.
- Select Report Bug.
- Type any text and capture the POST request sent to Graph.facebook.com.
- Change the user_identifier parameter to another valid user's ID (easily found on their profile).
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.
When you use a website, your browser sends hidden data to the server. Here, the data included a number that identified your account. The server trusted that number without checking if it really belonged to you, so someone could change it to another person's number and act as them.
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.