Skip to content
Account takeover Disclosed report Intermediate

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.

nightm4re Follow

Originally disclosed on HackerOne

High 7.0 View original
  • 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:

  1. Create 2 accounts ( Attacker ( A ) and vicitm ( B ) )
  2. Log in to all of them and go to https://███████/███████/EditUserProfile with attacker's account
  3. Now fill out the password with your password
  4. Change the attacker's [email protected] email with victim's email [email protected]
  5. Click Submit button and forward the request to repeater
  6. Now if the vicim tried to log into his account, he will facing an error
  7. 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 )
  8. Forward the request and you will see 302 code response
  9. Stay in the request and change back all changes ( EMAIL and USER ID of Attacker ) and send the request again
  10. Now try to log into the victim's [email protected] account with your password
  11. You will be logged in

POC: ████

Impact

An attacker can takeover accounts

The original report as published on HackerOne, by nightm4re. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

  1. Create two accounts, one for the attacker and one for the victim.
  2. Log in as the attacker and navigate to the EditUserProfile page.
  3. Enter your password and change the attacker's email to the victim's email.
  4. Submit the request and capture it in a proxy repeater.
  5. In the captured request, change the user ID to the victim's user ID (may require brute-forcing).
  6. 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.

More by nightm4re

View all

5 more disclosed reports, best first.

More from U.S. Dept Of Defense

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.