Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'issue_70_add_check_for_OSVDB_108570' Conflicts: Changelog.md lib/codesake/dawn/knowledge_base.rb spec/lib/dawn/codesake_knowledgebase_spec.rb
- Loading branch information
Showing
5 changed files
with
56 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
module Codesake | ||
module Dawn | ||
module Kb | ||
# Automatically created with rake on 2014-07-04 | ||
class OSVDB_108570 | ||
include DependencyCheck | ||
|
||
def initialize | ||
message = "backup_checksum Gem for Ruby contains a flaw in /lib/backup/cli/utility.rb that is triggered when handling metacharacters. This may allow a remote attacker to execute arbitrary commands." | ||
super({ | ||
:name=> "OSVDB-108570", | ||
:cvss=>"", | ||
:osvdb=> "108570", | ||
:release_date => Date.new(2014, 6, 30), | ||
:cwe=>"", | ||
:owasp=>"A9", | ||
:applies=>["rack", "sinatra", "padrino", "rails"], | ||
:kind=>Codesake::Dawn::KnowledgeBase::DEPENDENCY_CHECK, | ||
:message=>message, | ||
:mitigation=>"We are not currently aware of a solution for this vulnerability. Please check backup_checksum rubygem for upgrades", | ||
:aux_links=>["http://www.vapid.dhs.org/advisories/backup_checksum-3.0.23.html"] | ||
}) | ||
self.safe_dependencies = [{:name=>"backup_checksum", :version=>['3.0.24']}] | ||
|
||
end | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
require 'spec_helper' | ||
describe "The OSVDB-108570 vulnerability" do | ||
before(:all) do | ||
@check = Codesake::Dawn::Kb::OSVDB_108570.new | ||
# @check.debug = true | ||
end | ||
it "is reported when a vulnerable version it has been found (3.0.23)" do | ||
@check.dependencies = [{:name=>"backup_checksum", :version=>"3.0.23"}] | ||
@check.vuln?.should be_true | ||
end | ||
it "is not reported when a safe version it has been found (0.4.15)" do | ||
@check.dependencies = [{:name=>"backup_checksum", :version=>"3.0.24"}] | ||
@check.vuln?.should be_false | ||
end | ||
it "must be filled with CVE identifier" | ||
it "must be filled with CVSS information" | ||
end |