Command Injection Vulnerability in find-exec
Description
Published by the National Vulnerability Database
Aug 30, 2023
Published to the GitHub Advisory Database
Aug 30, 2023
Reviewed
Aug 30, 2023
Last updated
Nov 7, 2023
Older versions of the package are vulnerable to Command Injection as an attacker controlled parameter. As a result, attackers may run malicious commands.
For example:
This creates a file named "hacked" on the filesystem.
You should never allow users to control commands to find, since this package attempts to run every command provided.
Thanks to @miguelafmonteiro for reporting.
References