man-in-the-middle attack

form of active eavesdropping in which the attacker makes connections with the victims and relays messages between them