Sha256: bb19c37197d84797f830b2b0fe794078ec0e0abdb341135bf217317ac753d12f

Contents?: true

Size: 1.39 KB

Versions: 7

Compression:

Stored size: 1.39 KB

Contents

module Dawn
		module Kb
			# Automatically created with rake on 2015-12-02
			class CVE_2015_4020
				# Include the testing skeleton for this CVE
				# include PatternMatchCheck
				# include DependencyCheck
				# include RubyVersionCheck
        include GemCheck

				def initialize
          title="RubyGems remote_fetcher.rb api_endpoint() Function Missing SRV Record Hostname Validation Request Hijacking"
          message = "RubyGems 2.0.x before 2.0.17, 2.2.x before 2.2.5, and 2.4.x before 2.4.8 does not validate the hostname when fetching gems or making API request, which allows remote attackers to redirect requests to arbitrary domains via a crafted DNS SRV record with a domain that is suffixed with the original domain name, aka a 'DNS hijack attack.'"
          super({
            :title=>title,
            :name=> "CVE-2015-4020",
            :cve=>"2015-4020",
            :osvdb=>"122162",
            :cvss=>"AV:N/AC:M/Au:N/C:N/I:P/A:N",
            :release_date => Date.new(2015, 8, 25),
            :cwe=>"",
            :owasp=>"A9",
            :applies=>["rails", "sinatra", "padrino"],
            :kind=>Dawn::KnowledgeBase::GEM_CHECK,
            :message=>message,
            :mitigation=>"Please upgrade redcarpet gem to version 3.2.3 or later.",
            :aux_links=>[""]
           })

          self.safe_versions = [{:version=>['2.0.17', '2.2.5', '2.4.8']}]
				end
			end
		end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
dawnscanner-1.6.3 lib/dawn/kb/cve_2015_4020.rb
dawnscanner-1.6.2 lib/dawn/kb/cve_2015_4020.rb
dawnscanner-1.6.1 lib/dawn/kb/cve_2015_4020.rb
dawnscanner-1.6.0 lib/dawn/kb/cve_2015_4020.rb
dawnscanner-1.5.2 lib/dawn/kb/cve_2015_4020.rb
dawnscanner-1.5.1 lib/dawn/kb/cve_2015_4020.rb
dawnscanner-1.5.0 lib/dawn/kb/cve_2015_4020.rb