Sha256: face9c5f5d51dbf4bb6191d1332ff69420c414edffaecea4a08922e568ae325d

Contents?: true

Size: 1.83 KB

Versions: 16

Compression:

Stored size: 1.83 KB

Contents

require 'spec_helper'
describe "The CVE-2011-4319 vulnerability" do
	before(:all) do
		@check = Codesake::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   be_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   be_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   be_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   be_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   be_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   be_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   be_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   be_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   be_false
  end
          # self.safe_dependencies = [{:name=>"rails", :version=>['2.3.13', '3.0.11', '3.1.2']}]
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
dawnscanner-1.2.99 spec/lib/kb/cve_2011_4319_spec.rb
codesake-dawn-1.2.99 spec/lib/kb/cve_2011_4319_spec.rb
codesake-dawn-1.2.0 spec/lib/kb/cve_2011_4319_spec.rb
codesake-dawn-1.1.3 spec/lib/kb/cve_2011_4319_spec.rb
codesake-dawn-1.1.2 spec/lib/kb/cve_2011_4319_spec.rb
codesake-dawn-1.1.1 spec/lib/kb/cve_2011_4319_spec.rb
codesake-dawn-1.1.0 spec/lib/kb/cve_2011_4319_spec.rb
codesake-dawn-1.1.0.rc2 spec/lib/kb/cve_2011_4319_spec.rb
codesake-dawn-1.1.0.rc1 spec/lib/kb/cve_2011_4319_spec.rb
codesake-dawn-1.0.6 spec/lib/kb/cve_2011_4319_spec.rb
codesake-dawn-1.0.5 spec/lib/kb/cve_2011_4319_spec.rb
codesake-dawn-1.0.4 spec/lib/kb/cve_2011_4319_spec.rb
codesake-dawn-1.0.3 spec/lib/kb/cve_2011_4319_spec.rb
codesake-dawn-1.0.2 spec/lib/kb/cve_2011_4319_spec.rb
codesake-dawn-1.0.1 spec/lib/kb/cve_2011_4319_spec.rb
codesake-dawn-1.0.0 spec/lib/kb/cve_2011_4319_spec.rb