IDOR in Account Update Endpoint
The account update endpoint accepted a user-controlled identifier, allowing an authenticated user to modify another user's account details. An attacker could change another user's name and phone number, risking impersonation or social engineering.
medium.com
Published on medium.com
During testing, an Insecure Direct Object Reference (IDOR) was found in the account update endpoint. Despite JWT authentication, insufficient authorization allowed an authenticated user to modify another user’s account details by changing a user-controlled 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 backend trusted a client-supplied account identifier and did not enforce object-level authorization to confirm the requester owned that account.
Impact
An authenticated attacker could modify other users' data such as name and phone, creating a risk of impersonation or social engineering and undermining data integrity.
What the attacker needed
An authenticated account; a second account to target
The fix
The endpoint should enforce object-level authorization and validate ownership for all sensitive operations, rather than trusting client-supplied identifiers.
How it was found
- Create two accounts under your control.
- Log in as Account A and open the account update request.
- Change the email field in the request to reference Account B.
- Send the request and observe that Account B's information is updated.
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 change a record by simply changing an identifier in the request, without checking that the record belongs to you. Here, the update request included an identifier for the account, and the server did not verify that the logged-in user owned that account. So a logged-in user could edit someone else's profile details.
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.