curling@0.1.0

A simple wrapper around curl with a easy to use interface.

  • latest version

    1.1.0

  • first published

    13 years ago

  • latest version published

    6 years ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the curling package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • C
    Remote Code Execution (RCE)

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

    Affected versions of this package are vulnerable to Remote Code Execution (RCE). The regular expression in run() in lib/curl-transport.js does not perform proper validation. Combined with curl, this can lead to the injection of arbitrary commands.

    PoC

    const curling = require('curling');
    
    curling.run('file:///etc/passwd -o ./index.js', function(d, payload){console.log(payload)});
    

    How to fix Remote Code Execution (RCE)?

    There is no fixed version for curling.

    *
    • H
    Command Injection

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

    How to fix Command Injection?

    Upgrade curling to version 1.1.0 or higher.

    <1.1.0