Closed Bug 58021 Opened 25 years ago Closed 25 years ago

Privileged code insertion with addPanel

Categories

(Core :: Security, defect, P3)

defect

Tracking

()

VERIFIED FIXED

People

(Reporter: security-bugs, Assigned: security-bugs)

References

()

Details

(Whiteboard: [rtm++][InLimbo-OOH])

Attachments

(1 file)

It is possible for a web script to run privileged code using sidebar.addPanel("javascript: ... "), or potentially with a chrome: URL instead of a javascript: URL. We should probably not allow sidebar panels to be javascript: URLs, or else we should not give those urls the system principal. The example above works on unix systems. It will execute /usr/bin/control-panel, as an example. Change the 'executable' string in the script to C:\something.exe to see this work on Windows. The other possible scenario is asking the user do install an otherwise benign skin, using the skin installer, which places some malicious .xul file somewhere in the chrome directory. Then, the attacker convinces the user to click a link which does an addPanel("chrome://navigator/skins/malicious.xul"), causing the code in that malicious file to be run.
This is critical for RTM, I think.
Status: NEW → ASSIGNED
Keywords: rtm
Looks like you're working on this, adding [rtm need info] to the whiteboard. Getting this approved soon seems like a Good Thing (TM)
Whiteboard: [rtm need info]
r=mccabe, looks like a simple fix.
Marking rtm+ in anticipation of sr= from Hyatt.
Whiteboard: [rtm need info] → [rtm+]
a=hyatt
This bug is in candidate limbo. We will reconsider this fix once we have a candidate in hand, but we can't take this fix before then. Please check into the trunk ASAP.
QA Contact: czhang → junruh
Adding InLimbo to status so this doesn't get overlooked.
Whiteboard: [rtm+] → [rtm+][InLimbo-OOH]
rtm++, please checkin ASAP so we can build today.
Whiteboard: [rtm+][InLimbo-OOH] → [rtm++][InLimbo-OOH]
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Verified on Win, Mac and Linux branch 11/3 builds.
Keywords: vtrunk
Mass changing QA to ckritzer.
QA Contact: junruh → ckritzer
Marking VERIFIED FIXED per: ------- Additional Comments From junruh@netscape.com 2000-11-03 13:30 ------- Verified on Win, Mac and Linux branch 11/3 builds.
Status: RESOLVED → VERIFIED
Group: netscapeconfidential?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: