Sha256: d35742db51d4abd398436c4a93c026e49c36bc61d56c949bbe75c375757344f7

Contents?: true

Size: 747 Bytes

Versions: 8

Compression:

Stored size: 747 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 Assess
      module Rule
        class Csrf
          # CSRF is only reported on those Requests which also result in a
          # state changing action (database call). This class servers as a
          # record of that action.
          class CsrfAction
            attr_accessor :type, :evidence

            TYPE = 'type'
            EVIDENCE = 'evidence'
            def to_h
              {
                  TYPE => type,
                  EVIDENCE => evidence
              }
            end
          end
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
contrast-agent-3.11.0 lib/contrast/agent/assess/rule/csrf/csrf_action.rb
contrast-agent-3.10.2 lib/contrast/agent/assess/rule/csrf/csrf_action.rb
contrast-agent-3.10.1 lib/contrast/agent/assess/rule/csrf/csrf_action.rb
contrast-agent-3.10.0 lib/contrast/agent/assess/rule/csrf/csrf_action.rb
contrast-agent-3.9.1 lib/contrast/agent/assess/rule/csrf/csrf_action.rb
contrast-agent-3.9.0 lib/contrast/agent/assess/rule/csrf/csrf_action.rb
contrast-agent-3.8.5 lib/contrast/agent/assess/rule/csrf/csrf_action.rb
contrast-agent-3.8.4 lib/contrast/agent/assess/rule/csrf/csrf_action.rb