Sha256: e7350814a1156bc1931731683a9eb3dc5d38e05febe6d6cd4c6cb5073208386b

Contents?: true

Size: 1 KB

Versions: 6

Compression:

Stored size: 1 KB

Contents

require 'spec_helper'
describe "The CVE-2014-0080 vulnerability" do
	before(:all) do
		@check = 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'}]
    expect(@check.vuln?).to eq(true)
  end
  it "affects version 4.0.2" do
    @check.dependencies = [{:name=>"rails", :version=>'4.0.2'}]
    expect(@check.vuln?).to eq(true)
  end
  it "affects version 4.0.1" do
    @check.dependencies = [{:name=>"rails", :version=>'4.0.1'}]
    expect(@check.vuln?).to eq(true)
  end
  it "affects version 4.1.0.beta1" do
    @check.dependencies = [{:name=>"rails", :version=>'4.1.0.beta1'}]
    expect(@check.vuln?).to eq(true)
  end

  it "doesn't affect version 4.0.3" do 
    @check.dependencies = [{:name=>"rails", :version=>'4.0.3'}]
    expect(@check.vuln?).to eq(false)
  end
  it "doesn't affect version 3.2.22" do 
    @check.dependencies = [{:name=>"rails", :version=>'3.2.22'}]
    expect(@check.vuln?).to eq(false)
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

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