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_2014_0130' into development
Conflicts: Changelog.md lib/codesake/dawn/version.rb
- Loading branch information
Showing
6 changed files
with
61 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 @@ | ||
393bc34a0e41fd18b8f49e1637c73fe84ef948efffdca9ebda9c476613cbc90941b8dc53eca09b55575b8c2276096d22178092df59cfefc569a1c9b4db9afb10 |
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,28 @@ | ||
module Codesake | ||
module Dawn | ||
module Kb | ||
# Automatically created with rake on 2014-05-06 | ||
class CVE_2014_0130 | ||
include DependencyCheck | ||
|
||
def initialize | ||
message = "The implicit render functionality allows controllers to render a template, even if there is no explicit action with the corresponding name. This module does not perform adequate input sanitization which could allow an attacker to use a specially crafted request to retrieve arbitrary files from the rails application server." | ||
super({ | ||
:name=>"CVE-2014-0130", | ||
:cvss=>"", | ||
:release_date => Date.new(2014, 5, 6), | ||
:cwe=>"", | ||
:owasp=>"A9", | ||
:applies=>["rails"], | ||
:kind=>Codesake::Dawn::KnowledgeBase::DEPENDENCY_CHECK, | ||
:message=>message, | ||
:mitigation=>"Please upgrade rails version up to version 3.2.18, 4.0.5 or 4.1.1.", | ||
:aux_links=>["https://groups.google.com/forum/#!msg/rubyonrails-security/NkKc7vTW70o/NxW_PDBSG3AJ"] | ||
}) | ||
self.safe_dependencies = [{:name=>"rails", :version=>['3.2.18', '4.0.5', '4.1.1']}] | ||
|
||
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,20 @@ | ||
require 'spec_helper' | ||
describe "The CVE-2014-0130 vulnerability" do | ||
before(:all) do | ||
@check = Codesake::Dawn::Kb::CVE_2014_0130.new | ||
# @check.debug = true | ||
end | ||
it "is reported when rails 4.1.0 is detected" do | ||
@check.dependencies = [{:name=>"rails", :version=>'4.1.0'}] | ||
@check.vuln?.should be_true | ||
end | ||
it "is reported when rails 4.0.4 is detected" do | ||
@check.dependencies = [{:name=>"rails", :version=>'4.0.4'}] | ||
@check.vuln?.should be_true | ||
end | ||
it "is reported when rails 3.2.17 is detected" do | ||
@check.dependencies = [{:name=>"rails", :version=>'3.2.17'}] | ||
@check.vuln?.should be_true | ||
end | ||
it "must be filled with CVSS information" | ||
end |