Hacked Tathva 22 Biggest Techno Management Fest In South India
The user profile update endpoint used a sequential numeric user ID in the URL without checking that the authenticated user owned that ID. An attacker could change other users' profile details, including their email address, and then take over their accounts.
Published on infosecwriteups.com
In this write-up, I’m sharing a short story about how I hacked Tathva → the biggest Techno-Management Fest in South India.
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 trusted the user-supplied ID in the request path and did not verify that it matched the authenticated user's own ID before applying the update.
Impact
An attacker could modify any user's profile details and change their email address to take over their account, affecting all registered users.
What the attacker needed
A free account on the website; ability to intercept HTTP requests
The fix
The server should verify that the authenticated user is authorised to modify the requested user ID, for example by checking that the ID matches the session user or by using a non-guessable identifier.
How it was found
- Register on the Tathva website and log in.
- Go to the profile edit page and intercept the profile update request.
- Change the user ID in the request URL to another user's ID.
- Observe that the response contains the other user's details, including their email address.
- Modify the email address in the response to your own email to take over the account.
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 edit your profile, the website sends a request to a server with your user number in the address. The server did not check that the number belonged to you, so you could change it to someone else's number and edit their profile. By changing their email address, you could then reset their password and take over their 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.