Skip to content
Access control Disclosed report Beginner CVE-2022-1155

Old sessions not blocked by login enable function in Snipe-IT

When a user account is disabled in Snipe-IT, their existing active sessions are not revoked, so the user can continue to access information they should no longer be able to. The issue affects versions 5.4.1 and 6.0.0-RC-5 and prior.

snipe/snipe-it

Originally disclosed on huntr

Snipe-IT is a FOSS project for asset management in IT Operations. In Snipe-IT versions 5.4.1 and 6.0.0-RC-5 and prior, active sessions are not revoked when a user account is disabled, allowing that user to still access information that they should no longer be able to. Workarounds include using the KillAllSessions console command, clearing the contents of the storage/framework/sessions directory, or changing the cookie name, but all of those options logout ALL users, which could be kind of annoying. This issue is fixed in versions 6.0.0-RC-6 and 5.4.2.

From the GitHub Advisory Database (GHSA-636j-7x7r-gvw2, CC BY 4.0).

The original report as published on the GitHub Advisory Database. Images and videos are our own copies; raw HTML is shown as text. View it on GitHub Advisory Database.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the application does not invalidate existing session records when an account is disabled, so previously issued session cookies remain valid.

Impact

A disabled user could still access information they should no longer be able to, until their session expires or is manually cleared.

What the attacker needed

A user account that gets disabled; an existing active session for that user

The fix

The issue was fixed in versions 6.0.0-RC-6 and 5.4.2.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

When an account is disabled, the system should immediately stop that person from using the application. Here, the old login session stays valid, so the disabled user can keep browsing as if nothing happened. This is like changing the locks but not asking for the old keys back.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More from snipe/snipe-it

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.