rubygems-update 2.4.7 → 2.4.8

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of rubygems-update might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5957b4caef4d5ae7826a3f4ee4ea8e7174a1dde0
4
- data.tar.gz: ec0b2563d1b6b07d34f3375ce857e32a928b9b4c
3
+ metadata.gz: 628e3b112ee81a73e5c1570bd8d92f656cd1270a
4
+ data.tar.gz: d3bdbbcfba8a3ec257cd6e55946cf6afb6e6eba9
5
5
  SHA512:
6
- metadata.gz: cb03080a6d5f74eca52ee3f06b825a8b7438dc51b0a9e18107f978df09b3d2d51e17a749a6d9564acf6d63fd6ca253bf44d62664448ca8164003b9fea43a77c8
7
- data.tar.gz: 937345a29ff97fa27d915d367f66df8edd56d9e0505cb84ebdb702162e8d258faf9e2babb760efe047491a7b0123c2018c9d6cf7cd0a8cadd7c3b9b478133d88
6
+ metadata.gz: 5874130383cb363d0f953b09df44484bd9f21595f371f712b1566cb4cc8e5aee34cb01953a661afb077dc4fa89658c0735f3502888a44f31b1cdd135a7e1d818
7
+ data.tar.gz: b3c162f82fe34a9436a8c46834285dfb64c59f2af57dee90a83f23c3ae4fe49347a4a399dbe645cc1e06736e98df853fa637e0ab9f90ee9a0a1b0cb2bf5b8fa9
@@ -1,5 +1,11 @@
1
1
  # coding: UTF-8
2
2
 
3
+ === 2.4.8 / 2015-06-08
4
+
5
+ Bug fixes:
6
+
7
+ * Tightened API endpoint checks for CVE-2015-3900
8
+
3
9
  === 2.4.7 / 2015-05-14
4
10
 
5
11
  Bug fixes:
@@ -9,7 +9,7 @@ require 'rbconfig'
9
9
  require 'thread'
10
10
 
11
11
  module Gem
12
- VERSION = '2.4.7'
12
+ VERSION = '2.4.8'
13
13
  end
14
14
 
15
15
  # Must be first since it unloads the prelude from 1.9.2
@@ -96,7 +96,7 @@ class Gem::RemoteFetcher
96
96
  else
97
97
  target = res.target.to_s.strip
98
98
 
99
- if /#{host}\z/ =~ target
99
+ if /\.#{Regexp.quote(host)}\z/ =~ target
100
100
  return URI.parse "#{uri.scheme}://#{target}#{uri.path}"
101
101
  end
102
102
 
@@ -196,6 +196,36 @@ gems:
196
196
  dns.verify
197
197
  end
198
198
 
199
+ def test_api_endpoint_ignores_trans_domain_values_that_starts_with_original
200
+ uri = URI.parse "http://example.com/foo"
201
+ target = MiniTest::Mock.new
202
+ target.expect :target, "example.combadguy.com"
203
+
204
+ dns = MiniTest::Mock.new
205
+ dns.expect :getresource, target, [String, Object]
206
+
207
+ fetch = Gem::RemoteFetcher.new nil, dns
208
+ assert_equal URI.parse("http://example.com/foo"), fetch.api_endpoint(uri)
209
+
210
+ target.verify
211
+ dns.verify
212
+ end
213
+
214
+ def test_api_endpoint_ignores_trans_domain_values_that_end_with_original
215
+ uri = URI.parse "http://example.com/foo"
216
+ target = MiniTest::Mock.new
217
+ target.expect :target, "badexample.com"
218
+
219
+ dns = MiniTest::Mock.new
220
+ dns.expect :getresource, target, [String, Object]
221
+
222
+ fetch = Gem::RemoteFetcher.new nil, dns
223
+ assert_equal URI.parse("http://example.com/foo"), fetch.api_endpoint(uri)
224
+
225
+ target.verify
226
+ dns.verify
227
+ end
228
+
199
229
  def test_cache_update_path
200
230
  uri = URI 'http://example/file'
201
231
  path = File.join @tempdir, 'file'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubygems-update
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.7
4
+ version: 2.4.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jim Weirich
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-05-14 00:00:00.000000000 Z
13
+ date: 2015-06-08 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: minitest
@@ -18,14 +18,14 @@ dependencies:
18
18
  requirements:
19
19
  - - "~>"
20
20
  - !ruby/object:Gem::Version
21
- version: '5.6'
21
+ version: '5.7'
22
22
  type: :development
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - "~>"
27
27
  - !ruby/object:Gem::Version
28
- version: '5.6'
28
+ version: '5.7'
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: rdoc
31
31
  requirement: !ruby/object:Gem::Requirement