Skip to content

Commit

Permalink
[rule] fix PHP Xdebug rule
Browse files Browse the repository at this point in the history
  • Loading branch information
wargio committed Jul 30, 2024
1 parent 8ec2d54 commit f1e70a1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion naxsi_rules/blocking/40000000_php_security.rules
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ MainRule id:40000026 "s:$UWA:8" "str:eval-stdin.php" "mz:URL" "msg:CVE-2017-9841
MainRule id:40000027 "s:$UWA:8" "rx:PHP[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$" "mz:URL|BODY|ARGS" "msg:PHP easter egg credits";

# Block PHP Xdebug
MainRule id:40000028 "s:$UWA:8" "str:XDEBUG_SESSION" "mz:BODY|ARGS|HEADERS|NAME" "msg:Block PHP Xdebug";
MainRule id:40000028 "s:$UWA:8" "str:XDEBUG_SESSION" "mz:ALL" "msg:Block PHP Xdebug";

# Block PHPinfo access
MainRule id:40000029 "s:$UWA:8" "str:phpinfo" "mz:URL|BODY|ARGS" "msg:PHPinfo access";
Expand All @@ -61,3 +61,6 @@ MainRule id:40000036 "s:$UWA:8" "str:adminer" "mz:URL" "msg:SQL Admin Interface"

# Block access to Symfony Web Framework dev mode.
MainRule id:40000037 "s:$UWA:8" "str:app_dev" "mz:URL" "msg:Symfony Web Framework dev mode";

# XDEBUG_SESSION in request
MainRule id:40000038 "s:$UWA:8" "str:XDEBUG_SESSION" "mz:ALL" "msg:XDEBUG_SESSION in request";

0 comments on commit f1e70a1

Please sign in to comment.