Possible UAF in AppWindow::Destroy()
Categories
(Core :: XUL, defect)
Tracking
()
People
(Reporter: mccr8, Assigned: smaug)
Details
(Keywords: csectype-uaf, sec-low, Whiteboard: [post-critsmash-triage][adv-main76+r])
Attachments
(1 file)
| Reporter | ||
Comment 1•9 years ago
|
||
| Reporter | ||
Updated•9 years ago
|
Comment 2•6 years ago
|
||
This file has been moved so updating the title to match: https://searchfox.org/mozilla-central/rev/13b081a62d3f3e3e3120f95564529257b0bf451c/xpfe/appshell/AppWindow.cpp#636.
Brendan, do you have any idea if the deathgrip here is needed, or who else to ask? The comment there says "When webshell container is fully removed try removing this" but I'm not sure exactly what this is referring to.
Comment 3•6 years ago
|
||
I'm not sure what the web shell container refers to. Maybe Olli knows if we can get rid of this^
| Assignee | ||
Comment 4•6 years ago
|
||
The comment isn't quite right, at least not anymore, since in theory anything could happen when xul-window-destroyed is notified.
Just move nsCOMPtr<nsIAppWindow> placeHolder = this; higher up, or fix all the callers to keep a strong reference?
| Assignee | ||
Updated•6 years ago
|
| Assignee | ||
Comment 5•6 years ago
|
||
Ah, but there isn't any security issue here
https://searchfox.org/mozilla-central/rev/557a0e222dd104c5d805ba344c45d6abc27d3db0/xpfe/appshell/AppWindow.cpp#609,624,644
| Assignee | ||
Comment 6•6 years ago
|
||
And that WebProgressListener removal deals with WeakRefs only.
| Assignee | ||
Comment 7•6 years ago
|
||
Comment 9•6 years ago
|
||
(In reply to Olli Pettay [:smaug] from comment #8)
review ping for a tiny patch
Sorry about that - responded in the patch.
Comment 10•6 years ago
|
||
https://hg.mozilla.org/integration/autoland/rev/72bed4d016bdc463884832b32a21235439ec2571
https://hg.mozilla.org/mozilla-central/rev/72bed4d016bd
Comment 11•6 years ago
|
||
Doesn't sound like this needs to be backported, but feel free to nominate if you feel otherwise.
Updated•6 years ago
|
Updated•6 years ago
|
Updated•5 years ago
|
Description
•