Closed Bug 387881 (CVE-2007-5338) Opened 14 years ago Closed 14 years ago

Arbitrary code execution by polluting implicit XPCNativeWrapper (using Script object)


(Core :: Security, defect)

1.8 Branch
Not set





(Reporter: moz_bug_r_a4, Assigned: mrbkap)


(Keywords: fixed1.8.0.15, verified1.8.1.8, Whiteboard: [sg:critical] pre 1.9, testcases embargoed during upgrade cycle)


(1 file)

Does script_compile need the same fix as bug 369211?

This is 1.8/1.8.0 branches only, since Script object has been removed on trunk.
Flags: blocking1.8.1.6?
Flags: blocking1.8.1.5?
OS: Windows XP → All
Hardware: PC → All
Whiteboard: [sg:critical]
Assignee: dveditz → mrbkap
Flags: blocking1.8.1.5?
Due to the fix in bug 388121, privilege escalation testcases that use location
setter and javascript: url no longer work without change.  I'll attach new
testcases that load a chrome: url before loading a javascript: url to
circumvent the fix.
Attached patch FixSplinter Review
Yeah, this just mimics what we do for eval.
Attachment #275053 - Flags: review?(brendan)
Attachment #275053 - Flags: review?(brendan) → review+
Attachment #275053 - Flags: approval1.8.1.6?
Attachment #275053 - Flags: approval1.8.0.13?
Flags: wanted1.8.1.x+
Flags: wanted1.8.0.x+
Whiteboard: [sg:critical] → [sg:critical] pre 1.9
Attachment #275053 - Flags: approval1.8.1.6? → approval1.8.1.7?
Attachment #275053 - Flags: approval1.8.0.13? → approval1.8.0.14?
Flags: blocking1.8.1.7? → blocking1.8.1.7+
Comment on attachment 275053 [details] [diff] [review]

approved for and, a=dveditz for release-drivers
Attachment #275053 - Flags: approval1.8.1.7?
Attachment #275053 - Flags: approval1.8.1.7+
Attachment #275053 - Flags: approval1.8.0.14?
Attachment #275053 - Flags: approval1.8.0.14+
Is this approved patch going to land?
Blake: what's the status of this patch? Can I land it for you?
Checked this in on the 1.8 branch for mrbkap.
Closed: 14 years ago
Keywords: fixed1.8.1.8
Resolution: --- → FIXED
Verified using testcases in comment #4 and comment #5 on: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/2007100816 Firefox/

Components.Stack dialog no longer appears.
Alias: CVE-2007-5338
Whiteboard: [sg:critical] pre 1.9 → [sg:critical] pre 1.9, testcases embargoed during upgrade cycle
Group: security
Comment on attachment 275053 [details] [diff] [review]

Minusing for Thunderbird-focused release, moving request to future release
Attachment #275053 - Flags: approval1.8.0.14+ → approval1.8.0.15?
Comment on attachment 275053 [details] [diff] [review]

a=caillon for
Attachment #275053 - Flags: approval1.8.0.15? → approval1.8.0.15+
fix committed to 1.8.0 branch

Checking in js/src/jsscript.c;
/cvsroot/mozilla/js/src/jsscript.c,v  <--  jsscript.c
new revision:; previous revision:
Keywords: fixed1.8.0.15
You need to log in before you can comment on or make changes to this bug.