From 258e5545a2ba4a064004ccfedba015c1904cbdaa Mon Sep 17 00:00:00 2001 From: "Mario D. Santana" Date: Tue, 15 Dec 2015 16:03:45 -0700 Subject: [PATCH] Perform the intercept_action as well as the disruptive actions. --- apache2/re.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apache2/re.c b/apache2/re.c index 1d843e21..7e0a238c 100644 --- a/apache2/re.c +++ b/apache2/re.c @@ -2513,6 +2513,11 @@ static void msre_perform_disruptive_actions(modsec_rec *msr, msre_rule *rule, } } } + if (actionset->intercept_action_rec->metadata->type == ACTION_DISRUPTIVE) { + if (actionset->intercept_action_rec->metadata->execute != NULL) { + actionset->intercept_action_rec->metadata->execute(msr, mptmp, rule, actionset->intercept_action_rec); + } + } /* If "noauditlog" was used do not mark the transaction relevant. */ if (actionset->auditlog != 0) {