-
-
Notifications
You must be signed in to change notification settings - Fork 394
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
fix(942160): check REQUEST_FILENAME #3782
Conversation
tests/regression/tests/REQUEST-942-APPLICATION-ATTACK-SQLI/942160.yaml
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. I'd like to get a second opinion before I merge though.
It's a nice bypass and a decent fix. Thanks @mat1010. I wonder whether we still want to do |
You are right.
Not sure if it allows some kind of bypass that wouldn't have worked before. In worst case it could catch more requests as the initial rule since it is now checking the full URI instead of just the name of the script. While thinking about bypassing this rule I came to an additional easy bypass we have to consider. Using comments like
I will also work on a fix to specifically address comments in the |
Try using |
…et#3787) * perf: remove unnecessary chain rule and capture for 921180 * fix: 921180 not logging ``logdata`` correctly
…ruleset#3788) * Check that all rules have the correct CRS tag and version * Change regexes to raw string; added 'git fetch --tags' before version determined * Print commands' outputs to debug script * Remove unnecessary subprocess commands * Fetch tags before check * Run git describe cmd * chore: fetch enough commits for `git describe` to discover tags * Update util/crs-rules-check/rules-check.py Co-authored-by: Max Leske <[email protected]> * Update util/crs-rules-check/rules-check.py Co-authored-by: Max Leske <[email protected]> * Update util/crs-rules-check/rules-check.py Co-authored-by: Max Leske <[email protected]> * Update util/crs-rules-check/rules-check.py Co-authored-by: Max Leske <[email protected]> * Update util/crs-rules-check/rules-check.py Co-authored-by: Max Leske <[email protected]> * Change message type format Co-authored-by: Max Leske <[email protected]> * Change message type format Co-authored-by: Max Leske <[email protected]> * Use `str` to convert string value Co-authored-by: Max Leske <[email protected]> * Change variable type format Co-authored-by: Max Leske <[email protected]> * Add triple " to formatted string * Change message type format Co-authored-by: Max Leske <[email protected]> * Remove unnecessary escapes Co-authored-by: Max Leske <[email protected]> * Change regex format to raw string Co-authored-by: Max Leske <[email protected]> * Change regex format to raw string Co-authored-by: Max Leske <[email protected]> * Remove unnecessary escapes Co-authored-by: Max Leske <[email protected]> --------- Co-authored-by: Max Leske <[email protected]>
* fix: add pem to restricted file extensions * chore: add esad cetiner to authors in 920440 tests
* fix no_expect_ids typo * fix expect_ids not nested under "log"
Sorry for the long delay. I added the the comment handling and a test for it. |
This change addresses #3779