Sha256: f0e73428110549062a224b8c38391ba79b947a9f503a8374740f0dc2baf18a1a

Contents?: true

Size: 951 Bytes

Versions: 11

Compression:

Stored size: 951 Bytes

Contents

require 'spec_helper'

describe "The CVE-2013-6416 vulnerability" do
  before(:all) do 
    @check = Dawn::Kb::CVE_2013_6416.new
    # @check.debug = true
  end
  it "is detected if vulnerable version of rails rubygem is detected" do
    @check.dependencies=[{:name=>"rails", :version=>'4.0.1'}]
    @check.vuln?.should   == true
  end
  it "is ignored if rails version is 3.2.x" do 
    @check.dependencies=[{:name=>"rails", :version=>'3.2.16'}]
    @check.vuln?.should   == false
  end

  it "is ignored if rails version is 3.1.x" do 
    @check.dependencies=[{:name=>"rails", :version=>'3.1.16'}]
    @check.vuln?.should   == false
  end
  it "is ignored if rails version is 3.0.x" do 
    @check.dependencies=[{:name=>"rails", :version=>'3.0.16'}]
    @check.vuln?.should   == false
  end
  it "is ignored if rails version is 2.3.x" do 
    @check.dependencies=[{:name=>"rails", :version=>'2.3.16'}]
    @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_2013_6416_spec.rb
dawnscanner-1.6.0 spec/lib/kb/cve_2013_6416_spec.rb
dawnscanner-1.5.2 spec/lib/kb/cve_2013_6416_spec.rb
dawnscanner-1.5.1 spec/lib/kb/cve_2013_6416_spec.rb
dawnscanner-1.5.0 spec/lib/kb/cve_2013_6416_spec.rb
dawnscanner-1.4.2 spec/lib/kb/cve_2013_6416_spec.rb
dawnscanner-1.4.1 spec/lib/kb/cve_2013_6416_spec.rb
dawnscanner-1.4.0 spec/lib/kb/cve_2013_6416_spec.rb
dawnscanner-1.3.5 spec/lib/kb/cve_2013_6416_spec.rb
dawnscanner-1.3.1 spec/lib/kb/cve_2013_6416_spec.rb
dawnscanner-1.3.0 spec/lib/kb/cve_2013_6416_spec.rb