wp2shell: more than a month later. Confirm 6.8.6, 6.9.5, 7.0.2. Patched is not clean.

Read the advisory
Attacks Dictionary

Webshell

Definition

A webshell is a small script uploaded to the server that lets an attacker run commands through the browser.

Also called: web shell, web-shell

Why it matters for WordPress

One PHP file in uploads or a theme can give filesystem and database access. Attackers use webshells to plant more malware, steal dumps, or pivot to other sites on shared hosting. Cleanup that misses the shell (or the upload hole) invites reinfection.

How it shows up in practice

  • PHP files under wp-content/uploads
  • Tiny names like x.php, 1.php, or random strings next to images
  • POST requests to odd paths in access logs
  • File integrity alerts for new executable paths outside plugins

What to do

  1. Block PHP execution in uploads at the server level when you can.
  2. Scan for unexpected PHP outside normal plugin and theme code.
  3. Trace how it got there (vulnerable form, plugin, FTP credentials).
  4. Remove the shell, close the entry point, rotate credentials.
  5. Compare core so modified droppers are not missed.

In WP Security Ninja

Use the malware scanner to find suspicious PHP and the core scanner to catch unexpected core edits. After cleanup, keep scanning until findings stay clean. Persistence patterns: WordPress backdoor hacks.

Go deeper

Want the full walkthrough?

This page stays short on purpose. The guide covers steps, examples, and what to check on a live WordPress site.

Open full guide

Nearby ideas in the dictionary

All terms →

Larger screenshot