CVE-2025-47498
📋 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
- WordPress Hotel Booking plugin (formerly nd-booking)
⚠️ 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.
- Review the CVE details at NVD
- Check vendor security advisories for your specific version
- Test if the vulnerability is exploitable in your environment
- 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.
🎯 Exploit Status
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
allTemporarily disable the Hotel Booking plugin until patched
wp plugin deactivate hotel-booking
Restrict PHP file functions
linuxAdd 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"