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
|
# 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
|
# 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:
|
# 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
|
# A reference is a name, then optionally / and a version, then optionally @
|
||||||
# optionally / and a channel. Each part is made of letters, digits, _, ., +, -
|
# and a user, then optionally / and a channel. Each part is made of letters,
|
||||||
# and *. q must also hold no */, which ends an SQL comment. Such a q has no
|
# digits, _, ., +, - and *. q must also hold no */, which ends an SQL comment.
|
||||||
# quote, no space and no comment between two words, so SQL injection such as
|
# Such a q has no quote, no space and no comment between two words, so SQL
|
||||||
# 1' OR '1'='1, 1/**/or/**/1 or 1/*@*/or-1 stays refused.
|
# 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
|
# 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
|
# and cannot see a q there. It checks tx.app_gitea, since the skip above does
|
||||||
# not reach phase 2.
|
# not reach phase 2.
|
||||||
|
|||||||
Reference in new issue
Block a user