Sha256: 46e73ec68d2ad5a68c5645c08785a85e823adcf3029436a9d0727400c2d1e481

Contents?: true

Size: 636 Bytes

Versions: 11

Compression:

Stored size: 636 Bytes

Contents

# Copyright (c) 2021 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 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 rule_name
            NAME
          end
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
contrast-agent-4.14.1 lib/contrast/agent/protect/rule/unsafe_file_upload.rb
contrast-agent-4.14.0 lib/contrast/agent/protect/rule/unsafe_file_upload.rb
contrast-agent-4.13.1 lib/contrast/agent/protect/rule/unsafe_file_upload.rb
contrast-agent-4.13.0 lib/contrast/agent/protect/rule/unsafe_file_upload.rb
contrast-agent-4.12.0 lib/contrast/agent/protect/rule/unsafe_file_upload.rb
contrast-agent-4.11.0 lib/contrast/agent/protect/rule/unsafe_file_upload.rb
contrast-agent-4.10.0 lib/contrast/agent/protect/rule/unsafe_file_upload.rb
contrast-agent-4.9.1 lib/contrast/agent/protect/rule/unsafe_file_upload.rb
contrast-agent-4.9.0 lib/contrast/agent/protect/rule/unsafe_file_upload.rb
contrast-agent-4.8.0 lib/contrast/agent/protect/rule/unsafe_file_upload.rb
contrast-agent-4.7.0 lib/contrast/agent/protect/rule/unsafe_file_upload.rb