Inappropriate implementation in iOS (CVE-2024-2630)
A 30x redirect to a javascript: URI on iOS Chrome allowed JavaScript to run on the file:// origin through an error page. An attacker could access file:// information such as a UUID and potentially trigger a camera permission prompt.
- Fix shipped in 3 months
Steps to reproduce the problem:
30x redirect to javascript URI allows to run JavaScript on file:// Origin through the error page: https://pwning.click/chrome302js.php
We are able to run JavaScript on file:// URI from any https websites allowing to get UUID and other information accessible on file:// URI.
There are a few different ways to reproduce this, where 1 is the only case that requires user interaction.
-
Reloading the page with refresh.
-
Leave the page and coming back for browser pages reloading to automatically reproduce this issue.
-
Use simple crash bug to crash browser and come back which will reload pages and automatically reproduce this issue.
Additionally, we are able to pwn camera since user will think Chrome browser is asking for camera access after he/she came back to the browser after leaving: allow "" to use camera
https://pwning.click/chrome302js2.php
Problem Description:
Running JavaScript on file:// URI allowing to access information and access camera for iOS Chrome
Additional Comments:
**Chrome version: ** 120 **Channel: ** Stable
OS: iOS
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
JavaScript could run on the file:// origin, allowing access to local information such as a UUID and potentially prompting the user for camera access.
What the attacker needed
IOS Chrome; victim visits a malicious page; user interaction for one variant
How it was found
- Visit the provided proof-of-concept page that performs a 30x redirect to a javascript: URI.
- Reload the page with refresh to trigger the issue.
- Alternatively, leave the page and return, or crash the browser and return, to cause an automatic reload and reproduction.
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.
Normally, a website should not be able to run its own code in the context of local files (file://). This report shows that a redirect to a special javascript: link could make the browser run code as if it were a local file, letting the attacker read local data and ask for camera access.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.