The printDirect function in lib/printer.js in the node-printer module 0.0.1 and earlier for Node.js allows remote attackers to execute arbitrary commands via unspecified characters in the lpr command.
The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.
Link | Tags |
---|---|
http://www.openwall.com/lists/oss-security/2014/05/15/2 | third party advisory mailing list |
http://www.openwall.com/lists/oss-security/2014/05/13/1 | third party advisory mailing list |
https://nodesecurity.io/advisories/printer_potential_command_injection | third party advisory |
https://github.com/tojocky/node-printer/commit/e001e38738c17219a1d9dd8c31f7d82b9c0013c7 | patch issue tracking |