DOM Based XSS on https://████ via backURL param
A parameter used to set the destination of a 'Back to Search Result' button accepted a javascript: scheme, so the page rendered a link that executed script when clicked. An attacker could run JavaScript in a victim's browser by getting them to visit a crafted URL and click the button.
- Triaged in 1 hour
- Fixed in 20 days
- Disclosed after 32 days
Description:
The following endpoint suffers from DOM Based XSS
https://████████/██████=javascript:alert(document.domain)
The ████████ param determines the content which will be displayed on the "Back to Search Result" button, eventually leading to RXSS.
References
██████
Regards
nagli
Impact
Executing javascript on the victims behalf
System Host(s)
████
Affected Product(s) and Version(s)
CVE Numbers
Steps to Reproduce
- Navigate to
https://█████/████=javascript:alert(document.domain)
- Click on "Back to Search Result"
Suggested Mitigation/Remediation Actions
Sanitize the user input and do not allow malicious schemes to be inserted per the user input.
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 parameter value was inserted into the button's link without validating or restricting the URL scheme, allowing a javascript: URL.
Impact
Executing JavaScript on the victim's behalf; the report does not show what actions were possible.
What the attacker needed
Victim clicks a crafted link; victim clicks the button
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 a value from the address bar and used it as the link for a button without checking what kind of link it was. Because the value could start with 'javascript:', clicking the button ran code in the visitor's browser instead of going to another page. This is called cross-site scripting, where an attacker's code runs as if it came from the trusted site.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.