Sha256: c8c02e6c622b0ff2b0aee9d94cfd05f000103c81647b028c9e57d788e9e2dea6

Contents?: true

Size: 701 Bytes

Versions: 5

Compression:

Stored size: 701 Bytes

Contents

require 'spec_helper'
describe "The CVE-2015-4020 vulnerability" do
	before(:all) do
		@check = Dawn::Kb::CVE_2015_4020.new
		# @check.debug = true
	end
  it "is reported when the vulnerable rubygem is detected" do
    @check.my_gem_version="2.4.3"
    @check.vuln?.should   == true
  end
  it "is reported when the vulnerable rubygem is detected" do
    @check.my_gem_version="2.2.4"
    @check.vuln?.should   == true
  end
  it "is reported when the vulnerable rubygem is detected" do
    @check.my_gem_version="2.0.16"
    @check.vuln?.should   == true
  end
  it "is not reported when a fixed release is detected" do
    @check.my_gem_version="2.4.9"
    @check.vuln?.should   == false
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
dawnscanner-1.6.1 spec/lib/kb/cve_2015_4020_spec.rb
dawnscanner-1.6.0 spec/lib/kb/cve_2015_4020_spec.rb
dawnscanner-1.5.2 spec/lib/kb/cve_2015_4020_spec.rb
dawnscanner-1.5.1 spec/lib/kb/cve_2015_4020_spec.rb
dawnscanner-1.5.0 spec/lib/kb/cve_2015_4020_spec.rb