In this guide
Why file manager plugins are a target
A file manager plugin can read, upload, edit and delete files across your whole website. If an attacker can reach that function without logging in, through a vulnerability, they can upload a backdoor directly. No password needed.
The best-known example is WP File Manager in 2020. Versions 6.0 to 6.8 contained a vulnerability (CVE-2020-25213) that let anyone upload files without logging in. It was fixed in version 6.9, but attackers began exploiting it at massive scale right away, and huge numbers of sites were attacked before owners updated. Similar issues have been found in other file manager plugins since.
On Reddit and in my own cleanups, file manager plugins keep coming up: sometimes as the way in, and sometimes installed by attackers after they got in, because it gives them an easy way back.
When a file manager plugin makes sense
Honestly: rarely. It’s reasonable as a temporary tool when you have no other way to reach your files. In that case:
- install it, do the job, and delete it (don’t just deactivate it);
- keep it updated while it’s installed;
- restrict access to administrators only, if the plugin allows it.
Safer ways to manage your files
- SFTP with a client like FileZilla or Cyberduck. Almost every host supports it.
- Your host’s file manager in cPanel, Plesk or a similar control panel. It runs outside WordPress, so a WordPress vulnerability can’t expose it.
- SSH and WP-CLI for technical users.
- Deployment tools (Git, CI/CD) for developers.
Check your site now
- Go to Plugins and look for any file manager plugin, including ones you don’t remember installing.
- If you don’t need it, delete it.
- If you didn’t install it, treat the site as possibly compromised and check for other signs. See Is my WordPress site hacked?
From my cleanup work: one recurring pattern is a site with two or three file manager plugins installed, only one of them by the owner. The others were added by the attacker as spare keys. When I find an unknown file manager, I know before even opening the logs that the site has been compromised.