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-6567 Overview
The Ebook Store plugin for WordPress contains a Full Path Disclosure vulnerability affecting all versions up to and including 5.8001. The flaw exists because the plugin ships with fpdi-protection test files that have display_errors enabled and are directly accessible over the network. Unauthenticated attackers can request these files to reveal the absolute filesystem path of the WordPress installation. The disclosed path information supports reconnaissance and can enable follow-on attacks such as Local File Inclusion (LFI) or path-based exploitation. The vendor removed the test files but did not increment the plugin version, leaving the same version number in an inadequately patched state [CWE-200].
Critical Impact
Unauthenticated remote attackers can retrieve the full server path of the WordPress installation, aiding chained exploitation attempts against affected sites.
Affected Products
- Shopfiles Ebook Store plugin for WordPress
- All versions up to and including 5.8001
- Installations using the bundled fpdi-protection component with local-tests/simple.php accessible
Discovery Timeline
- 2024-08-02 - CVE-2024-6567 published to NVD
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2024-6567
Vulnerability Analysis
The vulnerability is an information disclosure issue classified under [CWE-200]. The Ebook Store plugin bundles the third-party fpdi-protection library, which includes local test scripts under fpdi/fpdi-protection-master/local-tests/. These scripts enable PHP's display_errors directive and are reachable directly through the web server. When an attacker requests one of these files, PHP surfaces error output that contains the absolute installation path of the web application. The disclosed path is not directly exploitable on its own, but supports reconnaissance for subsequent attacks that depend on knowing filesystem layout. The vendor's remediation removed the offending test files, however the plugin version string was not incremented after the fix.
Root Cause
The root cause is the inclusion of development and testing artifacts within a production plugin distribution. The local-tests/simple.php script sets display_errors to true and lacks any access control. WordPress serves the file directly because it resides beneath the plugin's public web root, and PHP's error output includes fully-qualified filesystem paths.
Attack Vector
An unauthenticated remote attacker sends an HTTP request to the vulnerable test script URL beneath the plugin directory. The server responds with PHP error output containing the absolute path of the WordPress installation, for example /var/www/html/wp-content/plugins/ebook-store/.... No authentication, user interaction, or special conditions are required. The information is typically combined with other vulnerabilities such as Local File Inclusion, arbitrary file write, or path-dependent deserialization to escalate impact.
See the WordPress Plugin Test Script for the affected file and the Wordfence Vulnerability Analysis for additional technical detail.
Detection Methods for CVE-2024-6567
Indicators of Compromise
- HTTP GET requests targeting /wp-content/plugins/ebook-store/fpdi/fpdi-protection-master/local-tests/simple.php or sibling test scripts.
- Web server responses containing PHP Warning, Notice, or Fatal error strings that expose absolute filesystem paths.
- Repeated probing of plugin subdirectories from a single source address preceding other exploitation attempts.
Detection Strategies
- Search web server access logs for requests to any file under the fpdi/fpdi-protection-master/local-tests/ path.
- Inspect outbound HTTP responses for PHP error signatures containing paths such as /var/www/, /home/, or Windows-style paths.
- Correlate path disclosure attempts with subsequent requests that reference the disclosed paths in query parameters.
Monitoring Recommendations
- Enable WAF rules that block direct access to plugin test, example, and development files.
- Alert on any HTTP 200 response containing PHP error markers to catch misconfigured display_errors settings globally.
- Baseline plugin file inventories and alert when files under local-tests/ or similar directories are served publicly.
How to Mitigate CVE-2024-6567
Immediate Actions Required
- Reinstall or update the Ebook Store plugin from a source that includes the vendor's file removal, since the version number was not incremented.
- Manually delete the fpdi/fpdi-protection-master/local-tests/ directory from the plugin installation if present.
- Set PHP display_errors to Off and log_errors to On in php.ini on production hosts.
- Audit other installed plugins for similarly accessible test or demo scripts.
Patch Information
The vendor removed the vulnerable test files via WordPress Changeset 3138305. The version identifier was not incremented, so administrators cannot rely on the plugin version alone to confirm remediation. Verify the fix by confirming that fpdi/fpdi-protection-master/local-tests/simple.php is absent from the installation. See the WordPress Changeset Comparison for the file list.
Workarounds
- Block HTTP access to the local-tests directory at the web server or WAF layer.
- Deny direct execution of .php files inside plugin subdirectories that are not required for normal operation.
- Disable display_errors globally in PHP configuration to prevent path leakage from any component.
# Apache: block access to plugin test scripts
# Add to .htaccess in the WordPress root
<FilesMatch "^(simple|test)\.php$">
Require all denied
</FilesMatch>
# Nginx: block the vulnerable path
location ~* /wp-content/plugins/ebook-store/fpdi/fpdi-protection-master/local-tests/ {
deny all;
return 403;
}
# Harden PHP globally (php.ini)
display_errors = Off
log_errors = On
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

