Sha256: 03999db72c89d8772b2fc44e6ec84504fd26f2deb5bc2b345b839999f56a947a

Contents?: true

Size: 1.27 KB

Versions: 6

Compression:

Stored size: 1.27 KB

Contents

require 'spec_helper'
describe "The CVE-2015-3226 vulnerability" do
	before(:all) do
		@check = Dawn::Kb::CVE_2015_3226.new
		# @check.debug = true
	end

  it "is reported when vulnerable active_support gem is used (3.x.x)" do
    @check.dependencies = [{:name=>"activesupport", :version=>'3.2.11'}]
    expect(@check.vuln?).to   eq(true)
  end
  it "is reported when vulnerable active_support gem is used (4.1.11)" do
    @check.dependencies = [{:name=>"activesupport", :version=>'4.1.11'}]
    expect(@check.vuln?).to   eq(true)
  end
  it "is reported when vulnerable active_support gem is used (4.2.2)" do
    @check.dependencies = [{:name=>"activesupport", :version=>'4.2.2'}]
    expect(@check.vuln?).to   eq(true)
  end
  it "is not reported when safe active_support gem is used (4.1.12)" do
    @check.dependencies = [{:name=>"activesupport", :version=>'4.1.12'}]
    expect(@check.vuln?).to   eq(false)
  end
  it "is not reported when safe active_support gem is used (4.1.13)" do
    @check.dependencies = [{:name=>"activesupport", :version=>'4.1.13'}]
    expect(@check.vuln?).to   eq(false)
  end
  it "is not reported when safe active_support gem is used (4.2.3)" do
    @check.dependencies = [{:name=>"activesupport", :version=>'4.2.3'}]
    expect(@check.vuln?).to   eq(false)
  end



end

Version data entries

6 entries across 6 versions & 1 rubygems

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