class Dawn::Kb::CVE_2014_2525_a

Public Class Methods

new() click to toggle source
Calls superclass method Dawn::Kb::BasicCheck::new
# 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

Public Instance Methods

vuln?() click to toggle source
# 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