Sha256: dcb66429691f6bfff9f6eb89b51c6f2e67075de0127feae5ed9a013851091911

Contents?: true

Size: 843 Bytes

Versions: 6

Compression:

Stored size: 843 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
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
dawnscanner-1.4.2 spec/lib/kb/cve_2014_3483_spec.rb
dawnscanner-1.4.1 spec/lib/kb/cve_2014_3483_spec.rb
dawnscanner-1.4.0 spec/lib/kb/cve_2014_3483_spec.rb
dawnscanner-1.3.5 spec/lib/kb/cve_2014_3483_spec.rb
dawnscanner-1.3.1 spec/lib/kb/cve_2014_3483_spec.rb
dawnscanner-1.3.0 spec/lib/kb/cve_2014_3483_spec.rb