Skip to content

Commit 070237f

Browse files
authored
Prep for 1.5.0 release (#1418)
* update UPGRADING.md * Prep for 1.5.0 release
1 parent 88e252b commit 070237f

2 files changed

Lines changed: 27 additions & 19 deletions

File tree

‎UPGRADING.md‎

Lines changed: 26 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,27 @@
22

33
## Version 1.4 to 1.5
44

5-
### Base Classes Are Now Abstract
5+
### Security Fixes
66

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.
1226

1327
### Login Timing Hardening
1428

@@ -26,19 +40,13 @@ value. The command does not modify either file. Accounts with older password
2640
hash settings can still have different verification times until their hashes
2741
are upgraded.
2842

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
4044

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`.
4250

4351
## Version 1.2 to 1.3
4452

‎src/Auth.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class Auth
4242
/**
4343
* The current version of CodeIgniter Shield
4444
*/
45-
public const SHIELD_VERSION = '1.4.1';
45+
public const SHIELD_VERSION = '1.5.0';
4646

4747
protected ?Authentication $authenticate = null;
4848

0 commit comments

Comments
 (0)