-
-
Notifications
You must be signed in to change notification settings - Fork 404
feat: add test overrides for nginx #3369
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
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
47a97c1
feat: add test overrides for nginx
theseion 991d3aa
feat: update schema
theseion dfad9a1
feat: add test overrides for Coraza
theseion 54e7d07
Update nginx-overrides.yaml
theMiddleBlue bfc94aa
chore: update tests to use single status code only
theseion fc4f40c
chore: update overrides to match schema
theseion 8e5365c
chore: rebase onto @azurit's huge change
theseion adb5525
feat: add platform overrides for httpd
theseion 586ae80
chore: update tests to newest schema
theseion 0cf921b
chore: clean up overrides
theseion a9e91f8
chore: update workflow for go-ftw v1.0.1
theseion a5f4796
chore: update to go-ftw v1.0.2
theseion dda2f1a
chore: fix typo
theseion f9e843a
chore: apply review suggestions
theseion 0a90b76
chore: handle httpd segfaults
theseion 6567ca2
chore: override bad test 920370
theseion c6816dd
chore: update to go-ftw v1.0.3
theseion c8d3f52
fix: add `rule_id` field to all tests
theseion File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,8 +1,8 @@ | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: Help and support | ||
url: https://security.stackexchange.com/questions/tagged/owasp-crs | ||
url: https://security.stackexchange.com/questions/tagged/owasp-crs | ||
about: For help and support please go here. | ||
- name: OWASP Core Rule Set mailing list | ||
url: https://groups.google.com/a/owasp.org/g/modsecurity-core-rule-set-project | ||
url: https://groups.google.com/a/owasp.org/g/modsecurity-core-rule-set-project | ||
about: Ask general usage questions and participate in discussions on the CRS. |
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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,52 @@ | ||
version: "v0.0.0" | ||
meta: | ||
engine: "coraza" | ||
platform: "go" | ||
annotations: | ||
- purpose: "CRS test suite" | ||
test_overrides: | ||
- rule_id: 920100 | ||
test_ids: [4] | ||
reason: 'Invalid uri, Coraza not reached - 404 page not found' | ||
output: | ||
status: 404 | ||
- rule_id: 920100 | ||
test_ids: [5] | ||
reason: 'Invalid uri, Coraza not reached - 404 page not found' | ||
output: | ||
status: 404 | ||
- rule_id: 920100 | ||
test_ids: [8] | ||
reason: 'Go/http allows a colon in the path. Test expects status 400 or 403 (Apache behaviour)' | ||
output: | ||
status: 200 | ||
log: | ||
expect_ids: [920100] | ||
- rule_id: 920270 | ||
test_ids: [4] | ||
reason: 'Rule works, log contains 920270. Test expects status 400 (Apache behaviour)' | ||
output: | ||
status: 200 | ||
- rule_id: 920272 | ||
test_ids: [5] | ||
reason: 'Rule works, log contains 920272. Test expects status 400 (Apache behaviour)' | ||
output: | ||
status: 200 | ||
- rule_id: 920290 | ||
test_ids: [1] | ||
reason: 'Rule works, log contains 920290. Test expects status 400 (Apache behaviour)' | ||
output: | ||
status: 200 | ||
- rule_id: 920430 | ||
test_ids: [8] | ||
reason: 'Go/http does not allow HTTP/3.0 - 505 HTTP Version Not Supported' | ||
output: | ||
status: 505 | ||
log: | ||
no_expect_ids: [920430] | ||
- rule_id: 932200 | ||
test_ids: [13] | ||
reason: 'wip' | ||
- rule_id: 934131 | ||
test_ids: [5, 7] | ||
reason: 'TODO: check why we are failing to deobfuscate these payloads' |
This file contains hidden or 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.
L
96A6
earn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
version: "v0.0.0" | ||
meta: | ||
engine: "ModSecurity v2" | ||
platform: "httpd" | ||
annotations: | ||
- purpose: "CRS test suite" | ||
test_overrides: | ||
- rule_id: 920360 | ||
test_ids: [1] | ||
reason: Requires ARG_NAME_LENGTH to be set to an appropriately low value | ||
output: | ||
status: 200 | ||
log: | ||
no_expect_ids: [920360] | ||
- rule_id: 920370 | ||
test_ids: [1] | ||
reason: Doesn't trigger. Needs to be fixed (https://github.com/coreruleset/coreruleset/issues/3745) | ||
output: | ||
status: 200 | ||
log: | ||
no_expect_ids: [920370] | ||
- rule_id: 920380 | ||
test_ids: [1] | ||
reason: Requires MAX_NUM_ARGS to be set to a sufficiently low value | ||
output: | ||
status: 200 | ||
log: | ||
no_expect_ids: [920380] | ||
- rule_id: 920390 | ||
test_ids: [1] | ||
reason: Exceeds PCRE limits, currently segfaults on the CI | ||
output: | ||
expect_error: true | ||
log: | ||
no_expect_ids: [920390] |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.