Skip to content
XSS Disclosed report Beginner

[████████] — 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.

usamasood Follow

Originally disclosed on HackerOne

  • 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
<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.

The original report as published on HackerOne, by usamasood. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

  1. Create an HTML page containing a form that posts to the flight images endpoint.
  2. Set the advanced_val field to a value that includes a script tag.
  3. Make the page automatically submit the form when it loads.
  4. 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.

More by usamasood

View all

2 more disclosed reports, best first.

More from U.S. Dept Of Defense

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.