-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'add_cve_2013_4203' into development
- Loading branch information
Showing
8 changed files
with
101 additions
and
44 deletions.
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
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,27 @@ | ||
module Codesake | ||
module Dawn | ||
module Kb | ||
# Automatically created with rake on 2014-03-28 | ||
class CVE_2013_4203 | ||
include DependencyCheck | ||
|
||
def initialize | ||
message = "The self.run_gpg function in lib/rgpg/gpg_helper.rb in the rgpg gem before 0.2.3 for Ruby allows remote attackers to execute arbitrary commands via shell metacharacters in unspecified vectors." | ||
super({ | ||
:name=>"CVE-2013-4203", | ||
:cvss=>"AV:N/AC:L/Au:N/C:P/I:P/A:P", | ||
:release_date => Date.new(2013, 10, 11), | ||
:cwe=>"94", | ||
:owasp=>"A9", | ||
:applies=>["rails", "sinatra", "padrino"], | ||
:kind=>Codesake::Dawn::KnowledgeBase::DEPENDENCY_CHECK, | ||
:message=>message, | ||
:mitigation=>"Please upgrade rgpg at least to version 0.2.3. As a general rule, using the latest stable rails version is recommended.", | ||
:aux_links=>["http://www.openwall.com/lists/oss-security/2013/08/03/2"] | ||
}) | ||
self.safe_dependencies = [{:name=>"rgpg", :version=>['0.2.3']}] | ||
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
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,15 @@ | ||
require 'spec_helper' | ||
describe "The CVE-2013-4203 vulnerability" do | ||
before(:all) do | ||
@check = Codesake::Dawn::Kb::CVE_2013_4203.new | ||
# @check.debug = true | ||
end | ||
it "is reported when a vulnerable rgpg version is detected (0.2.2)" do | ||
@check.dependencies = [{:name=>"rgpg", :version=>"0.2.2"}] | ||
@check.vuln?.should be_true | ||
end | ||
it "is not reported when a safe rgpg version is detected (0.2.3)" do | ||
@check.dependencies = [{:name=>"rgpg", :version=>"0.2.3"}] | ||
@check.vuln?.should be_false | ||
end | ||
end |