actionpack 4.2.5.1 → 4.2.5.2

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

Potentially problematic release.


This version of actionpack might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1aec2016214c6c4775581a163240a66c63a0bea7
4
- data.tar.gz: 5c2b19e2b035b0043cae2d128fdbaa534d262a1f
3
+ metadata.gz: 0d4bc341a96e4ea09a18ab840a392702b3dd9199
4
+ data.tar.gz: 13e89a7faf1ee64f6b0e0ef161a94d40ceeac7af
5
5
  SHA512:
6
- metadata.gz: 9cddee477c014c4fc932c9c5e6ace3def12fcc4a7405b62c1c32345499f53376589e4bcf36977ea669fbd2e51dad489934ba5c83876314f5a21f1a699c8f4cf7
7
- data.tar.gz: 47bb161d384b6030a6b9b32c2b137bae4319e84ecbab6167390d19facb5312d41d6f2e90a4d621aaa896a4794c5c722e56fbf1a654d417e88373bfba1276a62d
6
+ metadata.gz: 9c2c4ffcf6061b77476f664d9767b196664af0486ff0ebbe2406124f864a64a941d23d4eb57973b7b17f6ba0fa6fa6b818a87021055a75af9072edc3ef34b966
7
+ data.tar.gz: a35f616a7ab4fce5093948f7173d8942e53cbb67e3d12446eec201b0b62d504bc8b44b24be89dbfbd62804df6bf75c7c3c69aa4f8eebcebc4731f13c9eca2534
data/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## Rails 4.2.5.2 (February 26, 2016) ##
2
+
3
+ * Do not allow render with unpermitted parameter.
4
+
5
+ Fixes CVE-2016-2098.
6
+
7
+ *Arthur Neves*
8
+
9
+
10
+ ## Rails 4.2.5.1 (January 25, 2015) ##
11
+
12
+ * No changes.
13
+
14
+
1
15
  ## Rails 4.2.5 (November 12, 2015) ##
2
16
 
3
17
  * `ActionController::TestCase` can teardown gracefully if an error is raised
@@ -77,13 +77,13 @@ module AbstractController
77
77
  # render "foo/bar" to render :file => "foo/bar".
78
78
  # :api: plugin
79
79
  def _normalize_args(action=nil, options={})
80
- case action
81
- when ActionController::Parameters
82
- unless action.permitted?
80
+ if action.respond_to?(:permitted?)
81
+ if action.permitted?
82
+ action
83
+ else
83
84
  raise ArgumentError, "render parameters are not permitted"
84
85
  end
85
- action
86
- when Hash
86
+ elsif action.is_a?(Hash)
87
87
  action
88
88
  else
89
89
  options
@@ -8,7 +8,7 @@ module ActionPack
8
8
  MAJOR = 4
9
9
  MINOR = 2
10
10
  TINY = 5
11
- PRE = "1"
11
+ PRE = "2"
12
12
 
13
13
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
14
14
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: actionpack
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.5.1
4
+ version: 4.2.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-25 00:00:00.000000000 Z
11
+ date: 2016-02-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 4.2.5.1
19
+ version: 4.2.5.2
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 4.2.5.1
26
+ version: 4.2.5.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rack
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -98,28 +98,28 @@ dependencies:
98
98
  requirements:
99
99
  - - '='
100
100
  - !ruby/object:Gem::Version
101
- version: 4.2.5.1
101
+ version: 4.2.5.2
102
102
  type: :runtime
103
103
  prerelease: false
104
104
  version_requirements: !ruby/object:Gem::Requirement
105
105
  requirements:
106
106
  - - '='
107
107
  - !ruby/object:Gem::Version
108
- version: 4.2.5.1
108
+ version: 4.2.5.2
109
109
  - !ruby/object:Gem::Dependency
110
110
  name: activemodel
111
111
  requirement: !ruby/object:Gem::Requirement
112
112
  requirements:
113
113
  - - '='
114
114
  - !ruby/object:Gem::Version
115
- version: 4.2.5.1
115
+ version: 4.2.5.2
116
116
  type: :development
117
117
  prerelease: false
118
118
  version_requirements: !ruby/object:Gem::Requirement
119
119
  requirements:
120
120
  - - '='
121
121
  - !ruby/object:Gem::Version
122
- version: 4.2.5.1
122
+ version: 4.2.5.2
123
123
  description: Web apps on Rails. Simple, battle-tested conventions for building and
124
124
  testing MVC web applications. Works with any Rack-compatible server.
125
125
  email: david@loudthinking.com