Sha256: 20e440a4cbaf9cd9099d887d3175465064504d1d456ea3f486f436d5e0ef29db
Contents?: true
Size: 923 Bytes
Versions: 11
Compression:
Stored size: 923 Bytes
Contents
require 'spec_helper' describe "The CVE-2011-3009 vulnerability" do before(:all) do @check = Dawn::Kb::CVE_2011_3009.new # @check.debug = true end it "fires if ruby version is vulnerable (1.8.6-p111)" do @check.detected_ruby = {:engine=>'ruby', :version=>"1.8.6", :patchlevel=>"p111"} @check.vuln?.should == true end it "fires if ruby version is vulnerable (1.8.5-p111)" do @check.detected_ruby = {:engine=>'ruby', :version=>"1.8.5", :patchlevel=>"p111"} @check.vuln?.should == true end it "doesn't fire if ruby version is not vulnerable (1.8.6-p112)" do @check.detected_ruby = {:engine=>'ruby', :version=>"1.8.6", :patchlevel=>"p112"} @check.vuln?.should == false end it "doesn't fire if ruby version is not vulnerable (1.9.2-p112)" do @check.detected_ruby = {:engine=>'ruby', :version=>"1.9.2", :patchlevel=>"p112"} @check.vuln?.should == false end end
Version data entries
11 entries across 11 versions & 1 rubygems