Class: Dawn::Kb::CVE_2014_2525_a

Inherits:
Object
  • Object
show all
Includes:
BasicCheck
Defined in:
lib/dawn/kb/cve_2014_2525.rb

Constant Summary

Constants included from BasicCheck

BasicCheck::ALLOWED_FAMILIES

Instance Attribute Summary

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

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_2014_2525_a

Returns a new instance of CVE_2014_2525_a.



6
7
8
9
10
11
12
# File 'lib/dawn/kb/cve_2014_2525.rb', line 6

def initialize
  message = "When relying on system wide libyaml, this must be > 0.1.5"
  super({
    :name=>"CVE-2014-2525-a",
    :kind=>Dawn::KnowledgeBase::CUSTOM_CHECK,
  })
end

Instance Method Details

#vuln?Boolean

Returns:

  • (Boolean)


13
14
15
16
17
18
# File 'lib/dawn/kb/cve_2014_2525.rb', line 13

def vuln?
  require 'yaml'
  lyv = Psych.libyaml_version.join(".")
  c = Dawn::Kb::VersionCheck.new
  return c.is_vulnerable_version?('0.1.6', lyv)
end