Sha256: f0fb9490e633cfce290fbccfc6ec6a693ddd8a44bc92152aeb16815c54d1fbf4

Contents?: true

Size: 1.37 KB

Versions: 11

Compression:

Stored size: 1.37 KB

Contents

require 'spec_helper'
describe "The CVE-2011-2705 vulnerability" do
	before(:all) do
		@check = Dawn::Kb::CVE_2011_2705.new
		# @check.debug = true
	end
  it "fires when ruby 1.8.7-p351 is detected" do
    @check.detected_ruby ={:engine=>"ruby", :version=>"1.8.7", :patchlevel=>"p351"}
    @check.vuln?.should == true
  end
  it "fires when ruby 1.9.0 any patchlevel is detected" do
    @check.detected_ruby ={:engine=>"ruby", :version=>"1.9.0", :patchlevel=>"p351"}
    @check.vuln?.should == true
  end
  it "fires when ruby 1.9.1 any patchlevel is detected" do
    @check.detected_ruby ={:engine=>"ruby", :version=>"1.9.1", :patchlevel=>"p351"}
    @check.vuln?.should == true
  end
  it "fires when ruby 1.9.2-p289 is detected" do
    @check.detected_ruby ={:engine=>"ruby", :version=>"1.9.2", :patchlevel=>"p289"}
    @check.vuln?.should == true
  end
  it "doesn't fire when ruby 1.8.7-p352 is detected" do
    @check.detected_ruby ={:engine=>"ruby", :version=>"1.8.7", :patchlevel=>"p352"}
    @check.vuln?.should == false
  end
  it "doesn't fire when ruby 1.9.2-p290 is detected" do
    @check.detected_ruby ={:engine=>"ruby", :version=>"1.9.2", :patchlevel=>"p290"}
    @check.vuln?.should == false
  end
  it "doesn't fire when ruby 1.9.3-p290 is detected" do
    @check.detected_ruby ={:engine=>"ruby", :version=>"1.9.3", :patchlevel=>"p290"}
    @check.vuln?.should == false
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
dawnscanner-1.6.1 spec/lib/kb/cve_2011_2705_spec.rb
dawnscanner-1.6.0 spec/lib/kb/cve_2011_2705_spec.rb
dawnscanner-1.5.2 spec/lib/kb/cve_2011_2705_spec.rb
dawnscanner-1.5.1 spec/lib/kb/cve_2011_2705_spec.rb
dawnscanner-1.5.0 spec/lib/kb/cve_2011_2705_spec.rb
dawnscanner-1.4.2 spec/lib/kb/cve_2011_2705_spec.rb
dawnscanner-1.4.1 spec/lib/kb/cve_2011_2705_spec.rb
dawnscanner-1.4.0 spec/lib/kb/cve_2011_2705_spec.rb
dawnscanner-1.3.5 spec/lib/kb/cve_2011_2705_spec.rb
dawnscanner-1.3.1 spec/lib/kb/cve_2011_2705_spec.rb
dawnscanner-1.3.0 spec/lib/kb/cve_2011_2705_spec.rb