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-48015 Overview
CVE-2021-48015 is an unauthenticated path traversal vulnerability [CWE-22] in JeeWMS, a Java-based warehouse management system. The flaw resides in the showOrDownByurl.do endpoint of SystemController, which accepts a user-controlled dbPath parameter without sanitization. Remote attackers can submit GET requests containing ../ sequences to read arbitrary files from the server filesystem, including win.ini and application configuration files. The vulnerable path also bypasses AuthInterceptor, meaning no credentials are required. Exploitation evidence was first observed by the Shadowserver Foundation on 2023-10-17. The issue is fixed in commit 0a610e8.
Critical Impact
Unauthenticated remote attackers can read any file readable by the JeeWMS process, exposing credentials, configuration, and source code.
Affected Products
- JeeWMS warehouse management system (all versions prior to commit 0a610e8)
- Deployments exposing /systemController/showOrDownByurl.do to untrusted networks
- Instances relying on AuthInterceptor for access control on this endpoint
Discovery Timeline
- 2023-10-17 - Exploitation evidence first observed by the Shadowserver Foundation
- 2026-10-22 - CVE-2021-48015 published to NVD
- 2026-10-22 - Last updated in NVD database
Technical Details for CVE-2021-48015
Vulnerability Analysis
The vulnerability lives in the showOrDownByurl.do handler within SystemController.java. The handler reads the dbpath request parameter and concatenates it directly to the configured webUploadpath to build a filesystem path. It then opens a FileInputStream on the resulting path and streams the content back in the HTTP response.
Because dbpath is not validated or canonicalized, an attacker can supply ../ traversal sequences that escape the upload directory. The request path /systemController/showOrDownByurl.do is additionally excluded from AuthInterceptor, so the endpoint is reachable without any session or credentials.
Root Cause
The root cause is improper limitation of a pathname to a restricted directory [CWE-22]. The controller trusts attacker-supplied input to construct a filesystem path and does not canonicalize the resulting path or verify it stays within webUploadpath. Combined with the authentication bypass on the route, any network-reachable client can issue the request.
Attack Vector
An attacker sends a single HTTP GET request to the vulnerable endpoint with a traversal payload in dbPath. A representative request reads C:\Windows\win.ini:
GET /systemController/showOrDownByurl.do?dbPath=../../../../../../../../Windows/win.ini
The server responds with the raw file content. Attackers typically chain this to retrieve application.yml, database credentials, Tomcat conf/server.xml, or SSH keys for lateral movement.
// Security patch applied in SystemController.java
try {
String localPath = ResourceUtil.getConfigByName("webUploadpath");
String imgurl = localPath + File.separator + dbpath;
imgurl = imgurl.replace("..", "").replace("../", "");
inputStream = new BufferedInputStream(new FileInputStream(imgurl));
outputStream = response.getOutputStream();
byte[] buf = new byte[1024];
Source: GitHub Commit 0a610e8. The patch strips .. substrings from the resolved path before opening the file. Note that string replacement alone is a weak defense; defenders should also validate the canonical path.
Detection Methods for CVE-2021-48015
Indicators of Compromise
- HTTP GET requests to /systemController/showOrDownByurl.do containing ../, ..\, URL-encoded %2e%2e%2f, or double-encoded traversal sequences in the dbPath parameter
- Successful 200 responses from this endpoint returning non-image content types or binary data
- Access attempts from scanners using the public Nuclei template jeewms-lfi
Detection Strategies
- Web server and WAF rules that flag path traversal patterns in query strings targeting .do endpoints
- Application log review for showOrDownByurl.do requests where dbPath contains parent-directory references
- Egress monitoring for unexpected transfers of configuration files, keystores, or OS files originating from the JeeWMS host
Monitoring Recommendations
- Alert on any unauthenticated access to /systemController/showOrDownByurl.do from external networks
- Baseline normal dbPath values and alert on deviations, especially absolute paths or traversal tokens
- Correlate successful file-read responses with subsequent authentication attempts using credentials matching exposed configuration files
How to Mitigate CVE-2021-48015
Immediate Actions Required
- Update JeeWMS to a build that includes commit 0a610e8 or later
- Block external access to /systemController/showOrDownByurl.do at the reverse proxy or WAF until patched
- Rotate any credentials, API tokens, and keys stored in files reachable by the application user
- Audit web and application logs since 2023-10-17 for exploitation attempts matching the Shadowserver indicators
Patch Information
The upstream fix is published in JeeWMS commit 0a610e8. It modifies SystemController.java to strip .. sequences from the resolved path. Operators should additionally review AuthInterceptor configuration to ensure download endpoints require authentication. Full exploitation and patch context is available in the VulnCheck advisory for JeeWMS path traversal.
Workarounds
- Deploy a WAF rule rejecting requests to showOrDownByurl.do whose dbPath parameter contains .., %2e%2e, or absolute path prefixes such as /, C:\, or \\
- Restrict network access to the JeeWMS management interface to trusted administrative subnets via firewall ACLs
- Run the JeeWMS process under a least-privilege OS account with no read access to sensitive system or user files
# Example ModSecurity rule to block traversal on the vulnerable endpoint
SecRule REQUEST_URI "@contains /systemController/showOrDownByurl.do" \
"id:1004801,phase:1,deny,status:403,log,\
chain,msg:'CVE-2021-48015 JeeWMS path traversal attempt'"
SecRule ARGS:dbPath "@rx (\.\./|\.\.\\|%2e%2e%2f|%2e%2e/)" "t:none,t:lowercase"
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

