Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ban): Add rule to ban shell execution via backticks #56

Merged
merged 1 commit into from
Feb 25, 2022

Conversation

BitScout
Copy link
Contributor

Resolves #22

Bans use of shell execution by putting a command in backticks: https://www.php.net/manual/en/language.operators.execution.php

@BitScout BitScout force-pushed the 22-detect-shell-exec-via-backticks branch from 7c55867 to 412f566 Compare February 25, 2022 10:48
CHANGELOG.md Outdated Show resolved Hide resolved
snippets/backticks.php Outdated Show resolved Hide resolved
snippets/proc_open.php Show resolved Hide resolved
@BitScout BitScout force-pushed the 22-detect-shell-exec-via-backticks branch 3 times, most recently from 0d280d6 to 97377a4 Compare February 25, 2022 12:32
snippets/backticks.php Outdated Show resolved Hide resolved
tests/Rules/BannedNodesRuleTest.php Show resolved Hide resolved
@BitScout BitScout force-pushed the 22-detect-shell-exec-via-backticks branch from 97377a4 to 6b38fb2 Compare February 25, 2022 12:59
@BitScout BitScout force-pushed the 22-detect-shell-exec-via-backticks branch from 6b38fb2 to cc5e609 Compare February 25, 2022 13:13
@mremi mremi merged commit d3bca55 into ekino:master Feb 25, 2022
@BitScout BitScout deleted the 22-detect-shell-exec-via-backticks branch February 25, 2022 13:17
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.

Detect shell_exec via special quotes
2 participants