Browse Source

fix http code and remediation

Sebastien Blot 1 year ago
parent
commit
0cd2a2da20
1 changed files with 2 additions and 0 deletions
  1. 2 0
      pkg/acquisition/modules/waap/waap_runner.go

+ 2 - 0
pkg/acquisition/modules/waap/waap_runner.go

@@ -184,6 +184,8 @@ func (r *WaapRunner) handleInBandInterrupt(request *waf.ParsedRequest) {
 	if in := request.Tx.Interruption(); in != nil {
 		r.logger.Debugf("inband rules matched : %d", in.RuleID)
 		r.WaapRuntime.Response.InBandInterrupt = true
+		r.WaapRuntime.Response.HTTPResponseCode = r.WaapRuntime.Config.BlockedHTTPCode
+		r.WaapRuntime.Response.Action = r.WaapRuntime.DefaultRemediation
 
 		err = r.WaapRuntime.ProcessOnMatchRules(request)
 		if err != nil {