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
Which user name is conventionally used to log in to an anonymous FTP service?
- root
- guest-admin
- anonymous
- 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.
Which are recognised weaknesses of plain FTP?
- Passwords sent in clear text
- PORT command abuse (bounce attack)
- Writable anonymous directories
- The control channel is encrypted by default
- 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.
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.
