node-aws-lambda-scheduler@1.0.5

Vulnerabilities

1 via 2 paths

Dependencies

8

Source

npm

Find, fix and prevent vulnerabilities in your code.

Severity
  • 1
Status
  • 1
  • 0
  • 0

medium severity

Arbitrary Code Injection

  • Vulnerable module: underscore
  • Introduced through: rho-cc-promise@2.0.4 and rho-contracts-fork@1.3.0

Detailed paths

  • Introduced through: node-aws-lambda-scheduler@1.0.5 rho-cc-promise@2.0.4 underscore@1.9.2
    Remediation: Upgrade to rho-cc-promise@3.0.0.
  • Introduced through: node-aws-lambda-scheduler@1.0.5 rho-contracts-fork@1.3.0 underscore@1.8.3

Overview

underscore is a JavaScript's functional programming helper library.

Affected versions of this package are vulnerable to Arbitrary Code Injection via the template function, particularly when the variable option is taken from _.templateSettings as it is not sanitized.

PoC

const _ = require('underscore');
_.templateSettings.variable = "a = this.process.mainModule.require('child_process').execSync('touch HELLO')";
const t = _.template("")();

Remediation

Upgrade underscore to version 1.13.0-2, 1.12.1 or higher.

References