Closed Bug 1009160 Opened 11 years ago Closed 11 years ago

Use-after free on sandbox attribute

Categories

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

x86_64
Linux
defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla32
Tracking Status
firefox31 --- unaffected
firefox32 --- verified
firefox-esr24 --- unaffected

People

(Reporter: nils, Assigned: smaug)

References

Details

(4 keywords)

Attachments

(3 files)

Attached file crash.html
The attached testcase crashes the latest firefox asan build. ASAN output in asan.txt.
Attached file asan output
Component: DOM → Document Navigation
Ah, this is DOM after all.
Component: Document Navigation → DOM
Assignee: nobody → bugs
Forgot to add, the testcase requires Jesse's extensions: https://www.squarefree.com/extensions/domFuzzLite3.xpi
Blocks: 949435
Attached patch patchSplinter Review
The crash fix is -already_AddRefed<nsDOMSettableTokenList> +nsDOMSettableTokenList* and we have also possibly leak because sandbox isn't traversed, so the same properties are now handled with svg as with html. There is some redundancy there, but shouldn't be too bad.
Attachment #8422740 - Flags: review?(bzbarsky)
Comment on attachment 8422740 [details] [diff] [review] patch Ouch. I thought we'd disallowed that, but looks like gcc 4.4 prevented us from doing that. Curses!
Attachment #8422740 - Flags: review?(bzbarsky) → review+
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla32
I assume that this was trunk only since it went in without sec-approval+. Is that correct?
Flags: needinfo?(bugs)
yes, trunk only.
Flags: needinfo?(bugs)
Confirmed crash in ASan Fx32, 2014-05-15. Verified fixed in ASan Fx32, 2014-08-20.
Status: RESOLVED → VERIFIED
(In reply to Olli Pettay [:smaug] from comment #9) > yes, trunk only. If the cause of the crash was as described in comment 4, the old code landed in Firefox 30 and would have been "Beta" at the time of comment 9. Were there other changes that made that matter? Have we verified that ESR31 is unaffected as claimed? Needinfo for smaug and mwobensmith.
Flags: needinfo?(mwobensmith)
Flags: needinfo?(bugs)
Don't know where you get FF30? Perhaps from the mercurial showing odd dates for the changesets. It is really good at that.
Doesn't crash Fx31.1.0, custom ASan build.
Flags: needinfo?(mwobensmith)
Flags: sec-bounty?
Flags: sec-bounty? → sec-bounty+
Group: core-security
Keywords: regression
Component: DOM → DOM: Core & HTML
Flags: sec-bounty-hof+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: