Sha256: 3be7c3246a41dda7b9b882236cf5b3701a94e201e26249ec301a5f85a6dfda2c

Contents?: true

Size: 933 Bytes

Versions: 16

Compression:

Stored size: 933 Bytes

Contents

require 'spec_helper'

describe "The CVE-2011-3009 vulnerability" do
	before(:all) do
		@check = Codesake::Dawn::Kb::CVE_2011_3009.new
		# @check.debug = true
	end
  it "fires if ruby version is vulnerable (1.8.6-p111)" do
    @check.detected_ruby = {:engine=>'ruby', :version=>"1.8.6", :patchlevel=>"p111"}
    @check.vuln?.should    be_true
  end
  it "fires if ruby version is vulnerable (1.8.5-p111)" do
    @check.detected_ruby = {:engine=>'ruby', :version=>"1.8.5", :patchlevel=>"p111"}
    @check.vuln?.should    be_true
  end
  it "doesn't fire if ruby version is not vulnerable (1.8.6-p112)" do
    @check.detected_ruby = {:engine=>'ruby', :version=>"1.8.6", :patchlevel=>"p112"}
    @check.vuln?.should    be_false
  end
  it "doesn't fire if ruby version is not vulnerable (1.9.2-p112)" do
    @check.detected_ruby = {:engine=>'ruby', :version=>"1.9.2", :patchlevel=>"p112"}
    @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_2011_3009_spec.rb
codesake-dawn-1.2.99 spec/lib/kb/cve_2011_3009_spec.rb
codesake-dawn-1.2.0 spec/lib/kb/cve_2011_3009_spec.rb
codesake-dawn-1.1.3 spec/lib/kb/cve_2011_3009_spec.rb
codesake-dawn-1.1.2 spec/lib/kb/cve_2011_3009_spec.rb
codesake-dawn-1.1.1 spec/lib/kb/cve_2011_3009_spec.rb
codesake-dawn-1.1.0 spec/lib/kb/cve_2011_3009_spec.rb
codesake-dawn-1.1.0.rc2 spec/lib/kb/cve_2011_3009_spec.rb
codesake-dawn-1.1.0.rc1 spec/lib/kb/cve_2011_3009_spec.rb
codesake-dawn-1.0.6 spec/lib/kb/cve_2011_3009_spec.rb
codesake-dawn-1.0.5 spec/lib/kb/cve_2011_3009_spec.rb
codesake-dawn-1.0.4 spec/lib/kb/cve_2011_3009_spec.rb
codesake-dawn-1.0.3 spec/lib/kb/cve_2011_3009_spec.rb
codesake-dawn-1.0.2 spec/lib/kb/cve_2011_3009_spec.rb
codesake-dawn-1.0.1 spec/lib/kb/cve_2011_3009_spec.rb
codesake-dawn-1.0.0 spec/lib/kb/cve_2011_3009_spec.rb