Skip to content

Avoid shell execution when processing multi.pl rules - #47

Open
acts-1631 wants to merge 1 commit into
jpr5:masterfrom
acts-1631:fix/multi-rules-exec
Open

Avoid shell execution when processing multi.pl rules#47
acts-1631 wants to merge 1 commit into
jpr5:masterfrom
acts-1631:fix/multi-rules-exec

Conversation

@acts-1631

Copy link
Copy Markdown

Rules-file fields flow from scripts/multi.pl:98-111 into the
one-string system call at lines 75-77, allowing shell metacharacters
to execute as the invoking user.

Replace the shell pipeline with an explicit zcat child and list-form
ngrep invocation. Rule names are restricted before they are used for
the output filename.

Rules-file fields were interpolated into a one-string system call,
allowing shell metacharacters to run as the invoking user.

Replace the shell pipeline with an explicit zcat child and list-form
ngrep invocation. Validate rule names before using them in output paths.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant