Command Injection Affecting vboxmanage.js package, versions <1.0.9


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-VBOXMANAGEJS-607910
  • published20 Aug 2020
  • disclosed20 Aug 2020
  • creditd3lla

Introduced: 20 Aug 2020

CVE NOT AVAILABLE CWE-78  (opens in a new tab)

How to fix?

Upgrade vboxmanage.js to version 1.0.9 or higher.

Overview

vboxmanage.js is an A wrapper for VirtualBox CLI with Promises

Affected versions of this package are vulnerable to Command Injection. The vmname parameter is used to build the command that is passed to the child_process.exec function without any check.

PoC

var VBox = require('vboxmanage.js');
VBox.start(';touch HACKED;').then(function () {}).catch(function (err) {});

CVSS Base Scores

version 3.1