IDOR to change other’s Account Name
The account rename endpoint accepted a user-supplied identifier and did not check that it belonged to the caller, so any logged-in user could rename another user's account. An attacker could change the display name of any account whose identifier they knew.
codingninjablogs.tech
Published on codingninjablogs.tech
According to the program .domain.com is in Scope. So I collect all the Subdomains and start Hunting.
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 rename endpoint used the account identifier from the request without verifying that it matched the authenticated user.
Impact
An attacker could change the display name of another user's account, which could be used for impersonation or confusion.
What the attacker needed
A free account; knowledge of the victim's account identifier
How it was found
- Create an account and rename it, noting the identifier in the rename request.
- Create a second account to act as the attacker.
- From the attacker's session, replace the attacker's identifier with the victim's identifier in the request.
- Change the name value and send the request, receiving a success response.
- Reload the victim's account and see the name has changed.
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 rename your account, the website sends a request that includes a number or code identifying which account to change. The site trusted that number without checking that the account belonged to the person sending the request. So anyone could swap in someone else's number and rename their account instead.
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.