Closed Bug 304931 Opened 20 years ago Closed 20 years ago

Installing theme from website allowed, even though website is not whitelisted

Categories

(Firefox :: General, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: Sokraates, Assigned: dveditz)

References

()

Details

(Keywords: fixed1.8)

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; de-DE; rv:1.7.10) Gecko/20050717 Firefox/1.0.6 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; de-DE; rv:1.7.10) Gecko/20050717 Firefox/1.0.6 On a non-whitelisted site, clicking on an link, which triggers the installation of a theme, will prompt a notification asking, whether you want to install the theme, obviously ignoring the whitelist. Reproducible: Always Steps to Reproduce: 1. Go to http://www2.warnerbros.com/batmanbegins/flash/index.html 2. Click on "Downloads" 3. Click on "Firefox Skin" 4. Click on the screenshot 5. Click on "Yes" Actual Results: The theme is installed flawlessly. ... Expected Results: Instead of asking, whether the the should be installed, a notifier bar should appear stating, that the website is not allowed to install content.
*** Bug 304934 has been marked as a duplicate of this bug. ***
*** Bug 304932 has been marked as a duplicate of this bug. ***
From bug 304934 : This is *not* a dupe of #304727, since not only does the notifier not appear, but the installation works even for non-whitelisted sites.
This behavior was introduced in bug 246375, "Themes should not be required to be whitelisted."
Maybe I'm just paranoid, but I think *anything* being installed should need to be whitelisted first. Concidering, that the notification asking if you want to install the theme does not even have a 2-second timer, like the one for installing XPIs, the current "solution" seems a bad one. If regular users can live with whitelisting sites for installing XPIs and then patiently wait to be able to click "Yes", they can live with doing the same with themes. ... Or maybe they only use addons.mozilla.org, which solves the problem alltogether. :)
Well, themes have much less ability to screw the browser up (ok they could deliver bad white graphics, but that's all). Extensions can delete/read/send/whatever files on your PC and more, Themes are very restricted at what they can do. Due to that this change was intentional, i suggest WONTFIX.
Assignee: nobody → dveditz
Status: UNCONFIRMED → NEW
Ever confirmed: true
Attachment #199199 - Flags: review?(mconnor)
Frank, see bug 246375 comment 3 for why malicious themes are almost as dangerous as malicious extensions.
Comment on attachment 199199 [details] [diff] [review] make skin installs honor site whitelisting mconnor gave verbal r= earlier today
Attachment #199199 - Flags: superreview?(dbaron)
Attachment #199199 - Flags: review?(mconnor)
Attachment #199199 - Flags: review+
Attachment #199199 - Flags: approval1.8rc1?
Attachment #199199 - Flags: superreview?(dbaron) → superreview+
This is a policy change as much as a code change. We need to get more people involved in this.
In addition to making theme installation subject to whitelisting, I think it would make sense to use the extension installation dialog for installing themes (more familiar UI, protection against bug 162020, etc).
Flags: blocking1.8rc1?
(In reply to comment #11) > I think it would make sense to use the extension installation dialog for > installing themes (more familiar UI, protection against bug 162020, etc). That's easy, just get rid of the "if (mChromeType == CHROME_SKIN)" block here: http://lxr.mozilla.org/mozilla/source/xpinstall/src/nsXPInstallManager.cpp#278 But that should be argued in a different bug I think. If you're worried only about the delay part, we could change to ConfirmEx() and pass the nsIPrompt::BUTTON_DELAY_ENABLE flag down in ConfirmChromeInstall()
The argument (apparently) for exempting themes was that theme installations are not inherently dangerous, but that doesn't coexist with the idea that whitelisting was implemented for the purpose of removing an annoyance factor, not as a security hoop. If endless looping of install requests aren't okay for extensions, I don't see this as acceptable for themes. This is a clarification and proper implementation of the policy, IMO.
Attachment #199199 - Flags: approval1.8rc1? → approval1.8rc1+
Flags: blocking1.8rc1? → blocking1.8rc1+
i tried the site on Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b5) Gecko/20051015 Firefox/1.4.1 ID:2005101504 it appears to be fixed, the theme downloaded fine. but was not compatible with my version of firefox.
sorry misspoke. not fixed
Dan, can this patch land on the trunk and branch now? Looks like the reviews are all in place and the bug has approval. Thanks!
fix checked into trunk and 1.8 branch
Status: NEW → RESOLVED
Closed: 20 years ago
Keywords: fixed1.8
Resolution: --- → FIXED
Blocks: 313096
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: