Sha256: bc2eeb54e9bf3b6e69774b21938178ca44ee101d894b5ed0c88a64def7fa3b85

Contents?: true

Size: 522 Bytes

Versions: 11

Compression:

Stored size: 522 Bytes

Contents

require 'spec_helper'
describe "The CVE-2013-6459 vulnerability" do
  before(:all) do
    @check = Dawn::Kb::CVE_2013_6459.new
    # @check.debug = true
  end
  it "fires when will_paginage 3.0.4 vulnerable version is used" do
    @check.dependencies = [{:name=>"will_paginate", :version=>'3.0.4'}]
    @check.vuln?.should == true
  end
  it "doesn't fires when will_paginage 3.0.5 safe version is used" do
    @check.dependencies = [{:name=>"will_paginate", :version=>'3.0.5'}]
    @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_2013_6459_spec.rb
dawnscanner-1.6.0 spec/lib/kb/cve_2013_6459_spec.rb
dawnscanner-1.5.2 spec/lib/kb/cve_2013_6459_spec.rb
dawnscanner-1.5.1 spec/lib/kb/cve_2013_6459_spec.rb
dawnscanner-1.5.0 spec/lib/kb/cve_2013_6459_spec.rb
dawnscanner-1.4.2 spec/lib/kb/cve_2013_6459_spec.rb
dawnscanner-1.4.1 spec/lib/kb/cve_2013_6459_spec.rb
dawnscanner-1.4.0 spec/lib/kb/cve_2013_6459_spec.rb
dawnscanner-1.3.5 spec/lib/kb/cve_2013_6459_spec.rb
dawnscanner-1.3.1 spec/lib/kb/cve_2013_6459_spec.rb
dawnscanner-1.3.0 spec/lib/kb/cve_2013_6459_spec.rb