Sha256: ef03d136cb523d84af9f490e8fa6bef4939e419d2346bd114538885c51eda489

Contents?: true

Size: 1017 Bytes

Versions: 5

Compression:

Stored size: 1017 Bytes

Contents

require 'spec_helper'
describe "The CVE-2014-3483 vulnerability" do
	before(:all) do
		@check = Dawn::Kb::CVE_2014_3483.new
		@check.debug = true
	end
  it "is reported when a rails gem version 4.0.6 is detected" do
    @check.dependencies = [{:name=>"rails", :version=>"4.0.6"}]
    @check.vuln?.should   == true
  end
  it "is reported when a rails gem version 4.1.2 is detected" do
    @check.dependencies = [{:name=>"rails", :version=>"4.1.2"}]
    @check.vuln?.should   == true
  end
  it "is not reported when a rails gem version 4.0.7 is detected" do
    @check.dependencies = [{:name=>"rails", :version=>"4.0.7"}]
    @check.vuln?.should   == false
  end
  it "is not reported when a rails gem version 4.1.3 is detected" do
    @check.dependencies = [{:name=>"rails", :version=>"4.1.3"}]
    @check.vuln?.should   == false
  end
  it "is not reported when a rails gem version 3.2.21 is detected" do
    @check.dependencies = [{:name=>"rails", :version=>"3.2.21"}]
    @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_2014_3483_spec.rb
dawnscanner-1.6.0 spec/lib/kb/cve_2014_3483_spec.rb
dawnscanner-1.5.2 spec/lib/kb/cve_2014_3483_spec.rb
dawnscanner-1.5.1 spec/lib/kb/cve_2014_3483_spec.rb
dawnscanner-1.5.0 spec/lib/kb/cve_2014_3483_spec.rb