Closed Bug 411093 Opened 17 years ago Closed 17 years ago

XPCNativeWrapper pollution using Function constructor

Categories

(Core :: XPConnect, defect, P1)

defect

Tracking

()

RESOLVED FIXED

People

(Reporter: moz_bug_r_a4, Assigned: mrbkap)

Details

(Keywords: testcase, verified1.8.1.13, Whiteboard: [sg:critical])

Attachments

(1 file)

A function that Function constructor creates inherits its scripted caller's script filename. Thus, it's possible to use Function constructor in the same way as bug 369211 and bug 387881 to modify XPCNativeWrappers.
Assignee: dveditz → nobody
Component: Security → XPConnect
Flags: blocking1.9?
Flags: blocking1.8.1.12?
OS: Windows XP → All
QA Contact: toolkit → xpconnect
Hardware: PC → All
Whiteboard: [sg:critical]
Flags: wanted1.8.1.x+
Flags: blocking1.8.1.12?
Flags: blocking1.8.1.12+
Assignee: nobody → mrbkap
Priority: -- → P1
Attached patch FixSplinter Review
Just like obj_eval... I'd common the three places that we use this, but don't feel it's worth it.
Attachment #296849 - Flags: review?(brendan)
Comment on attachment 296849 [details] [diff] [review] Fix Why not common in JS_EvalFramePrincipals, or wrap that with a js_EvalPrincipalsFileAndLine helper? /be
Attachment #296849 - Flags: review?(brendan) → review+
Keywords: checkin-needed
Flags: blocking1.9? → blocking1.9+
No tested trunk fix, not going to make 1.8.1.12 either. Would like similar bug 411092 dealt with at the same time.
Flags: blocking1.8.1.12+ → blocking1.8.1.13+
Fix checked in per discussion with mrbkap. Marking bug FIXED. Blake, please open a new bug if you change your mind on the need to deal with comment 3.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Flags: in-testsuite?
Keywords: checkin-needed
Blake, will this patch apply cleanly on branch as well? If so, can you please request approval on it? If not, please attach a branch patch.
Comment on attachment 296849 [details] [diff] [review] Fix This applies with some fuzz.
Attachment #296849 - Flags: approval1.8.1.13?
Comment on attachment 296849 [details] [diff] [review] Fix approved for 1.8.1.13, a=dveditz for release-drivers
Attachment #296849 - Flags: approval1.8.1.13? → approval1.8.1.13+
Fix checked into the 1.8 branch.
Keywords: fixed1.8.1.13
Verified fix for 1.8 branch with Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/2008031114 Firefox/2.0.0.13 and bug verified in 2.0.0.12.
attachment 296849 [details] [diff] [review] applies with some fuzz on 1.8.0 branch.
Flags: blocking1.8.0.15+
Attachment #296849 - Flags: approval1.8.0.15?
Group: security
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: