Anonymous FTP Access Permitted

The FTP server accepts anonymous logins, so anyone who can reach it can list and download its files, and upload files where writing is allowed.

SeverityMedium
CVSS 3.15.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N Open in the calculator
CVSS 4.06.9 CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N Open in the calculator
CWECWE-552: Files or Directories Accessible to External Parties
OWASP Top 10A01:2025 Broken Access Control
MITRE ATT&CKT1078.001 Default Accounts
CategoryBroken Access Control

Description

The FTP server accepts the anonymous (or ftp) user name with any password, by convention an email address, and gives the session access to part of the server's file system. Anonymous FTP was designed for public file distribution and is sometimes still used deliberately for that purpose, but it is often left enabled by default or for convenience on servers, network devices, printers and storage appliances that hold internal files, such as backups, configuration exports, logs, scanned documents and firmware.

Anyone who can reach the service can download every file the anonymous user can read, leaving no more than an anonymous entry in the logs, and such files often contain information useful to an attacker, such as configuration details, credentials in scripts or backups, and internal documents. Where anonymous uploads are allowed, the server can be used to store and distribute malicious or illegal content under the organisation's name, and if the upload directory is also served by a web server or read by an automated process, uploaded files may lead to code execution or the alteration of data.

Whether it matters therefore depends on what the anonymous user can read and write: a server that only publishes files intended for the public, with no write access, presents little risk, so the finding should state what was accessible. The issue is confirmed by logging in as anonymous, listing the directories that can be read, and checking whether files can be uploaded or directories created. The Nmap ftp-anon script does this automatically and reports writable directories, and scanners report it as anonymous FTP login allowed.

Remediation

Disable anonymous access unless the server exists to publish public files:

  • On vsftpd, set anonymous_enable=NO in vsftpd.conf; on ProFTPD, remove the <Anonymous> section from the configuration; on IIS, disable Anonymous Authentication in the site's FTP Authentication settings; on other servers and devices, use the equivalent setting.
  • Where anonymous access is a deliberate business need, confine it to a dedicated directory that holds only public material, and disable anonymous writes (on vsftpd, anon_upload_enable=NO and anon_mkdir_write_enable=NO).
  • Move files that should not be public off the server, and change any credentials found in the files that were exposed.
  • Consider replacing FTP with HTTPS for public distribution, and with SFTP or another authenticated, encrypted method for internal transfers.

Confirm the fix by attempting an anonymous login, which should be refused, or, where anonymous access is intended, by checking that only public files are listed and that uploads fail.

References


Add This Finding to Your Library

In Pental this write-up is in Settings, Library. Add to my library copies it into your own, rated in your firm's CVSS version, ready to put in your own words.

Free trial  ·  No card required

Only need the reporting? Our reporting tool is free and open source, with the same library.


More Network Services Findings

Every Network Services finding