crash with __proto__ and Events (destructor of xul!mozilla::dom::battery::BatteryManager)
- Fixed in 6 days
- Paid in 43 days
- Disclosed after 6 days
Created attachment 704478 testcase (crashes firefox)
The latest nightly crashes when loading the attached testcase. Crashes while trying to write to invalid memory.
Stack backtrace on windows:
xul!mozilla::dom::battery::BatteryManager::scalar deleting destructor'+0x6: 7041b694 c746204c019170 mov dword ptr [esi+20h],offset xul!nsDisplayItemGeometry::vftable' (7091014c) ds:002b:7097fe34={xul![thunk]:mozilla::dom::network::Connection::QueryInterfaceadjustor{28}' (6fd2fdc4)} 0:000:x86> cdb: Reading initial command 'kp 16;q' ChildEBP RetAddr 0058b9f0 6ff1e325 xul!mozilla::dom::battery::BatteryManager::scalar deleting destructor'(void)+0x6
0058ba04 7055f1dc xul!mozilla::dom::EventTarget::DispatchEvent(class nsIDOMEvent * aEvent = 0x0a694d60, class mozilla::ErrorResult * aRv = 0x0058ba28)+0x17
0058ba34 6fcb2541 xul!mozilla::dom::EventTargetBinding::dispatchEvent(struct JSContext * cx = 0x084c8080, class JS::Handle<JSObject *> obj = class JS::Handle<JSObject *>, class mozilla::dom::EventTarget * self = 0x08417c5c, unsigned int argc = 1, class JS::Value * vp = 0x04e100b8)+0xd0
*** WARNING: Unable to verify checksum for C:\newgenff\firefox\mozjs.dll
0058ba6c 733bc2df xul!mozilla::dom::EventTargetBinding::genericMethod(struct JSContext * cx = 0x084c8080, unsigned int argc = 1, class JS::Value * vp = 0x08417c5c)+0x6b
0058bb28 733c1d43 mozjs!js::InvokeKernel(struct JSContext * cx = 0x084c8080, class JS::CallArgs args = class JS::CallArgs, js::MaybeConstruct construct = NO_CONSTRUCT (0n0))+0xcf
0058c540 733bbdb9 mozjs!js::Interpret(struct JSContext * cx = 0x7097fe14, class js::StackFrame * entryFrame = 0x04e10028, js::InterpMode interpMode = JSINTERP_NORMAL (0n0))+0x7b3
0058c58c 733af318 mozjs!js::RunScript(struct JSContext * cx = 0x084c8080, class JS::Handle<JSScript *> script = class JS::Handle<JSScript *>, class js::StackFrame * fp = 0x04e10028)+0x99
0058c5d8 7342eb04 mozjs!js::ExecuteKernel(struct JSContext * cx = 0x084c8080, class JS::Handle<JSScript *> script = class JS::Handle<JSScript *>, struct JSObject * scopeChain = 0x057a0040, class JS::Value * thisv = 0x0058c600, js::ExecuteType type = EXECUTE_GLOBAL (0n1), class js::StackFrame * evalInFrame = 0x00000000, class JS::Value * result = 0x0058c758)+0x128
0058c608 7342ebed mozjs!js::Execute(struct JSContext * cx = 0x7097fe14, class JS::Handle<JSScript *> script = class JS::Handle<JSScript *>, struct JSObject * scopeChainArg = 0x08417c5c, class JS::Value * rval = 0x0058c758)+0x84
0058c66c 6fbef997 mozjs!JS::Evaluate(struct JSContext * cx = 0x084c8080, class JS::Handle<JSObject *> obj = class JS::Handle<JSObject *>, struct JS::CompileOptions options = struct JS::CompileOptions, wchar_t * chars = 0x0a654600 "window.start_dyniframe6()", unsigned int length = 0x19, class JS::Value * rval = 0x0058c758)+0xcd
0058c704 6fbfbd11 xul!nsJSContext::EvaluateString(class nsAString_internal * aScript = 0x0058c74c, struct JSObject * aScopeObject = 0x057a0040, struct JS::CompileOptions * aOptions = 0x0058c72c, bool aCoerceToString = false, class JS::Value * aRetValue = 0x0058c758)+0x267
0058c780 6fbfb938 xul!nsGlobalWindow::RunTimeoutHandler(struct nsTimeout * aTimeout = 0x0140a2e0, class nsIScriptContext * aScx = 0x061846a0)+0x1d1
0058c818 6fc01b4f xul!nsGlobalWindow::RunTimeout(struct nsTimeout * aTimeout = 0x0840a2e0)+0x238
0058c830 6fbbce44 xul!nsGlobalWindow::TimerCallback(class nsITimer * aTimer = 0x0a69f6a0, void * aClosure = 0x0840a2e0)+0x1b
0058c870 6fbbccfe xul!nsTimerImpl::Fire(void)+0x124
0058c87c 6fbbb474 xul!nsTimerEvent::Run(void)+0x1e
0058c8e8 6fcb880a xul!nsThread::ProcessNextEvent(bool mayWait = false, bool * result = 0x0058c91a)+0x1b4
0058c91c 6fcbf4cc xul!mozilla::ipc::MessagePump::Run(class base::MessagePump::Delegate * aDelegate = 0x00f300e0)+0xca
0058c954 6fcbf474 xul!MessageLoop::RunHandler(void)+0x21
0058c970 6fca227c xul!MessageLoop::Run(void)+0x15
0058c980 6fcbf3f4 xul!nsBaseAppShell::Run(void)+0x36
0058e8d4 6fcf2054 xul!nsAppShell::Run(void)+0x4e
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 prototype pollution bug in DOM: Core & HTML. Mozilla made it public on 27 January 2013.
About Prototype pollution
Input changes JavaScript's shared object prototype, altering behaviour across the application, sometimes to XSS or code execution.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
What is Prototype pollution?
Input changes JavaScript's shared object prototype, altering behaviour across the application, sometimes to XSS or code execution.