Sha256: e6627189ba8c83a9584c23528cf5ee5e2a0b2edae57fb4e45e61965dc17a4a0c

Contents?: true

Size: 932 Bytes

Versions: 8

Compression:

Stored size: 932 Bytes

Contents

require 'spec_helper'
describe "The CVE-2013-5671 vulnerability" do
	before(:all) do
		@check = Dawn::Kb::CVE_2013_5671.new
		# @check.debug = true
	end

  it "is reported when a fog-dragonfly gem version 0.8.2 is detected" do
    @check.dependencies = [{:name=>"fog-dragonfly", :version=>"0.8.2"}]
    expect(@check.vuln?).to   eq(true)
  end

  it "is reported when a fog-dragonfly gem version 0.8.0 is detected" do
    @check.dependencies = [{:name=>"fog-dragonfly", :version=>"0.8.0"}]
    expect(@check.vuln?).to   eq(true)
  end

  it "is reported when a fog-dragonfly gem version 0.7.5 is detected" do
    @check.dependencies = [{:name=>"fog-dragonfly", :version=>"0.7.5"}]
    expect(@check.vuln?).to   eq(true)
  end

  it "is not reported when a paratrooper-pingdom gem version 0.8.3 is detected" do
    @check.dependencies = [{:name=>"fog-dragonfly", :version=>"0.8.3"}]
    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_2013_5671_spec.rb
dawnscanner-1.6.8 spec/lib/kb/cve_2013_5671_spec.rb
dawnscanner-1.6.7 spec/lib/kb/cve_2013_5671_spec.rb
dawnscanner-1.6.6 spec/lib/kb/cve_2013_5671_spec.rb
dawnscanner-1.6.5 spec/lib/kb/cve_2013_5671_spec.rb
dawnscanner-1.6.4 spec/lib/kb/cve_2013_5671_spec.rb
dawnscanner-1.6.3 spec/lib/kb/cve_2013_5671_spec.rb
dawnscanner-1.6.2 spec/lib/kb/cve_2013_5671_spec.rb