Sha256: 3042a534c25843ef2aa216bfc5c09c71c93f2c1538980a39dd2c3a290a05fc97

Contents?: true

Size: 642 Bytes

Versions: 7

Compression:

Stored size: 642 Bytes

Contents

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

cs__scoped_require 'contrast/agent/protect/rule/base_service'

module Contrast
  module Agent
    module Protect
      module Rule
        # The Ruby implementation of the Protect Unsafe File Upload rule.
        class UnsafeFileUpload < Contrast::Agent::Protect::Rule::BaseService
          NAME = 'unsafe-file-upload'
          BLOCK_MESSAGE = 'Unsafe file upload rule triggered. Request blocked.'

          def name
            NAME
          end
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
contrast-agent-3.13.2 lib/contrast/agent/protect/rule/unsafe_file_upload.rb
contrast-agent-3.13.1 lib/contrast/agent/protect/rule/unsafe_file_upload.rb
contrast-agent-3.13.0 lib/contrast/agent/protect/rule/unsafe_file_upload.rb
contrast-agent-3.12.2 lib/contrast/agent/protect/rule/unsafe_file_upload.rb
contrast-agent-3.12.1 lib/contrast/agent/protect/rule/unsafe_file_upload.rb
contrast-agent-3.12.0 lib/contrast/agent/protect/rule/unsafe_file_upload.rb
contrast-agent-3.11.0 lib/contrast/agent/protect/rule/unsafe_file_upload.rb