RabidHamster R4 File Disclosure and Buffer Overflow Vulnerabilities


Description   Luigi Auriemma has discovered multiple vulnerabilities in RabidHamster R4, which can be exploited by malicious people to disclose potentially sensitive information and compromise a vulnerable system.
1) A boundary error when creating a log entry can be exploited to cause a stack-based buffer overflow via an overly long web request sent to TCP port 8888.
2) A boundary error when processing a web request can be exploited to cause a heap-based buffer overflow via an overly long request sent to TCP port 8888.
3) Input passed to the "cmd" parameter in left_console.html via the "loadfile()" script function is not properly verified before being used to read files and can be exploited to disclose arbitrary files via directory traversal attacks.
4) A boundary error when processing the "miniscreenshot" script function can be exploited to cause a stack-based buffer overflow via an overly long parameter sent in a web request to TCP port 8888.
Successful exploitation of vulnerabilities #1, #2, and #4 allows execution of arbitrary code, but requires the "Network Access" option to be enabled (disabled by default).
The vulnerabilities are confirmed in version 1.25. Other versions may also be affected.
     
Vulnerable Products   Vulnerable Software:
RabidHamster R4 1.x
     
Solution   Restrict access to trusted hosts only.
     
CVE  
     
References   http://aluigi.altervista.org/adv/r4_1-adv.txt
     
Vulnerability Manager Detection   No
     
IPS Protection  
ASQ Engine alarm Available Since
Possible buffer overflow on URL
3.2.0
Misc : Directory traversal - parameter starting with ../
3.2.0
Directory traversal using ..\..
3.2.0
Directory traversal
3.2.0
Possible buffer overflow in HTTP request/reply
3.2.0
Directory traversal backward root folder
3.2.0
     


 
 
 
 
 Risk level 
Low 

 Vulnerability First Public Report Date 
2012-02-10 

 Target Type 
Client 

 Possible exploit 
Local