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-2018-25439 Overview
CVE-2018-25439 is an unauthenticated path traversal vulnerability in MetInfo CMS versions 6.0.0 through 6.1.0. The flaw resides in /include/thumb.php, where the dir parameter is passed through an insufficient str_replace filter. Attackers can supply backslash sequences to bypass sanitization and read arbitrary files on the underlying host, including configuration files such as config_db.php on Windows deployments. The weakness is tracked as CWE-22 (Improper Limitation of a Pathname to a Restricted Directory). The Shadowserver Foundation first observed in-the-wild exploitation evidence on 2023-10-14, and a public Nuclei template exists to identify vulnerable instances.
Critical Impact
Unauthenticated remote attackers can read arbitrary files, including database credentials in config_db.php, enabling full database compromise and lateral movement.
Affected Products
- MetInfo CMS 6.0.0
- MetInfo CMS versions prior to 6.1.1
- Windows-hosted MetInfo deployments (confirmed exploitation surface)
Discovery Timeline
- 2023-10-14 - Shadowserver Foundation observes exploitation evidence in the wild
- 2026-10-22 - CVE CVE-2018-25439 published to NVD
- 2026-10-22 - Last updated in NVD database
Technical Details for CVE-2018-25439
Vulnerability Analysis
The vulnerability is a classic path traversal flaw in MetInfo CMS's thumbnail handler. The thumb.php script accepts a dir parameter that specifies the file to be processed. The script applies a str_replace filter intended to strip directory traversal sequences, but the filter only accounts for forward-slash variants. On Windows, the filesystem treats backslashes as valid path separators, allowing an attacker to substitute ..\ sequences and escape the intended directory.
Successful exploitation returns the raw contents of the targeted file in the HTTP response. The most consequential target is config_db.php, which contains plaintext MySQL credentials for the CMS backend. With these credentials, an attacker can authenticate directly to the database, exfiltrate customer data, or pivot further into the hosting environment.
Root Cause
The root cause is incomplete input sanitization in the thumbnail generation routine. The developer-implemented str_replace call filters a limited set of traversal patterns but does not normalize backslashes or canonicalize the resulting path before passing it to filesystem read functions. Because PHP on Windows resolves backslash-delimited paths natively, the filter is trivially bypassed.
Attack Vector
The vulnerability is reachable over the network without authentication or user interaction. An attacker sends a crafted HTTP GET request to /include/thumb.php with the dir parameter populated with URL-encoded backslash traversal sequences pointing to a sensitive file. The server responds with the file's contents. Detailed exploitation mechanics are documented in the VulnCheck advisory and the archived Seebug paper.
No verified proof-of-concept code is reproduced here. Refer to the Nuclei template for the exact request pattern used by scanners.
Detection Methods for CVE-2018-25439
Indicators of Compromise
- HTTP requests to /include/thumb.php containing backslash sequences or URL-encoded %5c characters in the dir parameter
- Requests where the dir parameter references sensitive filenames such as config_db.php, web.config, or win.ini
- Anomalous outbound responses from thumb.php with content-length values far larger than expected for a thumbnail error response
- Source IP addresses previously reported by the Shadowserver Foundation as scanning for MetInfo LFI
Detection Strategies
- Deploy the public Nuclei metinfo-lfi template against external attack surface to identify vulnerable instances
- Create a web application firewall (WAF) rule that blocks requests to /include/thumb.php where the dir parameter contains ..\, ..%5c, or sequential backslash patterns
- Correlate web server access logs against known MetInfo CMS hosts for unauthenticated requests targeting thumb.php with path separators in query parameters
Monitoring Recommendations
- Enable verbose logging on the web server fronting MetInfo and ingest access logs into a centralized SIEM for query-parameter inspection
- Alert on any read of config_db.php by the web server process outside of application initialization
- Monitor MySQL authentication logs for connections originating from unexpected source IPs using the MetInfo database account
How to Mitigate CVE-2018-25439
Immediate Actions Required
- Upgrade MetInfo CMS to version 6.1.1 or later, which addresses the backslash bypass in the thumb.php sanitization logic
- Rotate all credentials stored in config_db.php and any other configuration files that may have been read by an attacker
- Audit web server logs from 2023-10-14 forward for exploitation attempts matching the IoC patterns above
- Restrict external access to /include/thumb.php via network ACLs or WAF rules until patching is complete
Patch Information
MetInfo addressed the issue in version 6.1.1. Download the current release from the MetInfo CMS Homepage and follow the vendor's standard upgrade procedure. Full technical details of the fix are available in the VulnCheck advisory.
Workarounds
- Add a WAF signature that rejects HTTP requests to /include/thumb.php containing \, %5c, or .. sequences in any query parameter
- Configure the web server to deny direct access to /include/thumb.php from untrusted networks
- Move config_db.php outside the web root and enforce filesystem ACLs that prevent the web server user from reading files outside the application directory
- Enable PHP open_basedir restrictions to confine filesystem reads to the MetInfo application directory
# Example nginx rule to block backslash traversal against thumb.php
location = /include/thumb.php {
if ($args ~* "(\\|%5c|\.\.)") {
return 403;
}
}
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

