Skip to content

Instantly share code, notes, and snippets.

@airween
Created September 17, 2019 14:57
Show Gist options
  • Save airween/3e9c40c4b6663b38168bbc08233e7660 to your computer and use it in GitHub Desktop.
Save airween/3e9c40c4b6663b38168bbc08233e7660 to your computer and use it in GitHub Desktop.
issue-2157
[
{
"enabled":1,
"version_min":300000,
"title":"issue 2157",
"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"
},
"uri":"/?test=test%FF1",
"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":"",
"http_code":400
},
"rules":[
"SecRuleEngine On",
"SecDebugLogLevel 9",
"SecRule &REQUEST_HEADERS:Accept \"@eq 0\" \"id:920300,phase:2,pass,t:none,msg:'Request Missing an Accept Header',tag:'application-multi',tag:'language-multi',tag:'platform-multi',tag:'attack-protocol', tag:'OWASP_CRS',tag:'OWASP_CRS/PROTOCOL_VIOLATION/MISSING_HEADER_ACCEPT',tag:'WASCTC/WASC-21',tag:'OWASP_TOP_10/A7',tag:'PCI/6.5.10',tag:'paranoia-level/2',ver:'OWASP_CRS/3.2.0',severity:'NOTICE',chain\"",
"SecRule REQUEST_METHOD \"!@rx ^OPTIONS$\" \"chain\"",
"SecRule REQUEST_HEADERS:User-Agent \"!@pm AppleWebKit Android\" \"t:none,setvar:'tx.anomaly_score_pl2=+%{tx.notice_anomaly_score}'\""
]
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment