Sha256: db8be366afc0b60aaf4053854d2b8bc4f50312e843b07065a5325ad921958d5e

Contents?: true

Size: 548 Bytes

Versions: 3

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.9)" do
    @check.dependencies = [{:name=>'rack-ssl', :version=>'1.3.9'}]
    expect(@check.vuln?).to   eq(true)
  end
  it "is reported when rack-ssl not vulnerable version it has been found (1.4.0)" do
    @check.dependencies = [{:name=>'rack-ssl', :version=>'1.4.0'}]
    expect(@check.vuln?).to   eq(false)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dawnscanner-1.6.4 spec/lib/kb/cve_2014_2538_spec.rb
dawnscanner-1.6.3 spec/lib/kb/cve_2014_2538_spec.rb
dawnscanner-1.6.2 spec/lib/kb/cve_2014_2538_spec.rb