Real Spaces WordPress Theme Unauthenticated Privilege Escalation via `imic_agent_register` (CVE-2025-6758)
by Nxploited (Khaled Alenazi) · 2026-07-06
- Severity
- Critical
- CVE
- CVE-2025-6758
- Category
- web
- Affected product
- Real Spaces - Properties Directory Theme for WordPress (imic_agent_register AJAX handler)
- Affected versions
- <= 3.6
- Disclosed
- 2026-07-06
- Patch status
- unpatched
Tags
References
Archive entry
intelseclab/poc-archiveMetadata
| Field | Value |
|---|---|
| Date Added | 2026-07-06 |
| Last Updated | 2026-07-06 |
| Author / Researcher | Nxploited (Khaled Alenazi) |
| CVE / Advisory | CVE-2025-6758 |
| Category | web |
| Severity | Critical |
| CVSS Score | 9.8 (per NVD) |
| Status | Weaponized |
| Tags | wordpress, real-spaces, imic, privilege-escalation, unauthenticated, admin-ajax, role-assignment, cwe-269, cwe-863, python |
| Related | N/A |
Affected Target
| Field | Value |
|---|---|
| Software / System | Real Spaces - Properties Directory Theme for WordPress (imic_agent_register AJAX handler) |
| Versions Affected | <= 3.6 |
| Language / Platform | Python 3 (requests, beautifulsoup4); target is a PHP/WordPress site running the vulnerable theme |
| Authentication Required | No |
| Network Access Required | Yes (HTTP access to wp-admin/admin-ajax.php on the target WordPress site) |
Summary
CVE-2025-6758 is a critical privilege-escalation vulnerability in the Real Spaces WordPress Properties Directory Theme (versions <= 3.6), reachable through the theme’s imic_agent_register AJAX registration handler. The handler accepts a client-supplied role parameter during self-registration without restricting it to a safe value, so an unauthenticated visitor can register a new account and explicitly request the administrator role. The included Python PoC automatically discovers a valid registration nonce by crawling the target site (and optionally common registration/plugin/theme paths and inline JavaScript), then submits a forged registration request with role=administrator to wp-admin/admin-ajax.php, resulting in a brand-new, fully-privileged WordPress administrator account created without any authentication.
Vulnerability Details
Root Cause
The theme’s imic_agent_register AJAX action does not validate or restrict the role field submitted by the (unauthenticated) client, trusting it as-is when creating the new WordPress user (CWE-269: Improper Privilege Management / CWE-863: Incorrect Authorization). The PoC’s request-building function shows exactly which parameters are accepted and forwarded to the vulnerable handler:
| |
Because role is taken directly from attacker input and passed straight through to the user-creation logic behind imic_agent_register, any visitor can request the administrator role for the account they are self-registering, bypassing the intended “agent” self-registration flow entirely.
Attack Vector
- Attacker identifies a WordPress site running the Real Spaces theme (<= 3.6) with self-registration enabled.
- PoC crawls the target site’s registration page (and optionally other common paths / linked JavaScript, up to a configurable crawl depth) to locate a valid
reg_noncevalue required by the AJAX handler. - PoC submits an unauthenticated
POSTrequest towp-admin/admin-ajax.phpwithaction=imic_agent_register, the discovered nonce, attacker-chosenusername/password/email, androle=administrator. - The vulnerable handler creates the account with the requested role without verifying that self-registration should be restricted to a low-privileged role.
- Attacker logs into
/wp-login.phpwith the newly created administrator credentials, gaining full control of the WordPress site.
Impact
An unauthenticated remote attacker can create a fully-privileged WordPress administrator account on any site running the vulnerable theme version, leading to complete site takeover: arbitrary plugin/theme installation (and thus remote code execution), content manipulation, user management, and access to all site data.
Environment / Lab Setup
Target: WordPress site with the "Real Spaces - Properties Directory Theme" <= 3.6 installed,
with the theme's agent self-registration feature reachable (wp-admin/admin-ajax.php)
Attacker tooling:
- Python 3
- pip install -r requirements.txt # requests, beautifulsoup4
Proof of Concept
PoC Script
See
CVE-2025-6758.pyin this folder.
| |
Expected output on success:
[+] Exploitation successful.
[+] Server message: You're successfully register
[+] Username: Nxploited
[+] Password: 123456789
[+] Email: NxploitBot@gmail.com
Detection & Indicators of Compromise
POST /wp-admin/admin-ajax.php with body parameter action=imic_agent_register
and role=administrator (or any privileged role) from an unauthenticated
client/session.
Signs of compromise:
- New WordPress user accounts with the
administratorrole and unfamiliar usernames/emails, with no corresponding manual account-creation activity by trusted staff. admin-ajax.phpaccess log entries withaction=imic_agent_registerandrole=administratorin the POST body.- Site-wide changes (new plugins/themes, modified content, new admin users) shortly after unexplained registration activity.
Remediation
| Action | Detail |
|---|---|
| Primary fix | Upgrade the Real Spaces - Properties Directory Theme to a patched version beyond 3.6 that restricts the role parameter on self-registration to non-privileged roles. |
| Interim mitigation | Disable public/agent self-registration if not required; use a WAF rule to block admin-ajax.php requests containing action=imic_agent_register with role=administrator (or any elevated role); audit existing user accounts for unauthorized administrators. |
References
Notes
Mirrored from https://github.com/Nxploited/CVE-2025-6758 on 2026-07-06. The script carries Nxploited’s typical templated branding (function/argument naming, social-media footer) but the exploitation logic (nonce discovery + forged role=administrator registration payload) is genuinely CVE-specific and functional.
| |