8000 Added additional tests for 920120 by theseion · Pull Request #2369 · coreruleset/coreruleset · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Added additional tests for 920120 #2369

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

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -839,3 +839,95 @@ tests:
-----------------------------265001916915724--
output:
no_log_contains: id "920120"
- test_title: 920120-36
desc: "Attempted multipart/form-data bypass (920120). Still match ; that aren't part of an HTML entity in FILES."
stages:
- stage:
input:
dest_addr: 127.0.0.1
headers:
User-Agent: "ModSecurity CRS 3 Tests"
Host: "localhost"
Content-Type: multipart/form-data; boundary=---------------------------265001916915724
Accept: "text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5"
method: POST
port: 80
uri: /
data: |
-----------------------------265001916915724
Content-Disposition: form-data; name="&fi;zzz"; filename="test"
Content-Type: application/octet-stream

helloworld
-----------------------------265001916915724--
output:
log_contains: id "920120"
- test_title: 920120-37
desc: "Attempted multipart/form-data bypass (920120). Still match ; that aren't part of an HTML entity in FILES_NAMES."
stages:
- stage:
input:
dest_addr: 127.0.0.1
headers:
User-Agent: "ModSecurity CRS 3 Tests"
Host: "localhost"
Content-Type: multipart/form-data; boundary=---------------------------265001916915724
Accept: "text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5"
method: POST
port: 80
uri: /
data: |
-----------------------------265001916915724
Content-Disposition: form-data; name="test"; filename="&fi;zzz"
Content-Type: application/octet-stream

helloworld
-----------------------------265001916915724--
output:
log_contains: id "920120"
- test_title: 920120-38
desc: "Attempted multipart/form-data bypass (920120). Don't match ; that are part of HTML entities in both FILES and FILES_NAMES."
stages:
- stage:
input:
dest_addr: 127.0.0.1
headers:
User-Agent: "ModSecurity CRS 3 Tests"
Host: "localhost"
Content-Type: multipart/form-data; boundary=---------------------------265001916915724
Accept: "text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5"
method: POST
port: 80
uri: /
data: |
-----------------------------265001916915724
Content-Disposition: form-data; name="zzz&zzz"; filename="zzz&zzz"
Content-Type: application/octet-stream

helloworld
-----------------------------265001916915724--
output:
no_log_contains: id "920120"
- test_title: 920120-39
desc: "Attempted multipart/form-data bypass (920120). Allow empty fields."
stages:
- stage:
input:
dest_addr: 127.0.0.1
headers:
User-Agent: "ModSecurity CRS 3 Tests"
Host: "localhost"
Content-Type: multipart/form-data; boundary=---------------------------265001916915724
Accept: "text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5"
method: POST
port: 80
uri: /
data: |
-----------------------------265001916915724
Content-Disposition: form-data; name=""; filename=""
Content-Type: application/octet-stream

helloworld
-----------------------------265001916915724--
output:
no_log_contains: id "920120"
0