Skip to content

Missing ownership check on the job cancel endpoint lets any authenticated user cancel another user's job

Moderate
snapotter-hq published GHSA-wqxf-gj2p-689x Jul 29, 2026

Software

snapotter

Affected versions

>= 2.0.0, <= 2.1.0

Patched versions

2.2.0

Description

Summary

POST /api/v1/jobs/:jobId/cancel authenticated the caller but never checked that the job belonged to them. Any authenticated user who knew or guessed a job id could cancel another user's job.

Impact

An authenticated user could cancel work belonging to any other user on the instance, destroying in-flight processing and its result. Job ids are UUIDs, so this is not trivially enumerable, but ids are visible to a user across the SSE progress stream and the job APIs for their own work, and any leaked or logged id is enough.

The impact is limited to availability of another user's job. No file contents, job settings or account data were exposed by this endpoint.

Patches

Fixed in 2.2.0. Versions 2.0.0 through 2.1.0 are affected.

The endpoint now loads the job's owner and allows cancellation only for that owner, or for a caller holding files:all. Missing jobs and jobs owned by someone else both return 404, so the endpoint does not leak whether a given job id exists. The route moved into a shared registerJobRoutes() so the ownership check sits behind test coverage.

Workarounds

None beyond upgrading. Any authenticated account can reach the endpoint, so the exposure only closes on 2.2.0.

References

Fix: #599 (commit 577d74b)

Credit

Reported by Alpesh Bhagwatkar, https://github.com/Alpastx.

Severity

Moderate

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
Low

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L

CVE ID

No known CVE

Weaknesses

Authorization Bypass Through User-Controlled Key

The system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data. Learn more on MITRE.

Credits