Closed Bug 492706 Opened 16 years ago Closed 16 years ago

Window object XOW wrapping code can leave sDoSecurityCheckInAddProperty set wrong.

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: jst, Assigned: jst)

Details

(Keywords: fixed1.9.0.12, fixed1.9.1, Whiteboard: [sg:investigate])

Attachments

(1 file, 1 obsolete file)

Attached patch Fix. (obsolete) — Splinter Review
There's an early return hiding inside code that sets sDoSecurityCheckInAddProperty to true, and back to false, that could leave sDoSecurityCheckInAddProperty set to the wrong value if a call to sXPConnect->GetXOWForObject() fails. It's unclear how important sDoSecurityCheckInAddProperty really is any longer, given all the wrappers that protect window objects nowadays, but still, we should fix this (or get rid of sDoSecurityCheckInAddProperty alltogether if that's the right thing to do).
Attachment #377100 - Flags: superreview?(mrbkap)
Attachment #377100 - Flags: review?(mrbkap)
Attachment #377100 - Attachment is obsolete: true
Attachment #377102 - Flags: superreview?(mrbkap)
Attachment #377102 - Flags: review?(mrbkap)
Attachment #377100 - Flags: superreview?(mrbkap)
Attachment #377100 - Flags: review?(mrbkap)
Attachment #377102 - Flags: superreview?(mrbkap)
Attachment #377102 - Flags: superreview+
Attachment #377102 - Flags: review?(mrbkap)
Attachment #377102 - Flags: review+
Comment on attachment 377102 [details] [diff] [review] Found one more... "Oops"... IIRC, the only thing sDoSecurityCheckInAddProperty protects anymore is the location property protection, which we probably don't care about. Want to file a bug about getting rid of both in one fell swoop?
This something we need on 1.9.0?
Flags: wanted1.9.0.x?
Need is a strong word here, but yeah, we probably should take this for 1.9.0. I think for trunk at least we'll take the fix for bug 492713 instead.
Attachment #377102 - Flags: approval1.9.1?
Attachment #377102 - Flags: approval1.9.0.12?
Attachment #377102 - Flags: approval1.9.1? → approval1.9.1+
Attachment #377102 - Flags: approval1.9.0.12? → approval1.9.0.12+
Comment on attachment 377102 [details] [diff] [review] Found one more... Approved for 1.9.0.12, a=dveditz for release-drivers
Fixed in CVS.
Keywords: fixed1.9.0.12
Flags: wanted1.9.0.x? → wanted1.9.0.x+
(In reply to comment #4) > I think for trunk at least we'll take the fix for bug 492713 instead. Does that mean _this_ bug can be closed "FIXED" since it's fixed on the branches where it applies? Does the fact that bug 492713 hasn't landed yet mean you're rethinking whether you want to do it? (more likely you were just busy with 1.9.1 and vacation.)
Wasn't clear if this was ever an exploitable issue, but good to have it fixed.
Whiteboard: [sg:investigate]
Does not affect 1.8.
Flags: wanted1.8.1.x-
Group: core-security
Fixed on trunk by the fix for bug 492713.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: