[████████] — XSS on `/███████_flight/images` via `advanced_val` parameter
A POST parameter on a flight images endpoint was vulnerable to reflected cross-site scripting, allowing an attacker to execute script in a victim's browser. The attacker could steal anti-CSRF tokens and use them to take over an authenticated user's account.
- Triaged in 13 hours
- Fixed in 6 months
- Disclosed after 8 months
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.
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 reflected the advanced_val POST parameter into the HTML response without proper output encoding or sanitisation.
Impact
An attacker could steal anti-CSRF tokens from an authenticated user and use them to take over that user's account.
What the attacker needed
Victim visits attacker-controlled page; no authentication required
How it was found
- Create an HTML page containing a form that posts to the flight images endpoint.
- Set the advanced_val field to a value that includes a script tag.
- Make the page automatically submit the form when it loads.
- Open the page or send its URL to a victim to trigger the script.
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 inject their own JavaScript into a page that other people view. Here, a form field called advanced_val was echoed back into the page without being made safe, so a script placed in that field would run in the browser of anyone who submitted the form. The attacker could then read security tokens meant to stop forged requests and use them to act as the victim.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.