Class: Spektr::Checks::HeaderDos
- Defined in:
- lib/spektr/checks/header_dos.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(app, target) ⇒ HeaderDos
constructor
A new instance of HeaderDos.
- #run ⇒ Object
Methods inherited from Base
#app_version_between?, #dupe?, #model_attribute?, #should_run?, #target_affected?, #user_input?, #version_affected, #version_between?, #warn!
Constructor Details
#initialize(app, target) ⇒ HeaderDos
Returns a new instance of HeaderDos.
5 6 7 8 9 10 |
# File 'lib/spektr/checks/header_dos.rb', line 5 def initialize(app, target) super @name = "HTTP MIME type header DoS (CVE-2013-6414)" @type = "Denial of Service" @targets = ["Spektr::Targets::Base"] end |
Instance Method Details
#run ⇒ Object
12 13 14 15 16 17 |
# File 'lib/spektr/checks/header_dos.rb', line 12 def run return unless super if app_version_between?("3.0.0", "3.2.15") warn! "root", self, nil, "CVE_2013_6414" end end |