CVE-2023-27580 CodeIgniter Shield Password Shucking Vulnerability
Attackers can easily crack user passwords if they obtain the unsalted SHA-384 hash, compromising user accounts in CodeIgniter Shield.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-27580?
CVE-2023-27580 is a high-severity vulnerability in codeigniter4 shield, published on 13 Mar 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
CodeIgniter Shield provides authentication and authorization for the CodeIgniter 4 PHP framework. An 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. Upgrade to Shield v1.0.0-beta.4 or later to fix this issue. After upgrading, all users’ hashed passwords should be updated (saved to the database). There are no known workarounds.
Weakness: CWE-916
Which versions are affected by CVE-2023-27580?
2 open source packages ship an affected version, including codeigniter4/shield. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
codeigniter4/shield Packagist | All versions | 1.0.0-beta.4 |
codeigniter4/shield Packagist | All versions | 1.0.0-beta.4 |
Products include Codeigniter Shield.
How do I fix CVE-2023-27580?
Upgrade codeigniter4/shield to 1.0.0-beta.4 or later.
Is CVE-2023-27580 being exploited?
There is no known exploitation of CVE-2023-27580 in the wild and no public exploit code.
Other vulnerabilities in codeigniter4 shield
Sources
Also known as GHSA-c5vj-f36q-p9vg.