A client RMI TCP endpoint connects to the remote host without setting an endpoint identification algorithm which could allow MITM attacks.