Arcane: Environment access token bypasses the admin-required authorization gate on `/api/debug/pprof`
getarcaneapp arcane
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| github.com/getarcaneapp/arcane/backend/v2 Go |
|
|
| github.com/getarcaneapp/arcane/backend Go |
| No fix yet |
Original description
Arcane is an interface for managing Docker containers, images, networks, and volumes. Prior to 2.11.0, AuthMiddleware.managerAuth accepts X-Arcane-Agent-Token credentials and the environment-token branch calls next before the AdminRequired option is evaluated. An attacker with a valid X-Arcane-Agent-Token can request /api/debug/pprof/* through a route protected by WithAdminRequired because EnvironmentPermissionSet is installed and the request continues without checking IsGlobalAdmin. This exposes administrator-restricted Go pprof runtime and diagnostic information and may impose profiling overhead. This issue is fixed in version 2.11.0.