Closed
Bug 239411
Opened 21 years ago
Closed 20 years ago
install delay should stop+reset when Software Installation dialog loses focus
Categories
(Toolkit :: Add-ons Manager, defect, P4)
Tracking
()
RESOLVED
FIXED
mozilla1.8final
People
(Reporter: jruderman, Assigned: benjamin)
References
Details
(4 keywords)
Attachments
(2 files)
1.21 KB,
application/zip
|
Details | |
3.75 KB,
patch
|
bugs
:
review+
dveditz
:
approval-aviary1.0.8-
|
Details | Diff | Splinter Review |
Ben's patch in bug 236056 doesn't guard against a variant of the attack I
alluded to in bug 162020 comment 0:
1. Open a new window.
2. In the original window, pop up an XPI dialog.
3. Convince the user to double-click somewhere in the new window.
4. On the first click, close the new window, letting the XPI dialog show through.
If the dialog starts without focus or loses focus, it needs to disable the
button and start counting down when the dialog gains focus. This will probably
annoy Linux users whose window managers don't focus modal dialogs, but I don't
see an obvious way around that.
Reporter | ||
Comment 1•21 years ago
|
||
Reporter | ||
Comment 2•21 years ago
|
||
You have to allow scripts to "Raise or lower windows" for this exploit to work well.
Reporter | ||
Updated•21 years ago
|
Whiteboard: security
Comment 3•21 years ago
|
||
jesse, that is an excellent exploit.
Reporter | ||
Comment 4•21 years ago
|
||
Bug 162020 is blocking1.7+, so this should be too.
Flags: blocking0.9?
Comment 5•21 years ago
|
||
any thoughts on how we are going to plug this?
Flags: blocking0.9? → blocking0.9+
Comment 6•21 years ago
|
||
well, if you want something for 1.7, how about a modal dialog?
Reporter | ||
Comment 7•21 years ago
|
||
The XPI dialog is already modal. Are you suggesting making it application-modal?
Comment 8•21 years ago
|
||
obviously. ;-)
This exploit is less dangerous since bug 238684 was fixed. The testcase given
doesn't work in recent builds, since XPI installation from a timer is
disallowed. It also doesn't work to use a load listener on the decoy window,
instead of a timer. That's because the XPInstallManager seems to be invoked with
its parent window set to the topmost window, even if invoked from another
window, and the topmost window in this case is the still-loading decoy window.
XPI installation is also disallowed from loading windows.
I'm not saying this is no longer a problem. There may be some way to begin the
installation on the opener window from, say, the decoy window's mousemove
handler in the example. Focus the opener, begin installation, and then return
focus to yourself, or some such thing. I haven't been able to make it work.
There'd be flashing of windows, at best.
In case this exploit can be made to work, I rather like Jesse's suggestion of
stopping the installation countdown while the XPInstall dialog isn't focused.
It's simple, it's elegant, it's sufficient, isn't it?, and it doesn't require
the spanking the widget code would need before it could support
application-modal windows.
Sadly, I can't make that work, either. The XUL change is simple enough but I
can't seem to get blur notifications in the XPInstall dialog unless I first hit
the Cancel button (and drag the mouse off before releasing). See bug 164686.
Updated•21 years ago
|
Status: NEW → ASSIGNED
Flags: blocking1.0+
Flags: blocking0.9-
Flags: blocking0.9+
Updated•21 years ago
|
Whiteboard: security → [sg:fix] security
Updated•21 years ago
|
Priority: -- → P4
Comment 10•20 years ago
|
||
p4 priority - not a blocker. if a fully reviewed patch materializes, please
nominate for aviary approval.
Flags: blocking-aviary1.0+ → blocking-aviary1.0-
Updated•20 years ago
|
Flags: blocking-aviary1.1?
Updated•20 years ago
|
Flags: blocking-aviary1.1? → blocking-aviary1.1+
Comment 11•20 years ago
|
||
->bsmedberg
Assignee: bugs → benjamin
Status: ASSIGNED → NEW
Flags: blocking1.8b4+
Assignee | ||
Comment 12•20 years ago
|
||
This does make one UI change: it counts down by tenths of a second, instead of
by whole seconds, because it easy to click back to the install confirmation and
see (2) and not realize that it's counting down again.
Attachment #186601 -
Flags: review?(bugs)
Assignee | ||
Comment 13•20 years ago
|
||
If this doesn't cause leaks on trunk it's probably 1.0.x-worthy.
Component: Download Manager → Extension/Theme Manager
Flags: blocking-aviary1.0.6?
Flags: blocking-aviary1.0.5?
Assignee | ||
Comment 14•20 years ago
|
||
1.0.5 just about wrapped up. we might want this if we do a 1.0.6
-chofmann
Flags: blocking-aviary1.0.5? → blocking-aviary1.0.5-
Assignee | ||
Updated•20 years ago
|
Whiteboard: [sg:fix] security → [sg:fix] security has-patch, needs-review(BenG)
Assignee | ||
Updated•20 years ago
|
Whiteboard: [sg:fix] security has-patch, needs-review(BenG) → [sg:fix][no l10n impact] security has-patch, needs-review(BenG)
Comment 15•20 years ago
|
||
Comment on attachment 186601 [details] [diff] [review]
Reset the xpinstall counter onblur, rev. 1
r=ben@mozilla.org
Attachment #186601 -
Flags: review?(bugs) → review+
Assignee | ||
Comment 16•20 years ago
|
||
Fixed on trunk for 1.8b4
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Whiteboard: [sg:fix][no l10n impact] security has-patch, needs-review(BenG) → [sg:fix][no l10n impact] security has-patch
Target Milestone: --- → Firefox1.1
Assignee | ||
Updated•20 years ago
|
Attachment #186601 -
Flags: approval-aviary1.0.7?
Updated•19 years ago
|
Whiteboard: [sg:fix][no l10n impact] security has-patch → [sg:low][no l10n impact] security has-patch
Comment 17•19 years ago
|
||
Won't kill us not to fix this, not blocking (but I'll leave the approval request for now). Fixed in 1.5 which will be released before 1.0.8, mainly interested in severe problems on the old branch.
Flags: blocking-aviary1.0.8? → blocking-aviary1.0.8-
Updated•19 years ago
|
Flags: testcase+
Comment 18•19 years ago
|
||
Comment on attachment 186601 [details] [diff] [review]
Reset the xpinstall counter onblur, rev. 1
not needed for old branches
Attachment #186601 -
Flags: approval-aviary1.0.8? → approval-aviary1.0.8-
Updated•19 years ago
|
Group: security
Updated•18 years ago
|
Flags: in-testsuite+ → in-testsuite?
Updated•17 years ago
|
Product: Firefox → Toolkit
Reporter | ||
Updated•12 years ago
|
Keywords: csec-spoof,
sec-low
Whiteboard: [sg:low][no l10n impact] security has-patch
You need to log in
before you can comment on or make changes to this bug.
Description
•