Overview

Hotel Booking Lite is a hotel reservation plugin that includes a file-upload feature. The component does not adequately enforce file-type validation, allowing any file to be stored on the server. This flaw is present in all versions through 2.5.1.

Technical details

The vulnerability arises because the upload endpoint fails to restrict the types of files that can be saved. An attacker can craft a request that includes a malicious script (e.g., a PHP web shell) with a permitted extension or bypass validation altogether. No authentication or privilege checks are required beyond the ability to invoke the upload function, enabling remote code execution when the uploaded file is accessed.

Impact

Successful exploitation grants the attacker the ability to execute arbitrary code on the web server, leading to complete compromise of the hosting environment, data theft, and potential pivoting to other systems. All installations of Hotel Booking Lite up to version 2.5.1 are affected.

Recommended actions

  • Apply the vendor’s security patch or update to a version that resolves the issue.
  • Restrict the file-upload feature to trusted administrators only, or disable it if not required.
  • Implement server-side validation to allow only expected file types and block executable extensions.
  • Monitor web server directories for newly added files with executable extensions and alert on suspicious uploads.

Detection

Review web server access logs for requests to the upload endpoint that contain uncommon file extensions or large payloads. Correlate with file-system monitoring to detect creation of executable files in upload directories. Look for repeated 200 OK responses to upload attempts from non-admin IPs.

Reference: NVD entry for CVE-2026-125851