lib/contrast/agent/protect/rule/http_method_tampering.rb in contrast-agent-5.1.0 vs lib/contrast/agent/protect/rule/http_method_tampering.rb in contrast-agent-5.2.0
- old
+ new
@@ -32,10 +32,14 @@
result = if response_code.to_s.start_with?('4', '5')
build_attack_without_match(context, nil, nil, method: method, response_code: response_code)
else
build_attack_with_match(context, nil, nil, nil, method: method, response_code: response_code)
end
- append_to_activity(context, result) if result
+
+ return unless result
+
+ append_to_activity(context, result)
+ cef_logging result, :ineffective_attack
end
protected
def build_sample context, evaluation, _candidate_string, **kwargs