Beyond mountable network file systems, files move over dedicated transfer services, and each is its own attack surface. FTP is old and plaintext, with anonymous access and bounce quirks; FTPS wraps it in TLS that is often misconfigured; SFTP rides SSH and inherits its credential and key weaknesses plus restricted-shell escapes; TFTP is a tiny, authentication-free UDP protocol prone to traversal; and rsync daemons frequently expose modules anonymously. The recurring moves are anonymous or default access, credential attacks, directory traversal, weak transport security, and escaping a restricted transfer-only shell into a real one.
# identify transfer services on a host
nmap -p21,22,69,873,990 -sV <target> # FTP, SSH/SFTP, TFTP, rsync, FTPS
nmap -p21 --script ftp-anon,ftp-syst <target>
Subtopics#
- FTP: anonymous access, credential brute force, and the bounce quirk.
- FTPS: FTP over TLS and its certificate and configuration weaknesses.
- SFTP: SSH-based transfer, keys, and restricted-shell escape.
- TFTP: the authentication-free trivial protocol and traversal.
- rsync: rsync daemon modules and anonymous access.