codeigniter4/shield
Authentication and Authorization for CodeIgniter 4
Activity
- Latest release
- 4w ago
- Total releases
- 17
- Cadence
- ~2 months
- Last 12 months
- 3
Reach
- Stars
- 423
Details
- License
- MIT
- First release
- Jun 03, 2022
| Version | Released | |
|---|---|---|
v1.4.1
patch
| ||
v1.4.0
minor
| ||
v1.3.0
minor
| ||
v1.2.0
minor
| ||
v1.1.0
minor
| ||
v1.0.3
patch
| ||
v1.0.2
patch
| ||
v1.0.1
patch
| ||
v1.0.0
initial
| ||
v1.0.0-beta.8
pre
| ||
v1.0.0-beta.7
pre
2 CVEs
CVE-2023-48707
GHSA-v427-c49j-8w6x
Nov 23, 2023
Cleartext Storage of Sensitive Information in HMAC SHA256 Authentication
5.0
/ 10
Medium
Network
High
High
None
Unchanged
High
Low
None
ImpactsecretKey, an important key for HMAC SHA256 authentication, was stored in the database in raw form. If a malicious person somehow had access to the data in the database, they could use the key and secretKey for HMAC SHA256 authentication to send requests impersonating that person. PatchesUpgrade to Shield v1.0.0-beta.8 or later. After upgrading, all existing secret keys must be encrypted. See https://github.com/codeigniter4/shield/blob/develop/UPGRADING.md for details. WorkaroundsNone. References
For more informationIf you have any questions or comments about this advisory:
Affected versions
v1.0.0-beta
v1.0.0-beta.2
v1.0.0-beta.3
v1.0.0-beta.4
v1.0.0-beta.5
v1.0.0-beta.6
v1.0.0-beta.7
Fixed in
1.0.0-beta.8
References Updated Sep 10, 2026 · Source: OSV.dev
CVE-2023-48708
GHSA-j72f-h752-mx4w
Nov 23, 2023
Insertion of Sensitive Information into Log
5.0
/ 10
Medium
Network
High
High
None
Unchanged
High
Low
None
ImpactIf successful login attempts are recorded, the raw tokens are stored in the log table. If a malicious person somehow views the data in the log table, he or she can obtain a raw token, which can then be used to send a request with that user's authority. When you (1) use the following authentiactors,
and you (2) log successful login attempts, the raw tokens are stored. PatchesUpgrade to Shield v1.0.0-beta.8 or later. WorkaroundsDisable logging for successful login attempts by the configuration files.
References
For more informationIf you have any questions or comments about this advisory:
Affected versions
v1.0.0-beta
v1.0.0-beta.2
v1.0.0-beta.3
v1.0.0-beta.4
v1.0.0-beta.5
v1.0.0-beta.6
v1.0.0-beta.7
Fixed in
1.0.0-beta.8
References
Updated Feb 16, 2024 · Source: OSV.dev | ||
v1.0.0-beta.6
pre
2 CVEs
CVE-2023-48707
GHSA-v427-c49j-8w6x
Nov 23, 2023
Cleartext Storage of Sensitive Information in HMAC SHA256 Authentication
5.0
/ 10
Medium
Network
High
High
None
Unchanged
High
Low
None
ImpactsecretKey, an important key for HMAC SHA256 authentication, was stored in the database in raw form. If a malicious person somehow had access to the data in the database, they could use the key and secretKey for HMAC SHA256 authentication to send requests impersonating that person. PatchesUpgrade to Shield v1.0.0-beta.8 or later. After upgrading, all existing secret keys must be encrypted. See https://github.com/codeigniter4/shield/blob/develop/UPGRADING.md for details. WorkaroundsNone. References
For more informationIf you have any questions or comments about this advisory:
Affected versions
v1.0.0-beta
v1.0.0-beta.2
v1.0.0-beta.3
v1.0.0-beta.4
v1.0.0-beta.5
v1.0.0-beta.6
v1.0.0-beta.7
Fixed in
1.0.0-beta.8
References Updated Sep 10, 2026 · Source: OSV.dev
CVE-2023-48708
GHSA-j72f-h752-mx4w
Nov 23, 2023
Insertion of Sensitive Information into Log
5.0
/ 10
Medium
Network
High
High
None
Unchanged
High
Low
None
ImpactIf successful login attempts are recorded, the raw tokens are stored in the log table. If a malicious person somehow views the data in the log table, he or she can obtain a raw token, which can then be used to send a request with that user's authority. When you (1) use the following authentiactors,
and you (2) log successful login attempts, the raw tokens are stored. PatchesUpgrade to Shield v1.0.0-beta.8 or later. WorkaroundsDisable logging for successful login attempts by the configuration files.
References
For more informationIf you have any questions or comments about this advisory:
Affected versions
v1.0.0-beta
v1.0.0-beta.2
v1.0.0-beta.3
v1.0.0-beta.4
v1.0.0-beta.5
v1.0.0-beta.6
v1.0.0-beta.7
Fixed in
1.0.0-beta.8
References
Updated Feb 16, 2024 · Source: OSV.dev | ||
v1.0.0-beta.5
pre
2 CVEs
CVE-2023-48707
GHSA-v427-c49j-8w6x
Nov 23, 2023
Cleartext Storage of Sensitive Information in HMAC SHA256 Authentication
5.0
/ 10
Medium
Network
High
High
None
Unchanged
High
Low
None
ImpactsecretKey, an important key for HMAC SHA256 authentication, was stored in the database in raw form. If a malicious person somehow had access to the data in the database, they could use the key and secretKey for HMAC SHA256 authentication to send requests impersonating that person. PatchesUpgrade to Shield v1.0.0-beta.8 or later. After upgrading, all existing secret keys must be encrypted. See https://github.com/codeigniter4/shield/blob/develop/UPGRADING.md for details. WorkaroundsNone. References
For more informationIf you have any questions or comments about this advisory:
Affected versions
v1.0.0-beta
v1.0.0-beta.2
v1.0.0-beta.3
v1.0.0-beta.4
v1.0.0-beta.5
v1.0.0-beta.6
v1.0.0-beta.7
Fixed in
1.0.0-beta.8
References Updated Sep 10, 2026 · Source: OSV.dev
CVE-2023-48708
GHSA-j72f-h752-mx4w
Nov 23, 2023
Insertion of Sensitive Information into Log
5.0
/ 10
Medium
Network
High
High
None
Unchanged
High
Low
None
ImpactIf successful login attempts are recorded, the raw tokens are stored in the log table. If a malicious person somehow views the data in the log table, he or she can obtain a raw token, which can then be used to send a request with that user's authority. When you (1) use the following authentiactors,
and you (2) log successful login attempts, the raw tokens are stored. PatchesUpgrade to Shield v1.0.0-beta.8 or later. WorkaroundsDisable logging for successful login attempts by the configuration files.
References
For more informationIf you have any questions or comments about this advisory:
Affected versions
v1.0.0-beta
v1.0.0-beta.2
v1.0.0-beta.3
v1.0.0-beta.4
v1.0.0-beta.5
v1.0.0-beta.6
v1.0.0-beta.7
Fixed in
1.0.0-beta.8
References
Updated Feb 16, 2024 · Source: OSV.dev | ||
v1.0.0-beta.4
pre
2 CVEs
CVE-2023-48707
GHSA-v427-c49j-8w6x
Nov 23, 2023
Cleartext Storage of Sensitive Information in HMAC SHA256 Authentication
5.0
/ 10
Medium
Network
High
High
None
Unchanged
High
Low
None
ImpactsecretKey, an important key for HMAC SHA256 authentication, was stored in the database in raw form. If a malicious person somehow had access to the data in the database, they could use the key and secretKey for HMAC SHA256 authentication to send requests impersonating that person. PatchesUpgrade to Shield v1.0.0-beta.8 or later. After upgrading, all existing secret keys must be encrypted. See https://github.com/codeigniter4/shield/blob/develop/UPGRADING.md for details. WorkaroundsNone. References
For more informationIf you have any questions or comments about this advisory:
Affected versions
v1.0.0-beta
v1.0.0-beta.2
v1.0.0-beta.3
v1.0.0-beta.4
v1.0.0-beta.5
v1.0.0-beta.6
v1.0.0-beta.7
Fixed in
1.0.0-beta.8
References Updated Sep 10, 2026 · Source: OSV.dev
CVE-2023-48708
GHSA-j72f-h752-mx4w
Nov 23, 2023
Insertion of Sensitive Information into Log
5.0
/ 10
Medium
Network
High
High
None
Unchanged
High
Low
None
ImpactIf successful login attempts are recorded, the raw tokens are stored in the log table. If a malicious person somehow views the data in the log table, he or she can obtain a raw token, which can then be used to send a request with that user's authority. When you (1) use the following authentiactors,
and you (2) log successful login attempts, the raw tokens are stored. PatchesUpgrade to Shield v1.0.0-beta.8 or later. WorkaroundsDisable logging for successful login attempts by the configuration files.
References
For more informationIf you have any questions or comments about this advisory:
Affected versions
v1.0.0-beta
v1.0.0-beta.2
v1.0.0-beta.3
v1.0.0-beta.4
v1.0.0-beta.5
v1.0.0-beta.6
v1.0.0-beta.7
Fixed in
1.0.0-beta.8
References
Updated Feb 16, 2024 · Source: OSV.dev | ||
v1.0.0-beta.3
pre
3 CVEs
CVE-2023-48707
GHSA-v427-c49j-8w6x
Nov 23, 2023
Cleartext Storage of Sensitive Information in HMAC SHA256 Authentication
5.0
/ 10
Medium
Network
High
High
None
Unchanged
High
Low
None
ImpactsecretKey, an important key for HMAC SHA256 authentication, was stored in the database in raw form. If a malicious person somehow had access to the data in the database, they could use the key and secretKey for HMAC SHA256 authentication to send requests impersonating that person. PatchesUpgrade to Shield v1.0.0-beta.8 or later. After upgrading, all existing secret keys must be encrypted. See https://github.com/codeigniter4/shield/blob/develop/UPGRADING.md for details. WorkaroundsNone. References
For more informationIf you have any questions or comments about this advisory:
Affected versions
v1.0.0-beta
v1.0.0-beta.2
v1.0.0-beta.3
v1.0.0-beta.4
v1.0.0-beta.5
v1.0.0-beta.6
v1.0.0-beta.7
Fixed in
1.0.0-beta.8
References Updated Sep 10, 2026 · Source: OSV.dev
CVE-2023-48708
GHSA-j72f-h752-mx4w
Nov 23, 2023
Insertion of Sensitive Information into Log
5.0
/ 10
Medium
Network
High
High
None
Unchanged
High
Low
None
ImpactIf successful login attempts are recorded, the raw tokens are stored in the log table. If a malicious person somehow views the data in the log table, he or she can obtain a raw token, which can then be used to send a request with that user's authority. When you (1) use the following authentiactors,
and you (2) log successful login attempts, the raw tokens are stored. PatchesUpgrade to Shield v1.0.0-beta.8 or later. WorkaroundsDisable logging for successful login attempts by the configuration files.
References
For more informationIf you have any questions or comments about this advisory:
Affected versions
v1.0.0-beta
v1.0.0-beta.2
v1.0.0-beta.3
v1.0.0-beta.4
v1.0.0-beta.5
v1.0.0-beta.6
v1.0.0-beta.7
Fixed in
1.0.0-beta.8
References
Updated Feb 16, 2024 · Source: OSV.dev
CVE-2023-27580
GHSA-c5vj-f36q-p9vg
Mar 13, 2023
Password Shucking Vulnerability
5.9
/ 10
Medium
Network
High
None
None
Unchanged
High
None
None
ImpactAn improper implementation was found in the password storage process. All hashed passwords stored in Shield v1.0.0-beta.3 or earlier are easier to crack than expected due to the vulnerability. Therefore, they should be removed as soon as possible. If an attacker gets (1) the user's hashed password by Shield, and (2) the hashed password (SHA-384 hash without salt) from somewhere, the attacker may easily crack the user's password. PatchesUpgrade to Shield v1.0.0-beta.4 or later. After upgrading, all users’ hashed passwords should be updated (saved to the database). See https://github.com/codeigniter4/shield/blob/develop/UPGRADING.md for details. WorkaroundsNone. References
For more informationIf you have any questions or comments about this advisory:
Affected versions
v1.0.0-beta
v1.0.0-beta.2
v1.0.0-beta.3
Fixed in
1.0.0-beta.4
References
Updated Nov 08, 2023 · Source: OSV.dev | ||
v1.0.0-beta.2
pre
3 CVEs
CVE-2023-48707
GHSA-v427-c49j-8w6x
Nov 23, 2023
Cleartext Storage of Sensitive Information in HMAC SHA256 Authentication
5.0
/ 10
Medium
Network
High
High
None
Unchanged
High
Low
None
ImpactsecretKey, an important key for HMAC SHA256 authentication, was stored in the database in raw form. If a malicious person somehow had access to the data in the database, they could use the key and secretKey for HMAC SHA256 authentication to send requests impersonating that person. PatchesUpgrade to Shield v1.0.0-beta.8 or later. After upgrading, all existing secret keys must be encrypted. See https://github.com/codeigniter4/shield/blob/develop/UPGRADING.md for details. WorkaroundsNone. References
For more informationIf you have any questions or comments about this advisory:
Affected versions
v1.0.0-beta
v1.0.0-beta.2
v1.0.0-beta.3
v1.0.0-beta.4
v1.0.0-beta.5
v1.0.0-beta.6
v1.0.0-beta.7
Fixed in
1.0.0-beta.8
References Updated Sep 10, 2026 · Source: OSV.dev
CVE-2023-48708
GHSA-j72f-h752-mx4w
Nov 23, 2023
Insertion of Sensitive Information into Log
5.0
/ 10
Medium
Network
High
High
None
Unchanged
High
Low
None
ImpactIf successful login attempts are recorded, the raw tokens are stored in the log table. If a malicious person somehow views the data in the log table, he or she can obtain a raw token, which can then be used to send a request with that user's authority. When you (1) use the following authentiactors,
and you (2) log successful login attempts, the raw tokens are stored. PatchesUpgrade to Shield v1.0.0-beta.8 or later. WorkaroundsDisable logging for successful login attempts by the configuration files.
References
For more informationIf you have any questions or comments about this advisory:
Affected versions
v1.0.0-beta
v1.0.0-beta.2
v1.0.0-beta.3
v1.0.0-beta.4
v1.0.0-beta.5
v1.0.0-beta.6
v1.0.0-beta.7
Fixed in
1.0.0-beta.8
References
Updated Feb 16, 2024 · Source: OSV.dev
CVE-2023-27580
GHSA-c5vj-f36q-p9vg
Mar 13, 2023
Password Shucking Vulnerability
5.9
/ 10
Medium
Network
High
None
None
Unchanged
High
None
None
ImpactAn improper implementation was found in the password storage process. All hashed passwords stored in Shield v1.0.0-beta.3 or earlier are easier to crack than expected due to the vulnerability. Therefore, they should be removed as soon as possible. If an attacker gets (1) the user's hashed password by Shield, and (2) the hashed password (SHA-384 hash without salt) from somewhere, the attacker may easily crack the user's password. PatchesUpgrade to Shield v1.0.0-beta.4 or later. After upgrading, all users’ hashed passwords should be updated (saved to the database). See https://github.com/codeigniter4/shield/blob/develop/UPGRADING.md for details. WorkaroundsNone. References
For more informationIf you have any questions or comments about this advisory:
Affected versions
v1.0.0-beta
v1.0.0-beta.2
v1.0.0-beta.3
Fixed in
1.0.0-beta.4
References
Updated Nov 08, 2023 · Source: OSV.dev | ||
v1.0.0-beta
pre
4 CVEs
CVE-2023-48707
GHSA-v427-c49j-8w6x
Nov 23, 2023
Cleartext Storage of Sensitive Information in HMAC SHA256 Authentication
5.0
/ 10
Medium
Network
High
High
None
Unchanged
High
Low
None
ImpactsecretKey, an important key for HMAC SHA256 authentication, was stored in the database in raw form. If a malicious person somehow had access to the data in the database, they could use the key and secretKey for HMAC SHA256 authentication to send requests impersonating that person. PatchesUpgrade to Shield v1.0.0-beta.8 or later. After upgrading, all existing secret keys must be encrypted. See https://github.com/codeigniter4/shield/blob/develop/UPGRADING.md for details. WorkaroundsNone. References
For more informationIf you have any questions or comments about this advisory:
Affected versions
v1.0.0-beta
v1.0.0-beta.2
v1.0.0-beta.3
v1.0.0-beta.4
v1.0.0-beta.5
v1.0.0-beta.6
v1.0.0-beta.7
Fixed in
1.0.0-beta.8
References Updated Sep 10, 2026 · Source: OSV.dev
CVE-2023-48708
GHSA-j72f-h752-mx4w
Nov 23, 2023
Insertion of Sensitive Information into Log
5.0
/ 10
Medium
Network
High
High
None
Unchanged
High
Low
None
ImpactIf successful login attempts are recorded, the raw tokens are stored in the log table. If a malicious person somehow views the data in the log table, he or she can obtain a raw token, which can then be used to send a request with that user's authority. When you (1) use the following authentiactors,
and you (2) log successful login attempts, the raw tokens are stored. PatchesUpgrade to Shield v1.0.0-beta.8 or later. WorkaroundsDisable logging for successful login attempts by the configuration files.
References
For more informationIf you have any questions or comments about this advisory:
Affected versions
v1.0.0-beta
v1.0.0-beta.2
v1.0.0-beta.3
v1.0.0-beta.4
v1.0.0-beta.5
v1.0.0-beta.6
v1.0.0-beta.7
Fixed in
1.0.0-beta.8
References
Updated Feb 16, 2024 · Source: OSV.dev
CVE-2023-27580
GHSA-c5vj-f36q-p9vg
Mar 13, 2023
Password Shucking Vulnerability
5.9
/ 10
Medium
Network
High
None
None
Unchanged
High
None
None
ImpactAn improper implementation was found in the password storage process. All hashed passwords stored in Shield v1.0.0-beta.3 or earlier are easier to crack than expected due to the vulnerability. Therefore, they should be removed as soon as possible. If an attacker gets (1) the user's hashed password by Shield, and (2) the hashed password (SHA-384 hash without salt) from somewhere, the attacker may easily crack the user's password. PatchesUpgrade to Shield v1.0.0-beta.4 or later. After upgrading, all users’ hashed passwords should be updated (saved to the database). See https://github.com/codeigniter4/shield/blob/develop/UPGRADING.md for details. WorkaroundsNone. References
For more informationIf you have any questions or comments about this advisory:
Affected versions
v1.0.0-beta
v1.0.0-beta.2
v1.0.0-beta.3
Fixed in
1.0.0-beta.4
References
Updated Nov 08, 2023 · Source: OSV.dev
CVE-2022-35943
GHSA-5hm8-vh6r-2cjq
BIT-codeigniter-2022-35943
Aug 18, 2022
CodeIgniter Shield Vulnerable to SameSite Attackers Bypassing the CSRF Protection
5.9
/ 10
Medium
Network
High
None
Required
Unchanged
None
High
Low
ImpactThis vulnerability may allow SameSite Attackers to bypass the CodeIgniter4 CSRF protection mechanism with CodeIgniter Shield. For this attack to succeed, the attacker must have direct (or indirect, e.g., XSS) control over a subdomain site (e.g., This vulnerability exists whether PatchesUpgrade to CodeIgniter v4.2.3 or later and Shield v1.0.0-beta.2 or later. WorkaroundsDo all of the following:
ReferencesFor more informationIf you have any questions or comments about this advisory:
Affected versions
1.0.0-beta
v1.0.0-beta
Fixed in
1.0.0-beta.2
References
Updated Dec 06, 2023 · Source: OSV.dev |