Sha256: 4486119d9a18b0b8f3fd0098e3a1d95a05ad88bc4e81da6e47c2938d000956c2
Contents?: true
Size: 1.4 KB
Versions: 2
Compression:
Stored size: 1.4 KB
Contents
require 'spec_helper' describe "The CVE-2013-4457 vulnerability" do before(:all) do @check = Codesake::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'}] @check.vuln?.should be_true end it "is detected if vulnerable version of cocaine rubygem is detected" do @check.dependencies=[{:name=>"cocaine", :version=>'0.4.1'}] @check.vuln?.should be_true end it "is detected if vulnerable version of cocaine rubygem is detected" do @check.dependencies=[{:name=>"cocaine", :version=>'0.4.2'}] @check.vuln?.should be_true end it "is detected if vulnerable version of cocaine rubygem is detected" do @check.dependencies=[{:name=>"cocaine", :version=>'0.5.0'}] @check.vuln?.should be_true end it "is detected if vulnerable version of cocaine rubygem is detected" do @check.dependencies=[{:name=>"cocaine", :version=>'0.5.1'}] @check.vuln?.should be_true end it "is detected if vulnerable version of cocaine rubygem is detected" do @check.dependencies=[{:name=>"cocaine", :version=>'0.5.2'}] @check.vuln?.should be_true end it "is skipped if non vulnerable version of cocaine rubygem is detected" do @check.dependencies=[{:name=>"cocaine", :version=>'0.3.2'}] @check.vuln?.should be_false end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
codesake-dawn-1.0.0.rc2 | spec/lib/kb/codesake_cve_2013_4457_spec.rb |
codesake-dawn-1.0.0.rc1 | spec/lib/kb/codesake_cve_2013_4457_spec.rb |