Sha256: 19d13534f96bff7ee2ed0cf93d9f39f316ea42f40fa88a0c6566c8a08754ac07

Contents?: true

Size: 518 Bytes

Versions: 8

Compression:

Stored size: 518 Bytes

Contents

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

  it "is reported when vulnerable raven-ruby gem is used (0.12.1)" do
    @check.dependencies = [{:name=>"raven-ruby", :version=>'0.12.1'}]
    @check.vuln?.should   == true
  end
  it "is not reported when safe raven-ruby gem is used (0.12.2)" do
    @check.dependencies = [{:name=>"raven-ruby", :version=>'0.12.2'}]
    @check.vuln?.should   == false
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
dawnscanner-1.6.1 spec/lib/kb/cve_2014_9490_spec.rb
dawnscanner-1.6.0 spec/lib/kb/cve_2014_9490_spec.rb
dawnscanner-1.5.2 spec/lib/kb/cve_2014_9490_spec.rb
dawnscanner-1.5.1 spec/lib/kb/cve_2014_9490_spec.rb
dawnscanner-1.5.0 spec/lib/kb/cve_2014_9490_spec.rb
dawnscanner-1.4.2 spec/lib/kb/cve_2014_9490_spec.rb
dawnscanner-1.4.1 spec/lib/kb/cve_2014_9490_spec.rb
dawnscanner-1.4.0 spec/lib/kb/cve_2014_9490_spec.rb