-
Notifications
You must be signed in to change notification settings - Fork 1.7k
V3/collection re fix #2297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
V3/collection re fix #2297
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,87 @@ | ||
| [ | ||
airween marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| { | ||
| "enabled":1, | ||
|
||
| "version_min":300000, | ||
| "title":"OWASP CRS id:920450", | ||
|
||
| "client":{ | ||
| "ip":"200.249.12.31", | ||
| "port":123 | ||
| }, | ||
| "server":{ | ||
| "ip":"200.249.12.31", | ||
| "port":80 | ||
| }, | ||
| "request":{ | ||
| "headers":{ | ||
| "TRANSLATE": "test" | ||
|
||
| }, | ||
| "uri":"/", | ||
| "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":{ | ||
|
||
| "http_code":403 | ||
| }, | ||
| "rules":[ | ||
| "SecRuleEngine On", | ||
| "SecRule &TX:restricted_headers \"@eq 0\" \"id:901165,phase:1,pass,nolog,setvar:'tx.restricted_headers=/proxy/ /lock-token/ /content-range/ /translate/ /if/'\"", | ||
|
||
| "SecRule REQUEST_HEADERS_NAMES \"@rx ^.*$\" \"id:920450,phase:2,capture,block,deny,t:lowercase,setvar:'tx.header_name_%{tx.0}=/%{tx.0}/',chain", | ||
| "SecRule TX:/^HEADER_NAME_/ \"@within %{tx.restricted_headers}\" \"\"" | ||
| ] | ||
| }, | ||
| { | ||
| "enabled":1, | ||
| "version_min":300000, | ||
| "title":"OWASP CRS id:920450", | ||
|
||
| "client":{ | ||
| "ip":"200.249.12.31", | ||
| "port":123 | ||
| }, | ||
| "server":{ | ||
| "ip":"200.249.12.31", | ||
| "port":80 | ||
| }, | ||
| "request":{ | ||
| "headers":{ | ||
| "Accept": "text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5", | ||
| "Accept-Charset": "ISO-8859-1,utf-8;q=0.7,*;q=0.7", | ||
| "Accept-Encoding": "gzip,deflate", | ||
| "Accept-Language": "en-us,en;q=0.5", | ||
| "Host": "localhost", | ||
| "Keep-Alive": "300", | ||
| "Proxy-Connection": "keep-alive", | ||
| "User-Agent": "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv" | ||
| }, | ||
| "uri":"/", | ||
| "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":{ | ||
|
||
| "http_code":200 | ||
| }, | ||
| "rules":[ | ||
| "SecRuleEngine On", | ||
| "SecRule &TX:restricted_headers \"@eq 0\" \"id:901165,phase:1,pass,nolog,setvar:'tx.restricted_headers=/proxy/ /lock-token/ /content-range/ /translate/ /if/'\"", | ||
|
||
| "SecRule REQUEST_HEADERS_NAMES \"@rx ^.*$\" \"id:920450,phase:2,capture,block,deny,t:lowercase,setvar:'tx.header_name_%{tx.0}=/%{tx.0}/',chain", | ||
| "SecRule TX:/^HEADER_NAME_/ \"@within %{tx.restricted_headers}\" \"\"" | ||
| ] | ||
| } | ||
| ] | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would expect a different name for that file. Explained below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.