[███████] Reflected GET XSS (/mission.php?...&missionDate=*)
A reflected XSS exists in mission.php, exploitable by authorised users; a logged-in user visiting a crafted link could run JavaScript.
- Triaged in 27 hours
- Fixed in 33 days
- Disclosed after 5 months
I will combine this vulnerability with this vulnerability (described in this report #648222). If you have not read this report, I recommend reading that report first, and then studying this report.
I want to note that this report cannot be closed as a duplicate to the above described report. why? because this vulnerability exists for authorized users. Using the bypass authorization bug I just had the opportunity to explore the internal structure of the site.
If you study the last report, as well as the reports that you described there, you can understand that the developers have already tried to fix some vulnerabilities by simply restricting access to the site. It was not effective. It is strongly recommended to fix each vulnerability separately.
Steps to reproduce
- Turn on Live Interception in burp (Proxy-Intercept) Go to this link
https://██████████/mission.php?content=crew&flight=DOC&line=Right&missionDate=19-Mar-19&ped=%3Csvg+onload=alert(%27jarvis7%27)%3E
- Intercept request. Press right mouse button-> Do intercept -> Response this request
████████
- Delete this redirection
████████
Result: ███████
Impact
JavaScript can still be dangerous if misused as part of malicious content:
- Malicious JavaScript has access to all the objects that the rest of the web page has access to. This includes access to the user’s cookies. Cookies are often used to store session tokens. If an attacker can obtain a user’s session cookie, they can impersonate that user, perform actions on behalf of the user, and gain access to the user’s sensitive data.
- JavaScript can read the browser DOM and make arbitrary modifications to it. Luckily, this is only possible within the page where JavaScript is running.
- JavaScript can use the XMLHttpRequest object to send HTTP requests with arbitrary content to arbitrary destinations.
- JavaScript in modern browsers can use HTML5 APIs. For example, it can gain access to the user’s geolocation, webcam, microphone, and even specific files from the user’s file system. Most of these APIs require user opt-in, but the attacker can use social engineering to go around that limitation.
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
Impact
An attacker could execute JavaScript in the context of the vulnerable site for an authorised user, potentially accessing cookies, modifying the DOM, or making requests on behalf of the user.
What the attacker needed
Victim is an authorised user; victim clicks a crafted link
The fix
Each vulnerability, including this reflected XSS, should be fixed separately rather than by access restriction alone.
How it was found
- Turn on Live Interception in Burp (Proxy-Intercept) and go to the provided link.
- Intercept the request and set it to intercept the response.
- Delete the redirection in the response.
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.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.