** Descrizione
- POC per CVE-2022-24990: esecuzione remota di comandi senza autenticazione su TerraMaster TOS tramite istanziazione di oggetti PHP.
- creato da antx il 2022-04-12.
** Dettagli
- La vulnerabilità consente a un attaccante remoto di eseguire comandi arbitrari sul sistema di destinazione.
- La vulnerabilità è dovuta a una convalida impropria degli input nel componente webNasIPS dello script api.php. Un attaccante remoto non autenticato può inviare dati appositamente predisposti all'applicazione ed eseguire comandi arbitrari sul sistema di destinazione.
- Lo sfruttamento riuscito di questa vulnerabilità può portare al compromesso completo del sistema vulnerabile.
** Severità CVE
- attackComplexity: LOW
- attackVector: NETWORK
- availabilityImpact: HIGH
- confidentialityImpact: HIGH
- integrityImpact: HIGH
- privilegesRequired: NONE
- scope: UNCHANGED
- userInteraction: NONE
- version: 3.1
- baseScore: 10.0
- baseSeverity: CRITICAL
** Versioni interessate
- TerraMaster TOS
- < 4.2.30
- Tutte le versioni 4.1.x
** POC
- [[./CVE-2022-24990.py][Poc]]
** Riferimenti
- Fonte di riferimento
- [[https://github.com/lishang520/CVE-2022-24990][CVE-2022-24990信息泄露+RCE 一条龙]]
- [[https://www.cybersecurity-help.cz/vdb/SB2022031606][Iniezione di comandi in TerraMaster TOS]]
- CVE
- [[http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-24990][CVE-2022-24990]]
- CNVD
- [[https://www.cnvd.org.cn/flaw/show/CNVD-2022-17750][CNVD-2022-17750]]
- CNNVD
- [[http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-202203-1539][CNNVD-202203-1539]]
- Motore PoC di riferimento
- [[https://github.com/antx-code/pocx][pocx]]