9.8critical
UpSnap - Unauthenticated Initial-Superuser Takeover Chains to Root RCE via wake_cmd
- Severity
- 9.8critical CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.79% (higher than 57% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
Description
UpSnap is a wake on lan web app. Versions 4.4.1 through 5.3.5 are vulnerable to a missing-authentication / privilege-escalation chain in `pb.HandlerInitSuperuser` (`backend/pb/handlers.go:249`), reachable as `POST /api/upsnap/init-superuser`. The vulnerable code lacks any authentication, setup token, IP allow-list, or rate limit and is gated only by a `totalSuperusers > 0` count check — a condition that is false on every fresh install — allowing an unauthenticated network-adjacent attacker to register the initial superuser account, receive a long-lived JWT, and pivot to root remote code execution at `backend/networking/wake.go:43` (`exec.CommandContext(ctx, "/bin/sh", "-c", wake_cmd)`). Version 5.4.0 fixes the issue.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| seriousm4x UpSnap | >= 4.4.1, < 5.4.0 | CVE List |
Classification
What each source says
CVE List
UpSnap is a wake on lan web app. Versions 4.4.1 through 5.3.5 are vulnerable to a missing-authentication / privilege-escalation chain in `pb.HandlerInitSuperuser` (`backend/pb/handlers.go:249`), reachable as `POST /api/upsnap/init-superuser`. The vulnerable code lacks any authentication, setup token, IP allow-list, or rate limit and is gated only by a `totalSuperusers > 0` count check — a condition that is false on every fresh install — allowing an unauthenticated network-adjacent attacker to register the initial superuser account, receive a long-lived JWT, and pivot to root remote code execution at `backend/networking/wake.go:43` (`exec.CommandContext(ctx, "/bin/sh", "-c", wake_cmd)`). Version 5.4.0 fixes the issue.
NVD (es)
UpSnap es una aplicación web de wake on lan. Las versiones 4.4.1 a la 5.3.5 son vulnerables a una cadena de falta de autenticación / escalada de privilegios en “pb.HandlerInitSuperuser” (“backend/pb/handlers.go:249”), accesible como “POST /api/upsnap/init-superuser”. El código vulnerable carece de cualquier autenticación, token de configuración, lista de permitidos de IP, o límite de tasa y está restringido solo por una verificación de conteo “totalSuperusers mayor que 0” - una condición que es falsa en cada instalación nueva - permitiendo a un atacante adyacente a la red no autenticado registrar la cuenta de superusuario inicial, recibir un JWT de larga duración, y pivotar a ejecución remota de código como root en “backend/networking/wake.go:43” (“exec.CommandContext(ctx, “/bin/sh”, “-c”, wake_cmd)”). La versión 5.4.0 corrige el problema.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-49819 changed 2026-08-13 | CVE Terms of Use |
| NVD | CVE-2026-49819 changed 2026-10-24 | Public domain |