Fuzzing Finds Cve In Protobufjs
A prototype pollution flaw was found in the protobufjs JavaScript library through fuzzing with Jazzer.js. The text claims this can lead to denial of service and possibly code execution, and that versions newer than 7.2.4 patch it.
Published on systemweakness.com
Fuzzing wins again. Building a bug detector into the javascript super fuzzer, Jazzer.js for prototype pollution yieled CVE-2023–36665.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the library merged attacker-controlled keys into objects without blocking special keys such as __proto__, allowing the shared prototype to be modified.
What the attacker needed
Attacker-controlled input parsed by protobufjs
The fix
It was fixed in protobufjs versions newer than 7.2.4.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
JavaScript objects can inherit shared default properties from a parent object called a prototype. If an attacker can add their own properties to that shared parent, every object in the program may pick them up, which can break the app or let the attacker influence how it behaves. This is called prototype pollution.
What is Prototype pollution?
Input changes JavaScript's shared object prototype, altering behaviour across the application, sometimes to XSS or code execution.