Sha256: 0bf84ad412314573f6a6d9fa9c28526fb1c97d327281fd49edfbd8754452186b

Contents?: true

Size: 548 Bytes

Versions: 7

Compression:

Stored size: 548 Bytes

Contents

require 'spec_helper'
describe "The CVE-2014-2538 vulnerability" do
	before(:all) do
		@check = Codesake::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'}]
    @check.vuln?.should   be_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'}]
    @check.vuln?.should   be_false
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
dawnscanner-1.2.99 spec/lib/kb/cve_2014_2538_spec.rb
codesake-dawn-1.2.99 spec/lib/kb/cve_2014_2538_spec.rb
codesake-dawn-1.2.0 spec/lib/kb/cve_2014_2538_spec.rb
codesake-dawn-1.1.3 spec/lib/kb/cve_2014_2538_spec.rb
codesake-dawn-1.1.2 spec/lib/kb/cve_2014_2538_spec.rb
codesake-dawn-1.1.1 spec/lib/kb/cve_2014_2538_spec.rb
codesake-dawn-1.1.0 spec/lib/kb/cve_2014_2538_spec.rb