Class: Codesake::Dawn::Kb::CVE_2009_4078

Inherits:
Object
  • Object
show all
Includes:
DependencyCheck
Defined in:
lib/codesake/dawn/kb/cve_2009_4078.rb

Overview

Automatically created with rake on 2014-01-09

Constant Summary

Constants included from BasicCheck

BasicCheck::ALLOWED_FAMILIES

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

Instance Method Summary collapse

Methods included from DependencyCheck

#vuln?

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

#initializeCVE_2009_4078

Returns a new instance of CVE_2009_4078.



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/codesake/dawn/kb/cve_2009_4078.rb', line 8

def initialize
      message = "Multiple cross-site scripting (XSS) vulnerabilities in Redmine 0.8.5 and earlier allow remote attackers to inject arbitrary web script or HTML via unspecified vectors."
       super({
        :name=>"CVE-2009-4078",
        :cvss=>"AV:N/AC:M/Au:N/C:N/I:P/A:N", 
        :release_date => Date.new(2009, 11, 25),
        :cwe=>"79",
        :owasp=>"A3", 
        :applies=>["rails", "sinatra", "padrino"],
        :kind=>Codesake::Dawn::KnowledgeBase::DEPENDENCY_CHECK,
        :message=>message,
        :mitigation=>"Please upgrade redmine version at least to 0.8.6 or higher. As a general rule, using the latest stable rails version is recommended.",
        :aux_links=>["http://www.redmine.org/wiki/redmine/Changelog#v086-2009-11-04"]
      })

      self.safe_dependencies = [
        {:name=>"redmine", :version=>['0.8.5', '0.7.999', '0.6.999', '0.5.999', '0.4.999', '0.3.999', '0.2.999', '0.1.999']}
      ]

end