HTML Injection leads to XSS on███
A help page reflected a search parameter into the page without proper encoding, allowing injected HTML tags to run script. An attacker could craft a link that executes JavaScript in the victim's browser on the affected domain.
Originally disclosed on HackerOne
- Triaged in under an hour
- Fixed in 2 months
- Disclosed after 3 months
###Hello Team!
###I just found a HTML injection in subdomain████ that leads XSS with several payloads, let me show you the POC.
##POC 1 (Firefox 76)
█████
##POC 2 (Chrome 81)
███████
Impact
An attacker could use the domain to trick users to execute malicious javascript code.
Step-by-step Reproduction Instructions
-
- Write the following URL :
https://███/help-leave/help/index.htm#rhsearch=%3Cmarquee%20loop=1%20onfinish=alert(document.domain)%3Etest%3C%2Fmarquee%3E&ux=search
-
- With this payload you can inject links :
https://█████/help-leave/help/index.htm#rhsearch=%3Cmarquee%3E%3Cu%3E%3Ca%20href%3D%22http%3A%2F%2Fwww.google.com%22%20onmouseover%3Dalert(document.domain)%3EXSS%20HACKERONE%20%2F%20lemonoftroy%3C%2Fa%3E%3C%2Fmarquee%3E&ux=search
-
- With this payload you can open a window:
https://█████/help-leave/help/index.htm#rhsearch=%3Cmarquee%3E%3Ca%20href=%22http://google.com%22%20onmouseover=window.open(%22https://www.google.com%22)%3Etest%20for%20hackerone%3C/marquee%3E&ux=search
##Browsers Verified In: Firefox 76 / Chrome 81
Let me know if you can't reproduce the issue:
Regards
Impact
XSS, Open Redirect.
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 use the domain to trick users into executing malicious JavaScript code, and the report also claims open redirect.
What the attacker needed
Victim opens a crafted link; victim uses Firefox or Chrome
How it was found
- Open the help page URL with a crafted search value in the fragment.
- The injected marquee tag runs script when it finishes.
- A second crafted value injects a link that runs script on mouse hover.
- A third crafted value opens a new window on mouse hover.
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 web page took text from the address bar (the search term) and placed it into the page without cleaning it first. Because of that, an attacker can put HTML tags in the link, and when a victim opens it, the browser runs the attacker's code as if it came from the real site. This is called cross-site scripting, or XSS.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.