Skip to content
Access control Disclosed report Beginner CVE-2021-4089

snipe-it is vulnerable to Improper Access Control

A missing authorisation check on the model clone endpoint allowed regular users with all model permissions denied to view model information. An attacker could access data they were not permitted to see.

snipe/snipe-it

Originally disclosed on huntr

snipe-it prior to version 5.3.4 is vulnerable to Improper Access Control. Regular users with DENY set to all models permissions can still view model information via the /models/{id}/clone endpoint due to no authorize('view') permission being set.

From the GitHub Advisory Database (GHSA-9vwf-54m9-gc4f, 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

The clone endpoint lacked an authorisation check for the 'view' permission.

Impact

A regular user with all model permissions denied could view model information they should not have access to.

What the attacker needed

A regular user account; all model permissions set to DENY

The fix

The issue was fixed in version 5.3.4 by adding the missing authorisation check.

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.

In many web apps, each page or action checks whether you are allowed to do it. Here, one page (the clone page for a model) forgot to check if you are allowed to view that model. So even if your account was set to deny all model permissions, you could still open that page and see the model's details.

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.