actionpack 6.1.7.8 → 6.1.7.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

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
  SHA256:
3
- metadata.gz: 17584c20c784e0606e3937eddab9fabb4a5f55fd9d84ab642eae24bbc177c4e3
4
- data.tar.gz: 8a113cee87d7d51be4a47ae65e723a73f5ba7cdfc73b98971b347f6661214ee4
3
+ metadata.gz: 5e2feb7a890007f4dd081cedd5db0d2b6be3b92d433ac7f97a5b9f8d3153aad8
4
+ data.tar.gz: 74873796961ddf36eece387da1bb9cd0b045cc3e7b8feca5c6aaede5bee92a7f
5
5
  SHA512:
6
- metadata.gz: 25325ea54a87cdbe34ed8b666108fd41041009e85f442add0b3e661f71a58b2eab5bce5e804a23f35c3e7378940eaf37475d2d1f5f71496b44df10a66b9f565d
7
- data.tar.gz: 39564370b55e81c747a96a6a9f212b301d5ca3ed04f8d1aad662455fecd4d5fb85a71869b0d99769d81d240cca4c3ee06846d4a17422c8c9d32eb5037fce89ae
6
+ metadata.gz: 886da6125cef3d5a3db559d008744b26428e578e093e2529856dbcfee86cb4e19c908327e10af2e7204aa16b44920943d2df56d8d2126e94cf09591c32a12d81
7
+ data.tar.gz: a13c24553e675cce1b6756428050ca6de7fb50b4f978d6b6abb771be3bb067391f1acd2a68f32ca6b88502c095ca10653f82e981020b861f88ee1b75311a3bc0
data/CHANGELOG.md CHANGED
@@ -1,3 +1,14 @@
1
+ ## Rails 6.1.7.9 (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 6.1.7.8 (June 04, 2024) ##
2
13
 
3
14
  * Include the HTTP Permissions-Policy on non-HTML Content-Types
@@ -483,7 +483,8 @@ module ActionController
483
483
  # pairs by the standardized <tt>:</tt>, <tt>;</tt>, or <tt>\t</tt>
484
484
  # delimiters defined in +AUTHN_PAIR_DELIMITERS+.
485
485
  def raw_params(auth)
486
- _raw_params = auth.sub(TOKEN_REGEX, "").split(/\s*#{AUTHN_PAIR_DELIMITERS}\s*/)
486
+ _raw_params = auth.sub(TOKEN_REGEX, "").split(AUTHN_PAIR_DELIMITERS).map(&:strip)
487
+ _raw_params.reject!(&:empty?)
487
488
 
488
489
  if !_raw_params.first&.start_with?(TOKEN_KEY)
489
490
  _raw_params[0] = "#{TOKEN_KEY}#{_raw_params.first}"
@@ -73,12 +73,17 @@ module ActionDispatch
73
73
  ActiveSupport::ParameterFilter.new(filters)
74
74
  end
75
75
 
76
- KV_RE = "[^&;=]+"
77
- PAIR_RE = %r{(#{KV_RE})=(#{KV_RE})}
78
76
  def filtered_query_string # :doc:
79
- query_string.gsub(PAIR_RE) do |_|
80
- parameter_filter.filter($1 => $2).first.join("=")
77
+ parts = query_string.split(/([&;])/)
78
+ filtered_parts = parts.map do |part|
79
+ if part.include?("=")
80
+ key, value = part.split("=", 2)
81
+ parameter_filter.filter(key => value).first.join("=")
82
+ else
83
+ part
84
+ end
81
85
  end
86
+ filtered_parts.join("")
82
87
  end
83
88
  end
84
89
  end
@@ -10,7 +10,7 @@ module ActionPack
10
10
  MAJOR = 6
11
11
  MINOR = 1
12
12
  TINY = 7
13
- PRE = "8"
13
+ PRE = "9"
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: 6.1.7.8
4
+ version: 6.1.7.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson
8
- autorequire:
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: 6.1.7.8
19
+ version: 6.1.7.9
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: 6.1.7.8
26
+ version: 6.1.7.9
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: 6.1.7.8
101
+ version: 6.1.7.9
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: 6.1.7.8
108
+ version: 6.1.7.9
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: 6.1.7.8
115
+ version: 6.1.7.9
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: 6.1.7.8
122
+ version: 6.1.7.9
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
@@ -309,12 +309,12 @@ licenses:
309
309
  - MIT
310
310
  metadata:
311
311
  bug_tracker_uri: https://github.com/rails/rails/issues
312
- changelog_uri: https://github.com/rails/rails/blob/v6.1.7.8/actionpack/CHANGELOG.md
313
- documentation_uri: https://api.rubyonrails.org/v6.1.7.8/
312
+ changelog_uri: https://github.com/rails/rails/blob/v6.1.7.9/actionpack/CHANGELOG.md
313
+ documentation_uri: https://api.rubyonrails.org/v6.1.7.9/
314
314
  mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
315
- source_code_uri: https://github.com/rails/rails/tree/v6.1.7.8/actionpack
315
+ source_code_uri: https://github.com/rails/rails/tree/v6.1.7.9/actionpack
316
316
  rubygems_mfa_required: 'true'
317
- post_install_message:
317
+ post_install_message:
318
318
  rdoc_options: []
319
319
  require_paths:
320
320
  - lib
@@ -330,8 +330,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
330
330
  version: '0'
331
331
  requirements:
332
332
  - none
333
- rubygems_version: 3.3.27
334
- signing_key:
333
+ rubygems_version: 3.5.16
334
+ signing_key:
335
335
  specification_version: 4
336
336
  summary: Web-flow and rendering framework putting the VC in MVC (part of Rails).
337
337
  test_files: []