Sha256: 231cca1e5e323f92c0881fc17925d16532e2df6097ce564a95d9c32c8d1db8dd

Contents?: true

Size: 847 Bytes

Versions: 7

Compression:

Stored size: 847 Bytes

Contents

require 'spec_helper'
describe "The CVE-2013-2090 vulnerability" do
	before(:all) do
		@check = Codesake::Dawn::Kb::CVE_2013_2090.new
		# @check.debug = true
	end
  it "fires when vulnerable cremefraiche version is used" do
    @check.dependencies = [{:name=>"cremefraiche", :version=>'0.6.1'}]
    @check.vuln?.should   be_true
  end
  it "doesn't fire when not vulnerable cremefraiche version is used" do
    @check.dependencies = [{:name=>"cremefraiche", :version=>'0.6.2'}]
    @check.vuln?.should   be_false
  end
  it "fires when 0.5 and previous versions are found. We must check that cremefraiche version 0.5.2 version is vulnerable"
  # it "doesn't fire when an older not vulnerable cremefraiche version is used" do
  #   @check.dependencies = [{:name=>"cremefraiche", :version=>'0.5.2'}]
  #   @check.vuln?.should   be_false
  # end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
codesake-dawn-1.0.6 spec/lib/kb/cve_2013_2090_spec.rb
codesake-dawn-1.0.5 spec/lib/kb/cve_2013_2090_spec.rb
codesake-dawn-1.0.4 spec/lib/kb/cve_2013_2090_spec.rb
codesake-dawn-1.0.3 spec/lib/kb/cve_2013_2090_spec.rb
codesake-dawn-1.0.2 spec/lib/kb/cve_2013_2090_spec.rb
codesake-dawn-1.0.1 spec/lib/kb/cve_2013_2090_spec.rb
codesake-dawn-1.0.0 spec/lib/kb/cve_2013_2090_spec.rb