Closed Bug 539393 Opened 15 years ago Closed 14 years ago

It's possible to access a XOW come from the wrong scope by using a shallow XPCNativeWrapper

Categories

(Core :: Security, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Tracking Status
status1.9.2 --- wanted
status1.9.1 --- wanted

People

(Reporter: moz_bug_r_a4, Assigned: mrbkap)

Details

(Whiteboard: [sg:high][3.6.x])

Attachments

(2 files)

XPCNativeWrapper::RewrapIfDeepWrapper cares nothing for the return value when
obj is a shallow wrapper, thus a XOW come from the wrong scope is not re-wrapped.
Attached file testcase
This tries to get cookies for www.apple.com.

This works on trunk and 1.9.* (and 1.8 since bug 369334 is not fixed on 1.8).
Assignee: nobody → mrbkap
Whiteboard: [sg:high]
Whiteboard: [sg:high] → [sg:high][3.6.x]
Attached patch FixSplinter Review
This uses the patch in bug 533600. I'm probably going to end up rolling this patch into my other, larger patch, but this fixes this bug. I have found my new hammer: XPCWrappedNativeScope::GetWrapperFor.
Fixed by bug 533600.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Group: core-security → core-security-release
Group: core-security-release
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: