Unauthenticated Remote Code Execution in Weaver E-cology 9.0
Weaver E-cology 9.0 versions prior to 10.52 are vulnerable to unauthenticated arbitrary file upload via the /workrelate/plan/util/uploaderOperate.jsp endpoint, allowing remote code execution.
Weaver (Fanwei) E-cology 9.0 versions prior to 10.52 contain a critical arbitrary file upload vulnerability (CVE-2022-4995) that enables remote, unauthenticated attackers to gain remote code execution (RCE). The vulnerability exists within the /workrelate/plan/util/uploaderOperate.jsp endpoint, which fails to properly validate incoming file uploads. By sending a crafted multipart/form-data POST request containing arbitrary secId and plandetailid parameters, an attacker can upload malicious JSP files to the web server. Once the file is written to the application's accessible web root, the attacker can execute arbitrary commands under the context of the application server process. This vulnerability has been subject to active exploitation in the wild since at least October 14, 2023.
Attack Chain
- Attacker performs reconnaissance to identify internet-facing Weaver E-cology 9.0 instances.
- Attacker crafts a multipart/form-data HTTP POST request targeting /workrelate/plan/util/uploaderOperate.jsp.
- Attacker injects a malicious JSP webshell into the body of the multipart request.
- Attacker includes arbitrary values in the secId and plandetailid fields to bypass application-level checks.
- The vulnerable server accepts the request and writes the JSP file to an accessible directory.
- Attacker sends a GET request to the newly uploaded JSP file path to trigger code execution.
- The application server process executes the embedded commands, granting the attacker RCE.
Impact
Successful exploitation of CVE-2022-4995 results in full remote code execution, allowing attackers to compromise the application server. This can lead to total system takeover, data exfiltration, and potential lateral movement within the affected organization. Given the nature of the application, these servers often house sensitive corporate documents and internal project planning data.
Recommendation
- Upgrade all Weaver E-cology 9.0 instances to version 10.52 or later to mitigate CVE-2022-4995.
- Deploy the Sigma rule below to monitor for exploitation attempts targeting the identified JSP upload endpoint.
- Implement strict access control lists (ACLs) to restrict access to /workrelate/plan/util/uploaderOperate.jsp to trusted internal IP addresses only.
- Audit the web root directory for suspicious JSP files created after October 2023.
Detection coverage 1
Detects CVE-2022-4995 Exploitation - Arbitrary JSP File Upload Attempt
criticalDetects unauthenticated POST requests to the vulnerable uploaderOperate.jsp endpoint which is indicative of attempts to upload webshells.
Detection queries are available on the platform. Get full rules →