Cleartext passwords

When host trust does not apply, rlogin falls back to a password prompt sent in cleartext. A positioned attacker captures the username and password directly from the traffic, and the entire interactive session along with it, yielding a reusable credential with no guessing and nothing logged as a failed attempt.

1 ನಿಮಿಷದ ಓದುಅಕ್ಟೋ 7,2026 ರಂದು ನವೀಕರಿಸಲಾಗಿದೆflorianamette1 ಕೊಡುಗೆದಾರ
ನಿಮ್ಮ ಸಹಾಯಕವನ್ನು ಕೇಳಿ (MCP)GitHub ನಲ್ಲಿ ಸಂಪಾದಿಸಿ

If automatic host-trust authentication fails, traditional rlogind invokes the configured login program over its unencrypted pseudo-terminal. The resulting authentication flow is implementation- and policy-dependent: it may request a password, use another PAM mechanism, or reject access. When a password is requested, an attacker on the path can capture the username and password from the stream, along with the interactive session that follows. Passive capture avoids failed guesses and lockouts, but the credential's validity and reuse remain limited by the target's account policy.

bash
# capture the cleartext rlogin login and session
tcpdump -i eth0 -w rlogin.pcap port 513
tshark -r rlogin.pcap -q -z follow,tcp,ascii,0     # reassemble login + session

Exploitation notes#

  • Capture beats guessing: a sniffed rlogin login yields the exact credential quietly, so prefer it wherever an on-path position exists, the same reasoning as Telnet password sniffing.
  • The whole session is captured too, exposing commands, output, and any secondary credentials entered, see command/session capture.
  • The credential may be reused elsewhere only if accounts or passwords are shared; assess that possibility solely within the authorized scope rather than assuming reuse.
  • Needs an on-path/tap position and a target login flow that actually requests a password; combine with trust abuse depending on the authentication path in use.

References#