Never leave any API endpoint request unchecked during login or sign-up! That’s how I discovered a critical IDOR vulnerability in the Indian Post Office — my second critical finding on this platform.
An API request used during login and sign-up accepted a user identifier (the mobile number) without checking that it belonged to the authenticated user. By changing that identifier, an attacker could update another user's profile details, leading to full account takeover.
Published on systemweakness.com
No exploits. No brute force.
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 a user-supplied identifier (the mobile number) to select which profile to update, without verifying that the authenticated user owned that identifier.
Impact
An attacker could update another user's profile details, which could lead to full account takeover.
What the attacker needed
Guest login or sign-up access; victim's mobile number known
The fix
The server should verify that the authenticated user owns the identifier before allowing profile updates.
How it was found
- Navigate to the login page and use the guest login option.
- Sign up as a new user and reach the page asking for first name, last name, and email.
- Capture the POST request sent when submitting those details.
- Change the UserId value in the request body to a victim's mobile number.
- Send the modified request and observe the success response.
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 sign up or log in, the app sends your details to a server. This report found that the server trusted a number in that request to decide whose profile to update, without checking that the number really belonged to you. So someone could change that number to a victim's and edit their profile, which could let them take over the account.
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.