actionpack 7.0.8.4 → 7.0.8.5

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
  SHA256:
3
- metadata.gz: 401770d290571f4e04cb3dd9eb8907310a1f32333d98dcc2c81086efbad0c5ea
4
- data.tar.gz: 84622dc210bb7abbcb33104f18e810697d4988f1b7327a1a11bceeaaba92feea
3
+ metadata.gz: 674d7ab95a19a8e20618b674de61f05a16b8525904ec04088b9e51c35ec57910
4
+ data.tar.gz: 4e118b499335d173215d2012baa270e03ba10fa683b663b25ab5e656e7d28608
5
5
  SHA512:
6
- metadata.gz: 0f14a00f906e304b91efa5bf25a5ef3b51e379dc7a002d60c729ae383d04e87c5b4abab2c6057355a4760ef11ade5c969ac03e5a5473b74edc83ab8d238e4968
7
- data.tar.gz: c3ef7f7058d635efbeab9d23f95c11727db0ec126f557a5c1e7e4cbb8290e31e18cff94457bc22aadcf474a45d2522f04f0188d3175c15e48f2d6689c3cf7d81
6
+ metadata.gz: 5df4f331a6622ab1286b48b3588f9475b7ed6132c7a6063e50306170634aba0affa2ab1401581dbbfab898553d7b92b34cb1e3987fc100a8956a2255a5cb91fa
7
+ data.tar.gz: da8be10bca3b1ec2379d39b7bcc70639621bd86c0922e4422efa76560d0de65775bd997e9b9edf00f9eb2acd9889044aaa451fa11d33f8da02982affe9c64adb
data/CHANGELOG.md CHANGED
@@ -1,3 +1,14 @@
1
+ ## Rails 7.0.8.5 (October 15, 2024) ##
2
+
3
+ * Avoid regex backtracking in HTTP Token authentication
4
+
5
+ [CVE-2024-47887]
6
+
7
+ * Avoid regex backtracking in query parameter filtering
8
+
9
+ [CVE-2024-41128]
10
+
11
+
1
12
  ## Rails 7.0.8.4 (June 04, 2024) ##
2
13
 
3
14
  * Include the HTTP Permissions-Policy on non-HTML Content-Types
@@ -506,7 +506,8 @@ module ActionController
506
506
  # pairs by the standardized <tt>:</tt>, <tt>;</tt>, or <tt>\t</tt>
507
507
  # delimiters defined in +AUTHN_PAIR_DELIMITERS+.
508
508
  def raw_params(auth)
509
- _raw_params = auth.sub(TOKEN_REGEX, "").split(/\s*#{AUTHN_PAIR_DELIMITERS}\s*/)
509
+ _raw_params = auth.sub(TOKEN_REGEX, "").split(AUTHN_PAIR_DELIMITERS).map(&:strip)
510
+ _raw_params.reject!(&:empty?)
510
511
 
511
512
  if !_raw_params.first&.start_with?(TOKEN_KEY)
512
513
  _raw_params[0] = "#{TOKEN_KEY}#{_raw_params.first}"
@@ -58,12 +58,17 @@ module ActionDispatch
58
58
  ActiveSupport::ParameterFilter.new(filters)
59
59
  end
60
60
 
61
- KV_RE = "[^&;=]+"
62
- PAIR_RE = %r{(#{KV_RE})=(#{KV_RE})}
63
61
  def filtered_query_string # :doc:
64
- query_string.gsub(PAIR_RE) do |_|
65
- parameter_filter.filter($1 => $2).first.join("=")
62
+ parts = query_string.split(/([&;])/)
63
+ filtered_parts = parts.map do |part|
64
+ if part.include?("=")
65
+ key, value = part.split("=", 2)
66
+ parameter_filter.filter(key => value).first.join("=")
67
+ else
68
+ part
69
+ end
66
70
  end
71
+ filtered_parts.join("")
67
72
  end
68
73
  end
69
74
  end
@@ -10,7 +10,7 @@ module ActionPack
10
10
  MAJOR = 7
11
11
  MINOR = 0
12
12
  TINY = 8
13
- PRE = "4"
13
+ PRE = "5"
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
16
16
  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: 7.0.8.4
4
+ version: 7.0.8.5
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: 2024-06-04 00:00:00.000000000 Z
11
+ date: 2024-10-15 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: 7.0.8.4
19
+ version: 7.0.8.5
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: 7.0.8.4
26
+ version: 7.0.8.5
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: 7.0.8.4
101
+ version: 7.0.8.5
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: 7.0.8.4
108
+ version: 7.0.8.5
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: 7.0.8.4
115
+ version: 7.0.8.5
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: 7.0.8.4
122
+ version: 7.0.8.5
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
@@ -310,10 +310,10 @@ licenses:
310
310
  - MIT
311
311
  metadata:
312
312
  bug_tracker_uri: https://github.com/rails/rails/issues
313
- changelog_uri: https://github.com/rails/rails/blob/v7.0.8.4/actionpack/CHANGELOG.md
314
- documentation_uri: https://api.rubyonrails.org/v7.0.8.4/
313
+ changelog_uri: https://github.com/rails/rails/blob/v7.0.8.5/actionpack/CHANGELOG.md
314
+ documentation_uri: https://api.rubyonrails.org/v7.0.8.5/
315
315
  mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
316
- source_code_uri: https://github.com/rails/rails/tree/v7.0.8.4/actionpack
316
+ source_code_uri: https://github.com/rails/rails/tree/v7.0.8.5/actionpack
317
317
  rubygems_mfa_required: 'true'
318
318
  post_install_message:
319
319
  rdoc_options: []
@@ -331,7 +331,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
331
331
  version: '0'
332
332
  requirements:
333
333
  - none
334
- rubygems_version: 3.3.27
334
+ rubygems_version: 3.5.16
335
335
  signing_key:
336
336
  specification_version: 4
337
337
  summary: Web-flow and rendering framework putting the VC in MVC (part of Rails).