Sha256: 3fcb5d413b3ebfbe32476b4c30f5e208f091221b8491df33597b9d6d865d168f

Contents?: true

Size: 571 Bytes

Versions: 12

Compression:

Stored size: 571 Bytes

Contents

require 'spec_helper'
describe "The CVE-2014-1234 vulnerability" do
	before(:all) do
		@check = Codesake::Dawn::Kb::CVE_2014_1234.new
		# @check.debug = true
	end

  it "is reported when a paratrooper-newrelic gem version 1.0.1 is detected" do
    @check.dependencies = [{:name=>"paratrooper-newrelic", :version=>"1.0.1"}]
    @check.vuln?.should   be_true
  end
  it "is not reported when a paratrooper-newrelic gem version 1.0.2 is detected" do
    @check.dependencies = [{:name=>"paratrooper-newrelic", :version=>"1.0.2"}]
    @check.vuln?.should   be_false
  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
dawnscanner-1.2.99 spec/lib/kb/cve_2014_1234_spec.rb
codesake-dawn-1.2.99 spec/lib/kb/cve_2014_1234_spec.rb
codesake-dawn-1.2.0 spec/lib/kb/cve_2014_1234_spec.rb
codesake-dawn-1.1.3 spec/lib/kb/cve_2014_1234_spec.rb
codesake-dawn-1.1.2 spec/lib/kb/cve_2014_1234_spec.rb
codesake-dawn-1.1.1 spec/lib/kb/cve_2014_1234_spec.rb
codesake-dawn-1.1.0 spec/lib/kb/cve_2014_1234_spec.rb
codesake-dawn-1.1.0.rc2 spec/lib/kb/cve_2014_1234_spec.rb
codesake-dawn-1.1.0.rc1 spec/lib/kb/cve_2014_1234_spec.rb
codesake-dawn-1.0.6 spec/lib/kb/cve_2014_1234_spec.rb
codesake-dawn-1.0.5 spec/lib/kb/cve_2014_1234_spec.rb
codesake-dawn-1.0.4 spec/lib/kb/cve_2014_1234_spec.rb