lib/contrast/agent/protect/rule/xss.rb in contrast-agent-6.9.0 vs lib/contrast/agent/protect/rule/xss.rb in contrast-agent-6.10.0
- old
+ new
@@ -1,9 +1,10 @@
# Copyright (c) 2022 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/xss/reflected_xss_input_classification'
require 'contrast/agent/reporting/input_analysis/input_type'
module Contrast
module Agent
module Protect
@@ -24,9 +25,16 @@
NAME
end
def block_message
BLOCK_MESSAGE
+ end
+
+ # XSS Upload input classification
+ #
+ # @return [module<Contrast::Agent::Protect::Rule::ReflectedXssInputClassification>]
+ def classification
+ @_classification ||= Contrast::Agent::Protect::Rule::ReflectedXssInputClassification.cs__freeze
end
def stream_safe?
false
end