Skip to main content

Boteraser | Website and Server Security Solutions

php2shell

Bot User-Agent: php2shell

⚠️ Overview

php2shell is the label applied by WAF vendors and honeypot operators to a recurring family of automated PHP upload-and-execution probes rather than to a single versioned project; no canonical upstream repository, vendor page, or CVE assignment documents it as a named tool, so the string should be treated as a behavioral tag rather than an authoritative product identity. Its defining signature is a POST of a PHP payload into an upload directory followed immediately by a GET for the file just written.

🔧 Technical Capabilities

Traffic seen in public honeypot datasets consists of unauthenticated multipart POSTs field-named file, upload, or image against predictable handlers: /wp-content/uploads/, plugin upload.php endpoints, CKFinder and elFinder connectors, and bare /filemanager/ paths. Payload bodies open with <?php and wrap eval, system, passthru, or assert in base64_decode or str_rot13 chains so one body defeats naive signature matching. A successful write is followed within seconds by a GET to the written filename, sometimes with a ?cmd= parameter, the clearest confirmation stage. The scanner also probes writable directories first, distinguishing 403 from 200 before uploading.

📜 History & Notable Incidents

Web shells delivered this way map to MITRE ATT&CK T1505.003 (Server Software Component: Web Shell) and T1105 (Ingress Tool Transfer). Mass upload probing has ranked among the highest-volume honeypot activities since the mid-2010s botnets that deposited c99 and r57 shells, but no single breach or CVE is uniquely attributable to the php2shell tag, which exploits already-known weak or unauthenticated upload handlers rather than a specific vulnerability class.

🔍 Detection Indicators

Detection rests on the literal token php2shell inside an otherwise short, generic, or empty User-Agent, missing Accept-Language and Referer headers, and a POST→GET→POST triplet against a new filename in under five seconds. Secondary indicators are multipart filenames ending in .php, .phtml, .php5, or .phar, and source addresses concentrated in bulletproof-hosting ASNs.

☠️ Risk & Impact

A successful execution yields remote code execution under the web-server account, exposing wp-config.php or .env credentials, enabling database pivoting, cron or mu-plugin persistence, and conscription of the host as a redirector or DDoS node. The shell typically survives patching because it lives in the uploads tree, not in application code.

🛡️ Mitigation

Because one successful POST converts reconnaissance into persistent RCE, php2shell requests are blocked at first sight by WAF or IPS rules, and any logged match warrants an uploads-directory integrity review.

53% of Web Traffic Is Bots in 2026

— Imperva Bad Bot Report 2026

How much of your traffic is automated? Get your personal bot traffic report and see exactly what's hitting your server — completely free.

📊 Get My Bot Report

Sign up in seconds  ·  No card required

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the bots listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.

✓