elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.
 
Inicio Ayuda Buscar Ingresar Registrarse
25 Mayo 2012, 06:47  


Tema destacado: Nueva página de elhacker.net en Google+ Google+

+  Foro de elhacker.net
|-+  Seguridad Informática
| |-+  Bugs y Exploits (Moderador: berz3k)
| | |-+  BOF y código de ejecución arbitrario en el cliente FTP de Windows
0 Usuarios y 1 Visitante están viendo este tema.
Páginas: [1] Ir Abajo Respuesta Imprimir
Autor Tema: BOF y código de ejecución arbitrario en el cliente FTP de Windows  (Leído 1,356 veces)
WHK
吴阿卡
Ex-Staff
*
Desconectado Desconectado

Mensajes: 4.113


The Hacktivism is not a crime


Ver Perfil WWW
BOF y código de ejecución arbitrario en el cliente FTP de Windows
« en: 28 Noviembre 2007, 20:47 »


Esta vulnerabilidad se basa en un desbordamiento de la memoria remoto donde un atacante puede engañar a una persona de conectarse al servidor FTP del atacante atraves del cliente FTP de Windows de la persona afectada pudiendo ejecutar comandos arbitrariamente con los derechos de la seción de la victima.

Esta vulnerabilidad ha sido probada en

Windows 2000 server
Windows 2000 Professional
Windows XP


La vulnerabilidad ha sido localizada dentro de los comandos "mget",
"dir", "user", "password" y "ls".


Fuentes:
http://seclists.org/bugtraq/2007/Nov/0397.html
http://www.xdisclose.com/advisory/XD100096.html
http://whk.h4ck1ng.net/2007-11.28/multiples-vulnerabilidades-en-microsoft-ftp-client/

Texto original:
Citar
Microsoft FTP Client Multiple Bufferoverflow
Vulnerability

#####################################

XDisclose Advisory : XD100096
Vulnerability Discovered: November 20th 2007
Advisory Reported : November 28th 2007
Credit : Rajesh Sethumadhavan

Class : Buffer Overflow
                          Denial Of Service
Solution Status : Unpatched
Vendor : Microsoft Corporation
Affected applications : Microsoft FTP Client
Affected Platform : Windows 2000 server
                          Windows 2000 Professional
                          Windows XP
                          (Other Versions may be also effected)

#####################################

Overview:
Bufferoverflow vulnerability is discovered in
microsoft ftp client. Attackers can crash the ftp
client of the victim user by tricking the user.

Description:
A remote attacker can craft packet with payload in the
"mget", "ls", "dir", "username" and "password"
commands as demonstrated below. When victim execute
POC or specially crafted packets, ftp client will
crash possible arbitrary code execution in contest of
logged in user. This vulnerability is hard to exploit
since it requires social engineering and shellcode has
to be injected as argument in vulnerable commands.

The vulnerability is caused due to an error in the
Windows FTP client in validating commands like "mget",
"dir", "user", password and "ls"

Exploitation method:

Method 1:
-Send POC with payload to user.
-Social engineer victim to open it.

Method 2:
-Attacker creates a directory with long folder or
filename in his FTP server (should be other than IIS
server)
-Persuade victim to run the command "mget", "ls" or
"dir" on specially crafted folder using microsoft ftp
client
-FTP client will crash and payload will get executed

Proof Of Concept:
http://www.xdisclose.com/poc/mget.bat.txt
http://www.xdisclose.com/poc/username.bat.txt
http://www.xdisclose.com/poc/directory.bat.txt
http://www.xdisclose.com/poc/list.bat.txt

Note: Modify POC to connect to lab FTP Server
      (As of now it will connect to
http://ftp://xdisclose.com)

Demonstration:
Note: Demonstration leads to crashing of Microsoft FTP
Client

Download POC rename to .bat file and execute anyone of
the batch file
http://www.xdisclose.com/poc/mget.bat.txt
http://www.xdisclose.com/poc/username.bat.txt
http://www.xdisclose.com/poc/directory.bat.txt
http://www.xdisclose.com/poc/list.bat.txt

Solution:
No Solution

Screenshot:
http://www.xdisclose.com/images/msftpbof.jpg

Impact:
Successful exploitation may allows execution of
arbitrary code with privilege of currently logged in
user.

Impact of the vulnerability is system level.

Original Advisory:
http://www.xdisclose.com/advisory/XD100096.html

Credits:
Rajesh Sethumadhavan has been credited with the
discovery of this vulnerability

Disclaimer:
This entire document is strictly for educational,
testing and demonstrating purpose only. Modification
use and/or publishing this information is entirely on
your own risk. The exploit code/Proof Of Concept is to
be used on test environment only. I am not liable for
any direct or indirect damages caused as a result of
using the information or demonstrations provided in
any part of this advisory.
En línea

Mi foro Ultra Off-Topics: http://whk.drawcoders.com/foro/

Gracias a todos! Good bye!
Páginas: [1] Ir Arriba Respuesta Imprimir 

Ir a:  

Mensajes similares
Asunto Iniciado por Respuestas Vistas Último mensaje
Ejecución de código arbitrario en ClamAV
Noticias
wolfbcn 1 605 Último mensaje 25 Febrero 2011, 14:56
por Gurowner
Funciones con número arbitrario de argumentos [PHP]
PHP
madpitbull_99 3 1,175 Último mensaje 6 Marzo 2011, 22:31
por JungleBoogie
Ejecución de código arbitrario a través del comando hardlink
Noticias
wolfbcn 0 244 Último mensaje 18 Octubre 2011, 15:24
por wolfbcn
Número arbitrario de entradas en C
Programación C/C++
placa4 3 376 Último mensaje 17 Marzo 2012, 00:43
por Caballo_Alado
Powered by SMF 1.1.16 | SMF © 2006-2008, Simple Machines