Skip to main content
Vulnerability Database/CVE-2026-105157

CVE-2026-105157: RainyGao DocSys Path Traversal Vulnerability

CVE-2026-105157 is a path traversal vulnerability in RainyGao DocSys up to version 2.02.85 that allows remote attackers to access unauthorized files. This post explains its impact, affected versions, and mitigation steps.

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-2026-105157 Overview

CVE-2026-105157 is a path traversal vulnerability [CWE-22] affecting RainyGao DocSys versions up to 2.02.85. The flaw resides in the DocController.doGetTmp function handling requests to /Doc/doGetTmpFile.do within the Document Controller component. Attackers manipulate the path and fileName arguments to traverse directories outside the intended scope. Remote exploitation is possible with low-privilege authenticated access, and the exploit has been publicly disclosed. The project maintainers were notified through an issue report but have not responded at the time of disclosure.

Critical Impact

Authenticated remote attackers can read arbitrary files accessible to the DocSys application process by injecting traversal sequences into the path or fileName request parameters.

Affected Products

  • RainyGao DocSys versions up to and including 2.02.85
  • Document Controller component (DocController class)
  • Endpoint /Doc/doGetTmpFile.do served by the doGetTmp function

Discovery Timeline

  • 2026-10-04 - CVE-2026-105157 published to NVD
  • 2026-10-06 - Last updated in NVD database

Technical Details for CVE-2026-105157

Vulnerability Analysis

The vulnerability resides in the DocController.doGetTmp method, which services HTTP requests to /Doc/doGetTmpFile.do. The controller accepts user-controlled path and fileName parameters and uses them to resolve a file on the server filesystem. Because the input is not canonicalized or constrained to an allowed base directory, an attacker can supply traversal sequences such as ../ to escape the intended working directory.

Successful exploitation returns file contents from outside the document storage area, including configuration files, credentials, or source code accessible to the application user. The attack requires network reachability to the DocSys endpoint and a low-privilege authenticated session. The confidentiality impact is limited to files readable by the DocSys process; integrity and availability are not directly affected.

Root Cause

The root cause is improper limitation of a pathname to a restricted directory [CWE-22]. The doGetTmp handler concatenates attacker-supplied path and fileName values into a filesystem lookup without normalizing the resulting path or validating that it remains within the designated temporary file directory. Standard defenses such as canonicalization with File.getCanonicalPath() and a prefix check against an allowlisted base directory are absent.

Attack Vector

An authenticated remote attacker sends a crafted HTTP request to /Doc/doGetTmpFile.do with traversal sequences in the path or fileName parameters. For example, a request setting fileName=../../../../etc/passwd or an equivalent Windows path forces the server to resolve and return a file outside the intended directory. The exploit requires no user interaction and has been publicly disclosed. See the VulDB CVE Report and Gitee Issue Tracker for additional technical context.

Detection Methods for CVE-2026-105157

Indicators of Compromise

  • HTTP requests to /Doc/doGetTmpFile.do containing ../, ..\, %2e%2e%2f, or other encoded traversal sequences in the path or fileName query parameters.
  • Access log entries showing successful 200 responses to doGetTmpFile.do requests referencing paths outside the DocSys temporary file directory.
  • Unexpected reads of system files such as /etc/passwd, web.xml, or application configuration files by the DocSys service account.

Detection Strategies

  • Deploy web application firewall rules that inspect path and fileName parameters on the /Doc/doGetTmpFile.do endpoint for traversal patterns and URL-encoded variants.
  • Enable application-level logging that records the fully resolved filesystem path returned by doGetTmp, then alert when the path escapes the configured temporary directory.
  • Correlate authentication logs with doGetTmpFile.do request volume to identify low-privilege accounts probing the endpoint.

Monitoring Recommendations

  • Monitor file read system calls originating from the DocSys Java process for access to sensitive paths outside document storage.
  • Baseline normal doGetTmpFile.do traffic patterns and alert on parameter length anomalies or dot-sequence frequency.
  • Review Gitee issue tracker and vendor repository for a patched release, since no fix was available at disclosure.

How to Mitigate CVE-2026-105157

Immediate Actions Required

  • Restrict network access to the DocSys application so only trusted users can reach /Doc/doGetTmpFile.do.
  • Place DocSys behind a reverse proxy or WAF that rejects requests containing traversal sequences in path or fileName parameters.
  • Audit authenticated DocSys accounts and revoke credentials that are not actively required, reducing the pool of accounts able to trigger the flaw.
  • Review existing access logs for prior exploitation attempts referencing doGetTmpFile.do.

Patch Information

At the time of publication, no vendor patch is available. The project was informed through an issue report on Gitee but has not responded. Track the RainyGao DocSys repository for an upcoming fix and apply the update as soon as it is released. Verify that any patched build canonicalizes resolved paths and enforces an allowlisted base directory within DocController.doGetTmp.

Workarounds

  • Block or rewrite requests to /Doc/doGetTmpFile.do that contain .., %2e%2e, backslashes, or absolute path prefixes at the proxy or WAF layer.
  • Run the DocSys service under a dedicated low-privilege operating system account with filesystem permissions restricted to the document storage directory.
  • Apply mandatory access controls such as AppArmor or SELinux profiles that confine the DocSys process to its intended directory tree.
  • If the temporary file feature is not required, disable or remove the /Doc/doGetTmpFile.do route in the deployment configuration.
bash
# Example nginx reverse proxy rule to block traversal patterns on the vulnerable endpoint
location = /Doc/doGetTmpFile.do {
    if ($args ~* "(\.\./|\.\.\\|%2e%2e|%2f%2e%2e|/etc/|\\windows\\)") {
        return 403;
    }
    proxy_pass http://docsys_backend;
}

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.