#Steps to reproduce the vulnerability
The contact information update endpoint accepted an account identifier supplied by the client, so changing that identifier to another user's value returned that user's username and email. An attacker with two accounts could read another user's personal data.
medium.com
Published on medium.com
.Log in to the second account and repeat the process to obtain its account identifier.
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 used the account identifier from the request body to decide which user's data to return, without checking that it matched the logged-in user.
Impact
An attacker could read other users' usernames and email addresses, which may enable further attacks such as phishing.
What the attacker needed
Two accounts on the target site; ability to intercept and modify HTTP requests
How it was found
- Create two separate accounts on the website and log in to the first one.
- Go to the first account's communication preferences.
- Intercept the update request with Burp Suite and note the account identifier in the request data.
- Log in to the second account, repeat the process, and obtain its account identifier.
- Replace the account identifier in the first account's request with the second account's identifier and send the modified request.
- Observe that the second account's username and email are displayed instead of the first account's data.
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 lets you ask for a record by its number or name and does not check that the record belongs to you. Here, the request that saves contact preferences included the account's identifier, and the server trusted whatever identifier the browser sent. By swapping in someone else's identifier, the attacker saw that person's username and email.
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.