Skip to content

Commit 4a7ec2f

Browse files
committed
Security Hardening: Remove macro substitution support from system hook shell exec command (was undocumented anyway).
1 parent f6db695 commit 4a7ec2f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/action.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1250,7 +1250,7 @@ class Actions {
12501250

12511251
if (hook.shell_exec) {
12521252
// allow placeholder subs on command
1253-
var cmd = this.messageSub( hook.shell_exec, data );
1253+
var cmd = hook.shell_exec;
12541254
var child_opts = {
12551255
cwd: os.tmpdir(),
12561256
env: Object.assign( {}, this.cleanEnv(), { XYOPS: this.server.__version } ),

0 commit comments

Comments
 (0)