Sha256: 69aadb70dfe5ed3b183c48b8fefd28380d1ed3377487e6c3a8632365b976e6f6

Contents?: true

Size: 832 Bytes

Versions: 16

Compression:

Stored size: 832 Bytes

Contents

require 'spec_helper'
describe "The CVE-2012-2671 vulnerability" do
	before(:all) do
		@check = Codesake::Dawn::Kb::CVE_2012_2671.new
		# @check.debug = true
	end
  it "is reported when ruby-cache version 0.5 is used" do
    @check.dependencies = [{:name=>"rack-cache", :version=>'0.5'}]
    @check.vuln?.should be_true
  end
  it "is reported when ruby-cache version 0.8 is used" do
    @check.dependencies = [{:name=>"rack-cache", :version=>'0.8'}]
    @check.vuln?.should be_true
  end
  it "is reported when ruby-cache version 1.1.1 is used" do
    @check.dependencies = [{:name=>"rack-cache", :version=>'1.1.1'}]
    @check.vuln?.should be_true
  end
  it "is not reported when ruby-cache version 1.1.2 is used" do
    @check.dependencies = [{:name=>"rack-cache", :version=>'1.1.2'}]
    @check.vuln?.should be_false
  end
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
dawnscanner-1.2.99 spec/lib/kb/cve_2012_2671_spec.rb
codesake-dawn-1.2.99 spec/lib/kb/cve_2012_2671_spec.rb
codesake-dawn-1.2.0 spec/lib/kb/cve_2012_2671_spec.rb
codesake-dawn-1.1.3 spec/lib/kb/cve_2012_2671_spec.rb
codesake-dawn-1.1.2 spec/lib/kb/cve_2012_2671_spec.rb
codesake-dawn-1.1.1 spec/lib/kb/cve_2012_2671_spec.rb
codesake-dawn-1.1.0 spec/lib/kb/cve_2012_2671_spec.rb
codesake-dawn-1.1.0.rc2 spec/lib/kb/cve_2012_2671_spec.rb
codesake-dawn-1.1.0.rc1 spec/lib/kb/cve_2012_2671_spec.rb
codesake-dawn-1.0.6 spec/lib/kb/cve_2012_2671_spec.rb
codesake-dawn-1.0.5 spec/lib/kb/cve_2012_2671_spec.rb
codesake-dawn-1.0.4 spec/lib/kb/cve_2012_2671_spec.rb
codesake-dawn-1.0.3 spec/lib/kb/cve_2012_2671_spec.rb
codesake-dawn-1.0.2 spec/lib/kb/cve_2012_2671_spec.rb
codesake-dawn-1.0.1 spec/lib/kb/cve_2012_2671_spec.rb
codesake-dawn-1.0.0 spec/lib/kb/cve_2012_2671_spec.rb