Skip to content

Commit

Permalink
Merge pull request SpiderLabs#27 from MichaelHaas/master
Browse files Browse the repository at this point in the history
Catch only TX:12345-... variables
  • Loading branch information
rcbarnett committed Apr 11, 2013
2 parents 19e0307 + b054a4d commit be9eb34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base_rules/modsecurity_crs_49_inbound_blocking.conf
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ SecRule TX:ANOMALY_SCORE "@gt 0" \
"chain,phase:2,id:'981176',t:none,deny,log,msg:'Inbound Anomaly Score Exceeded (Total Score: %{TX.ANOMALY_SCORE}, SQLi=%{TX.SQL_INJECTION_SCORE}, XSS=%{TX.XSS_SCORE}): Last Matched Message: %{tx.msg}',logdata:'Last Matched Data: %{matched_var}',setvar:tx.inbound_tx_msg=%{tx.msg},setvar:tx.inbound_anomaly_score=%{tx.anomaly_score}"
SecRule TX:ANOMALY_SCORE "@ge %{tx.inbound_anomaly_score_level}" chain
SecRule TX:ANOMALY_SCORE_BLOCKING "@streq on" chain
SecRule TX:/^\d/ "(.*)"
SecRule TX:/^\d+\-/ "(.*)"

# Alert and Block on a specific attack category such as SQL Injection
#
Expand Down

0 comments on commit be9eb34

Please sign in to comment.