Skip to content
XSS Disclosed report Beginner

[www.█████] Path-based reflected Cross Site Scripting

A path segment of the site's URL was reflected into the page without proper encoding, so a crafted link containing a script tag would run attacker-supplied JavaScript in the victim's browser. An attacker could use this to read cookies, session tokens and other data the browser holds for the site.

geeknik Follow

Originally disclosed on HackerOne

  • Triaged in under an hour
  • Fixed in 10 months
  • Disclosed after 12 months

Description: The www.██████ endpoint is vulnerable to path-based reflected XSS which allows attackers to pass rogue JavaScript to unsuspecting users.

Impact

This flaw allows attackers to pass rogue JavaScript to unsuspecting users. Since the user’s browser has no way to know the script should not be trusted, it will execute the script, which can then access any cookies, session tokens, or other sensitive information retained by the browser and used with your website. In fact, here is a list of 21 other things that hackers can do with an XSS flaw: https://s0md3v.github.io/21-things-xss/

System Host(s)

www.██████████

Affected Product(s) and Version(s)

CVE Numbers

Steps to Reproduce

  1. Visit https://www.█████████/███/"><script>alert(document.domain)</script>

Suggested Mitigation/Remediation Actions

The original report as published on HackerOne, by geeknik. 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 echoes a URL path segment into the HTML response without output encoding, so markup in the path is interpreted by the browser.

Impact

The script runs in the victim's browser and can access cookies, session tokens and other sensitive information held for the site, though the report gives no proof beyond an alert.

What the attacker needed

Victim clicks a crafted link

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.

When you visit a web page, the site sometimes copies part of the address you typed into the page it shows you. Here the site copied a piece of the address without cleaning it first, so someone could put a small program (a script) in the link. If you clicked that link, your browser would run the program as if the site itself had sent it, letting the attacker read things like your login cookie.

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 geeknik

View all

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