Skip to main content
Vulnerability Database/CVE-2018-25438

CVE-2018-25438: Group-Office Path Traversal Vulnerability

CVE-2018-25438 is an unauthenticated path traversal flaw in Intermesh Group-Office versions 3.3.0 to 3.5.4 that lets attackers read sensitive files. This article covers technical details, affected versions, impact, and mitigation.

Published:

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-25438 Overview

CVE-2018-25438 is an unauthenticated path traversal vulnerability in Intermesh Group-Office versions 3.3.0 through 3.5.4. The flaw resides in compress.php, where the file parameter is appended to the cache path and passed directly to readfile() without sanitization. Remote attackers can submit crafted GET requests containing ../ sequences to read arbitrary files on the server, including /etc/passwd and application configuration files. The Shadowserver Foundation first observed exploitation evidence on 2023-10-21. The vulnerability is categorized under CWE-22 (Improper Limitation of a Pathname to a Restricted Directory).

Critical Impact

Unauthenticated remote attackers can read arbitrary server files, exposing credentials, configuration data, and sensitive application files without any user interaction.

Affected Products

  • Intermesh Group-Office 3.3.0 through 3.5.4
  • Group-Office installations exposing compress.php to untrusted networks
  • Legacy Group-Office deployments not upgraded to version 3.5.5 or later

Discovery Timeline

  • 2023-10-21 - Exploitation activity first observed by the Shadowserver Foundation
  • 2026-10-22 - CVE CVE-2018-25438 published to NVD
  • 2026-10-22 - Last updated in NVD database

Technical Details for CVE-2018-25438

Vulnerability Analysis

The vulnerability is a classic Local File Inclusion (LFI) issue via path traversal in the compress.php script shipped with Intermesh Group-Office. The script accepts a file parameter via HTTP GET and concatenates it to the application's cache directory path. The resulting path is then passed to the PHP readfile() function, which streams the file contents back in the HTTP response.

Because the script does not validate or canonicalize the user-supplied path, directory traversal sequences such as ../ escape the intended cache directory. The endpoint is reachable without authentication, allowing any network-adjacent attacker to retrieve files that the web server process can read. Target files commonly include /etc/passwd, Group-Office database configuration, session storage, and credential material.

Root Cause

The root cause is missing input validation on the file request parameter in compress.php. The code trusts attacker-controlled input, performs string concatenation to build a filesystem path, and invokes readfile() without a whitelist check, path normalization, or directory containment verification. This maps directly to CWE-22.

Attack Vector

Exploitation requires only network access to a vulnerable Group-Office instance. The attacker issues an unauthenticated HTTP GET request to /compress.php with a file parameter containing ../ sequences chained to reach the target file. The server responds with the raw contents of the requested file. A public Nuclei template for detecting this issue is available in the ProjectDiscovery nuclei-templates repository, and additional technical details are documented in the VulnCheck advisory and CXSecurity Issue WLB-2018020249.

No verified exploit code is reproduced here; the attack mechanism is fully described above and in the linked references.

Detection Methods for CVE-2018-25438

Indicators of Compromise

  • HTTP GET requests to /compress.php containing ../ or URL-encoded %2e%2e%2f sequences in the file parameter.
  • Web server access logs showing compress.php requests with file values referencing /etc/passwd, config.php, or other sensitive paths.
  • Outbound responses from compress.php with content types or sizes inconsistent with normal cache output.
  • Repeated probing against Group-Office endpoints from the same source IP enumerating different traversal depths.

Detection Strategies

  • Deploy the public Nuclei template for GroupOffice LFI to actively test exposed instances.
  • Create web application firewall (WAF) rules that flag path traversal patterns in query parameters targeting compress.php.
  • Correlate web access logs with egress file-read patterns to identify successful retrieval of sensitive files.

Monitoring Recommendations

  • Monitor HTTP request logs on all Group-Office hosts for anomalous compress.php traffic volume or parameter content.
  • Alert on any 200-response compress.php request where the file parameter contains dot-dot sequences or absolute paths.
  • Track scanner user-agents and source IPs reported by the Shadowserver Foundation feeds for CVE-2018-25438 activity.

How to Mitigate CVE-2018-25438

Immediate Actions Required

  • Upgrade Intermesh Group-Office to version 3.5.5 or later, which addresses the path traversal in compress.php.
  • Restrict external exposure of Group-Office administrative endpoints to trusted networks or VPN access only.
  • Audit web server logs for historical requests to /compress.php containing traversal patterns and rotate any credentials that may have been exposed.
  • Verify the integrity of configuration files and session data accessible via the web server user.

Patch Information

The vendor fix is included in Intermesh Group-Office 3.5.5. Administrators should obtain the current release from the GroupOffice official website and follow the standard upgrade procedure. Review the VulnCheck advisory for additional vendor guidance and version-specific details.

Workarounds

  • Block or remove public access to compress.php at the web server or reverse proxy layer until patching is complete.
  • Implement a WAF rule that rejects requests to compress.php whose file parameter contains ../, ..\, or encoded equivalents.
  • Run the Group-Office web server process under a least-privilege account to limit the scope of files readable via the vulnerability.
bash
# Example Apache configuration to block traversal patterns on compress.php
<Location "/compress.php">
    RewriteEngine On
    RewriteCond %{QUERY_STRING} (\.\./|\.\.\\|%2e%2e%2f|%2e%2e/) [NC]
    RewriteRule .* - [F,L]
</Location>

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

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.