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.
- 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:
<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=""><script>alert(document.domain)</script>" />
<input type="submit" value="Submit request" />
</form>
</body>
</html>
##Steps To Reproduce (As an attacker):
- Navigate to https://█████████/
- Enter arbitrary text on the field and capture the request
- Capture the request on burp, change the payload on the █████████ field to "><script>alert("XSS by nagli")></script>
- 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.
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
- Open the target page and submit arbitrary text in the form field while capturing the request.
- In an intercepting proxy, replace the value of the vulnerable field with a script payload that breaks out of the surrounding markup.
- 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.