Skip to content
Open redirect Disclosed report Intermediate CVE-2024-8897

Android: Origin spoof after server-side intent redirect

A vulnerability in Firefox for Android allows an attacker to spoof the origin shown in the URL bar by redirecting through a server-side intent. The attacker can make the browser display a victim's origin while showing content from the attacker's site, enabling phishing and potentially tricking password managers.

Thomas Orlita Follow

Originally disclosed on Mozilla

  • Fixed in 10 months
  • Paid in 10 months
  • Disclosed after 10 months
Text
I have discovered a vulnerability in the Android version of Firefox that allows an attacker to spoof the origin in the URL bar in a specific case.

Version: Android 14, Firefox 119.0 / 121.0a1

The attack requires the preconditions described below:
1. The user visits victim.example, which has an anchor link to a same-origin page which redirects to the attacker's website (this could be an open redirect).

victim.example
'''html
<a href="open-redirect.php">Link</a>
'''

victim.example/open-redirect.php
'''http
Location: https://attacker.example
'''

attacker.example
'''http
Location: intent://example.com/#Intent;scheme=https;end
[...]

<html> phishing content here
'''

2. The user opens the link in a new regular OR private tab
3. The origin displays victim.example but the content is from attacker.example

Note: Only in the case that the link is opened a new non-private (regular) tab, an "Open in another app" dialog appears. (This does not happen if it's opened in the private tab.) It doesn't matter if it's accepted or dismissed. I have noticed that dismissing it several times makes the dialog not appear again and cause the PoC not to work. This could likely be easily bypassed by using a random subdomain every time for the attacker's website.

This vulnerability causes a mismatch in the displayed security origin vs the page content. The page stays fully interactive. Origins in permission dialogs seem to display the correct origin. However, I have observed Bitwarden attempt to fill in passwords for the spoofed origin, but only sometimes (not sure why). So this also affects password managers in some way.

To make this easy to reproduce and fix, I am hosting the PoC on the URL below:
https://victim--poc--intent-origin-spoof.ff.vuln.foo/

I have also attached proof of concept videos showing how this could be abused while searching on Google. (note: the PoC is not live on the domain shown in the video)

The original report as published on Mozilla's Bugzilla, by Thomas Orlita. Images and videos are our own copies; raw HTML is shown as text. View it on Mozilla's Bugzilla.

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

This causes a mismatch between the displayed security origin and the page content, which could be used for phishing and may affect password managers; the report notes that permission dialogs show the correct origin and that an 'Open in another app' dialog appears in regular tabs but not private tabs.

What the attacker needed

Victim.example has an open redirect; user clicks a link; user opens link in new tab

How it was found

  1. The user visits victim.example, which has an anchor link to a same-origin page that redirects to the attacker's website.
  2. The user opens the link in a new regular or private tab.
  3. The origin displays victim.example but the content is from attacker.example.

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.

When you visit a website, the address bar shows the site's origin (like example.com) so you know who you're talking to. This bug lets an attacker make the address bar show a trusted site's origin while actually displaying the attacker's page, which could trick you into entering passwords or personal information.

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.

More by Thomas Orlita

View all

22 more disclosed reports, best first.

More from Mozilla

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Open redirect

The lesson behind this report.

A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.