Skip to content

Commit

Permalink
test: create 9520101 regression test
Browse files Browse the repository at this point in the history
  • Loading branch information
EsadCetiner authored Dec 28, 2023
1 parent 1d87cd4 commit 27b231e
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 55 deletions.
110 changes: 55 additions & 55 deletions tests/regression/sogo-rule-exclusions-plugin/9520100.yaml
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"
23 changes: 23 additions & 0 deletions tests/regression/sogo-rule-exclusions-plugin/9520101.yaml
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"

0 comments on commit 27b231e

Please sign in to comment.