Skip to content
Security

Why you should avoid WordPress file manager plugins

File manager plugins give a browser full file access to your server. Why that is risky, the 2020 File Manager flaw, and what to use instead.

By WP24×7 engineers6 min readPublished September 8, 2020Updated November 29, 2026

At a glance

File manager plugins let you browse, upload and edit server files from the WordPress dashboard, which is why attackers target them. In 2020 a serious flaw in the File Manager plugin allowed unauthenticated file uploads and remote code execution; version 6.9 fixed it. This guide explains the risk, safer alternatives such as SFTP, disabling the file editor, and how to check a site.

Updated November 29, 2026

  • For site owners and developers who installed a file manager plugin
  • Key lesson a plugin that exposes the server filesystem has a large blast radius
  • Use instead SFTP, SSH or the host's file manager behind its own login
  • Hardening DISALLOW_FILE_EDIT, block PHP in the uploads folder
  • Check new admin users, PHP files in uploads, recently modified files
  • Help hacked-site clean-up and the security service

A file manager plugin lets you browse, upload and edit server files from the WordPress dashboard. That convenience is also why attackers look for flaws in them. Use SFTP or your host's file manager instead, and disable the built-in file editor.

What happened in 2020?

In September 2020 a serious vulnerability was found in the popular File Manager plugin (wp-file-manager). In affected versions, an attacker did not need to log in: a file included with the plugin could be called directly to upload arbitrary files, including PHP, to the site. Attackers used it for remote code execution and widespread attacks began soon after. The plugin's developers released version 6.9 to fix it. Security vendors reported attacks on a large number of sites in the days after disclosure, and we do not quote a number here because published figures varied.

The lesson was not just "patch fast". It was that a plugin whose job is to expose your server's filesystem to a web request has a very large blast radius if one check goes wrong.

Why are file manager plugins risky by design?

RiskWhy it matters
Run with the web server's file permissionsOn most hosts that can write to the whole WordPress folder
Add a web endpoint that reads and writes filesOne missing check gives what a hosting login would
Often sit unusedInstalled once, forgotten, never updated, still reachable
Anything uploaded can runA single PHP file can create admin users, send spam or read wp-config.php
A plugin that exposes the filesystem to a web request has a large blast radius

What should I use instead?

TaskSafer tool
Edit or upload a fileSFTP (FileZilla, Cyberduck, Transmit) with a key or strong password
Quick fix on a managed hostThe host's file manager in its control panel, behind its own login and two-factor authentication
Developer changesGit deploys to a staging copy, then to live
Edit theme codeA local copy of the site, not the dashboard editor

These tools sit outside WordPress, so a flaw in a WordPress plugin does not give an attacker file access.

How do I disable the dashboard file editor too?

WordPress has a built-in theme and plugin editor under Appearance and Plugins. A stolen administrator login can use it to add malicious code in seconds. Add this line to wp-config.php, above the line that says to stop editing, after taking a backup:

define( 'DISALLOW_FILE_EDIT', true );

This removes the editors but still lets you install and update plugins. A stricter option, DISALLOW_FILE_MODS, also blocks installs and updates from the dashboard. Use it only if you handle updates another way, since otherwise your site stops receiving security updates through WordPress.

What if I already have a file manager plugin?

  1. Back up

    Take a backup.

  2. Update or delete

    If you use it, update it to the current version. If you do not need it, deactivate and delete it.

  3. Check Users

    for administrators you do not recognise.

  4. Look in `wp-content/uploads`

    for PHP files. Normally that folder holds media only, so .php files there are a red flag.

  5. Look for recently modified files

    you did not change. If you have file integrity monitoring or a scan from a security plugin, run it.

  6. Change passwords

    Administrator and database passwords if anything looks wrong.

If you find unknown files or users, the site should be treated as compromised, and removing the plugin alone does not clean it. See how to tell if your WordPress site is hacked and our hacked site cleanup service.

How do I reduce this kind of risk generally?

  • Keep a short plugin list and delete what you do not use.
  • Prefer plugins with recent updates, many active installs and a responsive support forum, though none of these guarantees safety.
  • Update promptly, with a backup before big updates.
  • Limit administrator accounts and use two-factor authentication.
  • Use a firewall in front of the site, such as one at the host or CDN, to block known exploit patterns while you patch.

A WordPress security service covers hardening, monitoring and patching so a flaw like this one is closed before it is exploited.

How can I stop uploaded PHP files from running?

Even with no file manager plugin, it is sensible to make sure that a PHP file placed in the uploads folder cannot execute, because that folder should hold media only.

On an Apache 2.4 server, put a small .htaccess file in wp-content/uploads:

<FilesMatch "\.php$">
	Require all denied
</FilesMatch>

Notes: the Apache rule works on Apache and LiteSpeed hosts that read .htaccess. Back up first, then upload an image to confirm media still works. A few plugins keep legitimate PHP in uploads, so test before relying on it.

What does a sensible file access routine look like?

  1. Use SFTP or SSH, never plain FTP, which sends passwords in clear text.
  2. Give each person their own login and remove it when they leave.
  3. Turn on two-factor authentication on the hosting account.
  4. Keep file permissions at the host's recommended values, commonly 755 for folders and 644 for files, and avoid 777 as a shortcut.
  5. Keep wp-config.php readable only by the account, as tightly as the host allows.
  6. Review who has access every few months.

A short scenario

Suppose a small agency installs a file manager plugin to let a client edit a file, then forgets it. A year later the plugin is two versions behind and a new vulnerability is published. Because the site has no monitoring, nobody notices a new file in the uploads folder. A week later the site starts sending spam, and the host suspends it. If the agency had removed the plugin after the one-off job and blocked PHP in uploads, the same attack would have had far less to work with. The lesson is to treat every access tool as a temporary guest.

What are the common mistakes?

MistakeBetter habit
Installing a plugin just to fix one thing and never removing itDelete it after the one-off job
Assuming a deactivated plugin is safeIts files are still on the server, so delete what you do not use
Cleaning one infected file and leaving the entry point openFind how they got in
Restoring a backup taken after the compromiseUse a backup from before it
Sharing one administrator loginOne login per person

How do I know whether my host offers a safer file manager?

Look for one inside the control panel, behind its own login and two-factor authentication, which acts as the host's tool and not as part of WordPress. If your host does not offer it, SFTP is nearly always available.

Worried about a file manager plugin?

A person will review the site and say what to remove.

FAQ

Questions people ask

13 answers. Can't find yours? Ask an engineer.

Is the File Manager plugin still dangerous?

The 2020 flaw was fixed in version 6.9. Any current version should be kept updated, but the bigger issue is that a plugin giving browser access to server files is a high-value target for attackers.

Link to this answer
How do I check whether my site was affected?

Update or remove the plugin, review recently changed files and new admin users, and scan for unknown PHP files. If anything looks wrong, treat the site as compromised and follow a cleanup process.

Link to this answer
What should I use instead of a file manager plugin?

SFTP or SSH, or your host's file manager, which sit behind your hosting login rather than inside WordPress.

Link to this answer
Why are file manager plugins risky by design?

They run with the web server's file permissions, add a web endpoint that reads and writes files, are often installed once and forgotten, and anything an attacker uploads can run. One missing check gives what a hosting login would.

Link to this answer
Is a deactivated file manager plugin safe?

Not necessarily. Its files are still on the server, and some flaws can be reached while the plugin is inactive. Delete plugins you do not use.

Link to this answer
What does DISALLOW_FILE_EDIT do?

It removes the built-in theme and plugin editors from the dashboard but still lets you install and update plugins. A stolen administrator login can otherwise use the editor to add malicious code in seconds.

Link to this answer
Should I use DISALLOW_FILE_MODS?

Only if you handle updates another way. It also blocks installs and updates from the dashboard, so otherwise the site stops receiving security updates through WordPress.

Link to this answer
Why should PHP files in the uploads folder be a red flag?

That folder normally holds media only. A .php file there is a common sign of a compromise, and blocking PHP execution in uploads limits what an uploaded file can do.

Link to this answer
Does the uploads rule work on Nginx?

Nginx ignores .htaccess, so the equivalent rule belongs in the server configuration, which your host must change. Back up first, then upload an image to confirm media still works.

Link to this answer
What file permissions are sensible?

Follow the host's recommended values, commonly 755 for folders and 644 for files, and avoid 777 as a shortcut. Keep wp-config.php readable only by the account as tightly as the host allows.

Link to this answer
What if I find unknown admin users or files?

Treat the site as compromised. Removing the plugin alone does not clean it. Back up, change passwords, and follow a clean-up process or ask for hacked-site clean-up.

Link to this answer
Which tools are safer for editing files?

SFTP with a key or strong password, the host's file manager behind two-factor authentication, Git deploys to staging and a local copy of the site for theme code. They sit outside WordPress, so a plugin flaw does not give file access.

Link to this answer
How do I reduce this kind of risk generally?

Keep a short plugin list, prefer actively maintained plugins, update promptly with a backup, limit administrator accounts, use two-factor authentication and put a firewall in front of the site.

Link to this answer

Keep reading

Want an engineer on it?

Tell us what is wrong in plain words. A person reads it, today.