Starcounter-Jack JSON-Patch Prototype Pollution vulnerability
The JSON-Patch library up to version 3.1.0 allows an attacker to modify object prototype attributes through a remote attack. This prototype pollution could lead to further exploitation, though the text does not specify the exact consequences.
Starcounter-Jack/JSON-Patch
Originally disclosed on huntr
A vulnerability has been found in Starcounter-Jack JSON-Patch up to 3.1.0 and classified as problematic. This vulnerability affects unknown code. The manipulation leads to improperly controlled modification of object prototype attributes ('prototype pollution'). The attack can be initiated remotely. The exploit has been disclosed to the public and may be used. Upgrading to version 3.1.1 can address this issue. The name of the patch is 7ad6af41eabb2d799f698740a91284d762c955c9. It is recommended to upgrade the affected component. VDB-216778 is the identifier assigned to this vulnerability.
From the GitHub Advisory Database (GHSA-8gh8-hqwg-xf34, CC BY 4.0).
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the library fails to properly validate or sanitise property names in JSON Patch operations, allowing keys like '__proto__' to modify the object prototype.
Impact
An attacker could remotely pollute the object prototype, which may lead to further exploitation such as denial of service or arbitrary code execution, though the text does not detail specific consequences.
What the attacker needed
None
The fix
The issue was fixed in version 3.1.1; upgrading to that version or later is recommended.
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 report has not been written yet. The Original tab links to the source.
Prototype pollution is a flaw where an attacker can add or change built-in properties that all objects in a program share. In this library, which applies changes to JSON data, an attacker could send a crafted patch that alters these shared properties, potentially causing unexpected behaviour or security issues elsewhere in the application.
What is Prototype pollution?
Input changes JavaScript's shared object prototype, altering behaviour across the application, sometimes to XSS or code execution.