Sha256: 83f9adc6168a2b94faa18b29d43a16db00ea79eea54152cb28e628f468043b4c

Contents?: true

Size: 1.14 KB

Versions: 11

Compression:

Stored size: 1.14 KB

Contents

require 'spec_helper'
describe "The CVE-2011-2930 vulnerability" do
  before(:all) do
    @check = Dawn::Kb::CVE_2011_2930.new
    # @check.debug = true
  end
  it "fires when vulnerable rails version is used (2.3.12)" do
    @check.dependencies = [{:name=>"rails", :version=>'2.3.12'}]
    @check.vuln?.should   == true
  end
  it "fires when vulnerable rails version is used (3.0.9)" do
    @check.dependencies = [{:name=>"rails", :version=>'3.0.9'}]
    @check.vuln?.should   == true
  end
  it "fires when vulnerable rails version is used (3.1.0)" do
    @check.dependencies = [{:name=>"rails", :version=>'3.1.0'}]
    @check.vuln?.should   == true
  end
  it "doesn't fire when safe rails version is used (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 is used (3.0.10)" do
    @check.dependencies = [{:name=>"rails", :version=>'3.0.10'}]
    @check.vuln?.should   == false
  end
  it "doesn't fire when safe rails version is used (3.1.1)" do
    @check.dependencies = [{:name=>"rails", :version=>'3.1.1'}]
    @check.vuln?.should   == false
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

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