Sha256: eca0bbe135279c71ff82357ef30f9e233970f5a2b24557657943ba6bb7113066

Contents?: true

Size: 1.13 KB

Versions: 8

Compression:

Stored size: 1.13 KB

Contents

require 'spec_helper'
describe "The CVE-2015-8242 vulnerability" do
	before(:all) do
		@check = Dawn::Kb::CVE_2015_8242.new
		# @check.debug = true
	end
	it "is reported when the vulnerable gem is detected" do
    @check.dependencies = [{:name=>"nokogiri", :version=>"1.6.5"}]
		expect(@check.vuln?).to   eq(true)
	end
	it "is reported when the vulnerable gem is detected" do
    @check.dependencies = [{:name=>"nokogiri", :version=>"1.6.0"}]
		expect(@check.vuln?).to   eq(true)
	end
	it "is reported when the vulnerable gem is detected" do
    @check.dependencies = [{:name=>"nokogiri", :version=>"1.6.7"}]
		expect(@check.vuln?).to   eq(true)
	end
	it "is not reported when a fixed release is detected" do
    @check.dependencies = [{:name=>"nokogiri", :version=>"1.6.7.1"}]
		expect(@check.vuln?).to   eq(false)
	end
	it "is not reported when a fixed release is detected" do
    @check.dependencies = [{:name=>"nokogiri", :version=>"1.5.6"}]
		expect(@check.vuln?).to   eq(false)
	end
	it "is not reported when a fixed release is detected" do
    @check.dependencies = [{:name=>"nokogiri", :version=>"1.4.6"}]
		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_2015_8242_spec.rb
dawnscanner-1.6.8 spec/lib/kb/cve_2015_8242_spec.rb
dawnscanner-1.6.7 spec/lib/kb/cve_2015_8242_spec.rb
dawnscanner-1.6.6 spec/lib/kb/cve_2015_8242_spec.rb
dawnscanner-1.6.5 spec/lib/kb/cve_2015_8242_spec.rb
dawnscanner-1.6.4 spec/lib/kb/cve_2015_8242_spec.rb
dawnscanner-1.6.3 spec/lib/kb/cve_2015_8242_spec.rb
dawnscanner-1.6.2 spec/lib/kb/cve_2015_8242_spec.rb