hot-formula-parser
Affected
- introduced
0, fixed3.0.1(semver)
Fixed versions
3.0.1
Fix
- Fixed version
3.0.1npm install [email protected]
Advisory
Also known as: CVE-2020-6836
Command Injection in hot-formula-parser
Versions of hot-formula-parser prior to 3.0.1 are vulnerable to Command Injection. The package 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])"
Recommendation
Upgrade to version 3.0.1 or later.
Critical Basis: The source's own band: CRITICAL
0, fixed 3.0.1 (semver)3.0.1
3.0.1npm install [email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0