This repository has been archived by the owner on May 14, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 727
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1528 from lifeforms/split-942510
SQLi: split 942510 into PL2 rule (backticks) and PL3 rule 942511 (ticks)
- Loading branch information
Showing
3 changed files
with
177 additions
and
68 deletions.
There are no files selected for viewing
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
57 changes: 35 additions & 22 deletions
57
util/regression-tests/tests/REQUEST-942-APPLICATION-ATTACK-SQLI/942510.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,24 +1,37 @@ | ||
--- | ||
meta: | ||
author: "Franziska Buehler" | ||
description: None | ||
enabled: true | ||
name: 942510.yaml | ||
tests: | ||
- | ||
test_title: 942510-1 | ||
desc: "SQLi bypass detected: ticks or backticks" | ||
meta: | ||
author: "Franziska Buehler" | ||
description: None | ||
enabled: true | ||
name: 942510.yaml | ||
tests: | ||
- test_title: 942510-1 | ||
desc: "SQLi bypass detected: backticks" | ||
stages: | ||
- | ||
stage: | ||
input: | ||
dest_addr: 127.0.0.1 | ||
headers: | ||
User-Agent: "ModSecurity CRS 3 Tests" | ||
Host: localhost | ||
method: GET | ||
port: 80 | ||
uri: "/?'bla'" | ||
version: HTTP/1.0 | ||
output: | ||
log_contains: id "942510" | ||
- stage: | ||
input: | ||
dest_addr: 127.0.0.1 | ||
headers: | ||
User-Agent: "ModSecurity CRS 3 Tests" | ||
Host: localhost | ||
method: GET | ||
port: 80 | ||
uri: "/?`bla`" | ||
version: HTTP/1.0 | ||
output: | ||
log_contains: id "942510" | ||
- test_title: 942510-2 | ||
desc: "SQLi bypass detected: backticks" | ||
stages: | ||
- stage: | ||
input: | ||
dest_addr: 127.0.0.1 | ||
headers: | ||
User-Agent: "ModSecurity CRS 3 Tests" | ||
Host: localhost | ||
method: GET | ||
port: 80 | ||
uri: "/?'bla'" | ||
version: HTTP/1.0 | ||
output: | ||
no_log_contains: id "942510" |
37 changes: 37 additions & 0 deletions
37
util/regression-tests/tests/REQUEST-942-APPLICATION-ATTACK-SQLI/942511.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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
meta: | ||
author: "Walter Hop" | ||
description: None | ||
enabled: true | ||
name: 942511.yaml | ||
tests: | ||
- test_title: 942511-1 | ||
desc: "SQLi bypass detected: quotes" | ||
stages: | ||
- stage: | ||
input: | ||
dest_addr: 127.0.0.1 | ||
headers: | ||
User-Agent: "ModSecurity CRS 3 Tests" | ||
Host: localhost | ||
method: GET | ||
port: 80 | ||
uri: "/?`bla`" | ||
version: HTTP/1.0 | ||
output: | ||
no_log_contains: id "942511" | ||
- test_title: 942511-2 | ||
desc: "SQLi bypass detected: quotes" | ||
stages: | ||
- stage: | ||
input: | ||
dest_addr: 127.0.0.1 | ||
headers: | ||
User-Agent: "ModSecurity CRS 3 Tests" | ||
Host: localhost | ||
method: GET | ||
port: 80 | ||
uri: "/?'bla'" | ||
version: HTTP/1.0 | ||
output: | ||
log_contains: id "942511" |