codesake-dawn 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/Changelog.md +5 -3
- data/checksum/codesake-dawn-1.1.1.gem.sha512 +1 -0
- data/lib/codesake/dawn/kb/osvdb_105971.rb +29 -0
- data/lib/codesake/dawn/knowledge_base.rb +8 -0
- data/lib/codesake/dawn/version.rb +2 -2
- data/spec/lib/dawn/codesake_knowledgebase_spec.rb +6 -0
- data/spec/lib/kb/osvdb_105971_spec.rb +17 -0
- metadata +6 -2
- metadata.gz.sig +1 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c98dc1ac9b498221f9259088c579414dc2c1702
|
4
|
+
data.tar.gz: adebc95880499394348fb5216bc625f4facb82e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10f26e434ae808c9ec4407ca24be27cf42c45651b36938348ab972e77ce65e84315b208da040d0e72e7e40bf955101a909cd724293b4b8489ebaafe5ca6ea3e3
|
7
|
+
data.tar.gz: 08534937ffc51cf3e01a02fdad729caaeb5c7d69a12e29699fa3628ff0aaf08d3008cc0ed0934ecfcccf116c526309f7679a322d90be350fd21b7d6b547750a9
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/Changelog.md
CHANGED
@@ -5,7 +5,11 @@ It supports [Sinatra](http://www.sinatrarb.com),
|
|
5
5
|
[Padrino](http://www.padrinorb.com) and [Ruby on Rails](http://rubyonrails.org)
|
6
6
|
frameworks.
|
7
7
|
|
8
|
-
_latest update:
|
8
|
+
_latest update: Fri Apr 18 07:55:10 CEST 2014_
|
9
|
+
|
10
|
+
## Version 1.1.2 - codename: Lightning McQueen (2014-04-22)
|
11
|
+
|
12
|
+
* Adding a check for OSVDB-105971: remote code execution for sfpagent ruby gem
|
9
13
|
|
10
14
|
## Version 1.1.1 - codename: Lightning McQueen (2014-04-11)
|
11
15
|
|
@@ -101,8 +105,6 @@ _latest update: Wed Apr 9 17:26:49 CEST 2014_
|
|
101
105
|
|
102
106
|
## Version 1.0.6 - codename: Lightning McQueen (2014-03-23)
|
103
107
|
|
104
|
-
## Version 1.0.6 - codename: Lightning McQueen (2014-03-23)
|
105
|
-
|
106
108
|
* Added a check for CVE-2014-2538
|
107
109
|
|
108
110
|
## Version 1.0.5 - codename: Lightning McQueen (2014-03-18)
|
@@ -0,0 +1 @@
|
|
1
|
+
27932cdcc95b44f9ebc715cfff2e66c764e13502beb5cd7775599612c108bf132f5300c0fb46e6e7fcdb84343b06bbf46cc80d6b0c1ab443bb6f6011c8557ef6
|
@@ -0,0 +1,29 @@
|
|
1
|
+
module Codesake
|
2
|
+
module Dawn
|
3
|
+
module Kb
|
4
|
+
# Automatically created with rake on 2014-04-17
|
5
|
+
class OSVDB_105971
|
6
|
+
include DependencyCheck
|
7
|
+
|
8
|
+
def initialize
|
9
|
+
message = "sfpagent Gem for Ruby contains a flaw that is triggered as JSON[body] input is not properly sanitized when handling module names with shell metacharacters. This may allow a context-dependent attacker to execute arbitrary commands."
|
10
|
+
|
11
|
+
super({
|
12
|
+
:name=> "OSVDB-105971",
|
13
|
+
:cvss=>"",
|
14
|
+
:release_date => Date.new(2014, 4, 16),
|
15
|
+
:cwe=>"",
|
16
|
+
:owasp=>"A9",
|
17
|
+
:applies=>["rack", "sinatra", "padrino", "rails"],
|
18
|
+
:kind=>Codesake::Dawn::KnowledgeBase::DEPENDENCY_CHECK,
|
19
|
+
:message=>message,
|
20
|
+
:mitigation=>"Please upgrade sfpagent version at least to 0.4.15. As a general rule, using the latest stable version is recommended.",
|
21
|
+
:aux_links=>["http://seclists.org/oss-sec/2014/q2/118"]
|
22
|
+
})
|
23
|
+
self.safe_dependencies = [{:name=>"sfpagent", :version=>['0.4.15']}]
|
24
|
+
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
@@ -217,6 +217,11 @@ require "codesake/dawn/kb/cve_2014_2322"
|
|
217
217
|
require "codesake/dawn/kb/cve_2014_2525"
|
218
218
|
require "codesake/dawn/kb/cve_2014_2538"
|
219
219
|
|
220
|
+
# OSVDB
|
221
|
+
|
222
|
+
require "codesake/dawn/kb/osvdb_105971"
|
223
|
+
|
224
|
+
|
220
225
|
module Codesake
|
221
226
|
module Dawn
|
222
227
|
# XXX: Check if it best using a singleton here
|
@@ -454,6 +459,9 @@ module Codesake
|
|
454
459
|
Codesake::Dawn::Kb::CVE_2014_2322.new,
|
455
460
|
Codesake::Dawn::Kb::CVE_2014_2525.new,
|
456
461
|
Codesake::Dawn::Kb::CVE_2014_2538.new,
|
462
|
+
|
463
|
+
# OSVDB Checks are still here since are all about dependencies
|
464
|
+
Codesake::Dawn::Kb::OSVDB_105971.new
|
457
465
|
]
|
458
466
|
# END @cve_security_checks array
|
459
467
|
# START @owasp_ror_cheatsheet_checks array
|
@@ -887,4 +887,10 @@ end
|
|
887
887
|
sc.should_not be_nil
|
888
888
|
sc.class.should == Codesake::Dawn::Kb::CVE_2014_2525
|
889
889
|
end
|
890
|
+
it "must have test for OSVDB_105971" do
|
891
|
+
sc = kb.find("OSVDB-105971")
|
892
|
+
sc.should_not be_nil
|
893
|
+
sc.class.should == Codesake::Dawn::Kb::OSVDB_105971
|
894
|
+
end
|
895
|
+
|
890
896
|
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
describe "The OSVDB_105971 vulnerability" do
|
3
|
+
before(:all) do
|
4
|
+
@check = Codesake::Dawn::Kb::OSVDB_105971.new
|
5
|
+
# @check.debug = true
|
6
|
+
end
|
7
|
+
it "is reported when a vulnerable version it has been found (0.4.14)" do
|
8
|
+
@check.dependencies = [{:name=>"sfpagent", :version=>"0.4.14"}]
|
9
|
+
@check.vuln?.should be_true
|
10
|
+
end
|
11
|
+
it "is not reported when a safe version it has been found (0.4.15)" do
|
12
|
+
@check.dependencies = [{:name=>"sfpagent", :version=>"0.4.15"}]
|
13
|
+
@check.vuln?.should be_false
|
14
|
+
end
|
15
|
+
it "must be filled with CVE identifier"
|
16
|
+
it "must be filled with CVSS information"
|
17
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: codesake-dawn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paolo Perego
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
30
30
|
Fh7BfxFDBZdj1mI2V+I+IYYMPKIouvwX3r7NTZgZ4TYuKVpOk9VSCxzhrPhnl4kb
|
31
31
|
1LyVQIFlhF6nL0casp0ixer8N60=
|
32
32
|
-----END CERTIFICATE-----
|
33
|
-
date: 2014-04-
|
33
|
+
date: 2014-04-22 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: codesake-commons
|
@@ -284,6 +284,7 @@ files:
|
|
284
284
|
- checksum/.placeholder
|
285
285
|
- checksum/codesake-dawn-1.1.0.gem.sha512
|
286
286
|
- checksum/codesake-dawn-1.1.0.rc1.gem.sha512
|
287
|
+
- checksum/codesake-dawn-1.1.1.gem.sha512
|
287
288
|
- codesake-dawn.gemspec
|
288
289
|
- doc/codesake-dawn.yaml.sample
|
289
290
|
- doc/dawn_1_0_announcement.md
|
@@ -465,6 +466,7 @@ files:
|
|
465
466
|
- lib/codesake/dawn/kb/deprecation_check.rb
|
466
467
|
- lib/codesake/dawn/kb/not_revised_code.rb
|
467
468
|
- lib/codesake/dawn/kb/operating_system_check.rb
|
469
|
+
- lib/codesake/dawn/kb/osvdb_105971.rb
|
468
470
|
- lib/codesake/dawn/kb/owasp_ror_cheatsheet.rb
|
469
471
|
- lib/codesake/dawn/kb/owasp_ror_cheatsheet/check_for_backup_files.rb
|
470
472
|
- lib/codesake/dawn/kb/owasp_ror_cheatsheet/check_for_safe_redirect_and_forward.rb
|
@@ -539,6 +541,7 @@ files:
|
|
539
541
|
- spec/lib/kb/cve_2014_1234_spec.rb
|
540
542
|
- spec/lib/kb/cve_2014_2322_spec.rb
|
541
543
|
- spec/lib/kb/cve_2014_2538_spec.rb
|
544
|
+
- spec/lib/kb/osvdb_105971_spec.rb
|
542
545
|
- spec/lib/kb/owasp_ror_cheatsheet_disabled.rb
|
543
546
|
- spec/spec_helper.rb
|
544
547
|
- support/bootstrap.js
|
@@ -628,5 +631,6 @@ test_files:
|
|
628
631
|
- spec/lib/kb/cve_2014_1234_spec.rb
|
629
632
|
- spec/lib/kb/cve_2014_2322_spec.rb
|
630
633
|
- spec/lib/kb/cve_2014_2538_spec.rb
|
634
|
+
- spec/lib/kb/osvdb_105971_spec.rb
|
631
635
|
- spec/lib/kb/owasp_ror_cheatsheet_disabled.rb
|
632
636
|
- spec/spec_helper.rb
|
metadata.gz.sig
CHANGED
@@ -1,3 +1 @@
|
|
1
|
-
�
|
2
|
-
�V/ M������u����Ni]7���\�4�1w�n���A��,�,��X���1h�b�
|
3
|
-
����*o>{��M�c;�p�
|
1
|
+
�_���jJ�2*t� �*/8"8" ���ͬ���c����k�m��l� �O��3jdΏ�f�����c�M�9�bC0s��G�r�9���R�^��M�dQ�J���S`Z�(���Wtl��W�Gw���9':%2�~���D�Sg��^yr'��ߔEԑ7t��I�ܜ_�@��#�������C�s���c�Ξ���K;Ћlf`亘7�Y<U`�Y�XS���zW��ퟟ��Կ�}�@�f�$�\�
|