Skip to content
Disclosed report CVE-2012-3989

ASSERTION: This only works on nsISupports classes! and segfault

Ms2ger Follow

Originally disclosed on Mozilla

Critical View original
  • Fixed in 4 days
  • Paid in 5 months
  • Disclosed after 4 days
Text
Running

new Worker("http://base.com") instanceof Components.interfaces.nsIArray

in a mochitest will hit

NS_ASSERTION(mozilla::dom::DOMJSClass::FromJSClass(
                  js::GetObjectJSClass(obj))->mDOMObjectIsISupports,
             "This only works on nsISupports classes!");

at <http://mxr.mozilla.org/mozilla-central/source/js/xpconnect/src/XPCJSID.cpp#484>. We then unwrap the object to nsISupports and try to call QueryInterface on it, and segfault in nsWrapperCache::WrapObject.

The original report as published on Mozilla's Bugzilla, by Ms2ger. Images and videos are our own copies; raw HTML is shown as text. View it on Mozilla's Bugzilla.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

What is known

A critical-severity security bug in XPConnect. Mozilla made it public on 23 August 2012 as CVE-2012-3989.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

More by Ms2ger

View all

1 more disclosed report, best first.

More from Mozilla

View all

The newest disclosed reports for this program.

Similar reports

Same bug class and techniques, clearest first.