Learn as if you will live forever, live like you will die tomorrow.

   +1 555 87 89 56   80 Harrison Lane, FL 32547

HomeBlogWebsite SecurityWP File Manager Flaw 2020: 700,000 Sites Open to File Upload Attacks

WP File Manager Flaw 2020: 700,000 Sites Open to File Upload Attacks

⚡ The fix in short
  • Delete the File Manager plugin entirely if it is not actively needed — sFTP does its job more safely
  • If it was ever installed during a vulnerable window, hunt for shells: PHP in uploads and in the plugin folder is the signature
  • Reinstall clean, rotate credentials including the database password — wp-config.php is readable once a shell lands
  • Audit admins and cron; shells are used to install persistence within minutes

This post is part of our series on WordPress attacks in the last 10 years — one major attack per day, what it was, how to detect it, how to remove it and how to keep it out. This instalment covers WP File Manager RCE (CVE-2020-25213) (September 2020).

What happened

File Manager bundled a third-party file-browser library (elFinder) and, in integrating it, exposed a connector script directly to the web. The result was as bad as plugin flaws get: anyone, logged in or not, could upload a file — typically a PHP web shell disguised inside an image — and then execute commands on the server. A patch (6.9) landed on 1 September 2020, but roughly half the installed base was still vulnerable days later, and attackers uploaded shells (names like hardfork.php and x.php were seen) into the plugin’s own files folder.

Who was exposed: File Manager plugin (wp-file-manager) versions 6.0–6.8, installed on about 700,000 sites. Why it mattered: Wordfence blocked over 450,000 exploit attempts in the first days. Six years later, the same CVE appeared in the tooling of a 2026 mass-exploitation campaign — old upload flaws never retire.

How this attack works

File-manager functionality is inherently dangerous: a component whose job is moving and executing files must authenticate perfectly, and this one effectively didn’t. The uploaded shell turns a single request into durable control — edit any file, read wp-config.php and the database credentials it holds, create admins, plant spam — which is why upload flaws sit at the top of every mass-exploitation shopping list, including 2026’s.

The exploitation itself is usually automated end to end. Bots continuously scan the web reading plugin readme files and version strings; the moment a vulnerable version is fingerprinted, an exploit script fires — creating an admin account, uploading a web shell, or injecting a database payload, depending on the flaw. The site owner typically did nothing ‘wrong’ on the day it happened beyond running a popular plugin a few versions behind, which is why the median time from disclosure to mass attack — about five hours for the worst flaws in 2025 — matters so much.

Signs your site has it — and how to confirm

  • PHP files inside wp-content/plugins/wp-file-manager/lib/files/ or anywhere in uploads that you did not put there
  • Image files that contain PHP code when opened as text
  • Files with shell-like names (x.php, hardfork.php) anywhere in your site
  • Any file-manager plugin installed ‘just in case’ — treat its presence itself as a finding

Confirm the plugin and its version on your site against the affected versions in the advisory — if you are at or below the vulnerable version, treat the site as exposed, not just at risk. Then check for the fingerprints of a successful exploit: admin users you did not create, files modified after the disclosure date, PHP files in uploads, and unfamiliar options or cron jobs in the database.

Step-by-step removal and recovery

Immediate actions for this attack

  • Delete the File Manager plugin entirely if it is not actively needed — sFTP does its job more safely
  • If it was ever installed during a vulnerable window, hunt for shells: PHP in uploads and in the plugin folder is the signature
  • Reinstall clean, rotate credentials including the database password — wp-config.php is readable once a shell lands
  • Audit admins and cron; shells are used to install persistence within minutes

The full protocol

  1. Back up first, labelled infected — you may need it for evidence or rollback.
  2. Update the vulnerable plugin immediately if a fix exists; if none exists, deactivate and delete it — an unpatched known flaw is an open door.
  3. Assume entry may already have happened: audit every administrator account (including in the database, where hidden admins do not show in wp-admin).
  4. Scan files and database: recently modified PHP, PHP in uploads, encoded payloads in wp_options, rogue cron jobs.
  5. Reinstall the plugin (and ideally core and theme) from clean official sources rather than trusting edited files.
  6. Rotate wp-admin, hosting, database and FTP credentials, and regenerate wp-config.php salt keys to kill every existing session.
  7. Verify with a fresh fetch of key pages and a server-side scan, then watch file-change alerts closely for two weeks — reinfection almost always means a persistence point survived.

How to prevent it

  • Never keep a file-manager plugin installed permanently; install, use, delete
  • Disable PHP execution in uploads and plugin asset folders
  • Treat arbitrary-file-upload CVEs as drop-everything patches — exploitation starts in hours
  • A WAF’s upload filtering blocks shell uploads even against a vulnerable plugin

The defences repeat across this whole series for a reason: kept-updated software, unique passwords with 2FA, the fewest possible plugins, backups stored off the server, and monitoring that looks at your site the way an attacker — or Google — does. Sites rarely fall to one exotic trick; they fall to one ordinary gap.

FAQs

We updated to the patched version in 2020. Are we fine?

About the flaw, yes. But if the site ran a vulnerable version during the attack window, check for shells uploaded back then — updating closes the door; it does not evict whoever already walked in.

Why do attackers still exploit a 2020 flaw in 2026?

Because it still works on the long tail of un-updated sites, and scanning for it costs them nothing. Your defence is boring: not being on the list.

Is the built-in WordPress media uploader the same risk?

No. The risk came from a plugin exposing a powerful file connector without proper checks. Core’s uploader restricts file types and is not a file manager.

Next in the series and the full timeline: WordPress Attacks in the Last 10 Years — the complete guide.

JUNOBIZZ WEBSITE SECURITY
Worried your site is already compromised?

JunoBizz audits, cleans and hardens WordPress sites — cloaked spam, rogue admins, poisoned plugins and everything in this series. Get the checks run before Google finds the problem.

Talk to JunoBizz

© UiCore 2026. All Rights Reserved.