Class: Dawn::Kb::OSVDB_132234
- Inherits:
-
Object
- Object
- Dawn::Kb::OSVDB_132234
- Includes:
- DependencyCheck
- Defined in:
- lib/dawn/kb/osvdb_132234.rb
Overview
Automatically created with rake on 2016-10-02
Constant Summary
Constants included from BasicCheck
Instance Attribute Summary
Attributes included from DependencyCheck
#aux_mitigation_gem, #dependencies, #not_affected, #safe_dependencies, #save_major, #save_minor
Attributes included from BasicCheck
#applies, #aux_links, #check_family, #cve, #cvss, #cwe, #debug, #evidences, #fixes_version, #kind, #message, #mitigated, #name, #osvdb, #owasp, #priority, #release_date, #remediation, #ruby_version, #ruby_vulnerable_versions, #severity, #status, #target_version, #title
Instance Method Summary collapse
-
#initialize ⇒ OSVDB_132234
constructor
include RubyVersionCheck.
Methods included from DependencyCheck
Methods included from BasicCheck
#applies_to?, #cve_link, #cvss_score, families, #family, #family=, #lint, #mitigated?, #nvd_link, #osvdb_link, #rubysec_advisories_link
Methods included from Utils
#__debug_me_and_return, #debug_me, #debug_me_and_return_false, #debug_me_and_return_true
Constructor Details
#initialize ⇒ OSVDB_132234
include RubyVersionCheck
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/dawn/kb/osvdb_132234.rb', line 10 def initialize title = "rack-attack Gem for Ruby missing normalization before request path processing" = "When using rack-attack with a rails app, developers expect the request path to be normalized. In particular, trailing slashes are stripped so a request path \"/login/\" becomes \"/login\" by the time you're in ActionController. Since Rack::Attack runs before ActionDispatch, the request path is not yet normalized. This can cause throttles and blacklists to not work as expected. E.g., a throttle: throttle('logins', ...) {|req| req.path == \"/login\" } would not match a request to '/login/', though Rails would route '/login/' to the same '/login' action." super({ :title=>title, :name=> "OSVDB_132234", :cve=>"", :osvdb=>"132234", :cvss=>"", :release_date => Date.new(2015, 12, 15), :cwe=>"", :owasp=>"A9", :applies=>["rails"], :kind=>Dawn::KnowledgeBase::DEPENDENCY_CHECK, :message=>, :mitigation=>"Please upgrade rack-attack gem to version 4.3.1 or later.", :aux_links=>['https://github.com/kickstarter/rack-attack/releases/tag/v4.3.1'] }) self.safe_dependencies = [{:name=>"rack-attack", :version=>['4.3.1']}] end |