Bitzu

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

Single choice

Which legacy RPC-based service reports which users are currently logged in to a remote Unix host?

  1. rcp
  2. rusers
  3. rsync
  4. 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.

Select all that apply

Which of these can reveal valid usernames on a Unix host?

  1. rusers
  2. rwho
  3. SMTP VRFY
  4. ICMP echo request
  5. 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.

True or false

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.

Download on the App StoreGet it on Google Play

More CPSA topics in this module