We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 68c9bd2 + 7ecbdac commit 2f1b3fdCopy full SHA for 2f1b3fd
1 file changed
Aikido.Zen.Core/Vulnerabilities/ShellInjectionDetector.cs
@@ -81,8 +81,9 @@ private static bool ContainsShellSyntax(string command, string userInput)
81
// Check if the command contains a commonly used command
82
foreach (Match match in commandsRegex.Matches(command))
83
{
84
- if (userInput != match.Value)
+ if (!userInput.Contains(match.Value))
85
86
+ // Don't skip whoami%00
87
continue;
88
}
89
0 commit comments