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

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

Categories

(Core :: Security, defect)

1.8 Branch
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: moz_bug_r_a4, Assigned: mrbkap)

Details

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

Attachments

(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]
Fix

approved for 1.8.1.7 and 1.8.0.14, 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.
Status: NEW → RESOLVED
Closed: 17 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:1.8.1.8) Gecko/2007100816 Firefox/2.0.0.8

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]
Fix

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

a=caillon for 1.8.0.15
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: 3.79.2.5.2.8; previous revision: 3.79.2.5.2.7
done
Keywords: fixed1.8.0.15
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: