Skip to content
Account takeover Disclosed report Beginner

Restrict any user from Login to their account

The profile update feature allowed an attacker to change their own email address to one already used by another registered user, without checking that the address was already taken. After doing so, the victim could no longer log in with their own email and password, as the application returned invalid credentials.

prakhar0x01 Follow

Originally disclosed on HackerOne

  • Triaged in 22 hours
  • Fixed in 8 days
  • Disclosed after 15 days

Hii Triager,

I found that an attacker can change their email address to the victim's(existing user) email and restrict the victim from accessing their account.

Vulnerable Domain: www.██████████.mil

User-A: Attacker User-B: Victim

Both User-A & User-B are registered user & have their separate accounts on www.███.mil

Step To Reproduce

1 - Login to Attacker's account, User-A ([email protected]) 2 - Login to Victim's Account, User-B ([email protected]) 3 - In the Attacker's account, Navigate to Update Profile section. 4- Change the Attacker's email to [email protected]. You can successfully takeover the victim email. (not victim account) 5 - Now, Try to login as victim account(with victim email & password) , Application will Return Invalid Credentials

References

████

Impact

1 -Restric any user from accessing their account. 2 - Improper Authentication on change email fuctionality.

System Host(s)

www.██████.mil

Affected Product(s) and Version(s)

CVE Numbers

Steps to Reproduce

1 - Login to Attacker's account, User-A ([email protected]) 2 - Login to Victim's Account, User-B ([email protected]) 3 - In the Attacker's account, Navigate to Update Profile section. 4- Change the Attacker's email to [email protected]. You can successfully takeover the victim email. (not victim account) 5 - Now, Try to login as victim account(with victim email & password) , Application will Return Invalid Credentials

Suggested Mitigation/Remediation Actions

1 - Set proper authentication on the Update Profile functionality

The original report as published on HackerOne, by prakhar0x01. 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 profile update endpoint did not check whether the submitted email address was already registered to another account before saving it.

Impact

The victim could be locked out of their own account, though the report states the attacker does not take over the victim's account itself.

What the attacker needed

A free account; a second registered victim account

The fix

Set proper authentication on the Update Profile functionality.

How it was found

  1. Log in to the attacker's account.
  2. Log in to the victim's account in a separate session.
  3. Open the Update Profile section of the attacker's account.
  4. Change the attacker's email to the victim's email address.
  5. Try to log in as the victim with the victim's email and password; the application returns invalid credentials.

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 site let one user save an email already used by someone else. When the real owner tried to log in, the site refused the login, locking them out.

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 prakhar0x01

View all

10 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.