CVE-2023-48707
PHP vulnerability analysis and mitigation

Overview

CodeIgniter Shield, an authentication and authorization provider for CodeIgniter 4, was found to have a vulnerability (CVE-2023-48707) where the secretKey value, which is crucial for HMAC SHA256 authentication, was stored in cleartext form in the database. This vulnerability was discovered and disclosed on November 24, 2023, affecting versions prior to 1.0.0-beta.8. The issue has been patched in version 1.0.0-beta.8 (GitHub Advisory).

Technical details

The vulnerability stems from the improper storage of HMAC SHA256 authentication keys in the database. The secretKey, which is used for HMAC SHA256 authentication, was stored in cleartext form instead of being encrypted. The vulnerability has been assigned a CVSS v3.1 base score of 6.5 MEDIUM by NVD, with a vector string of CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N. The issue is classified under CWE-312 (Cleartext Storage of Sensitive Information) (NVD).

Impact

If a malicious actor gains access to the database, they could extract the stored secretKey and use it in combination with the key to impersonate users by sending authenticated requests on their behalf. This could lead to unauthorized access and potential account compromise (GitHub Advisory).

Mitigation and workarounds

Users are strongly advised to upgrade to Shield version 1.0.0-beta.8 or later. After upgrading, it is necessary to encrypt all existing secret keys. The patch implements proper encryption for the secretKey storage. There are no known workarounds for this vulnerability other than upgrading to the patched version (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management