Sha256: 38a65f6cf565ad1d04a23a1f43db432dadfe7db834db90b1ca8a7fb9c92e49d5

Contents?: true

Size: 976 Bytes

Versions: 8

Compression:

Stored size: 976 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'}]
    expect(@check.vuln?).to   eq(true)
  end
  it "is ignored if rails version is 3.2.x" do 
    @check.dependencies=[{:name=>"rails", :version=>'3.2.16'}]
    expect(@check.vuln?).to   eq(false)
  end

  it "is ignored if rails version is 3.1.x" do 
    @check.dependencies=[{:name=>"rails", :version=>'3.1.16'}]
    expect(@check.vuln?).to   eq(false)
  end
  it "is ignored if rails version is 3.0.x" do 
    @check.dependencies=[{:name=>"rails", :version=>'3.0.16'}]
    expect(@check.vuln?).to   eq(false)
  end
  it "is ignored if rails version is 2.3.x" do 
    @check.dependencies=[{:name=>"rails", :version=>'2.3.16'}]
    expect(@check.vuln?).to   eq(false)
  end


end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
dawnscanner-1.6.9 spec/lib/kb/cve_2013_6416_spec.rb
dawnscanner-1.6.8 spec/lib/kb/cve_2013_6416_spec.rb
dawnscanner-1.6.7 spec/lib/kb/cve_2013_6416_spec.rb
dawnscanner-1.6.6 spec/lib/kb/cve_2013_6416_spec.rb
dawnscanner-1.6.5 spec/lib/kb/cve_2013_6416_spec.rb
dawnscanner-1.6.4 spec/lib/kb/cve_2013_6416_spec.rb
dawnscanner-1.6.3 spec/lib/kb/cve_2013_6416_spec.rb
dawnscanner-1.6.2 spec/lib/kb/cve_2013_6416_spec.rb