Skip to content
Info disclosure Disclosed report Intermediate CVE-2020-6827

Firefox for Android custom tabs URL spoofing

Firefox for Android's custom tabs did not update the displayed address bar correctly, so a page served from one host could be shown while the URL bar claimed a different origin. An attacker could use this to make a malicious page appear to belong to a trusted site.

Juho Forsén Follow

Originally disclosed on Mozilla

  • Fixed in 7 hours
  • Paid in 3 days
  • Disclosed after 7 hours
Text
Created attachment 9133193
spoof.html

Custom tabs in Firefox for Android fail to update the URL correctly, allowing malicious websites to spoof other origins.

Steps to reproduce:

1. Host the attached file (spoof.html) at the following URL: http://evil.example/spoof.html
2. Open the following URL in Firefox for Android: intent://evil.example/spoof.html#Intent;package=org.mozilla.firefox;action=android.intent.action.VIEW;scheme=http;S.android.support.customtabs.extra.SESSION=;end;
3. Observe how a custom tab opens, the URL changes to "https://google.com/", yet content is displayed from the "evil.example" host

The original report as published on Mozilla's Bugzilla, by Juho Forsén. 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

Root cause

Likely the custom tab did not refresh the displayed URL when the page navigated, so the address bar kept showing a stale or attacker-chosen origin.

Impact

A victim could be shown attacker content under a trusted-looking address, which could be used for phishing, though the report does not demonstrate credential theft.

What the attacker needed

Firefox for Android; victim opens a crafted intent link

How it was found

  1. Host the attached page on an attacker-controlled server.
  2. Open a crafted intent URL in Firefox for Android that launches a custom tab.
  3. Observe the custom tab showing a different site's URL while displaying the attacker's content.

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 custom tab is a browser window opened by another app, and it shows an address bar so you can see which site you are on. Here the address bar showed one site while the page content actually came from another, which is called spoofing. That matters because people trust the address bar to tell them where they are.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More by Juho Forsén

View all

1 more disclosed report, 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.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.