github.com/getarcaneapp/arcane/backend/v2
Affected
- introduced
0, fixed2.6.0(semver)
Fixed versions
2.6.0
Fix
- Fixed version
2.6.0go get github.com/getarcaneapp/arcane/backend/[email protected]
Advisory
Also known as: CVE-2026-96627, GO-2026-6807
Arcane: Delegated users:update permission allows admin account takeover via password reset (no privilege-hierarchy check)
Summary
A user holding the delegated users:update permission can reset the global administrator's password and take over the admin account. UpdateUser sets the target user's PasswordHash from the request body for ANY target with no comparison of caller-vs-target privilege. Because role assignment and role CRUD are deliberately gated by RequireGlobalAdmin, users:update is intended to sit BELOW admin (profile management); this finding defeats that separation.
Root CauseUpdateUser (handler backend/api/handlers/users.go:317-323) loads the target by ID and sets userModel.PasswordHash from the request body for any user, then userService.UpdateUser (user_service.go:174) simply tx.Saves — with NO actor-vs-target privilege comparison. The only IsGlobalAdmin guard (user_service.go:345) is a last-admin check inside DeleteUser, not the update path. Role assignment / role CRUD are RequireGlobalAdmin (backend/pkg/authz/permissions.go:27-33), proving users:update is intended below admin.
Impact
Complete administrator account takeover (C:H/I:H/A:H) by any holder of the delegated users:update permission.
Proof of Concept
users:update.PUT /users/{adminId} with {"password":"attacker123"}.POST /auth/login {"username":"arcane","password":"attacker123"} → admin session.Attack Chain
users:update. Guard: role creation is RequireGlobalAdmin. Bypass: intended delegation (holder is meant to manage profiles, not seize admin).PUT /users/{adminId} {"password":"attacker123"}. Guard: RequirePermission(users:update) (users.go:154). Bypass: holder has it; no hierarchy check (users.go:317-323, user_service.go:174 unconditional Save).POST /auth/login as admin → admin session.Bypass Evidence
users.go:317-323 sets PasswordHash for any target; user_service.go:174-194 has no actor/target privilege comparison.IsGlobalAdmin hits are DeleteUser's last-admin guard and DTO flags (grep).users:update is org-level, held by no built-in non-admin role (permissions.go:24).Affected Versions<= 2.5.0.
Reported by zx (Jace) — GitHub: @manus-use
High Basis: The source's own band: HIGH
0, fixed 2.6.0 (semver)2.6.0
2.6.0go get github.com/getarcaneapp/arcane/backend/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0