Closed Bug 20469 Opened 26 years ago Closed 26 years ago

Seeing JS functions and global variables from arbitrary host

Categories

(Core :: Security, defect, P3)

x86
Windows 95
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: joro, Assigned: norrisboyd)

References

()

Details

By examining the properties of "window" one may see javascript functions and global variables in documents from arbitrary host. It is interesting that this does not work if the functions are commented by HTML (<!--). The code is: -------------------------------------------------- <SCRIPT> function show_props(obj) { document.writeln("<H1>Scroll down to see the functions from the other window:</H1><BR>"); for (var i in obj) document.writeln(i+'='+obj[i]+'<BR>'); } a=window.open("http://www.microsoft.com"); </SCRIPT> <A HREF="#" onclick="show_props(a);return false">Click here to see some JS functions and global variables</A> --------------------------------------------------
Status: NEW → ASSIGNED
Fixed URL.
Target Milestone: M14
Target Milestone: M14 → M15
Bulk moving all Browser Security bugs to new Security: General component. The previous Security component for Browser will be deleted.
Component: Security → Security: General
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Fixed with Friday's massive checkin.
Verified fixed.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.