CVE-2025-47498

7.5 HIGH

📋 TL;DR

This vulnerability allows attackers to include local files on the server through improper filename control in PHP include/require statements. It affects WordPress sites using the Hotel Booking plugin (formerly nd-booking) from unknown versions through 3.6, potentially leading to sensitive information disclosure or code execution.

💻 Affected Systems

Products:
  • WordPress Hotel Booking plugin (formerly nd-booking)
Versions: through 3.6
Operating Systems: Any OS running PHP
Default Config Vulnerable: ⚠️ Yes
Notes: Requires WordPress installation with vulnerable plugin version. PHP configuration with allow_url_include disabled does not prevent this LFI attack.

⚠️ Manual Verification Required

This CVE does not have specific version information in our database, so automatic vulnerability detection cannot determine if your system is affected.

Why? The CVE database entry doesn't specify which versions are vulnerable (no version ranges provided by the vendor/NVD).

🔒 Custom verification scripts are available for registered users. Sign up free to download automated test scripts.

Recommended Actions:
  1. Review the CVE details at NVD
  2. Check vendor security advisories for your specific version
  3. Test if the vulnerability is exploitable in your environment
  4. Consider updating to the latest version as a precaution

⚠️ Risk & Real-World Impact

🔴

Worst Case

Full server compromise through Local File Inclusion leading to Remote Code Execution, sensitive file disclosure (config files, passwords), and complete site takeover.

🟠

Likely Case

Sensitive information disclosure (database credentials, configuration files) and limited file reading capabilities on the server.

🟢

If Mitigated

Limited impact with proper file permissions, web server restrictions, and security controls in place.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

Public PoC: ⚠️ Yes
Weaponized: LIKELY
Unauthenticated Exploit: ⚠️ Yes
Complexity: LOW

Simple path traversal or file inclusion payloads can exploit this vulnerability without authentication.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 3.7 or later

Vendor Advisory: https://patchstack.com/database/wordpress/plugin/nd-booking/vulnerability/wordpress-hotel-booking-3-6-local-file-inclusion-vulnerability?_s_id=cve

Restart Required: No

Instructions:

1. Log into WordPress admin panel. 2. Navigate to Plugins → Installed Plugins. 3. Find 'Hotel Booking' plugin. 4. Click 'Update Now' if update available. 5. Alternatively, download version 3.7+ from WordPress repository and manually update.

🔧 Temporary Workarounds

Disable vulnerable plugin

all

Temporarily disable the Hotel Booking plugin until patched

wp plugin deactivate hotel-booking

Restrict PHP file functions

linux

Add php.ini restrictions to limit file inclusion capabilities

allow_url_include = Off
open_basedir = /var/www/html

🧯 If You Can't Patch

  • Implement Web Application Firewall (WAF) rules to block LFI patterns and path traversal attempts
  • Apply strict file permissions and disable directory listing on web server

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin panel → Plugins → Hotel Booking version. If version is 3.6 or earlier, you are vulnerable.

Check Version:

wp plugin get hotel-booking --field=version

Verify Fix Applied:

Verify plugin version is 3.7 or later in WordPress admin panel and test file inclusion attempts return errors instead of file contents.

📡 Detection & Monitoring

Log Indicators:

  • Unusual file path patterns in access logs (../../, /etc/passwd, /proc/self/environ)
  • PHP include/require errors with suspicious paths

Network Indicators:

  • HTTP requests with path traversal sequences in parameters
  • Requests for known sensitive files via plugin endpoints

SIEM Query:

source="*access.log*" AND ("..\/" OR "/etc/" OR "/proc/") AND "wp-content/plugins/hotel-booking"

🔗 References

📤 Share & Export