Command Injection

Affecting curling package, versions <1.1.0

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

Overview

curling is a node wrapper for curl with a very simple api.

Affected versions of this package are vulnerable to Command Injection via the run(command,cb) function. The command argument can be controlled by users without any sanitization.

PoC by JHU System Security Lab

var root = require("curling");
root.run("& touch JHU",function(){});

Remediation

Upgrade curling to version 1.1.0 or higher.

References

CVSS Score

7.5
high severity
  • Attack Vector
    Network
  • Attack Complexity
    Low
  • Privileges Required
    None
  • User Interaction
    None
  • Scope
    Unchanged
  • Confidentiality
    High
  • Integrity
    None
  • Availability
    None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N/E:P/RL:O/RC:C
Credit
JHU System Security Lab
CVE
CVE-2019-10789
CWE
CWE-78
Snyk ID
SNYK-JS-CURLING-546484
Disclosed
05 Feb, 2020
Published
05 Feb, 2020