Command Injection

Affecting spritesheet-js package, ALL versions

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

Overview

spritesheet-js is a command-line spritesheet (a.k.a. Texture Atlas) generator written in node.js.

Affected versions of this package are vulnerable to Command Injection. It depends on a vulnerable package platform-command. The injection point is located in line 32 in lib/generator.js, which is triggered by main entry of the package.

PoC

var a =require("spritesheet-js");
a('./', { scale:"& touch JHU #",trim:true});

Remediation

There is no fixed version for spritesheet-js.

References

CVSS Score

9.8
high severity
  • Attack Vector
    Network
  • Attack Complexity
    Low
  • Privileges Required
    None
  • User Interaction
    None
  • Scope
    Unchanged
  • Confidentiality
    High
  • Integrity
    High
  • Availability
    High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Credit
JHU System Security Lab
CVE
CVE-2020-7782
CWE
CWE-78
Snyk ID
SNYK-JS-SPRITESHEETJS-1048333
Disclosed
04 Dec, 2020
Published
09 Feb, 2021