Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions regex-assembly/951130.ra
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
##! Please refer to the documentation at
##! https://coreruleset.org/docs/development/regex_assembly/.

##!+ i

DB2 SQL error
\[IBM\]\[CLI Driver\]\[DB2/6000\]
CLI Driver.*DB2
db2_\w+\(\)
7 changes: 6 additions & 1 deletion rules/RESPONSE-951-DATA-LEAKAGES-SQL.conf
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,12 @@ SecRule RESPONSE_BODY "@rx (?i)\bORA-[0-9][0-9][0-9][0-9][0-9]:|java\.sql\.SQLEx
setvar:'tx.outbound_anomaly_score_pl1=+%{tx.critical_anomaly_score}',\
setvar:'tx.sql_injection_score=+%{tx.critical_anomaly_score}'"

SecRule RESPONSE_BODY "@rx (?i:DB2 SQL error:|\[IBM\]\[CLI Driver\]\[DB2/6000\]|CLI Driver.*DB2|DB2 SQL error|db2_\w+\()" \
# Regular expression generated from regex-assembly/951130.ra.
# To update the regular expression run the following shell script
# (consult https://coreruleset.org/docs/development/regex_assembly/ for details):
# crs-toolchain regex update 951130
#
SecRule RESPONSE_BODY "@rx (?i)DB2 SQL error|\[IBM\]\[CLI Driver\]\[DB2/6000\]|CLI Driver.*DB2|db2_[0-9A-Z_a-z]+\(\)" \
"id:951130,\
phase:4,\
block,\
Expand Down
Loading