Skip to content

Commit 2f1b3fd

Browse files
authored
Merge pull request #236 from AikidoSec/decode-url-strings
Don't skip whoami%00
2 parents 68c9bd2 + 7ecbdac commit 2f1b3fd

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Aikido.Zen.Core/Vulnerabilities/ShellInjectionDetector.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,9 @@ private static bool ContainsShellSyntax(string command, string userInput)
8181
// Check if the command contains a commonly used command
8282
foreach (Match match in commandsRegex.Matches(command))
8383
{
84-
if (userInput != match.Value)
84+
if (!userInput.Contains(match.Value))
8585
{
86+
// Don't skip whoami%00
8687
continue;
8788
}
8889

0 commit comments

Comments
 (0)