Sha256: c4b3347a5852860432a57a0309b6915e856972edbaa7c74c4d8d7201d0c01916

Contents?: true

Size: 548 Bytes

Versions: 5

Compression:

Stored size: 548 Bytes

Contents

require 'spec_helper'
describe "The CVE-2014-2538 vulnerability" do
	before(:all) do
		@check = Dawn::Kb::CVE_2014_2538.new
		# @check.debug = true
	end
  it "is reported when rack-ssl vulnerable version it has been found (1.3.2)" do
    @check.dependencies = [{:name=>'rack-ssl', :version=>'1.3.2'}]
    expect(@check.vuln?).to   eq(true)
  end
  it "is reported when rack-ssl not vulnerable version it has been found (1.3.4)" do
    @check.dependencies = [{:name=>'rack-ssl', :version=>'1.3.4'}]
    expect(@check.vuln?).to   eq(false)
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
dawnscanner-1.6.9 spec/lib/kb/cve_2014_2538_spec.rb
dawnscanner-1.6.8 spec/lib/kb/cve_2014_2538_spec.rb
dawnscanner-1.6.7 spec/lib/kb/cve_2014_2538_spec.rb
dawnscanner-1.6.6 spec/lib/kb/cve_2014_2538_spec.rb
dawnscanner-1.6.5 spec/lib/kb/cve_2014_2538_spec.rb