Sha256: 7ce2affd7e6b7750d84f3569169d845dd93e9de6942d0ac9bc5e79fcbf98086c

Contents?: true

Size: 958 Bytes

Versions: 8

Compression:

Stored size: 958 Bytes

Contents

require 'spec_helper'
describe "The CVE-2011-3187 vulnerability" do
	before(:all) do
		@check = Dawn::Kb::CVE_2011_3187.new
		# @check.debug = true
	end
  it "fires when vulnerable rails version it has been found (3.0.5)" do
    @check.dependencies = [{:name=>'rails', :version=>'3.0.5'}]
    expect(@check.vuln?).to eq(true)
  end
  it "doesn't fire when safe rails version it has been found (3.0.6)" do
    @check.dependencies = [{:name=>'rails', :version=>'3.0.6'}]
    expect(@check.vuln?).to eq(false)
  end
  it "doesn't fire when safe rails version it has been found (3.1.6)" do
    @check.dependencies = [{:name=>'rails', :version=>'3.1.6'}]
    expect(@check.vuln?).to eq(false)
  end
  it "doesn't fire when safe rails version it has been found (2.3.16)" do
    @check.dependencies = [{:name=>'rails', :version=>'2.3.16'}]
    expect(@check.vuln?).to eq(false)
  end
          # self.safe_dependencies = [{:name=>"rails", :version=>['3.0.6']}]
end

Version data entries

8 entries across 8 versions & 1 rubygems

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