Sha256: 714b7c12a62088161721359e0f37a9f93c84420556daaaa3312a380c0c09eb38
Contents?: true
Size: 819 Bytes
Versions: 2
Compression:
Stored size: 819 Bytes
Contents
require 'spec_helper' describe "The CVE-2015-3225 vulnerability" do before(:all) do @check = Dawn::Kb::CVE_2015_3225.new # @check.debug = true end it "is reported when vulnerable rack gem is used (1.5.3)" do @check.dependencies = [{:name=>"rack", :version=>'1.5.3'}] @check.vuln?.should == true end it "is reported when vulnerable rack gem is used (1.6.1)" do @check.dependencies = [{:name=>"rack", :version=>'1.6.1'}] @check.vuln?.should == true end it "is not reported when safe rack gem is used (1.5.4)" do @check.dependencies = [{:name=>"rack", :version=>'1.5.4'}] @check.vuln?.should == false end it "is not reported when safe rack gem is used (1.6.3)" do @check.dependencies = [{:name=>"rack", :version=>'1.6.3'}] @check.vuln?.should == false end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dawnscanner-1.4.0 | spec/lib/kb/cve_2015_3225_spec.rb |
dawnscanner-1.3.5 | spec/lib/kb/cve_2015_3225_spec.rb |