webauthn 3.5.1 → 3.5.2
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.
- checksums.yaml +4 -4
- data/.github/workflows/build.yml +12 -9
- data/CHANGELOG.md +11 -1
- data/SECURITY.md +8 -8
- data/lib/webauthn/relying_party.rb +27 -5
- data/lib/webauthn/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d710e1891023999984104214ea7a5341af1932e1b460eb41f1dac6ff49c0d80b
|
|
4
|
+
data.tar.gz: 818462f8be9f41b9b9f1ed86ea25bbe9212aefa242c299b04478998be4883228
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bf4c245d7b652cadea04534d4900100699bd92f6518134e8a85ace030ca10cc9b7eaecfef966413d644f231e1e90a892e16a382e3ed8e1a89bbc60fc185e14a1
|
|
7
|
+
data.tar.gz: b3897617a05c3c51b53155cd83e1e72d7c9fc73232d9a4921d7684226f394caffe979b987b43a5e09091b24811a7e1fad2ec3bfb0ef2beace38405f1c6d23106
|
data/.github/workflows/build.yml
CHANGED
|
@@ -27,24 +27,27 @@ jobs:
|
|
|
27
27
|
- '3.2'
|
|
28
28
|
- '3.1'
|
|
29
29
|
openssl:
|
|
30
|
-
- '4.
|
|
31
|
-
- '
|
|
32
|
-
- '3.5
|
|
33
|
-
- '3.
|
|
30
|
+
- '4.1.0'
|
|
31
|
+
- '4.0.3'
|
|
32
|
+
- '3.6.5'
|
|
33
|
+
- '3.5.9'
|
|
34
|
+
- '3.4.8'
|
|
34
35
|
- '3.3.5'
|
|
35
36
|
- '3.2.6'
|
|
36
37
|
- '3.1.8'
|
|
37
38
|
- '3.0.18'
|
|
38
39
|
- '1.1.1w'
|
|
39
40
|
exclude:
|
|
40
|
-
# Ruby 3.1-3.
|
|
41
|
+
# Ruby 3.1-3.2 bundle an `openssl` gem too old for OpenSSL 4.
|
|
41
42
|
# Re-enable once upstream ships patch releases that bump it.
|
|
42
|
-
- ruby: '3.3'
|
|
43
|
-
openssl: '4.0.0'
|
|
44
43
|
- ruby: '3.2'
|
|
45
|
-
openssl: '4.
|
|
44
|
+
openssl: '4.1.0'
|
|
45
|
+
- ruby: '3.2'
|
|
46
|
+
openssl: '4.0.3'
|
|
47
|
+
- ruby: '3.1'
|
|
48
|
+
openssl: '4.1.0'
|
|
46
49
|
- ruby: '3.1'
|
|
47
|
-
openssl: '4.0.
|
|
50
|
+
openssl: '4.0.3'
|
|
48
51
|
include:
|
|
49
52
|
- ruby: truffleruby
|
|
50
53
|
- ruby: '3.0'
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## [Unreleased](https://github.com/cedarcode/webauthn-ruby/compare/v3.5.
|
|
3
|
+
## [Unreleased](https://github.com/cedarcode/webauthn-ruby/compare/v3.5.2...master/)
|
|
4
|
+
|
|
5
|
+
## [v3.5.2](https://github.com/cedarcode/webauthn-ruby/compare/v3.5.1...v3.5.2/) - 2026-12-01
|
|
6
|
+
|
|
7
|
+
### Deprecated
|
|
8
|
+
|
|
9
|
+
- Passing a value other than an Array to `allowed_origins` or `allowed_top_origins` now prints a deprecation warning. A future major version will raise an error instead. [GHSA-97v8-p42x-qfhv](https://github.com/cedarcode/webauthn-ruby/security/advisories/GHSA-97v8-p42x-qfhv) [@santiagorodriguez96]
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
|
|
13
|
+
- Match origins exactly when `allowed_origins` or `allowed_top_origins` is set to a String. Before, origin verification accepted any origin that was a substring of the configured String. [GHSA-97v8-p42x-qfhv](https://github.com/cedarcode/webauthn-ruby/security/advisories/GHSA-97v8-p42x-qfhv) [@santiagorodriguez96]
|
|
4
14
|
|
|
5
15
|
## [v3.5.1](https://github.com/cedarcode/webauthn-ruby/compare/v3.5.0...v3.5.1/) - 2026-11-10
|
|
6
16
|
|
data/SECURITY.md
CHANGED
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
| Version | Supported |
|
|
6
6
|
| ------- | ------------------ |
|
|
7
|
-
|
|
|
8
|
-
|
|
|
9
|
-
|
|
|
10
|
-
|
|
|
11
|
-
|
|
|
12
|
-
|
|
|
13
|
-
|
|
|
14
|
-
| <
|
|
7
|
+
| 3.5.z | :white_check_mark: |
|
|
8
|
+
| 3.4.z | :white_check_mark: |
|
|
9
|
+
| 3.3.z | :white_check_mark: |
|
|
10
|
+
| 3.2.z | :x: |
|
|
11
|
+
| 3.1.z | :x: |
|
|
12
|
+
| 3.0.z | :x: |
|
|
13
|
+
| 2.5.z | :white_check_mark: |
|
|
14
|
+
| < 2.5 | :x: |
|
|
15
15
|
|
|
16
16
|
## Reporting a Vulnerability
|
|
17
17
|
|
|
@@ -33,8 +33,8 @@ module WebAuthn
|
|
|
33
33
|
)
|
|
34
34
|
@algorithms = algorithms
|
|
35
35
|
@encoding = encoding
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
self.allowed_origins = allowed_origins
|
|
37
|
+
self.allowed_top_origins = allowed_top_origins
|
|
38
38
|
@id = id
|
|
39
39
|
@name = name
|
|
40
40
|
@verify_attestation_statement = verify_attestation_statement
|
|
@@ -49,8 +49,6 @@ module WebAuthn
|
|
|
49
49
|
|
|
50
50
|
attr_accessor :algorithms,
|
|
51
51
|
:encoding,
|
|
52
|
-
:allowed_origins,
|
|
53
|
-
:allowed_top_origins,
|
|
54
52
|
:id,
|
|
55
53
|
:name,
|
|
56
54
|
:verify_attestation_statement,
|
|
@@ -60,7 +58,31 @@ module WebAuthn
|
|
|
60
58
|
:acceptable_attestation_types,
|
|
61
59
|
:legacy_u2f_appid
|
|
62
60
|
|
|
63
|
-
attr_reader :
|
|
61
|
+
attr_reader :allowed_origins,
|
|
62
|
+
:allowed_top_origins,
|
|
63
|
+
:attestation_root_certificates_finders
|
|
64
|
+
|
|
65
|
+
def allowed_origins=(origins)
|
|
66
|
+
if origins && !origins.is_a?(Array)
|
|
67
|
+
warn(
|
|
68
|
+
"DEPRECATION WARNING: Passing a #{origins.class} to `allowed_origins` is deprecated " \
|
|
69
|
+
"and will raise an error in a future version. Please use an Array instead."
|
|
70
|
+
)
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
@allowed_origins = origins.is_a?(String) ? [origins] : origins
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
def allowed_top_origins=(origins)
|
|
77
|
+
if origins && !origins.is_a?(Array)
|
|
78
|
+
warn(
|
|
79
|
+
"DEPRECATION WARNING: Passing a #{origins.class} to `allowed_top_origins` is deprecated " \
|
|
80
|
+
"and will raise an error in a future version. Please use an Array instead."
|
|
81
|
+
)
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
@allowed_top_origins = origins.is_a?(String) ? [origins] : origins
|
|
85
|
+
end
|
|
64
86
|
|
|
65
87
|
# This is the user-data encoder.
|
|
66
88
|
# Used to decode user input and to encode data provided to the user.
|
data/lib/webauthn/version.rb
CHANGED