Skip to content
XSS Disclosed report Beginner

Cross site scripting

The report describes a reflected cross-site scripting vulnerability where user input in a URL parameter is not validated or encoded before being included in the page output. An attacker could execute malicious JavaScript in a victim's browser, potentially stealing session cookies and impersonating the user.

lu3ky-13 Follow

Originally disclosed on HackerOne

  • Triaged in under an hour
  • Fixed in 26 days
  • Disclosed after 27 days

Cross-site Scripting (XSS) refers to client-side code injection attack wherein an attacker can execute malicious scripts into a legitimate website or web application. XSS occurs when a web application makes use of unvalidated or unencoded user input within the output it generates.

Impact

Malicious JavaScript has access to all the same objects as the rest of the web page, including access to cookies and local storage, which are often used to store session tokens. If an attacker can obtain a user's session cookie, they can then impersonate that user.

Furthermore, JavaScript can read and make arbitrary modifications to the contents of a page being displayed to a user. Therefore, XSS in conjunction with some clever social engineering opens up a lot of possibilities for an attacker.

System Host(s)

█████

Affected Product(s) and Version(s)

CVE Numbers

Steps to Reproduce

url: poc https://www.███████/███████url=https://www.███████/%22%3Cscript%3Ealert(String.fromCharCode(88,%20115,%20115,%2032,%2066,%20121,%2032,%2079,%20108,%20100,%2077,%20111,%20104,%2097,%20109,%20109))%3C/script%3E █████

Suggested Mitigation/Remediation Actions

The original report as published on HackerOne, by lu3ky-13. 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

Impact

An attacker could steal a user's session cookie and impersonate them, and could also modify page content to facilitate social engineering attacks.

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) is a flaw where a website takes text from a user and puts it into a page without cleaning it first. An attacker can craft a link that makes the site run their own JavaScript code in the victim's browser. That code can then read cookies (small pieces of data used to keep you logged in) and send them to the attacker, letting the attacker pretend to be 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 lu3ky-13

View all

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