OSSN-0018: Nova Network configuration allows guest VMs to connect to host services

Summary

When using Nova Network to manage networking for compute instances, instances are able to reach network services running on the host system. This may be a security issue for the operator.

Affected Services / Software

Nova, Folsom, Grizzly, Havana, Icehouse

Discussion

OpenStack deployments using Nova Network, rather than Neutron for network configuration will cause the host running the instances to be reachable on the virtual network. Specifically, booted instances can check the address of their gateway and try to connect to it. Any host service which listens on the interfaces created by OpenStack and does not apply any additional filtering will receive such traffic.

This is a security issue for deployments where the OpenStack service users are not trusted parties, or should not be allowed to access underlying services of the host system.

Using a specific example of devstack in default configuration, the instance spawned inside of it will see the following routing table:

$ ip r s
default via 172.16.1.1 dev eth0
172.16.1.0/24 dev eth0  src 172.16.1.2

The instance can then use the gateway’s address (172.16.1.1) to connect to the sshd service on the host system (if one is running and listening on all interfaces). The host system will see the connection coming from interface br100.

Contacts / References

Author: Stanislaw Pitucha, HP