Reflected XSS on https://███████/
A path segment after /kinetic/ was reflected into the 404 error page without sanitisation, so a crafted URL containing an SVG element with an onload handler executed script in the victim's browser. An attacker could run JavaScript in the context of the site by getting a user to open such a link.
Originally disclosed on HackerOne
- Triaged in 1 hour
- Fixed in 51 days
- Disclosed after 5 months
Summary:
Hey Team,
There is reflected xss on https://█████/kinetic/ when certain action results in 404 error.
Description:
I am using some random strings paths after kinetic in https://███████/kinetic/ if that path is not exist then it says 404 not found. Strings is not sanitized after kinetic/ due to which any one can able to use Java Script code after kinetic/ and it executed successfully leads to reflected xss.
Impact
The attacker can able to execute JS code.
Step-by-step Reproduction Instructions
- open this https://████████/kinetic/1%3C!--%3E%3CSvg%20OnLoad=(confirm)(document.domain)--%3E/ in firefox
- You will get alert pop up.
Product, Version, and Configuration (If applicable)
Suggested Mitigation/Remediation Actions
Sanitize string
Impact
The attacker can able to execute JS code.
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 404 handler echoes the requested path into the HTML response without encoding it, so markup in the path is parsed as HTML.
Impact
An attacker could execute JavaScript in the victim's browser on the affected site, though the report only demonstrates a confirm dialog and does not show theft of data or session.
What the attacker needed
Victim opens a crafted link; Firefox browser (as tested)
The fix
The path should be HTML-encoded before being reflected into the error page, or the error page should not echo the requested path at all.
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 an error page repeats part of the address without cleaning it, an attacker can put code in the address and the browser runs it as if the site wrote it. This is reflected cross-site scripting.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.