Skip to content
XSS Advisory Advanced CVE-2024-2630

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.

James Lee Follow

Originally disclosed on Chrome VRP

Bounty$1,000 Medium View original
  • 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.

  1. Reloading the page with refresh.

  2. Leave the page and coming back for browser pages reloading to automatically reproduce this issue.

  3. 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

The original report as published on the Chromium issue tracker, by James Lee (@Windowsrcer). Images and videos are our own copies; raw HTML is shown as text. View it on Chromium issue tracker.

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

  1. Visit the provided proof-of-concept page that performs a 30x redirect to a javascript: URI.
  2. Reload the page with refresh to trigger the issue.
  3. 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.

More by James Lee

View all

4 more disclosed reports, best first.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.