Closed
Bug 35859
Opened 26 years ago
Closed 25 years ago
loading chrome: urls in a window
Categories
(Core :: Security, defect, P3)
Tracking
()
VERIFIED
FIXED
M16
People
(Reporter: norrisboyd, Assigned: security-bugs)
References
()
Details
(Whiteboard: [nsbeta2+])
Subject:
BUG: loading chrome: urls in a window
Date:
Fri, 14 Apr 2000 16:39:15 +0300
From:
Georgi Guninski <joro@nat.bg>
To:
Norris Boyd <norris@netscape.com>
Normally Mozilla does not allow loading chrome: urls (using
<A>,window.open(),redirects, etc.)
But it is possible to circumvent this using <BASE HREF="...">.
I cannot make a dangerous exploit now, but if another bug pops up it may
be possible to create a bad exploit.
The code is:
---------------------------------------------------------------
<SCRIPT>
a=window.open("about:blank","a");
</SCRIPT>
<BASE HREF="chrome://messenger/content/messenger.xul?">
<A HREF="#" TARGET="a">chrome</A>
---------------------------------------------------------------
| Reporter | ||
Updated•26 years ago
|
Status: NEW → ASSIGNED
Target Milestone: --- → M16
| Reporter | ||
Comment 1•26 years ago
|
||
The problem is in nsHTMLFrameInnerFrame::Reflow. The code calls
aPresContext->GetBaseURL to get a URL to use as the current page's URL to
determine if it can load the new URL. But of course BASE HREF changes that. I
can't find any other means in nsHTMLFrameInnerFrame::Reflow to obtain the URL of
the current page.
| Assignee | ||
Comment 2•25 years ago
|
||
Bulk reassigning most of norris's bugs to mstoltz.
Assignee: norris → mstoltz
Status: ASSIGNED → NEW
| Assignee | ||
Updated•25 years ago
|
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
| Assignee | ||
Comment 5•25 years ago
|
||
Fixed by adding CheckLoadURI check to BASE tag processing. Cathy, could you try
some variations on this bug and make sure the hole is closed? Marking FIXED.
Comment 6•25 years ago
|
||
The bug is fixed, I tried different variations
http://cathyz/bugs/35859_chrome.html (with/without ? # )
http://cathyz/bugs/35859_link.html
http://cathyz/bugs/35859_window.html
http://cathyz/bugs/35859_form.html
http://cathyz/bugs/35859_meta.html
Status: RESOLVED → VERIFIED
Updated•20 years ago
|
Flags: testcase+
Updated•19 years ago
|
Flags: in-testsuite+ → in-testsuite?
You need to log in
before you can comment on or make changes to this bug.
Description
•