Reader-mode leaks HTTPS URL through referer header
Firefox's Reader-mode page leaked the full HTTPS URL of the original page in the Referer header when a user clicked a link to an HTTP site. An attacker could learn the secret URL of a private Gist.
Originally disclosed on Mozilla
- Fixed in 32 days
- Paid in 15 days
- Disclosed after 32 days
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.34 Safari/537.36
Steps to reproduce:
1. Open my secret Gist https://gist.github.com/nishimunea/899da90df5b169a80df39e73fec89e87
2. Push Reader-mode button
2. Click a hyperlink for http://mallory.csrf.jp/referer_stealer.php
Actual results:
URL of my secret Gist is revealed through Referer header (below) to the malicious HTTP website though my Gist is HTTPS.
Referer: http://localhost:6571/reader-mode/page?url=https://gist.github.com/nishimunea/899da90df5b169a80df39e73fec89e87
http://mallory.csrf.jp/referer_stealer.php
Expected results:
HTTPS URL should not be sent to any HTTP web pages.
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 Reader-mode page did not apply the same referrer policy that would strip the URL when navigating from HTTPS to HTTP.
What the attacker needed
Victim uses Firefox Reader mode; victim clicks a link to an HTTP site
The fix
The Reader-mode page should apply a referrer policy that prevents sending the full URL to HTTP sites.
How it was found
- Open a secret Gist in Firefox.
- Activate Reader mode.
- Click a link to an HTTP site.
- Observe the Referer header sent to that site contains the full HTTPS URL.
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 click a link, your browser often sends a 'Referer' header telling the new site where you came from. Normally, if you go from a secure HTTPS page to an insecure HTTP page, the browser hides the full address. Here, Firefox's Reader mode showed the full secret address anyway, so the attacker's site could see it.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.