Sha256: 2b38d0feed5aa54dd5ecfb04ab81815371ceee8e1de82023ad63076413a13f62

Contents?: true

Size: 620 Bytes

Versions: 8

Compression:

Stored size: 620 Bytes

Contents

require 'spec_helper'
describe "The CVE-2013-7086 vulnerability" do
	before(:all) do
		@check = Dawn::Kb::CVE_2013_7086.new
		# @check.debug = true
	end
	it "is detected for gem 1.0.5.3" do
    @check.dependencies = [{:name=>"webbynode", :version=>'1.0.5.3'}]
    expect(@check.vuln?).to  eq(true)
  end

  it "is detected for gem 1.0.4.3" do
    @check.dependencies = [{:name=>"webbynode", :version=>'1.0.4.3'}]
    expect(@check.vuln?).to  eq(true)
  end

  it "is not detected for gem 1.0.5.4" do
    @check.dependencies = [{:name=>"webbynode", :version=>'1.0.5.4'}]
    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_7086_spec.rb
dawnscanner-1.6.8 spec/lib/kb/cve_2013_7086_spec.rb
dawnscanner-1.6.7 spec/lib/kb/cve_2013_7086_spec.rb
dawnscanner-1.6.6 spec/lib/kb/cve_2013_7086_spec.rb
dawnscanner-1.6.5 spec/lib/kb/cve_2013_7086_spec.rb
dawnscanner-1.6.4 spec/lib/kb/cve_2013_7086_spec.rb
dawnscanner-1.6.3 spec/lib/kb/cve_2013_7086_spec.rb
dawnscanner-1.6.2 spec/lib/kb/cve_2013_7086_spec.rb