Man-in-the-Network: Network Devices are Endpoints too