Sha256: ddbf56beb42f4d008e9324c6a9807d7d69aade835cb66c36f0d2909cdda86d92

Contents?: true

Size: 984 Bytes

Versions: 7

Compression:

Stored size: 984 Bytes

Contents

require 'spec_helper'
describe "The CVE-2015-3225 vulnerability" do
	before(:all) do
		@check = Dawn::Kb::CVE_2015_3225.new
		# @check.debug = true
	end
  it "is reported when vulnerable rack gem is used (1.5.3)" do
    @check.dependencies = [{:name=>"rack", :version=>'1.5.3'}]
    @check.vuln?.should   == true
  end
  it "is reported when vulnerable rack gem is used (1.6.1)" do
    @check.dependencies = [{:name=>"rack", :version=>'1.6.1'}]
    @check.vuln?.should   == true
  end
  it "is not reported when safe rack gem is used (1.5.4)" do
    @check.dependencies = [{:name=>"rack", :version=>'1.5.4'}]
    @check.vuln?.should   == false
  end
  it "is not reported when safe rack gem is used (1.5.5)" do
    @check.dependencies = [{:name=>"rack", :version=>'1.5.5'}]
    @check.vuln?.should   == false
  end
  it "is not reported when safe rack gem is used (1.6.3)" do
    @check.dependencies = [{:name=>"rack", :version=>'1.6.3'}]
    @check.vuln?.should   == false
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
dawnscanner-1.6.1 spec/lib/kb/cve_2015_3225_spec.rb
dawnscanner-1.6.0 spec/lib/kb/cve_2015_3225_spec.rb
dawnscanner-1.5.2 spec/lib/kb/cve_2015_3225_spec.rb
dawnscanner-1.5.1 spec/lib/kb/cve_2015_3225_spec.rb
dawnscanner-1.5.0 spec/lib/kb/cve_2015_3225_spec.rb
dawnscanner-1.4.2 spec/lib/kb/cve_2015_3225_spec.rb
dawnscanner-1.4.1 spec/lib/kb/cve_2015_3225_spec.rb