aws-lambda@0.0.14 vulnerabilities

Deploy AWS Lambda functions from command line using a json or yaml config file.

  • latest version

    1.0.7

  • latest non vulnerable version

  • first published

    10 years ago

  • latest version published

    4 years ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the aws-lambda 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
    • H
    Command Injection

    aws-lambda is a command line tool deploy code to AWS Lambda.

    Affected versions of this package are vulnerable to Command Injection. The config.FunctioName is used to construct the argument used within the exec function without any sanitization. It is possible for a user to inject arbitrary commands to the zipCmd used within config.FunctionName located in the file lib/main.js (line 78).

    PoC by JHU System Security Lab

    // aws-lambda-config.lambda
    {"FunctionName": "& touch Song &", 
    "PATH": "./"}
    
    var root = require("aws-lambda");
    root.deploy("aws-lambda-config");
    

    How to fix Command Injection?

    Upgrade aws-lambda to version 1.0.5 or higher.

    <1.0.5