CVE-2023-48708: Codeigniter4/shield Insertion Of Sensitive Information Into Vulnerability

MODERATE
Advisory Identifier: GHSA-j72f-h752-mx4w
CVSS 5.0
CWE-532
Published
Advisory Summary

CVE-2023-48708 is a MODERATE (CVSS 5.0) insertion of sensitive information into vulnerability (CWE-532: Insertion of Sensitive Information into Log File) affecting Codeigniter4/shield libraries in the Packagist ecosystem. The issue involves insertion of sensitive information into log. Remediation is available by upgrading affected packages to version 1.0.0-beta.8.

CVE-2023-48708 at a Glance

CVE Identifier CVE-2023-48708
GHSA Identifier GHSA-j72f-h752-mx4w
Severity MODERATE
CVSS v3.1 Base Score 5.0
CWE Classification CWE-532: Insertion of Sensitive Information into Log File
Affected Product Codeigniter4/shield
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 5.0

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required High (PR:H)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2023-48708

To remediate this vulnerability, upgrade all affected Codeigniter4/shield dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

codeigniter4/shield fixed: 1.0.0-beta.8
Upgrade codeigniter4/shield to 1.0.0-beta.8
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for codeigniter4/shield

How to Check if You Are Affected

To determine whether your application is affected by CVE-2023-48708, inspect your project dependencies for Codeigniter4/shield:

inspect dependencies for codeigniter4/shield

Analyze the terminal output to locate any version of Codeigniter4/shield in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.0.0-beta.8), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-532: Insertion of Sensitive Information into Log File, where the product writes sensitive information to a log file. In Codeigniter4/shield, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact If 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**, - [AccessTokens](https://codeigniter4.github.io/shield/references/authentication/tokens/) (`tokens`) - [JWT](https://codeigniter4.github.io/shield/addons/jwt/) (`jwt`) - [HmacSha256](https://codeigniter4.github.io/shield/references/authentication/hmac/) (`hmac`) and you (2) **log successful login attempts**, the raw tokens are stored. ### Patches Upgrade to Shield v1.0.0-beta.8 or later. ### Workarounds Disable logging for successful login attempts by the configuration files. - AccessTokens or HmacSha256 - Set `Config\AuthToken::$recordLoginAttempt` to `Auth::RECORD_LOGIN_ATTEMPT_FAILURE` or `Auth::RECORD_LOGIN_ATTEMPT_NONE` - JWT - Set `Config\AuthJWT::$recordLoginAttempt` to `Auth::RECORD_LOGIN_ATTEMPT_FAILURE` or `Auth::RECORD_LOGIN_ATTEMPT_NONE` ### References - https://codeigniter4.github.io/shield/getting_started/authenticators/ ### For more information If you have any questions or comments about this advisory: * Open an issue or discussion in [codeigniter4/shield](https://github.com/codeigniter4/shield) * Email us at [security@codeigniter.com](mailto:security@codeigniter.com)

CVE-2023-48708 Affected Codeigniter4/shield Versions

1 component(s)
Fixed Versions:
1.0.0-beta.8
Product / Package Ecosystem Affected Versions Fixed Version
codeigniter4/shield
Packagist
< 1.0.0-beta.8
1.0.0-beta.8

References

Frequently Asked Questions

What is CVE-2023-48708?
CVE-2023-48708 is a security vulnerability in Codeigniter4/shield involving Insertion of Sensitive Information into Log under CWE-532: Insertion of Sensitive Information into Log File.
Which Codeigniter4/shield versions are affected?
Affected versions include releases prior to 1.0.0-beta.8 across affected packages: codeigniter4/shield.
What version fixes CVE-2023-48708?
Upgrading to 1.0.0-beta.8 (or the latest patched release for your respective branch) resolves the vulnerability.
Is codeigniter4/shield affected?
Yes, codeigniter4/shield is affected in releases prior to 1.0.0-beta.8. Upgrade your dependency to 1.0.0-beta.8 or later.
What is the CVSS score of CVE-2023-48708?
CVE-2023-48708 has a CVSS v3.1 base score of 5.0 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:L/A:N.
What CWE is associated with CVE-2023-48708?
CVE-2023-48708 is classified under CWE-532: Insertion of Sensitive Information into Log File (The product writes sensitive information to a log file.).
How can I check Packagist dependencies for CVE-2023-48708?
Run the dependency tree command: 'inspect dependencies for codeigniter4/shield'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-j72f-h752-mx4w",
  "modified" : "2023-11-27T21:44:44Z",
  "published" : "2023-11-23T00:28:13Z",
  "aliases" : [ "CVE-2023-48708" ],
  "summary" : "Insertion of Sensitive Information into Log",
  "details" : "### Impact\nIf successful login attempts are recorded, the raw tokens are stored in the log table.\nIf 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.\n\nWhen you (1) **use the following authentiactors**,\n- [AccessTokens](https://codeigniter4.github.io/shield/references/authentication/tokens/) (`tokens`)\n- [JWT](https://codeigniter4.github.io/shield/addons/jwt/) (`jwt`)\n- [HmacSha256](https://codeigniter4.github.io/shield/references/authentication/hmac/) (`hmac`)\n\nand you (2) **log successful login attempts**, the raw tokens are stored.\n\n### Patches\nUpgrade to Shield v1.0.0-beta.8 or later.\n\n### Workarounds\nDisable logging for successful login attempts by the configuration files.\n\n- AccessTokens or HmacSha256\n   - Set `Config\\AuthToken::$recordLoginAttempt` to `Auth::RECORD_LOGIN_ATTEMPT_FAILURE` or `Auth::RECORD_LOGIN_ATTEMPT_NONE`\n- JWT\n   - Set `Config\\AuthJWT::$recordLoginAttempt` to `Auth::RECORD_LOGIN_ATTEMPT_FAILURE` or `Auth::RECORD_LOGIN_ATTEMPT_NONE`\n\n### References\n- https://codeigniter4.github.io/shield/getting_started/authenticators/\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue or discussion in [codeigniter4/shield](https://github.com/codeigniter4/shield)\n* Email us at [security@codeigniter.com](mailto:security@codeigniter.com)\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "codeigniter4/shield"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.0.0-beta.8"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/codeigniter4/shield/security/advisories/GHSA-j72f-h752-mx4w"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-48708"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/codeigniter4/shield/commit/7e84c3fb3411294f70890819bfe51781bb9dc8e4"
  }, {
    "type" : "WEB",
    "url" : "https://codeigniter4.github.io/shield/getting_started/authenticators"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/codeigniter4/shield"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-532" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-11-23T00:28:13Z",
    "nvd_published_at" : "2023-11-24T18:15:07Z"
  }
}