Sha256: 20a511bffcb2c1bea10fdf9ab63d2ec89ac27e8f0bd097c0b556a525b1028a18

Contents?: true

Size: 1.36 KB

Versions: 7

Compression:

Stored size: 1.36 KB

Contents

require 'spec_helper'
describe "The CVE-2013-0334 vulnerability" do
	before(:all) do
		@check = Dawn::Kb::CVE_2013_0334.new
		# @check.debug = true
	end
  it "is not reported when bundler version 1.7.0 is used" do
    @check.dependencies = [{:name=>"bundler", :version=>'1.7.0'}]
    expect(@check.vuln?).to eq(false)
  end
  it "is not reported when bundler version 1.7.1 is used" do
    @check.dependencies = [{:name=>"bundler", :version=>'1.7.1'}]
    expect(@check.vuln?).to eq(false)
  end
  it "is not reported when bundler version 1.8.7 is used" do
    @check.dependencies = [{:name=>"bundler", :version=>'1.8.7'}]
    expect(@check.vuln?).to eq(false)
  end
  it "is not reported when bundler version 1.10.0.rc is used" do
    @check.dependencies = [{:name=>"bundler", :version=>'1.10.0.rc'}]
    expect(@check.vuln?).to eq(false)
  end
  it "is not reported when bundler version 1.12.5 is used" do
    @check.dependencies = [{:name=>"bundler", :version=>'1.12.5'}]
    expect(@check.vuln?).to eq(false)
  end
  it "fires when vulnerable bundler version it has been found (1.6.6)" do
    @check.dependencies = [{:name=>"bundler", :version=>'1.6.6'}]
    expect(@check.vuln?).to   eq(true)
  end
  it "fires when vulnerable bundler version it has been found (1.3.0)" do
    @check.dependencies = [{:name=>"bundler", :version=>'1.3.0'}]
    expect(@check.vuln?).to   eq(true)
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

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