GHSA-575r-357h-fhch: High severity composer/snipe/snipe-it vulnerability
Impact The API endpoint for updating asset maintenance records allows an authorized user to change the assetid of an existing maintenance record to an asset outside their company scope.
In a Full Multiple Company Support / multi-company deployment, this allows a user from Company A to attach or move a maintenance record onto an asset belonging to Company B. The endpoint appears to authorize access to the existing maintenance record’s asset, but does not re-authorize the newly supplied assetid before saving the update.
Affected endpoint PATCH /api/v1/maintenances/{maintenanceid}
Also likely affected:
PUT /api/v1/maintenances/{maintenanceid}
Preconditions The attacker needs: - A valid authenticated API token. - Permission to update asset maintenance records. - Access to a maintenance record currently attached to an asset in their own company.
The attacker does not need access to the target asset’s company.
Root cause In the API maintenance update flow, the application checks access to the current maintenance record / current asset, then accepts attacker-controlled fields including assetid.
The vulnerable behavior is that the new assetid is not checked against the current user’s company scope before being saved.
Relevant code path: app/Http/Controllers/Api/MaintenancesController.php
The update method loads the maintenance, checks access to the existing $maintenance->asset, then calls: php $maintenance->fill($request->all()); $maintenance->save();
Since assetid is fillable on the maintenance model, the attacker can re-parent the record to another company’s asset.
Workarounds Is there a way for users to fix or remediate the vulnerability without upgrading?
Security impact This breaks tenant/company isolation in multi-company deployments. A scoped user can write maintenance records against assets outside their authorized company boundary.
Potential impact includes: - Cross-company asset history pollution. - Unauthorized modification of another company’s asset maintenance timeline. - Incorrect maintenance, cost, audit, and warranty records on victim-company assets. - Loss of integrity in asset lifecycle records.
This is not intended functionality because the application’s company-scoping model should prevent users from writing records onto inaccessible assets.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
composer/snipe/snipe-itto a version that resolves this vulnerability.Fixed in 8.6.2
Event History
Frequently Asked Questions
Which deployments are exposed to cross-company maintenance record reassignment?
The issue applies to Full Multiple Company Support / multi-company deployments. It enables movement or attachment of maintenance records between assets owned by different companies.
What access does an attacker need to exploit this issue?
An attacker needs a valid authenticated API token, permission to update asset maintenance records, and access to a maintenance record associated with an asset in their own company. They do not need access to the company that owns the target asset.
Which API operations should be reviewed for exposure?
The confirmed affected operation is PATCH /api/v1/maintenances/{maintenance_id}. PUT /api/v1/maintenances/{maintenance_id} is also likely affected and should be assessed.