You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 070237f
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: UPGRADING.md
+26-18Lines changed: 26 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,13 +2,27 @@
2
2
3
3
## Version 1.4 to 1.5
4
4
5
-
### Base Classes Are Now Abstract
5
+
### Security Fixes
6
6
7
-
-`CodeIgniter\Shield\Authentication\Passwords\BaseValidator` is now `abstract`.
8
-
Code that instantiated it directly with `new BaseValidator()` will now throw
9
-
an `Error`.
10
-
-`CodeIgniter\Shield\Config\BaseAuthToken` is now `abstract`. Code that
11
-
instantiated it directly with `new BaseAuthToken()` will now throw an `Error`.
7
+
This release fixes security vulnerabilities. Upgrading is strongly recommended.
8
+
9
+
#### HMAC Token Expiration Enforcement
10
+
11
+
See [GHSA-mq48-cjch-9gvp](https://github.com/codeigniter4/shield/security/advisories/GHSA-mq48-cjch-9gvp).
12
+
13
+
HMAC tokens with an explicitly configured expiration date are now rejected during authentication once they have expired. Previously, the `HmacSha256` authenticator did not enforce the configured expiration date, allowing expired tokens to remain usable if their signatures were valid.
14
+
15
+
HMAC tokens without an explicitly configured expiration date retain their existing behavior and remain subject to the configured `unusedTokenLifetime` restriction.
16
+
17
+
#### Default Rate Limiting for Authentication Action Routes
18
+
19
+
See [GHSA-5j45-j4v6-34wj](https://github.com/codeigniter4/shield/security/advisories/GHSA-5j45-j4v6-34wj).
20
+
21
+
Shield now automatically applies the `auth-rates` filter to its built-in authentication action routes (`auth/a/*`) when routes are registered using `auth()->routes()`.
22
+
23
+
Applications no longer need to configure the `auth-rates` filter manually for these routes.
24
+
25
+
If your application previously included `auth/*` in its `auth-rates` filter configuration solely to protect Shield's built-in authentication action routes, you can remove that pattern. Keep it if you also need to protect custom authentication routes.
12
26
13
27
### Login Timing Hardening
14
28
@@ -26,19 +40,13 @@ value. The command does not modify either file. Accounts with older password
26
40
hash settings can still have different verification times until their hashes
27
41
are upgraded.
28
42
29
-
### HMAC Token Expiration Enforcement
30
-
31
-
HMAC tokens with an explicitly configured expiration date are now rejected during authentication once they have expired. Previously, the `HmacSha256` authenticator did not enforce the configured expiration date, allowing expired tokens to remain usable if their signatures were valid.
32
-
33
-
HMAC tokens without an explicitly configured expiration date retain their existing behavior and remain subject to the configured `unusedTokenLifetime` restriction.
34
-
35
-
### Default Rate Limiting for Authentication Action Routes
36
-
37
-
Shield now automatically applies the `auth-rates` filter to its built-in authentication action routes (`auth/a/*`) when routes are registered using `auth()->routes()`.
38
-
39
-
Applications no longer need to configure the `auth-rates` filter manually for these routes.
43
+
### Base Classes Are Now Abstract
40
44
41
-
If your application previously included `auth/*` in its `auth-rates` filter configuration solely to protect Shield's built-in authentication action routes, you can remove that pattern. Keep it if you also need to protect custom authentication routes.
45
+
-`CodeIgniter\Shield\Authentication\Passwords\BaseValidator` is now `abstract`.
46
+
Code that instantiated it directly with `new BaseValidator()` will now throw
47
+
an `Error`.
48
+
-`CodeIgniter\Shield\Config\BaseAuthToken` is now `abstract`. Code that
49
+
instantiated it directly with `new BaseAuthToken()` will now throw an `Error`.
0 commit comments