Skip to content

Commit

Permalink
cve_2014_0082 is now green again
Browse files Browse the repository at this point in the history
  • Loading branch information
thesp0nge committed Mar 11, 2014
1 parent 3b965b9 commit e388754
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions lib/codesake/dawn/kb/version_check.rb
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ def is_vulnerable_version?(safe_version, detected_version)
return debug_me_and_return_false("#{detected_version} has a major version vulnerable but honoring save_major_fix") if major && @save_major_fix
return debug_me_and_return_false("#{detected_version} has a minor version vulnerable but honoring save_minor_fix") if minor && @save_minor_fix
return true if major && minor
return true if major && !@save_major_fix
return true if !major && minor && @save_major_fix
return is_vulnerable_patch?(safe_version_array, detected_version_array) if is_same_major?(safe_version_array, detected_version_array) && is_same_minor?(safe_version_array, detected_version_array)
return true if is_same_major?(safe_version_array, detected_version_array) && minor
Expand Down
1 change: 0 additions & 1 deletion spec/lib/kb/cve_2014_0082_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
rand_min = SecureRandom.random_number(9999)
rand_patch = SecureRandom.random_number(9999)
version = "2.#{rand_min}.#{rand_patch}"

@check.dependencies = [{:name=>"rails", :version=>version}]
@check.vuln?.should be_true
end
Expand Down

0 comments on commit e388754

Please sign in to comment.