Class: Contrast::Agent::Protect::Rule::UnsafeFileUpload
- Inherits:
-
BaseService
- Object
- Base
- BaseService
- Contrast::Agent::Protect::Rule::UnsafeFileUpload
- Defined in:
- lib/contrast/agent/protect/rule/unsafe_file_upload.rb
Overview
The Ruby implementation of the Protect Unsafe File Upload rule.
Constant Summary collapse
- NAME =
'unsafe-file-upload'- BLOCK_MESSAGE =
'Unsafe file upload rule triggered. Request blocked.'
Constants inherited from Base
Base::BLOCKING_MODES, Base::OFF, Base::POSTFILTER_MODES, Base::STACK_COLLECTION_RESULTS, Base::UNKNOWN_USER_INPUT
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from BaseService
#block_message, #infilter?, #postfilter
Methods inherited from Base
#append_to_activity, #build_attack_with_match, #build_attack_without_match, #enabled?, #excluded?, #infilter, #infilter?, #initialize, #postfilter, #prefilter, #stream_safe?
Methods included from Components::Interface
Constructor Details
This class inherits a constructor from Contrast::Agent::Protect::Rule::Base
Instance Method Details
#name ⇒ Object
15 16 17 |
# File 'lib/contrast/agent/protect/rule/unsafe_file_upload.rb', line 15 def name NAME end |