Sha256: 42d353ac6d0c504d0dd717ee4b63a251f7145e89e8c2a9e14a6e30fb8881e9ba

Contents?: true

Size: 859 Bytes

Versions: 9

Compression:

Stored size: 859 Bytes

Contents

require 'spec_helper'
describe "The CVE-2014-0080 vulnerability" do
	before(:all) do
		@check = Codesake::Dawn::Kb::CVE_2014_0080.new
		# @check.debug = true
	end
  it "affects version 4.0.0" do
    @check.dependencies = [{:name=>"rails", :version=>'4.0.0'}]
    @check.vuln?.should be_true
  end
  it "affects version 4.0.2" do
    @check.dependencies = [{:name=>"rails", :version=>'4.0.2'}]
    @check.vuln?.should be_true
  end
  it "affects version 4.0.1" do
    @check.dependencies = [{:name=>"rails", :version=>'4.0.1'}]
    @check.vuln?.should be_true
  end
  it "affects version 4.1.0.beta1" do
    @check.dependencies = [{:name=>"rails", :version=>'4.1.0.beta1'}]
    @check.vuln?.should be_true
  end

  it "doesn't affect version 4.0.3" do 
    @check.dependencies = [{:name=>"rails", :version=>'4.0.3'}]
    @check.vuln?.should be_false
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

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