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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 36ef1462b17193335545803ba645b1d23e9fb8fc
4
- data.tar.gz: 968fb71145e469a485a61a6c667b0c5050ad3058
3
+ metadata.gz: 9c98dc1ac9b498221f9259088c579414dc2c1702
4
+ data.tar.gz: adebc95880499394348fb5216bc625f4facb82e4
5
5
  SHA512:
6
- metadata.gz: a8be5a4f078b5ca275666ea80e49d719877832710e820f73856a91cd9c90d7f0f530173c3f92389baff45ad19c0a70656c9ee6985b1b106c196e83714e1ad640
7
- data.tar.gz: 3d57b1c811cb6dc542789735803ae14106e888313061bb0f2fb14c1536baa531e989882dbc2cbb6edc899d984df249d7191b93a59678c879ba938288845a8bc9
6
+ metadata.gz: 10f26e434ae808c9ec4407ca24be27cf42c45651b36938348ab972e77ce65e84315b208da040d0e72e7e40bf955101a909cd724293b4b8489ebaafe5ca6ea3e3
7
+ data.tar.gz: 08534937ffc51cf3e01a02fdad729caaeb5c7d69a12e29699fa3628ff0aaf08d3008cc0ed0934ecfcccf116c526309f7679a322d90be350fd21b7d6b547750a9
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -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: Wed Apr 9 17:26:49 CEST 2014_
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
@@ -19,10 +19,10 @@ module Codesake
19
19
  # | "Luigi" | 7.0.0 |
20
20
  # | "Doc Hudson" | 8.0.0 |
21
21
 
22
- VERSION = "1.1.1"
22
+ VERSION = "1.1.2"
23
23
  CODENAME = "Lightning McQueen"
24
24
  # RELEASE = "(development)"
25
- RELEASE = "20140410"
25
+ RELEASE = "20140422"
26
26
 
27
27
  end
28
28
  end
@@ -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.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-11 00:00:00.000000000 Z
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
- 1�����s�# -����^�U����;uP��Ӯ���p��=Pen���I5���M��!��)�� Z���$�NH��H��^Y�����𸠙+O�>-"}����!�j�t{o:� [��~b
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 ����cM�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�$�\�