Sha256: 7f2faa75cee9778edae374bc7c3edf9ffde56d24f699c118367f28dcdb53b50d
Contents?: true
Size: 1.42 KB
Versions: 11
Compression:
Stored size: 1.42 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'}] @check.vuln?.should == 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 == 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 == 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 == 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 == 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 == 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 @check.vuln?.should == false end end
Version data entries
11 entries across 11 versions & 1 rubygems