Closed
Bug 253951
Opened 20 years ago
Closed 19 years ago
[FIXr]Dialogs from a loading page appear above previous page's content
Categories
(Core :: Layout, defect, P1)
Core
Layout
Tracking
()
RESOLVED
FIXED
mozilla1.8beta4
People
(Reporter: jruderman, Assigned: bzbarsky)
References
Details
(Keywords: csectype-spoof, fixed1.8, sec-low, Whiteboard: [Requires fix for 306660 also])
Attachments
(2 files)
(deleted),
text/html
|
Details | |
(deleted),
patch
|
mrbkap
:
review+
jst
:
superreview+
asa
:
approval1.8b4+
|
Details | Diff | Splinter Review |
If a page puts up a dialog while it is loading, the dialog can appear above the
content of the previous page. This works with at least alert() and
enablePrivilege(). Luckily, the address bar usually (???) shows the attacker's URL.
Reporter | ||
Comment 1•20 years ago
|
||
Comment 2•20 years ago
|
||
We need to clear the contents before we run any script from the new page
Assignee: dveditz → jst
Component: Security: General → Layout
Whiteboard: [sg:fix]
Comment 3•20 years ago
|
||
Jesse, I get nothing other than a button that does nothing when loading your
demo. What am I missing?
Reporter | ||
Comment 4•20 years ago
|
||
I can still repro with Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3)
Gecko/20041004 Firefox/0.10
You have to have "Force links that open in new windows..." unchecked and you
have to have codebase principals enabled.
Comment 5•20 years ago
|
||
I could repro in 1.7.3, but in the latest firefox nightly the "google" page
never shows, it's just blank.
The alert dialog part of this works (on 1.7.3) whether you have codebase
principals allowed or not. Lot of branch changes since 1.7.3, maybe it's fixed?
I'll try the trunk, too, as soon as I get out of here.
Comment 6•20 years ago
|
||
(In reply to comment #5)
> I could repro in 1.7.3, but in the latest firefox nightly the "google" page
> never shows, it's just blank.
Nevermind, I must have had some of the default script options turned off. I
still see this in Firefox 1.0.3 and Suite trunk (2005041905)
Flags: blocking1.8b3?
Flags: blocking-aviary1.1?
Updated•20 years ago
|
Flags: blocking-aviary1.1? → blocking-aviary1.1+
Updated•19 years ago
|
Flags: blocking1.8b4+
Flags: blocking1.8b3?
Flags: blocking1.8b3-
Updated•19 years ago
|
Depends on: splitwindows
Reporter | ||
Comment 7•19 years ago
|
||
I see this bug on Mac too. Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O;
en-US; rv:1.8b4) Gecko/20050810 Firefox/1.0+.
OS: Windows XP → All
Hardware: PC → All
Assignee | ||
Comment 8•19 years ago
|
||
Attachment #193633 -
Flags: superreview?(jst)
Attachment #193633 -
Flags: review?(mrbkap)
Assignee | ||
Comment 9•19 years ago
|
||
Note that that patch will NOT work for the 1.7 branch. If we need this fixed
there it'll take a good bit more work at best.
Comment 10•19 years ago
|
||
Comment on attachment 193633 [details] [diff] [review]
Proposed patch
>Index: content/html/document/src/nsHTMLContentSink.cpp
>+ PRBool notify = ((aType & Flush_SinkNotifications) != 0);
The parens around the rhs are not necessary.
r=mrbkap
Attachment #193633 -
Flags: review?(mrbkap) → review+
Comment 11•19 years ago
|
||
Comment on attachment 193633 [details] [diff] [review]
Proposed patch
sr=jst
Attachment #193633 -
Flags: superreview?(jst) → superreview+
Assignee | ||
Comment 12•19 years ago
|
||
Comment on attachment 193633 [details] [diff] [review]
Proposed patch
We should take this on 1.8 branch...
Do we need a 1.7 branch fix for this also?
Attachment #193633 -
Flags: approval1.8b4?
Comment 13•19 years ago
|
||
Comment on attachment 193633 [details] [diff] [review]
Proposed patch
please land on the trunk and make sure it looks good before moving up to the
branch. thanks.
Attachment #193633 -
Flags: approval1.8b4? → approval1.8b4+
Assignee | ||
Updated•19 years ago
|
Assignee: jst → bzbarsky
Priority: -- → P1
Summary: Dialogs from a loading page appear above previous page's content → [FIXr]Dialogs from a loading page appear above previous page's content
Target Milestone: --- → mozilla1.8beta4
Assignee | ||
Comment 14•19 years ago
|
||
Requesting 1.7 branch blocking so we remember to evaluate whether we need a fix
there.
Flags: blocking1.7.12?
Flags: blocking-aviary1.0.7?
Assignee | ||
Comment 15•19 years ago
|
||
Fixed on trunk. Will land on branch in a few days.
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Updated•19 years ago
|
Whiteboard: [sg:fix] → [sg:fix] requires fix for 306660 also
Updated•19 years ago
|
Flags: blocking1.7.13?
Flags: blocking1.7.13+
Flags: blocking-aviary1.0.8?
Flags: blocking-aviary1.0.8+
Assignee | ||
Comment 18•19 years ago
|
||
For what it's worth, checking this in on 1.7 branch will be a bear -- it required some ... interesting ... content sink changes to sort out the regressions, and I'm not sure we've kept track of them all well enough... :(
Comment 19•19 years ago
|
||
Can this be used for worse than the spoofing in the demo? The latest branch builds do show the real source of the alerts in the title bar, and the permission dialog does show the other site.
As long as the script can't interact with the page contents (covered by other splitwindow-related bugs) we can probably live with the spoofing in 1.0.x rather than risk the regressions
Flags: blocking1.7.13?
Flags: blocking1.7.13+
Flags: blocking-aviary1.0.8?
Flags: blocking-aviary1.0.8+
Whiteboard: [sg:fix] requires fix for 306660 also → [sg:low spoof] requires fix for 306660 also
Updated•19 years ago
|
Flags: blocking1.7.13?
Flags: blocking1.7.13-
Flags: blocking-aviary1.0.8?
Flags: blocking-aviary1.0.8-
Updated•19 years ago
|
Flags: testcase+
Updated•18 years ago
|
Group: security
Updated•18 years ago
|
Flags: in-testsuite+ → in-testsuite?
Reporter | ||
Updated•11 years ago
|
Keywords: csec-spoof,
sec-low
Whiteboard: [sg:low spoof] requires fix for 306660 also → [Requires fix for 306660 also]
You need to log in
before you can comment on or make changes to this bug.
Description
•