Ubiquiti Air OS 0day Remote Command Execution

Emanuele Gentili, nome in codice emgent,  ha recentemente diffuso un exploit per la piattaforma Air OS installata sui dispositivi Wireless della Ubiquiti il quale permetterebbe la visualizzazione di dati sensibili (password, chiavi wireless, ecc ecc) tramite l’accesso da un semplice utente “ospite”.

Possiamo verificare quanto affermato da emgent dall’immagine sovrastante che impressiona la password admin del dispositivo in uso, la password fortunatamente non è in chiaro ma è il risultato di una funzione interna crittografica.

Dopo il salto troverete l’exploit…


# Exploit Title: Ubiquity Nanostation5 (Air OS) 0day Remote Command Execution
# Date: 01 07 2010
# Author: Emanuele 'emgent' Gentili
# Software Link: N/A
# Version: AirOS all firmwares
# CVE : N/A

[+] Vulnerability Descrition
With not privileged account, like read-only, an attacker is able to execute commands into
the system via web application panel. Knowing that the system.cfg file is located in /tmp/ directory,
will be simple read the content (like users, password, wireless key ecc.).
The vulnerable function is about "Show AP info", that is located in the main page of web panel
in the section "Extra Informations".

[+] The Remote Command Execution string
http://router_ip/stainfo.cgi?ifname=eth0;cat%20/tmp/system.cfg|grep%20users

[+] Responsible Disclosure
After some mail with Ubnt QA and Security Team people, the fixed firmware was released.

Via – Exploit-DB