vendor:
JavaScriptCore
by:
Unknown
5.5
CVSS
MEDIUM
Prototype Poisoning
471
CWE
Product Name: JavaScriptCore
Affected Version From: Unknown
Affected Version To: Unknown
Patch Exists: No
Related CWE: Unknown
CPE: a:webkit:javascriptcore
Platforms Tested:
Unknown
Prototype Poisoning in JavaScriptCore
The vulnerability allows an attacker to create an array with a Proxy object in the prototype chain by exploiting the 'setPrototypeDirect' method in JavaScriptCore. By setting the prototype of an array to a Proxy object, the method 'switchToSlowPutArrayStorage' or 'haveABadTime' is called, which transitions the array to a SlowPutArrayStorage array.
Mitigation:
To mitigate this vulnerability, it is recommended to avoid using Proxy objects as prototypes for native arrays.