Skip to content

Commit

Permalink
Undelete test 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lubomudr committed Dec 9, 2023
1 parent 50796ed commit 58da017
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions unit-tests/tests/06naxsi_weirds.t
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,29 @@ no_long_string();
$ENV{TEST_NGINX_SERVROOT} = server_root();
run_tests();
__DATA__
=== WL TEST 1.0: weird request in URL
--- main_config
load_module $TEST_NGINX_NAXSI_MODULE_SO;
--- http_config
include $TEST_NGINX_NAXSI_RULES;
--- config
location / {
SecRulesEnabled;
DeniedUrl "/RequestDenied";
CheckRule "$SQL >= 8" BLOCK;
CheckRule "$RFI >= 8" BLOCK;
CheckRule "$TRAVERSAL >= 4" BLOCK;
CheckRule "$XSS >= 8" BLOCK;
root $TEST_NGINX_SERVROOT/html/;
index index.html index.htm;
}
location /RequestDenied {
return 412;
}
--- request
GET /?&&&&a&&&&&
--- error_code: 412
=== WL TEST 1.0a: weird request in URL (?&...)
--- main_config
load_module $TEST_NGINX_NAXSI_MODULE_SO;
Expand Down

0 comments on commit 58da017

Please sign in to comment.