From fa2599d098f487c230dd02b20fa7865a2b9fe664 Mon Sep 17 00:00:00 2001 From: michalsn Date: Wed, 25 Nov 2026 15:45:41 +0100 Subject: [PATCH 1/2] update UPGRADING.md --- UPGRADING.md | 44 ++++++++++++++++++++++++++------------------ 1 file changed, 26 insertions(+), 18 deletions(-) diff --git a/UPGRADING.md b/UPGRADING.md index fc049640f..4e3005cfe 100644 --- a/UPGRADING.md +++ b/UPGRADING.md @@ -2,13 +2,27 @@ ## Version 1.4 to 1.5 -### Base Classes Are Now Abstract +### Security Fixes -- `CodeIgniter\Shield\Authentication\Passwords\BaseValidator` is now `abstract`. - Code that instantiated it directly with `new BaseValidator()` will now throw - an `Error`. -- `CodeIgniter\Shield\Config\BaseAuthToken` is now `abstract`. Code that - instantiated it directly with `new BaseAuthToken()` will now throw an `Error`. +This release fixes security vulnerabilities. Upgrading is strongly recommended. + +#### HMAC Token Expiration Enforcement + +See [GHSA-mq48-cjch-9gvp](https://github.com/codeigniter4/shield/security/advisories/GHSA-mq48-cjch-9gvp). + +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. + +HMAC tokens without an explicitly configured expiration date retain their existing behavior and remain subject to the configured `unusedTokenLifetime` restriction. + +#### Default Rate Limiting for Authentication Action Routes + +See [GHSA-5j45-j4v6-34wj](https://github.com/codeigniter4/shield/security/advisories/GHSA-5j45-j4v6-34wj). + +Shield now automatically applies the `auth-rates` filter to its built-in authentication action routes (`auth/a/*`) when routes are registered using `auth()->routes()`. + +Applications no longer need to configure the `auth-rates` filter manually for these routes. + +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. ### Login Timing Hardening @@ -26,19 +40,13 @@ value. The command does not modify either file. Accounts with older password hash settings can still have different verification times until their hashes are upgraded. -### HMAC Token Expiration Enforcement - -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. - -HMAC tokens without an explicitly configured expiration date retain their existing behavior and remain subject to the configured `unusedTokenLifetime` restriction. - -### Default Rate Limiting for Authentication Action Routes - -Shield now automatically applies the `auth-rates` filter to its built-in authentication action routes (`auth/a/*`) when routes are registered using `auth()->routes()`. - -Applications no longer need to configure the `auth-rates` filter manually for these routes. +### Base Classes Are Now Abstract -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. +- `CodeIgniter\Shield\Authentication\Passwords\BaseValidator` is now `abstract`. + Code that instantiated it directly with `new BaseValidator()` will now throw + an `Error`. +- `CodeIgniter\Shield\Config\BaseAuthToken` is now `abstract`. Code that + instantiated it directly with `new BaseAuthToken()` will now throw an `Error`. ## Version 1.2 to 1.3 From 08395baba6dd24a2846c889f22e2f99f8fccb512 Mon Sep 17 00:00:00 2001 From: michalsn Date: Wed, 25 Nov 2026 15:52:03 +0100 Subject: [PATCH 2/2] Prep for 1.5.0 release --- src/Auth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Auth.php b/src/Auth.php index a119ce122..01797a7ba 100644 --- a/src/Auth.php +++ b/src/Auth.php @@ -42,7 +42,7 @@ class Auth /** * The current version of CodeIgniter Shield */ - public const SHIELD_VERSION = '1.4.1'; + public const SHIELD_VERSION = '1.5.0'; protected ?Authentication $authenticate = null;