Skip to content

Commit

Permalink
Merge pull request #45 from 418sec/master
Browse files Browse the repository at this point in the history
huntr.dev - Command Injection Fix
  • Loading branch information
kylefarris authored May 1, 2020
2 parents d474da7 + 8081928 commit 5f557c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -491,8 +491,8 @@ class NodeClam {

try {
await fs_access(path, fs.constants.R_OK);

const {stdout} = await cp_exec(version_cmds[scanner]);
version_cmds_exec = version_cmds[scanner].split(' ');
const {stdout} = await cp_execfile(version_cmds_exec[0], [version_cmds_exec[1]]);
if (stdout.toString().match(/ClamAV/) === null) {
if (this.settings.debug_mode) console.log(`${this.debug_label}: Could not verify the ${scanner} binary.`);
return false;
Expand Down

0 comments on commit 5f557c9

Please sign in to comment.