Firefox Addon bypass dialog and spoof vulnerability
- Fixed in 13 months
- Paid in 13 months
- Disclosed after 13 months
Created attachment 8460893
poc.zip
Normally Firefox warns the user when trying to install add-on if this was page-initiated.
When the page is redirecting or navigating by <a href link, JavaScript or server redirect, Firefox trows the
'Firefox prevented this site (site.com) from asking you to install software on your computer.' warning at the user, which needs to explicitly be accepted for the add-on to continue installing.
There is however, a simple vulnerability that lets an attacker bypass this dialog, which allows a rather nasty attack on the user.
Basically, there is one exception in which the dialog will not be shown, which is if the user pastes or copies the direct link/URL in the URL bar.
Now the user could just click on links, redirects etc that lead to this page, because a data uri redirected to the page which itself redirects with a 'page moved header' to the location of the add-on, will disrupt that 'chain' and installation of the add-on will start without the dialog. As if the user typed it in directly.
This behavior in combination with a properly timed attack will result in a scenario where the user will download the add-on controlled by the attacker, the legit add-on webpage shown with it. The only thing not correct is the url of the pushed add-on, which the user CANNOT verify. This dialog is really only useful if the download location is from another domain. Since it will only show the https://addons.mozzila.org/firefox/download/latest/123/randomurl .. [truncated].
So the attacker will simply upload his unreviewed add-on, with the same name and icon as the desired add-on to be spoofed. Sure, this will eventually be reviewed and picked up or reported in the process. But in the meanwhile the direct link will be used. And since the reputation of the spoofed add-on that is being pushed doesn't matter (user never views that page). There is no way for the user to notice that the add-on is spoofed.
Attached are the files that would be running on the server.
Demonstration of the issue: https://www.youtube.com/watch?v=VTKblGpeW4Y (unlisted)
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
What is known
A high-severity security bug in Add-ons Manager. Mozilla made it public on 25 August 2015 as CVE-2015-4498.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.