Closed Bug 77503 Opened 25 years ago Closed 14 years ago

possible to set window.toString for another domain

Categories

(Core :: Security: CAPS, defect)

x86
Windows 98
defect
Not set
minor

Tracking

()

RESOLVED WORKSFORME
Future

People

(Reporter: jruderman, Assigned: dveditz)

Details

Typing this sequence of URLs into my homepage lets me set the toString for a window at www.amazon.com. This doens't look exploitable, since "alert (document.links.length);" is evaluated on my homepage (even if window.toString is called from the amazon window). javascript:x = window.open('http://www.amazon.com/'); void(0); javascript:x.toString = function () { alert(document.links.length); }; void(0); javascript:alert(x);
As this is not exploiatable, let's put it aside for now.
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla1.0
Similar to bug 86028, can redefine focus() and other allAccess functions at another domain.
Less important bugs retargeted to 0.9.9
Target Milestone: mozilla1.0 → mozilla0.9.9
Target Milestone: mozilla0.9.9 → Future
Assignee: security-bugs → dveditz
Status: ASSIGNED → NEW
QA Contact: ckritzer
QA Contact: caps
> x.toString = function () { alert(document.links.length); }; void(0); Error on line 1: Permission denied to access property 'toString'
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.