Skip to main content
Vulnerability Database/CVE-2021-48013

CVE-2021-48013: Weaver E-cology Path Traversal Vulnerability

CVE-2021-48013 is a path traversal vulnerability in Weaver E-cology 8.0 that allows unauthenticated attackers to read arbitrary files from the server. This article covers the technical details, exploitation methods, 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-2021-48013 Overview

CVE-2021-48013 is a path traversal vulnerability [CWE-22] affecting Weaver E-cology 8.0, a widely deployed enterprise collaboration and office automation platform. The flaw resides in the /weaver/ln.FileDownload endpoint, which fails to sanitize the fpath parameter before resolving file paths on the server. Unauthenticated remote attackers can submit crafted GET requests containing directory traversal sequences to read arbitrary files, including configuration files such as WEB-INF/web.xml. The Shadowserver Foundation first observed exploitation activity targeting this vulnerability on 2023-10-18.

Critical Impact

Unauthenticated attackers can read arbitrary files from the server over the network, exposing application source, database credentials, session tokens, and other configuration data that enable follow-on compromise.

Affected Products

  • Weaver E-cology 8.0
  • /weaver/ln.FileDownload endpoint with the fpath parameter
  • Deployments exposing the Weaver OA web interface to untrusted networks

Discovery Timeline

  • 2023-10-18 - Exploitation activity first observed by the Shadowserver Foundation
  • 2026-10-22 - CVE-2021-48013 published to NVD
  • 2026-10-22 - Last updated in NVD database

Technical Details for CVE-2021-48013

Vulnerability Analysis

The vulnerability is a classic directory traversal flaw in the Weaver E-cology 8.0 file download servlet. The ln.FileDownload handler accepts a user-supplied fpath parameter and uses it to construct a server-side file path without validating or canonicalizing the input. Because the endpoint also lacks authentication requirements, any remote user who can reach the web interface can request arbitrary files on the host filesystem.

Successful exploitation returns the raw contents of the requested file in the HTTP response. Attackers commonly target application descriptors such as WEB-INF/web.xml, Java class files under WEB-INF/classes/, and database configuration files to recover credentials, cryptographic keys, and internal routing information.

Root Cause

The root cause is improper limitation of a pathname to a restricted directory [CWE-22]. The handler concatenates the attacker-controlled fpath value into a filesystem path without rejecting traversal sequences such as ../ or absolute paths. No access control check is performed before the file read, which turns a design flaw into a pre-authentication information disclosure.

Attack Vector

Exploitation requires only network access to the Weaver E-cology 8.0 web interface. An attacker issues a GET request to /weaver/ln.FileDownload with the fpath query parameter set to a traversal sequence that escapes the intended download directory and resolves to a sensitive file. The server responds with the file contents, enabling the attacker to enumerate the application, extract secrets, and plan further intrusion. Public detection content, including a Nuclei template published by ProjectDiscovery, documents the request pattern used to validate the issue.

See the VulnCheck Security Advisory and the GitHub Nuclei Template for request-level technical details.

Detection Methods for CVE-2021-48013

Indicators of Compromise

  • HTTP GET requests to /weaver/ln.FileDownload containing fpath= with directory traversal sequences such as ../, ..\, or URL-encoded variants (%2e%2e%2f).
  • Responses from the Weaver E-cology server returning content types or payloads consistent with configuration files, including WEB-INF/web.xml.
  • Repeated access to ln.FileDownload from a single external source enumerating multiple file paths.

Detection Strategies

  • Deploy the publicly available GitHub Nuclei Template against internet-facing Weaver E-cology hosts to identify vulnerable endpoints.
  • Write web application firewall (WAF) rules that match traversal patterns in the fpath query parameter and log or block matching requests.
  • Correlate web server access logs with outbound data volume anomalies to surface successful file reads.

Monitoring Recommendations

  • Forward Weaver E-cology web server access logs to a centralized analytics platform and alert on requests to ln.FileDownload from unauthenticated sources.
  • Monitor for unexpected reads of application configuration files, Java class files, and credential stores on the Weaver host.
  • Track reconnaissance scans targeting the /weaver/ URI space across the perimeter.

How to Mitigate CVE-2021-48013

Immediate Actions Required

  • Restrict network exposure of the Weaver E-cology 8.0 interface to trusted internal networks or VPN users while remediation is planned.
  • Apply vendor-supplied patches or hotfixes addressing the ln.FileDownload traversal issue; consult the vendor advisory for the current fixed build.
  • Review web server access logs for prior exploitation attempts against /weaver/ln.FileDownload and rotate any credentials or keys stored in files that may have been read.

Patch Information

No vendor patch URL is included in the enriched data for CVE-2021-48013. Administrators should obtain the latest Weaver E-cology release and security guidance directly from the vendor, and reference the VulnCheck Security Advisory and the GitHub Wiki Document for remediation context.

Workarounds

  • Block external access to /weaver/ln.FileDownload at the reverse proxy or WAF until a patch is deployed.
  • Add a WAF signature that rejects requests whose fpath parameter contains .., %2e%2e, or absolute path prefixes.
  • Enforce least-privilege filesystem permissions on the Weaver service account so configuration files and secrets cannot be read by the application process when it is not required.

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.