Firefox "Check Your Plugins" site opens vulnerability by serving http plugin download URLs
The Mozilla 'Check Your Plugins' page served plugin update links over plain HTTP instead of HTTPS. An attacker on the same network could use rogue DNS to redirect those links to a fake site and trick users into downloading malware.
- Fixed in 8.0 years
- Paid in 8 months
- Disclosed after 8.0 years
How this was discovered
I was prompted to download a plugin when using Netflix. Their "Check for Updates" button led to a URL on the mozilla.org domain (https://www.mozilla.org/en-US/plugincheck/?utm_source=firefox-browser&utm_medium=firefox-browser&utm_campaign=plugincheck-update).
On visiting that mozilla.org URL, using Firefox 45.0, I saw some prominent ("Don't Make Me Think" style) "Update Now" buttons next to names of plugins. I noted that the mozilla.org "Check Your Plugins" site is itself hosted securely with an https URL.
After visiting one of these Mozilla-provided "Update Now" button destination links, I decided to verify the domain by clicking on the favicon area. I then discovered that the provided links are http links, not https links. This is alarming given that the links are being provided for the purpose of downloading plugins which would be expected to ask for and be granted user permission to run code in the browser.
This seems like a serious vulnerability in Mozilla's online services, opening up Firefox users to potential attack.
Attack scenario
The attack scenario is for the attacker to trick the user into downloading and installing a malware binary file masquerading as a legitimate plugin. This can be easily done using the infrastructure provided by the current Firefox "Check Your Plugins" page even though that page is hosted at a secure (https) URL on mozilla.org.
Step-by-step exploit process
1) Attacker provides a WiFi or other network which is configured with a rogue DNS entry for domains that host plugins such as microsoft.com or adobe.com.
2) They then simply wait for some of the user's plugins, such as Adobe Reader or Microsoft Sliverlight, to expire, and for the user to visit a domain that a) requires a plugin, and b) is configured, as is Netflix for example, to direct the user to the Firefox "Check Your Plugins" page.
3) The plugin-requiring site prompts the user to update,.
4) The user follows the update link to the secure mozilla.org URL (which contains insecure links)
5) The user clicks the "Update Now" button provided by Mozilla which purports to link to trusted providers like microsoft.com and adobe.com
6) Instead of getting their intended trusted site, the user instead is served a fake site masquerading as the intended site. This is enabled by the attacker's rogue DNS entry, which was allowed to succeed by the fact that the links associated with the "Update Now" buttons on the https mozilla.org site are http links, not https links.
7) The user now sees what looks like a trusted site, and feeling confident because they got there via the mozilla.org site, they proceed to download and then install the offered binary files from the rogue site.
Security impact
One the one hand, this "only" impacts people who use plugins, who update their plugins, and who do so through the links provided on mozilla.org, and only those who also are unlucky enough to fall into the net of an attacker who goes to the effort to set up a network that takes advantage of the vulnerability.
On the other hand, the impact to those users who do follow that path and who do get caught in such a trap could be very serious, including complete theft of or loss of data. In my understanding the users could even end up unintentionally installing not just a sandboxed plugin, but a full app, if the attacker chooses to provide that as the download. Even if it's just a rogue plugin, though, the damage could be serious again including such issues as data theft, data corruption, data loss, misdirection, etc. so in any case this vulnerability winds up creating serious risks for users.
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
The Mozilla plugin-check page linked to plugin download sites using HTTP rather than HTTPS, so the links could be redirected by anyone controlling the network.
Impact
Users on an attacker-controlled network could be tricked into downloading and installing malware that appears to come from a trusted plugin vendor, potentially leading to data theft or loss.
What the attacker needed
Attacker controls the network or DNS; victim uses an outdated plugin; victim visits a site that redirects to the plugin-check page; victim clicks an 'Update Now' link
How it was found
- Attacker sets up a Wi-Fi network with a rogue DNS entry for plugin vendor domains.
- Attacker waits for a user's plugin to expire and for the user to visit a site that sends them to the Mozilla plugin-check page.
- The site prompts the user to update and the user follows the link to the secure Mozilla page.
- The user clicks an 'Update Now' button that points to an HTTP link.
- The rogue DNS redirects the user to a fake site that looks like the trusted vendor.
- The user downloads and installs the attacker's binary.
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 can start with 'http' (unencrypted) or 'https' (encrypted). Here, a trusted Mozilla page used 'http' links for plugin downloads, so someone on the same Wi-Fi could secretly redirect those links to their own fake download page. The user would think they were still getting a file from the real plugin maker.
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.