Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
23413eb00a |
@@ -269,12 +269,12 @@ SecRule REQUEST_FILENAME "@rx ^/api/packages/[^/]+/npm/-/v1/search$" \
|
||||
|
||||
# A Conan search takes a pattern such as zlib/*, which the rule for SQL
|
||||
# injection (942100) refused in q. q skips that rule only when the request has
|
||||
# one q, in the query string or the body, with the shape of a Conan reference:
|
||||
# a name, then optionally / and a version, then optionally @ and a user, then
|
||||
# optionally / and a channel. Each part is made of letters, digits, _, ., +, -
|
||||
# and *. q must also hold no */, which ends an SQL comment. Such a q has no
|
||||
# quote, no space and no comment between two words, so SQL injection such as
|
||||
# 1' OR '1'='1, 1/**/or/**/1 or 1/*@*/or-1 stays refused.
|
||||
# one q, in the query string or the body, with the shape of a Conan reference.
|
||||
# A reference is a name, then optionally / and a version, then optionally @
|
||||
# and a user, then optionally / and a channel. Each part is made of letters,
|
||||
# digits, _, ., +, - and *. q must also hold no */, which ends an SQL comment.
|
||||
# Such a q has no quote, no space and no comment between two words, so SQL
|
||||
# injection such as 1' OR '1'='1, 1/**/or/**/1 or 1/*@*/or-1 stays refused.
|
||||
# This rule is in phase 2, because a phase 1 rule runs before the body is read
|
||||
# and cannot see a q there. It checks tx.app_gitea, since the skip above does
|
||||
# not reach phase 2.
|
||||
|
||||
Reference in new issue
Block a user