Command Injection

Affecting compass-compile package, ALL versions

Report new vulnerabilities
Do your applications use this vulnerable package? Test your applications

Overview

compass-compile is a Compass wrapper for node.js.

Affected versions of this package are vulnerable to Command Injection. The options argument can be controlled by users without any sanitization.

PoC

var Root = require('compass-compile');
var root = new Root();
var options = {
  compassCommand:"touch JHU"
}
root.compile(options);

Remediation

There is no fixed version for compass-compile.

References

CVSS Score

6.5
medium severity
  • Attack Vector
    Network
  • Attack Complexity
    High
  • Privileges Required
    None
  • User Interaction
    None
  • Scope
    Unchanged
  • Confidentiality
    High
  • Integrity
    Low
  • Availability
    None
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N/E:P/RL:O/RC:C
Credit
JHU System Security Lab
CVE
CVE-2020-7635
CWE
CWE-74
Snyk ID
SNYK-JS-COMPASSCOMPILE-564429
Disclosed
05 Apr, 2020
Published
05 Apr, 2020