Bitzu

CPSA ยท Unix user enumeration and mail/file services

FTP access control and anonymous access

Anonymous FTP, write access risks, bounce attacks and clear-text credentials.

Key points

  • Anonymous FTP lets anyone log in (user anonymous), so it must be read-only and confined.
  • A writable area that anonymous users can also read becomes a drop box for illegal files or staging data.
  • The PORT command enables bounce attacks via a third host, and user names and passwords cross the network in clear text; prefer SFTP or FTPS.

Source: https://www.rfc-editor.org/rfc/rfc2577.html

Practice questions

Single choice

Which user name is conventionally used to log in to an anonymous FTP service?

  1. root
  2. guest-admin
  3. anonymous
  4. nobody-sys
Show answer

Answer: C. anonymous

By convention the user name is anonymous (ftp is often accepted too), with an e-mail-like string as the password.

Select all that apply

Which are recognised weaknesses of plain FTP?

  1. Passwords sent in clear text
  2. PORT command abuse (bounce attack)
  3. Writable anonymous directories
  4. The control channel is encrypted by default
  5. Passwords are salted and hashed on the wire
Show answer

Answer: A. Passwords sent in clear text, B. PORT command abuse (bounce attack), C. Writable anonymous directories

Credentials in clear text, bounce abuse via PORT and risky writable anonymous areas are all documented concerns. The control channel is not encrypted by default, and FTP does not rely on a challenge-response by design.

True or false

Standard FTP encrypts the password sent in the PASS command.

Show answer

Answer: False

False. Plain FTP sends the user name and password unencrypted, so anyone able to sniff the path can read them. Encryption needs FTPS or a different protocol such as SFTP.

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