Rxss on █████████ via logout?service=javascript:alert(1)
The logout page accepted a service parameter that redirected users to any URL, including javascript URIs. An attacker could send a crafted link to redirect victims to phishing sites or run script in their browser to steal tokens and other data.
Originally disclosed on HackerOne
- Triaged in 16 hours
- Fixed in 24 days
- Disclosed after 31 days
Description: I found open redirect and xss (Rxss) at the ██████████ logout page, https://████/██████████/logout?service=https://google.com It also allows javascript URIs, leading to Xss
Impact
Attacker can trick users to visit malicious websites or can lead to phishing and many other type of attacks, and can steal user token, IP & etc. with xss
System Host(s)
████████
Affected Product(s) and Version(s)
CVE Numbers
Steps to Reproduce
- Take this URL: https://███████/█████████/logout?service=https://google.com
- Change "https://google.com" to whatever URL you want to redirect to.
- Visit the URL and click on back button and you will be redirected to that site
- for xss replace https://www.google.com with you xss payload ex: https://██████████/██████/logout?service=javascript:alert(1)
Suggested Mitigation/Remediation Actions
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 trick users into visiting malicious sites for phishing, and could run script to steal user tokens and IP addresses.
What the attacker needed
Victim clicks a crafted link
How it was found
- Take the logout URL with the service parameter set to a normal website.
- Change the service value to any URL you want to redirect to.
- Visit the URL and click the back button to be redirected to that site.
- For script execution, replace the website with a javascript URI payload.
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 logout page had a setting that told it where to send you afterwards. The site did not check that address, so it could point anywhere, even to a script that runs in the victim's browser. An attacker only needed to send a link to make this happen.
What is Open redirect?
A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.