Reflected XSS at https://████████/███/...
An unauthenticated reflected cross-site scripting flaw existed on a subdomain, where a URL parameter was echoed into the page without sanitisation. An attacker could craft a link that runs script in a victim's browser, potentially stealing cookies or altering the page.
- Triaged in 24 hours
- Fixed in 6 months
- Disclosed after 7 months
Summary:
According to DOD Websites, the ███████ is a potential in-scope target, and where I discovered an unauthenticated GET based reflected cross-site scripting vulnerability on the ██████████ subdomain.
Steps to Reproduce:
Visit the following URL;
https://█████/█████/████████=%22%20autofocus%20onfocus=%22alert(document.domain)%22&Z_MODE=&Z_CALLER_URL=&Z_FORMROW=&Z_LONG_LIST=&Z_ISSUE_WAIT=
The following generated in the page source;
███████ VALUE="" autofocus onfocus="alert(document.domain)"%">
You will see that a pop-up appears, demonstrating that the JavaScript was executed successfully.
Recommendations:
Sanitise any user input and check any other potential vulnerable parameters.
Impact
A cross-site scripting vulnerability allows an attacker to embed malicious code into a URL of a vulnerable page, which is then executed when a victim views the page and can be used to gain account credentials by stealing cookies or modify the destination page to perform malicious actions.
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 echoed a URL parameter into an HTML attribute without encoding or sanitising it.
Impact
An attacker could embed malicious code into a URL of a vulnerable page, which executes when a victim views it, and could be used to steal cookies or modify the page to perform malicious actions.
What the attacker needed
Victim clicks a crafted link; no authentication needed
How it was found
- Open the crafted URL containing the parameter value in a browser.
- Observe the value reflected into the page source inside an HTML attribute.
- See the script execute and a pop-up appear.
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.
A reflected cross-site scripting bug means a value you put in a web address is copied straight into the page that comes back, without being made safe. If that value is a small script, the victim's browser runs it as if the site itself had written it. The attacker only needs to get someone to open a prepared link.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.