Sha256: 68ffb379eb4c33fab110509861c7ffc6f4b7cd77dcf3074e1f4dafa8e0b1cedf

Contents?: true

Size: 504 Bytes

Versions: 11

Compression:

Stored size: 504 Bytes

Contents

require 'spec_helper'
describe "The CVE-2013-1607 vulnerability" do
	before(:all) do
		@check = Dawn::Kb::CVE_2013_1607.new
		# @check.debug = true
	end
  it "is reported when a pdfkit gem version 0.5.2 is detected" do
    @check.dependencies = [{:name=>"pdfkit", :version=>"0.5.2"}]
    @check.vuln?.should   == true
  end
  it "is not reported when a pdfkit gem version 0.5.3 is detected" do
    @check.dependencies = [{:name=>"pdfkit", :version=>"0.5.3"}]
    @check.vuln?.should   == false
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
dawnscanner-1.6.1 spec/lib/kb/cve_2013_1607_spec.rb
dawnscanner-1.6.0 spec/lib/kb/cve_2013_1607_spec.rb
dawnscanner-1.5.2 spec/lib/kb/cve_2013_1607_spec.rb
dawnscanner-1.5.1 spec/lib/kb/cve_2013_1607_spec.rb
dawnscanner-1.5.0 spec/lib/kb/cve_2013_1607_spec.rb
dawnscanner-1.4.2 spec/lib/kb/cve_2013_1607_spec.rb
dawnscanner-1.4.1 spec/lib/kb/cve_2013_1607_spec.rb
dawnscanner-1.4.0 spec/lib/kb/cve_2013_1607_spec.rb
dawnscanner-1.3.5 spec/lib/kb/cve_2013_1607_spec.rb
dawnscanner-1.3.1 spec/lib/kb/cve_2013_1607_spec.rb
dawnscanner-1.3.0 spec/lib/kb/cve_2013_1607_spec.rb