Skip to content

Instantly share code, notes, and snippets.

@zimmerle
Created July 30, 2020 13:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zimmerle/fc84d0ddf77b02ef7f892a44d601d1f6 to your computer and use it in GitHub Desktop.
Save zimmerle/fc84d0ddf77b02ef7f892a44d601d1f6 to your computer and use it in GitHub Desktop.
test-case.json
[
{
"enabled":1,
"version_min":300000,
"title":"Test case to exemplify the discussion on issue #2368",
"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":"/modsec-is-cool/?foo=bar&github=fine&a=b",
"method":"GET"
},
"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":{
"debug_log":"not meant to pass."
},
"rules":[
"SecRuleEngine On",
"SecRule ARGS \"test\" \"id:1,pass\"",
"SecRule ARGS_GET \"test\" \"id:2,pass\"",
"SecRule QUERY_STRING \"test\" \"id:3,pass\"",
"SecRule REQUEST_URI \"test\" \"id:4,pass\"",
"SecRule REQUEST_URI_RAW \"test\" \"id:5,pass\""
]
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment