Sha256: 63f2af710adb88ec3f6ec6162f675d35b6ce573416fb14a0ebe24eb598eabe3f

Contents?: true

Size: 667 Bytes

Versions: 8

Compression:

Stored size: 667 Bytes

Contents

require 'spec_helper'
describe "The CVE-2012-2139 vulnerability" do
	before(:all) do
		@check = Dawn::Kb::CVE_2012_2139.new
		# @check.debug = true
	end
  it "is reported when mail_gem version 2.4.3 is used" do
    @check.dependencies = [{:name=>"mail_gem", :version=>"2.4.3"}]
    expect(@check.vuln?).to eq(true)
  end
  it "is reported when mail_gem version 2.3.3 is used" do
    @check.dependencies = [{:name=>"mail_gem", :version=>"2.3.3"}]
    expect(@check.vuln?).to eq(true)
  end

  it "is not reported when mail_gem version 2.4.4 is used" do
    @check.dependencies = [{:name=>"mail_gem", :version=>"2.4.4"}]
    expect(@check.vuln?).to eq(false)
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
dawnscanner-1.6.9 spec/lib/kb/cve_2012_2139_spec.rb
dawnscanner-1.6.8 spec/lib/kb/cve_2012_2139_spec.rb
dawnscanner-1.6.7 spec/lib/kb/cve_2012_2139_spec.rb
dawnscanner-1.6.6 spec/lib/kb/cve_2012_2139_spec.rb
dawnscanner-1.6.5 spec/lib/kb/cve_2012_2139_spec.rb
dawnscanner-1.6.4 spec/lib/kb/cve_2012_2139_spec.rb
dawnscanner-1.6.3 spec/lib/kb/cve_2012_2139_spec.rb
dawnscanner-1.6.2 spec/lib/kb/cve_2012_2139_spec.rb