Server-side code execution via unchecked ZIP paths
Published Dec 11, 2022 · Updated Apr 15, 2025
Path traversal in RainyGao DocSys 2.02.37 allows remote authenticated users to write files outside the upgrade directory via a ZIP entry. The BaseController.unZip method joins the attacker-controlled entry.getName() path without rejecting ../ sequences, and ManageController.upgradeSystem extracts the uploaded archive into the web application. Administrator or super-administrator access is required; a crafted archive can overwrite writable files or place a JSP in the web root for server-side code execution.
Summary
What happened
Path traversal in RainyGao DocSys 2.02.37 allows remote authenticated users to write files outside the upgrade directory via a ZIP entry. The BaseController.unZip method joins the attacker-controlled entry.getName() path without rejecting ../ sequences, and ManageController.upgradeSystem extracts the uploaded archive into the web application. Administrator or super-administrator access is required; a crafted archive can overwrite writable files or place a JSP in the web root for server-side code execution.
The record
- CVE
- CVE-2022-4402
- Published
- Dec 11, 2022
- Updated
- Apr 15, 2025
- Vendor
- RainyGao
- Product
- DocSys
- Classifications
- CWE-22, T1505.003
- Attack vector
- network
- Privileges
- admin
Timeline
How it unfolded
- Dec 11, 2022CVE publishedPublication date reported by the CVE source.
- Apr 15, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=2.02.37
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- DocSys Zip Slip proof of conceptfunctional · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo