Class/Module Index [+]

Quicksearch

Brakeman::CheckFilterSkipping

Check for filter skipping vulnerability groups.google.com/group/rubyonrails-security/browse_thread/thread/3420ac71aed312d6

Public Instance Methods

run_check() click to toggle source
# File lib/brakeman/checks/check_filter_skipping.rb, line 10
def run_check
  if version_between?('3.0.0', '3.0.9') and uses_arbitrary_actions?

    warn :warning_type => "Default Routes",
      :message => "Versions before 3.0.10 have a vulnerability which allows filters to be bypassed: CVE-2011-2929",
      :confidence => CONFIDENCE[:high],
      :file => gemfile_or_environment,
      :link_path => "https://groups.google.com/d/topic/rubyonrails-security/NCCsca7TEtY/discussion"
  end
end
uses_arbitrary_actions?() click to toggle source
# File lib/brakeman/checks/check_filter_skipping.rb, line 21
def uses_arbitrary_actions?
  tracker.routes.each do |name, actions|
    if actions == :allow_all_actions
      return true
    end
  end

  false
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.