iOS Firefox Focus 302 redirect UXSS
A 302 redirect to a javascript: URL was followed by iOS Firefox Focus, allowing script execution in the context of the visited site. An attacker could use this to run script on any site a victim visits via a crafted link.
- Fixed in 3 months
- Paid in 3 months
- Disclosed after 3 months
We are able to perform UXSS using 302 redirect where iOS Firefox Focus allows to perform UXSS on any site you're visiting. We can reproduce this with Google search by visiting one of the malicious sites with PoC from the search results and that's just one of the examples how this could be used to exploit mass users.
PoC demo: https://pwning.click/Focus302UXSS.php
PoC: <?php header("Location: javascript:document.write(document.domain)", true, 302); ?>
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 browser did not block javascript: URLs used as the target of an HTTP 302 redirect, so the script ran in the origin of the redirected page.
Impact
An attacker could run script in the context of any site the victim visits through the crafted link, which could affect many users.
What the attacker needed
IOS Firefox Focus; victim opens attacker 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.
A website can redirect your browser to another address. Normally a redirect to a 'javascript:' address should be blocked, but this browser followed it and ran the code as if it came from the site you were on. That lets an attacker run their own code on any site you visit through their link.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.