Medium

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

  • Disclosed: 04.05.2026
  • Updated: 11.10.2026 10:22

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 software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Composer package ci4-cms-erp/ci4ms >= 0.26.0, < 0.31.8.0 0.31.8.0

References

CVSS score -
CVSS vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
Weakness (CWE)
CWE-613
Platform
Composer
Package
ci4-cms-erp/ci4ms
Disclosed
04.05.2026
Updated
11.10.2026 10:22

Sources and licenses

OSV / GitHub Advisory Database - GHSA-5hfv-c864-qcq9 - CC BY 4.0

Vulnerability history: ci4-cms-erp/ci4ms

All published vulnerabilities of this package (Composer package), newest first. Shows whether this is a one-off slip or a package that needs watching.

All (36) in the archive
Total entries
36
First → latest
02.2026 05.2026
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • Critical 19
  • High 6
  • Medium 11

Disclosures per year

  1. 2026: 36
Severity:
  1. CI4MS has a Deactivated User Session Bypass (active=0) this entry
    Medium CVE-2026-41891 >= 0.26.0, < 0.31.8.0 0.31.8.0
  2. Critical CVE-2026-41203 < 0.31.5.0 0.31.5.0
  3. Critical CVE-2026-41202 < 0.31.5.0 0.31.5.0

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.