Sha256: e235da9f6ff8e9fb5ec8b791f7ce6d451cb7809c6b517c9fb9642db0c8b0ac60

Contents?: true

Size: 609 Bytes

Versions: 7

Compression:

Stored size: 609 Bytes

Contents

# Copyright (c) 2020 Contrast Security, Inc. See https://www.contrastsecurity.com/enduser-terms-0317a for more details.
# frozen_string_literal: true

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

7 entries across 7 versions & 1 rubygems

Version Path
contrast-agent-3.10.2 lib/contrast/agent/protect/rule/xss.rb
contrast-agent-3.10.1 lib/contrast/agent/protect/rule/xss.rb
contrast-agent-3.10.0 lib/contrast/agent/protect/rule/xss.rb
contrast-agent-3.9.1 lib/contrast/agent/protect/rule/xss.rb
contrast-agent-3.9.0 lib/contrast/agent/protect/rule/xss.rb
contrast-agent-3.8.5 lib/contrast/agent/protect/rule/xss.rb
contrast-agent-3.8.4 lib/contrast/agent/protect/rule/xss.rb