SB2020011001 - OS Command Injection in hot-formula-parser package for Node.js
Published: January 10, 2020
Breakdown by Severity
- Low
- Medium
- High
- Critical
Description
This security bulletin contains information about 1 security vulnerability.
1) OS Command Injection (CVE-ID: N/A)
The vulnerability allows a remote attacker to execute arbitrary shell commands on the target system.
The vulnerability exists due to software fails to sanitize values passed to the parse function and concatenates it in an eval call. If a value of the formula is supplied by user-controlled input it may allow attackers to run arbitrary commands in the server.
Parsing the following formula creates a test file in the present directory: "SUM([(function(){require('child_process').execSync('touch test')})(),2])"
Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.
Remediation
Install update from vendor's website.