OS Command Injection in hot-formula-parser - #VU24174

 

OS Command Injection in hot-formula-parser - #VU24174

Published: January 10, 2020


Vulnerability identifier: #VU24174
CSH Severity: High
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber
CVE-ID: N/A
CWE-ID: CWE-78
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: jansiegel
Affected software:
hot-formula-parser

Detailed vulnerability description

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

Update to version 3.0.1.

Sources