Sha256: a69078142adccff5427e6ae9b8957eef9231e3bb8319145fd219d7c7a66162d5

Contents?: true

Size: 1.82 KB

Versions: 11

Compression:

Stored size: 1.82 KB

Contents

require 'spec_helper'
describe "The CVE-2011-4319 vulnerability" do
	before(:all) do
		@check = Dawn::Kb::CVE_2011_4319.new
		# @check.debug = true
	end
  it "fires when vulnerable rails version it has been found (2.3.12)" do
    @check.dependencies = [{:name=>"rails", :version=>'2.3.12'}]
    @check.vuln?.should   == true
  end
  it "fires when vulnerable rails version it has been found (3.0.10)" do
    @check.dependencies = [{:name=>"rails", :version=>'3.0.10'}]
    @check.vuln?.should   == true
  end
  it "fires when vulnerable rails version it has been found (3.1.1)" do
    @check.dependencies = [{:name=>"rails", :version=>'3.0.10'}]
    @check.vuln?.should   == true
  end
  it "doesn't fire when safe rails version it has been found (2.3.13)" do
    @check.dependencies = [{:name=>"rails", :version=>'2.3.13'}]
    @check.vuln?.should   == false
  end
  it "doesn't fire when safe rails version it has been found (2.3.14)" do
    @check.dependencies = [{:name=>"rails", :version=>'2.3.14'}]
    @check.vuln?.should   == false
  end
  it "doesn't fire when safe rails version it has been found (3.0.11)" do
    @check.dependencies = [{:name=>"rails", :version=>'3.0.11'}]
    @check.vuln?.should   == false
  end
  it "doesn't fire when safe rails version it has been found (3.0.12)" do
    @check.dependencies = [{:name=>"rails", :version=>'3.0.12'}]
    @check.vuln?.should   == false
  end
  it "doesn't fire when safe rails version it has been found (3.1.2)" do
    @check.dependencies = [{:name=>"rails", :version=>'3.1.2'}]
    @check.vuln?.should   == false
  end
  it "doesn't fire when safe rails version it has been found (3.2.0)" do
    @check.dependencies = [{:name=>"rails", :version=>'3.2.0'}]
    @check.vuln?.should   == false
  end
          # self.safe_dependencies = [{:name=>"rails", :version=>['2.3.13', '3.0.11', '3.1.2']}]
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
dawnscanner-1.6.1 spec/lib/kb/cve_2011_4319_spec.rb
dawnscanner-1.6.0 spec/lib/kb/cve_2011_4319_spec.rb
dawnscanner-1.5.2 spec/lib/kb/cve_2011_4319_spec.rb
dawnscanner-1.5.1 spec/lib/kb/cve_2011_4319_spec.rb
dawnscanner-1.5.0 spec/lib/kb/cve_2011_4319_spec.rb
dawnscanner-1.4.2 spec/lib/kb/cve_2011_4319_spec.rb
dawnscanner-1.4.1 spec/lib/kb/cve_2011_4319_spec.rb
dawnscanner-1.4.0 spec/lib/kb/cve_2011_4319_spec.rb
dawnscanner-1.3.5 spec/lib/kb/cve_2011_4319_spec.rb
dawnscanner-1.3.1 spec/lib/kb/cve_2011_4319_spec.rb
dawnscanner-1.3.0 spec/lib/kb/cve_2011_4319_spec.rb