MiniWeb HTTP Server Buffer Overflow and Directory Traversal Issues


Description   Multiple vulnerabilities have been identified in MiniWeb HTTP Server, which could be exploited by remote attackers to disclose sensitive information, cause a denial of service or compromise a vulnerable web server.
The first issue is caused by an input validation error in the "mwGetLocalFileName()" [http.c] function when processing requests containing encoded directory and file names, which could be exploited to conduct directory traversal attacks and gain unauthorized read access to arbitrary files.
The second vulnerability is caused by a buffer overflow error in the "_mwProcessReadSocket()" [http.c] function when processing overly long requests, which could be exploited by remote attackers to crash an affected server or execute arbitrary code.
     
Vulnerable Products   Vulnerable Software:
MiniWeb HTTP Server version 0.8.19 and prior
     
Solution  
     
CVE   CVE-2008-0338
CVE-2008-0337
     
References   http://www.bugtraq.ir/adv/miniweb_english.pdf
     
Vulnerability Manager Detection   Yes (since ASQ v3.5.0)
     
IPS Protection  
ASQ Engine alarm Available Since
Misc : Directory traversal - parameter starting with ../
3.2.0
Directory traversal using ..\..
3.2.0
Directory traversal
3.2.0
Directory traversal backward root folder
3.2.0
     


 
 
 
 
 Risk level 
Critical 

 Vulnerability First Public Report Date 
2008-01-17 

 Target Type 
Server 

 Possible exploit 
Local & Remote