NAT mode, open ports on virtual router 10.0.2.2 - 513, 514
Posted: 23. May 2009, 02:52
The main quesiton is: Does anybody else see the same ports described below when scanning from the guest OS on their VM's? Is there documentation on ports 513 and 514 which are open on the virtual router located at 10.0.2.2 when using NAT based networking? Is it possible to exploit these ports? In response to posts below, there are no TCP services running on the host.
The NAT virtual router configuration is independent of host and guest operating systems and seems to be coded based on qemu. I have seen these ports in VirtualBox 2.2.2, but am not currently running that version. When using Host Interface Networking or Bridged networking the virtual router is not accessible.
VirtualBox Version: lenny (stable) (misc): x86 virtualization solution - binaries 1.6.6-dfsg-3: i386
Host: Debian Lenny 5.0 i386
Guest: OS Type Linux 2.6, probably will work with any system (livecd) with with nmap, telnet, netstat or similar tools.
Guest Network: Adapter 0 PCnet-FAST III (NAT)
Guest Additions: No
Within the guest, as the root/admin (#) or regular user (%), run the commands:
View the output, the gateway (virtual router) should be at address 10.0.2.2, then scan the virtual router for open ports. [truncated output]
Next you can telnet into port 513 or 514. Type ctrl-] when the telnet connection is established.
Trying to telnet to "10.0.2.2 515", or other closed ports results in a "connection refused" message. Telnet is an ancient protocol and I can't get it to do anything interesting, except print help information with '?'. Telnet might behave this way with any open port: anyone an expert in login and shell ports and telnet? In summary it is still possible to send packets into these undocumented ports on the virtual router via a tcp connection because there are connections listed as ESTABLISHED when issuing the command:
Usually any open port can become a vulnerability. Anyone have further information of how to exploit these ports, or are they sufficiently protected? In closing, thanks for running the forums, and for the VirtualBox product.
The NAT virtual router configuration is independent of host and guest operating systems and seems to be coded based on qemu. I have seen these ports in VirtualBox 2.2.2, but am not currently running that version. When using Host Interface Networking or Bridged networking the virtual router is not accessible.
VirtualBox Version: lenny (stable) (misc): x86 virtualization solution - binaries 1.6.6-dfsg-3: i386
Host: Debian Lenny 5.0 i386
Guest: OS Type Linux 2.6, probably will work with any system (livecd) with with nmap, telnet, netstat or similar tools.
Guest Network: Adapter 0 PCnet-FAST III (NAT)
Guest Additions: No
Within the guest, as the root/admin (#) or regular user (%), run the commands:
Code: Select all
# netstat -nr Code: Select all
# nmap 10.0.2.2
Interesting ports on 10.0.2.2
Not shown: xxxx closed ports
PORT STATE SERVICE
513/tcp open login
514/tcp open shell
Code: Select all
% telnet 10.0.2.2 513
Trying 10.0.2.2...
Connected to 10.0.2.2.
Escape character is '^]'
telnet>
Code: Select all
# netstat -n