ZTNET privilege bypass: any user can deactivate arbitrary accounts via /api/auth/user/invalidateUser
Impact
ZTNET versions prior to 0.8.0 have a privilege bypass vulnerability, allowing any authenticated user to deactivate another account, including administrators, via the /api/auth/user/invalidateUser endpoint. An attacker needs a normal account and the victim's user ID. This can lock out administrators and deny access to targeted users.
Summarized by @cf/meta/llama-3.3-70b-instruct-fp8-fast. Verify details against the original sources.Affected packages
Affected products
Vendor version evidence. Product records are separate from automatic dependency matching.
sinamics · GitHub_M
ztnet
1 range
sinamics · GitHub_M
ztnet
Compare with this publisher’s ranges. This does not inspect your installation.
affected
< 0.8.0
Other versions: unknown
Original source description
ZTNET is a ZeroTier web UI for private controllers with multiuser and organization support. Prior to 0.8.0, any authenticated low-privilege user can permanently deactivate another account, including an administrator, through POST /api/auth/user/invalidateUser. In src/pages/api/auth/user/invalidateUser.ts, getServerSession checks only that a session exists and does not compare session.user.id with the client-supplied userId. Supplying a victim's userId and a deviceId for which no matching pair exists in UserDevice makes the handler set the target account's isActive to false. Login is then refused by src/server/auth.ts with account-expired. An attacker needs only a normal authenticated account and the victim's user ID, which may be obtainable from member lists, UI responses, logs, or other application metadata. This can lock administrators out, disrupt organization management, and deny access to any targeted user. This issue is fixed in version 0.8.0.
Inside the record
Evidence available
Describes the evidence in this view, not whether the product is safe.
Original records
CVE-2026-62967View the latest unmodified CVE JSON from the official source. It may be newer than this imported page.
cve.new JSON →Underlying weaknesses
The source’s classification of what caused the vulnerability.
Contributing organizations · 1
Assigning organization
What changed
Follow changesLarge field values are marked as truncated previews. Original source snapshots remain retained.