Class: Dawn::Kb::CVE_2011_0188

Inherits:
Object
  • Object
show all
Includes:
ComboCheck
Defined in:
lib/dawn/kb/cve_2011_0188.rb

Constant Summary

Constants included from BasicCheck

BasicCheck::ALLOWED_FAMILIES

Instance Attribute Summary

Attributes included from ComboCheck

#checks, #options, #vulnerable_checks

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 ComboCheck

#dump_status, find_vulnerable_checks_by_class, #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_2011_0188

Returns a new instance of CVE_2011_0188.



47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# File 'lib/dawn/kb/cve_2011_0188.rb', line 47

def initialize
      message = "The VpMemAlloc function in bigdecimal.c in the BigDecimal class in Ruby 1.9.2-p136 and earlier, as used on Apple Mac OS X before 10.6.7 and other platforms, does not properly allocate memory, which allows context-dependent attackers to execute arbitrary code or cause a denial of service (application crash) via vectors involving creation of a large BigDecimal value within a 64-bit process, related to an \"integer truncation issue.\""

       super({
        :name=>"CVE-2011-0188",
        :cvss=>"AV:N/AC:M/Au:N/C:P/I:P/A:P",
        :release_date => Date.new(2011, 3, 23),
        :cwe=>"189",
        :owasp=>"A9", 
        :applies=>["sinatra", "padrino", "rails"],
        :kind=>Dawn::KnowledgeBase::COMBO_CHECK,
        :message=>message,
        :mitigation=>"Please upgrade your ruby interpreter",
        :aux_links=>["https://bugzilla.redhat.com/show_bug.cgi?id=682332"],
        :checks=>[CVE_2011_0188_a.new, CVE_2011_0188_b.new]
      })

end