-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: create 9520101 regression test
- Loading branch information
1 parent
1d87cd4
commit 27b231e
Showing
2 changed files
with
78 additions
and
55 deletions.
There are no files selected for viewing
110 changes: 55 additions & 55 deletions
110
tests/regression/sogo-rule-exclusions-plugin/9520100.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,55 @@ | ||
--- | ||
meta: | ||
author: "Esad Cetiner" | ||
description: "SOGo Rule Exclusions Plugin" | ||
enabled: true | ||
name: 9520100.yaml | ||
tests: | ||
- test_title: 9520100-1 | ||
desc: Disable 920272 for cookie header | ||
stages: | ||
- stage: | ||
input: | ||
dest_addr: 127.0.0.1 | ||
headers: | ||
Host: localhost | ||
User-Agent: SOGo rule exclusions plugin | ||
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 | ||
cookie: \% | ||
port: 80 | ||
method: POST | ||
uri: /post | ||
output: | ||
no_log_contains: id "920272" | ||
- test_title: 9520100-2 | ||
desc: Disable 942450 for XSRF-TOKEN cookie | ||
stages: | ||
- stage: | ||
input: | ||
dest_addr: 127.0.0.1 | ||
headers: | ||
Host: localhost | ||
User-Agent: SOGo rule exclusions plugin | ||
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 | ||
cookie: XSRF-TOKEN=0x0806 | ||
port: 80 | ||
method: POST | ||
uri: /post | ||
output: | ||
no_log_contains: id "942450" | ||
- test_title: 9520100-3 | ||
desc: Disable 942450 for identviewsplitter cookie name | ||
stages: | ||
- stage: | ||
input: | ||
dest_addr: 127.0.0.1 | ||
headers: | ||
Host: localhost | ||
User-Agent: SOGo rule exclusions plugin | ||
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 | ||
cookie: 0xHIGHFLYxSOGo=0x0800 | ||
port: 80 | ||
method: POST | ||
uri: /post | ||
output: | ||
no_log_contains: id "942450" | ||
--- | ||
meta: | ||
author: "Esad Cetiner" | ||
description: "SOGo Rule Exclusions Plugin" | ||
enabled: true | ||
name: 9520100.yaml | ||
tests: | ||
- test_title: 9520100-1 | ||
desc: Disable 920272 for cookie header | ||
stages: | ||
- stage: | ||
input: | ||
dest_addr: 127.0.0.1 | ||
headers: | ||
Host: localhost | ||
User-Agent: SOGo rule exclusions plugin | ||
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 | ||
cookie: \% | ||
port: 80 | ||
method: POST | ||
uri: /SOGo/ | ||
output: | ||
no_log_contains: id "920272" | ||
- test_title: 9520100-2 | ||
desc: Disable 942450 for XSRF-TOKEN cookie | ||
stages: | ||
- stage: | ||
input: | ||
dest_addr: 127.0.0.1 | ||
headers: | ||
Host: localhost | ||
User-Agent: SOGo rule exclusions plugin | ||
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 | ||
cookie: XSRF-TOKEN=0x0806 | ||
port: 80 | ||
method: POST | ||
uri: /SOGo/ | ||
output: | ||
no_log_contains: id "942450" | ||
- test_title: 9520100-3 | ||
desc: Disable 942450 for identviewsplitter cookie name | ||
stages: | ||
- stage: | ||
input: | ||
dest_addr: 127.0.0.1 | ||
headers: | ||
Host: localhost | ||
User-Agent: SOGo rule exclusions plugin | ||
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 | ||
cookie: 0xHIGHFLYxSOGo=0x0800 | ||
port: 80 | ||
method: POST | ||
uri: /SOGo/ | ||
output: | ||
no_log_contains: id "942450" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
meta: | ||
author: "Esad Cetiner" | ||
description: "SOGo Rule Exclusions Plugin" | ||
enabled: true | ||
name: 9520101.yaml | ||
tests: | ||
- test_title: 9520101-1 | ||
desc: Disable OWASP_CRS for ARGS:json.password | ||
stages: | ||
- stage: | ||
input: | ||
dest_addr: 127.0.0.1 | ||
headers: | ||
Host: localhost | ||
User-Agent: SOGo rule exclusions plugin | ||
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 | ||
cookie: \% | ||
port: 80 | ||
method: POST | ||
uri: /SOGo/connect?json.password=<script> | ||
output: | ||
no_log_contains: id "941110" |