lib/contrast/agent/assess/policy/trigger/reflected_xss.rb in contrast-agent-4.4.1 vs lib/contrast/agent/assess/policy/trigger/reflected_xss.rb in contrast-agent-4.5.0
- old
+ new
@@ -1,6 +1,6 @@
-# Copyright (c) 2020 Contrast Security, Inc. See https://www.contrastsecurity.com/enduser-terms-0317a for more details.
+# Copyright (c) 2021 Contrast Security, Inc. See https://www.contrastsecurity.com/enduser-terms-0317a for more details.
# frozen_string_literal: true
module Contrast
module Agent
module Assess
@@ -22,11 +22,11 @@
'patch_class' => 'Contrast::Agent::Assess::Policy::Trigger::ReflectedXss',
'patch_method' => 'xss_tilt_trigger'
}.cs__freeze
TEMPLATE_PROPAGATION_NODE = Contrast::Agent::Assess::Policy::PropagationNode.new(NODE_HASH)
- def xss_tilt_trigger context, trigger_node, _source, object, ret, *args
+ def xss_tilt_trigger trigger_node, _source, object, ret, *args
return unless (properties = Contrast::Agent::Assess::Tracker.properties!(ret))
scope = args[0]
erb_template_prerender = object.instance_variable_get(:@data)
interpolated_inputs = []
@@ -42,10 +42,10 @@
current_event.parent_events << input_properties.event
end
end
if Contrast::Agent::Assess::Tracker.tracked?(ret)
- Contrast::Agent::Assess::Policy::TriggerMethod.build_finding(context, trigger_node, ret, erb_template_prerender, ret, interpolated_inputs)
+ Contrast::Agent::Assess::Policy::TriggerMethod.build_finding(trigger_node, ret, erb_template_prerender, ret, interpolated_inputs)
end
ret
end