Sha256: 6b6d26fb8283896fa77ade6b7e4fa6d20132a318860cf559b5eed21823e3ad5b

Contents?: true

Size: 661 Bytes

Versions: 11

Compression:

Stored size: 661 Bytes

Contents

# Copyright (c) 2020 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'

module Contrast
  module Agent
    module Protect
      module Rule
        # The Ruby implementation of the Protect Cross-Site Scripting rule.
        class Xss < Contrast::Agent::Protect::Rule::BaseService
          NAME = 'reflected-xss'
          BLOCK_MESSAGE = 'XSS rule triggered. Response blocked.'

          def name
            NAME
          end

          def stream_safe?
            false
          end
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
contrast-agent-4.4.1 lib/contrast/agent/protect/rule/xss.rb
contrast-agent-4.4.0 lib/contrast/agent/protect/rule/xss.rb
contrast-agent-4.3.2 lib/contrast/agent/protect/rule/xss.rb
contrast-agent-4.3.1 lib/contrast/agent/protect/rule/xss.rb
contrast-agent-4.3.0 lib/contrast/agent/protect/rule/xss.rb
contrast-agent-4.2.0 lib/contrast/agent/protect/rule/xss.rb
contrast-agent-4.1.0 lib/contrast/agent/protect/rule/xss.rb
contrast-agent-4.0.0 lib/contrast/agent/protect/rule/xss.rb
contrast-agent-3.16.0 lib/contrast/agent/protect/rule/xss.rb
contrast-agent-3.15.0 lib/contrast/agent/protect/rule/xss.rb
contrast-agent-3.14.0 lib/contrast/agent/protect/rule/xss.rb