Command Injection Affecting curling package, versions <1.1.0


0.0
high

Snyk CVSS

    Attack Complexity Low
    Confidentiality High

    Threat Intelligence

    Exploit Maturity Proof of concept
    EPSS 26.83% (97th percentile)
Expand this section
NVD
9.8 critical

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-JS-CURLING-546484
  • published 5 Feb 2020
  • disclosed 5 Feb 2020
  • credit JHU System Security Lab

How to fix?

Upgrade curling to version 1.1.0 or higher.

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(){});

References