Sha256: c6104fb86f455cd5ce109f63aaf50a422f4579189f89786e3cce5a349919b8c7

Contents?: true

Size: 1.45 KB

Versions: 16

Compression:

Stored size: 1.45 KB

Contents

require 'spec_helper'

describe "The CVE-2013-4457 vulnerability" do
  before(:all) do 
    @check = Dawn::Kb::CVE_2013_4457.new
    # @check.debug = true
  end
  it "is detected if vulnerable version of cocaine rubygem is detected" do
    @check.dependencies=[{:name=>"cocaine", :version=>'0.4.0'}]
    expect(@check.vuln?).to   eq(true)
  end
  it "is detected if vulnerable version of cocaine rubygem is detected" do
    @check.dependencies=[{:name=>"cocaine", :version=>'0.4.1'}]
    expect(@check.vuln?).to   eq(true)
  end
  it "is detected if vulnerable version of cocaine rubygem is detected" do
    @check.dependencies=[{:name=>"cocaine", :version=>'0.4.2'}]
    expect(@check.vuln?).to   eq(true)
  end
  it "is detected if vulnerable version of cocaine rubygem is detected" do
    @check.dependencies=[{:name=>"cocaine", :version=>'0.5.0'}]
    expect(@check.vuln?).to   eq(true)
  end
  it "is detected if vulnerable version of cocaine rubygem is detected" do
    @check.dependencies=[{:name=>"cocaine", :version=>'0.5.1'}]
    expect(@check.vuln?).to   eq(true)
  end
  it "is detected if vulnerable version of cocaine rubygem is detected" do
    @check.dependencies=[{:name=>"cocaine", :version=>'0.5.2'}]
    expect(@check.vuln?).to   eq(true)
  end

  it "is skipped if non vulnerable version of cocaine rubygem is detected" do
    @check.dependencies=[{:name=>"cocaine", :version=>'0.3.2'}]
    # @check.debug = true
    expect(@check.vuln?).to   eq(false)
  end



end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
dawnscanner-2.1.1 spec/lib/kb/codesake_cve_2013_4457_spec.rb
dawnscanner-2.1.0 spec/lib/kb/codesake_cve_2013_4457_spec.rb
dawnscanner-2.0.0 spec/lib/kb/codesake_cve_2013_4457_spec.rb
dawnscanner-2.0.0.rc5 spec/lib/kb/codesake_cve_2013_4457_spec.rb
dawnscanner-2.0.0.rc4 spec/lib/kb/codesake_cve_2013_4457_spec.rb
dawnscanner-2.0.0.rc3 spec/lib/kb/codesake_cve_2013_4457_spec.rb
dawnscanner-2.0.0.rc2 spec/lib/kb/codesake_cve_2013_4457_spec.rb
dawnscanner-2.0.0.rc1 spec/lib/kb/codesake_cve_2013_4457_spec.rb
dawnscanner-1.6.9 spec/lib/kb/codesake_cve_2013_4457_spec.rb
dawnscanner-1.6.8 spec/lib/kb/codesake_cve_2013_4457_spec.rb
dawnscanner-1.6.7 spec/lib/kb/codesake_cve_2013_4457_spec.rb
dawnscanner-1.6.6 spec/lib/kb/codesake_cve_2013_4457_spec.rb
dawnscanner-1.6.5 spec/lib/kb/codesake_cve_2013_4457_spec.rb
dawnscanner-1.6.4 spec/lib/kb/codesake_cve_2013_4457_spec.rb
dawnscanner-1.6.3 spec/lib/kb/codesake_cve_2013_4457_spec.rb
dawnscanner-1.6.2 spec/lib/kb/codesake_cve_2013_4457_spec.rb