CPSA ยท Unix user enumeration and mail/file services
Legacy services that reveal valid usernames
Services enabled by default that reveal valid usernames.
Key points
- rusers (RPC) lists users logged in to a host; rwho shows users reported by hosts running rwhod
- SMTP VRFY and EXPN confirm mailboxes and list members; finger returns account details.
- A valid username halves the work of a password attack, so these services should be disabled or filtered.
Source: https://linux.die.net/man/1/rusers
Practice questions
Which legacy RPC-based service reports which users are currently logged in to a remote Unix host?
- rcp
- rusers
- rsync
- rlogin
Show answer
Answer: B. rusers
rusers queries rpc.rusersd and prints logged-in users, much like who. rcp copies files, and the others do not list sessions.
Which of these can reveal valid usernames on a Unix host?
- rusers
- rwho
- SMTP VRFY
- ICMP echo request
- NTP time query
Show answer
Answer: A. rusers, B. rwho, C. SMTP VRFY
rusers, rwho and SMTP VRFY all return or confirm account names. An ICMP echo only shows that a host is alive, and NTP only serves time.
SMTP user discovery with VRFY normally requires valid mail credentials.
Show answer
Answer: False
False. A default mail server accepts VRFY from unauthenticated clients unless an administrator disabled it, which is exactly why it is a finding.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
