GIVE YOUR AGENT THE EVIDENCE

Set up in your agent.

One prompt to get started. Paste it into your coding agent to connect cve.new through MCP and bring vulnerability context into your workflow.

Your agent needs remote MCP support and access to https://cve.new/mcp.

Read the setup guide

GIVE YOUR AGENT THE EVIDENCE

Investigate in your agent.

Turn this advisory into a focused investigation. Ask your agent to check your project’s versions, explain the evidence, and suggest a compatible fix.

Your agent needs remote MCP support and access to https://cve.new/mcp.

Read the setup guide

GHSA-5hfv-c864-qcq9medium5.3

CI4MS has a Deactivated User Session Bypass (active=0)

Check your stack

The advisory, in context

Summary

The auth filter has the deactivated/banned user check commented out.

Details

CodeIgniter Shield's loggedIn() re-checks the status field (catching status='banned'), but does not re-check the active field for existing sessions. When an admin deactivates a user (active=0) after they have already logged in:

  • Their session cookie remains valid
  • auth()->loggedIn() still returns true
  • The commented-out code is the only mechanism that would have checked !$user->active

Evidence

<img width="981" height="654" alt="image" src="https://github.com/user-attachments/assets/6f75d144-5bcf-4a3f-bc35-bb0715c3ed05" />

Impact

  • User deactivation does NOT immediately revoke backend access
  • Deactivated user retains full access until session expires (default: 7200s)

Additional note

The commented-out block appears to be a deferred placeholder — it was written but disabled from the very first commit that introduced the filter, and has never been active. The later addition of SessionTracker (v0.31.4.0) suggests the dev was aware of the session revocation gap, but account-level deactivation (users.active = 0) remains unenforced. Could you verify if this is intentionally pending or simply forgotten and not documented?.

Affected packages

Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.

Ecosystem versions

From 0.26.0 before 0.31.8.0

Fixed in 0.31.8.0

22 explicitly affected versions

0.26.0.0, 0.26.1.0, 0.26.2.0, 0.26.3.0, 0.26.3.1, 0.26.3.2, 0.26.3.3, 0.26.3.4, 0.27.0.0, 0.28.0.0, 0.28.3.0, 0.28.4.0, 0.28.5.0, 0.28.6.0, 0.31.0.0, 0.31.1.0, 0.31.2.0, 0.31.3.0, 0.31.4.0, 0.31.5.0, 0.31.6.0, 0.31.7.0

View affected-version evidence
{
  "ranges": [
    {
      "events": [
        {
          "introduced": "0.26.0"
        },
        {
          "fixed": "0.31.8.0"
        }
      ],
      "type": "ECOSYSTEM"
    }
  ],
  "versions": [
    "0.26.0.0",
    "0.26.1.0",
    "0.26.2.0",
    "0.26.3.0",
    "0.26.3.1",
    "0.26.3.2",
    "0.26.3.3",
    "0.26.3.4",
    "0.27.0.0",
    "0.28.0.0",
    "0.28.3.0",
    "0.28.4.0",
    "0.28.5.0",
    "0.28.6.0",
    "0.31.0.0",
    "0.31.1.0",
    "0.31.2.0",
    "0.31.3.0",
    "0.31.4.0",
    "0.31.5.0",
    "0.31.6.0",
    "0.31.7.0"
  ]
}

References