lib/contrast/agent/protect/rule/no_sqli.rb in contrast-agent-6.11.0 vs lib/contrast/agent/protect/rule/no_sqli.rb in contrast-agent-6.12.0
- old
+ new
@@ -1,6 +1,6 @@
-# Copyright (c) 2022 Contrast Security, Inc. See https://www.contrastsecurity.com/enduser-terms-0317a for more details.
+# Copyright (c) 2023 Contrast Security, Inc. See https://www.contrastsecurity.com/enduser-terms-0317a for more details.
# frozen_string_literal: true
require 'contrast/agent/protect/rule/base_service'
require 'contrast/agent/protect/rule/sql_sample_builder'
require 'contrast/agent/reporting/input_analysis/input_type'
@@ -66,21 +66,9 @@
result ||= build_attack_result(context)
update_successful_attack_response(context, input_analysis_result, result, candidate_string)
append_sample(context, input_analysis_result, result, candidate_string, **kwargs)
result
- end
-
- # @param context [Contrast::Agent::RequestContext]
- def infilter? context
- return false unless enabled?
- return false unless context&.agent_input_analysis&.results&.any? do |result|
- result.rule_id == rule_name
- end
-
- return false if protect_excluded_by_code?
-
- true
end
protected
def find_attacker context, potential_attack_string, **kwargs