Skip to content

Instantly share code, notes, and snippets.

@zimmerle
Created June 26, 2018 19:10
Show Gist options
  • Save zimmerle/7cd25538a7f2a1b7fa977d4b0b8dc5e3 to your computer and use it in GitHub Desktop.
Save zimmerle/7cd25538a7f2a1b7fa977d4b0b8dc5e3 to your computer and use it in GitHub Desktop.
[
{
"enabled": 1,
"version_min": 209000,
"version_max": -1,
"title": "Should libmodsec pass action clear m_actions?",
"url": "https:\/\/github.com\/SpiderLabs\/ModSecurity\/issues\/1767",
"client": {
"ip": "200.249.12.31",
"port": 2313
},
"server": {
"ip": "200.249.12.31",
"port": 80
},
"request": {
"headers": {
"Cache-Control": "no-cache",
"Content-type": "application/json",
"origin": "https://really.ai",
"referer": "https://really.ai",
"x-really-referer": "https://really.ai"
},
"uri": "\/test.pl?foo=bar",
"method": "GET",
"http_version": 1.1,
"body": ""
},
"response": {
"headers": {
"Content-Type": "text\/xml; charset=utf-8\n\r",
"Content-Length": "length\n\r"
}
},
"expected": {
"http_code": 200
},
"rules": [
"SecRuleEngine On",
"SecRule REQUEST_HEADERS:Content-Type \"application/json\" \"id:'200001',phase:1,t:none,t:lowercase,pass,nolog,ctl:requestBodyProcessor=JSON\"",
"SecRule REQBODY_ERROR \"!@eq 0\" \"id:'200002', phase:2,t:none,log,deny,status:400,msg:'Failed to parse request body.',logdata:'%{reqbody_error_msg}',severity:2\""
]
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment