CVE-2023-48708
PHP vulnerability analysis and mitigation

Overview

CodeIgniter Shield, an authentication and authorization provider for CodeIgniter 4, was found to have a security vulnerability (CVE-2023-48708) where successful login attempts were recorded with raw tokens stored in the log table. The vulnerability was discovered and disclosed on November 24, 2023, affecting versions prior to 1.0.0-beta.8. The issue impacts the authentication system when using AccessTokens, JWT, or HmacSha256 authenticators (GitHub Advisory).

Technical details

The vulnerability is classified as CWE-532 (Insertion of Sensitive Information into Log File). When successful login attempts are logged, the system stores raw authentication tokens in the authtokenlogins table. The vulnerability has a CVSS v3.1 base score of 6.5 MEDIUM (NIST) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N, though GitHub assessed it as 5.0 MEDIUM with vector string CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:L/A:N (NVD).

Impact

If a malicious actor gains access to the log table, they can obtain the raw tokens stored within it. These tokens can then be used to make unauthorized requests with the legitimate user's authority, potentially compromising the security of the affected system (GitHub Advisory).

Mitigation and workarounds

The issue has been patched in version 1.0.0-beta.8. Users are advised to upgrade to this version or later. For those unable to upgrade immediately, a workaround is available by disabling logging for successful login attempts in the configuration files. For AccessTokens or HmacSha256, set Config\AuthToken::$recordLoginAttempt to Auth::RECORDLOGINATTEMPTFAILURE or Auth::RECORDLOGINATTEMPTNONE. For JWT, set Config\AuthJWT::$recordLoginAttempt to Auth::RECORDLOGINATTEMPTFAILURE or Auth::RECORDLOGINATTEMPTNONE (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-13828CRITICAL9
  • PHPPHP
  • mautic/core
NoYesDec 02, 2025
CVE-2025-13827HIGH8.8
  • PHPPHP
  • mautic/grapes-js-builder-bundle
NoYesDec 02, 2025
CVE-2025-66312MEDIUM6.2
  • PHPPHP
  • getgrav/grav
NoYesDec 01, 2025
CVE-2025-66311MEDIUM6.2
  • PHPPHP
  • getgrav/grav
NoYesDec 01, 2025
CVE-2025-66310MEDIUM6.2
  • PHPPHP
  • getgrav/grav
NoYesDec 01, 2025

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