Handle URI received with uri-fragment

This commit is contained in:
martinhsv
2021-06-29 09:46:28 -03:00
committed by Felipe Zimmerle
parent faad65d385
commit cd5fba8974
7 changed files with 390 additions and 19 deletions

View File

@@ -2,7 +2,7 @@
{
"enabled":1,
"version_min":300000,
"title":"Testing Variables :: ARGS_GET (1/5)",
"title":"Testing Variables :: ARGS_GET (1/6)",
"client":{
"ip":"200.249.12.31",
"port":123
@@ -41,7 +41,7 @@
{
"enabled":1,
"version_min":300000,
"title":"Testing Variables :: ARGS_GET (2/5)",
"title":"Testing Variables :: ARGS_GET (2/6)",
"client":{
"ip":"200.249.12.31",
"port":123
@@ -80,7 +80,7 @@
{
"enabled":1,
"version_min":300000,
"title":"Testing Variables :: ARGS_GET (3/5)",
"title":"Testing Variables :: ARGS_GET (3/6)",
"client":{
"ip":"200.249.12.31",
"port":123
@@ -119,7 +119,7 @@
{
"enabled":1,
"version_min":300000,
"title":"Testing Variables :: ARGS_GET (4/5)",
"title":"Testing Variables :: ARGS_GET (4/6)",
"client":{
"ip":"200.249.12.31",
"port":123
@@ -158,7 +158,7 @@
{
"enabled":1,
"version_min":300000,
"title":"Testing Variables :: ARGS_GET (5/5)",
"title":"Testing Variables :: ARGS_GET (5/6)",
"client":{
"ip":"200.249.12.31",
"port":123
@@ -193,6 +193,46 @@
"SecRuleEngine On",
"SecRule ARGS_GET \"@rx ^othervalue$ \" \"id:1,pass,t:none\""
]
},
{
"enabled":1,
"version_min":300000,
"title":"Testing Variables :: ARGS_GET (6/6)",
"client":{
"ip":"200.249.12.31",
"port":123
},
"server":{
"ip":"200.249.12.31",
"port":80
},
"request":{
"headers":{
"Host":"localhost",
"User-Agent":"curl/7.38.0",
"Accept":"*/*"
},
"uri":"/?key=value&second_key=other_value#urifrag",
"method":"GET",
"http_version":1.1
},
"response":{
"headers":{
"Date":"Mon, 13 Jul 2015 20:02:41 GMT",
"Last-Modified":"Sun, 26 Oct 2014 22:33:37 GMT",
"Content-Type":"text/html"
},
"body":[
"no need."
]
},
"expected":{
"http_code": 403
},
"rules":[
"SecRuleEngine On",
"SecRule ARGS_GET \"@streq other_value\" \"id:1,phase:1,deny,status:403\""
]
}
]