Account takeover on ███████ [HtUS]
The profile update endpoint allowed an attacker to change their own email and user ID to match the victim's, causing the victim to be locked out and then letting the attacker log in with their own password. This resulted in account takeover.
- Triaged in 1 hour
- Fixed in 40 days
- Paid in 5 hours
- Disclosed after 3 months
Summary by the researcher
By changing the attacker's email and ID to the existing victim's email, it can be abused and taken over the victim's account.
The report
Hello, I have found an endpoint in ████████ is vulnerable to Account takeover
Steps to reproduce:
- Create 2 accounts ( Attacker ( A ) and vicitm ( B ) )
- Log in to all of them and go to https://███████/███████/EditUserProfile with attacker's account
- Now fill out the password with your password
- Change the attacker's [email protected] email with victim's email [email protected]
- Click Submit button and forward the request to repeater
- Now if the vicim tried to log into his account, he will facing an error
- Back to the request go to repeater and change the User id of the attacker with the vicim's user ID ( You probley need to brute-force it )
- Forward the request and you will see 302 code response
- Stay in the request and change back all changes ( EMAIL and USER ID of Attacker ) and send the request again
- Now try to log into the victim's [email protected] account with your password
- You will be logged in
POC: ████
Impact
An attacker can takeover accounts
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the server trusted the user-supplied user ID and email in the profile update request without verifying they belonged to the authenticated user, allowing an attacker to overwrite the victim's credentials.
Impact
An attacker could take over the victim's account, as the victim is locked out and the attacker can log in with their own password.
What the attacker needed
A free account (attacker); a victim account exists; ability to intercept and modify requests
How it was found
- Create two accounts, one for the attacker and one for the victim.
- Log in as the attacker and navigate to the EditUserProfile page.
- Enter your password and change the attacker's email to the victim's email.
- Submit the request and capture it in a proxy repeater.
- In the captured request, change the user ID to the victim's user ID (may require brute-forcing).
- Forward the request, then revert the email and user ID back to the attacker's values and send again.
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 report has not been written yet. The Original tab links to the source.
The profile update request included the user ID and email. By swapping in the victim's details, the attacker could make the system associate their password with the victim's account.
What is Account takeover?
Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.