CVE-2020-7700

Prototype Pollution

Critical · published August 14, 2020

CVSS v3.1
9.8
EPSS
2%
Percentile
79.7
In the wild
Unconfirmed
What it is

🔥 A surprisingly simple flaw in phpjs can allow attackers to alter your code’s behavior entirely! Think of it like a recipe book where anyone can sneak in changes to the ingredients list without anyone realizing — a pinch of this and a dash of that could completely alter your dish! An attacker could exploit this vulnerability to inject malicious properties into your application, leading to unexpected behavior, data leaks, or even complete control over the affected system. This is absolutely devastating for the integrity of your application and its data!

Put simply

Think of it like a recipe book where anyone can sneak in changes to the ingredients list without anyone realizing — a pinch of this and a dash of that could completely alter your dish! This prototype pollution vulnerability occurs when the `parse_str` function in phpjs improperly handles user input, allowing an attacker to manipulate object prototypes and alter application logic.

What to do

An attacker could exploit this vulnerability to inject malicious properties into your application, leading to unexpected behavior, data leaks, or even complete control over the affected system. This is absolutely devastating for the integrity of your application and its data! To mitigate this risk, update phpjs to the latest version immediately. Additionally, sanitize and validate all user inputs passed to `parse_str`, and consider implementing additional security layers such as object freeze to prevent prototype modification. You've got this! Follow these steps and you’ll lock down your application in no time! 🛡️

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P/RL:O/RC:C
CVSS v4.0
Not supplied
EPSS
0.01916 · 79.7th percentile
Published
2020-08-14T15:05Z
EPSS history
Timeline
  • 14 AUG 15:05Z
    Prototype Pollution
    cvelistv5