Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2024-13540 Overview
CVE-2024-13540 is a Full Path Disclosure vulnerability in the WooODT Lite – Delivery & pickup date time location for WooCommerce plugin for WordPress. The flaw affects all versions up to and including 2.5.1. The /inc/bycwooodt_get_all_orders.php file is publicly accessible and produces an error message containing the full server path. Unauthenticated remote attackers can retrieve the absolute file system path of the WordPress installation. The disclosed path provides reconnaissance value for chaining with other vulnerabilities, such as local file inclusion or arbitrary file write flaws.
Critical Impact
Unauthenticated attackers can retrieve the full filesystem path of the WordPress installation, aiding reconnaissance for follow-on attacks against the host.
Affected Products
- Byconsole WooODT Lite plugin for WordPress — all versions through 2.5.1
- WordPress sites running WooCommerce with the vulnerable plugin installed
- Hosting environments where PHP error display is enabled
Discovery Timeline
- 2025-02-18 - CVE-2024-13540 published to NVD
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2024-13540
Vulnerability Analysis
The vulnerability is classified as [CWE-209: Generation of Error Message Containing Sensitive Information]. The affected PHP file /inc/bycwooodt_get_all_orders.php is reachable directly over HTTP without authentication. When the file is requested outside of its intended execution context, PHP generates a fatal error that includes the full absolute path of the script on the server filesystem.
This path disclosure does not grant code execution, data modification, or authentication bypass on its own. However, the leaked path is useful to adversaries conducting multi-stage attacks. Attackers can combine the disclosed path with local file inclusion, arbitrary file upload, or log poisoning vulnerabilities to achieve code execution or data theft.
Root Cause
The plugin ships a PHP include file in a web-accessible directory without access guards. The file assumes it will be loaded within the WordPress bootstrap context. When accessed directly, undefined functions or missing dependencies trigger PHP error output. If display_errors is enabled on the host, the error message exposes the full server path. The script lacks the standard defined('ABSPATH') || exit; guard that WordPress plugin files should use to prevent direct execution.
Attack Vector
Exploitation requires only an unauthenticated HTTP GET request to the vulnerable endpoint. An attacker sends a request to https://target.site/wp-content/plugins/byconsole-woo-order-delivery-time/inc/bycwooodt_get_all_orders.php. The server returns a PHP error that embeds the absolute file path of the WordPress document root. See the Wordfence Vulnerability Report for additional technical context.
Detection Methods for CVE-2024-13540
Indicators of Compromise
- HTTP requests to /wp-content/plugins/byconsole-woo-order-delivery-time/inc/bycwooodt_get_all_orders.php from unauthenticated sources
- Web server access logs showing direct requests to plugin internal /inc/ directory files
- PHP error log entries referencing bycwooodt_get_all_orders.php with undefined function calls
Detection Strategies
- Review web access logs for GET requests targeting the vulnerable PHP file path and alert on repeated access attempts
- Scan installed WordPress plugins for Byconsole WooODT Lite versions at or below 2.5.1
- Inspect HTTP responses for Fatal error strings containing absolute filesystem paths such as /var/www/html/ or /home/
Monitoring Recommendations
- Centralize WordPress and PHP error logs for correlation and anomaly detection
- Monitor for sequential reconnaissance patterns where path disclosure is followed by LFI, upload, or injection attempts against the same host
- Alert on any direct access to plugin /inc/ subdirectories, which should never be requested by legitimate users
How to Mitigate CVE-2024-13540
Immediate Actions Required
- Update the WooODT Lite plugin to a version newer than 2.5.1 as soon as the vendor publishes a fix
- Disable display_errors in production PHP configuration to suppress error output to clients
- Block direct HTTP access to the plugin /inc/ directory at the web server or WAF layer
Patch Information
Review the WordPress Plugin Change Log for the vendor's remediation commit. The WordPress Plugin Source Code repository hosts the fixed file for verification.
Workarounds
- Add defined('ABSPATH') || exit; at the top of the affected PHP file to prevent direct execution
- Deploy a web server rule denying access to wp-content/plugins/byconsole-woo-order-delivery-time/inc/ from the public internet
- Set display_errors = Off and log_errors = On in php.ini so error details are written to logs rather than returned in HTTP responses
# Apache .htaccess rule to block direct access to the vulnerable directory
<FilesMatch "\.php$">
Require all denied
</FilesMatch>
# php.ini hardening
display_errors = Off
log_errors = On
error_reporting = E_ALL
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

