Skip to content
XSS Disclosed report Beginner

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

A POST parameter on a DoD web path reflected unsanitised input back into the page, so a crafted request containing a script tag executed JavaScript in the victim's browser. Because the request could be delivered as a cross-site form submission, an attacker could trigger the script on a victim's behalf.

nagli Follow

Originally disclosed on HackerOne

  • Triaged in 17 hours
  • Fixed in 12 months
  • Disclosed after 12 months

Good Night 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 ███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="████████" />
      <input type="hidden" name="███" />
      <input type="hidden" name="█████████" />
      <input type="hidden" name="██████████" value="&quot;&gt;&lt;script&gt;alert&#40;document&#46;domain&#41;&lt;&#47;script&gt;" />
      <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 field and capture the request
  3. Capture the request on burp, change the payload on the █████████ field to "><script>alert("XSS by nagli")></script>
  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 POST parameter value into the HTML response without encoding or validating it.

Impact

An attacker could execute JavaScript in a victim's browser session on the affected site, acting on the victim's behalf.

What the attacker needed

Victim visits attacker page; victim is logged in to target

How it was found

  1. Open the target page and submit arbitrary text in the form field while capturing the request.
  2. In an intercepting proxy, replace the value of the vulnerable field with a script payload that breaks out of the surrounding markup.
  3. Save the request as a cross-site form submission page and open it; the script runs when the form is submitted.

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.

Reflected cross-site scripting (XSS) happens when a website takes something you typed or sent and puts it straight into the page without cleaning it. If that input contains code the browser understands, the browser runs it as if the site itself had written it. Here the input arrived in a form submission, so a malicious page could quietly send the same form for a logged-in user.

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.