OS Command Injection in hot-formula-parser - #VU24174
Published: January 10, 2020
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.