/

CVE-2021-48023

Severity:

CRITICAL RISK

(9.8)

Unrestricted File Upload (CWE-434) in Weaver E-cology

CVE-2021-48023

Received

Vulnerability type

Category:

Unrestricted File Upload

CWE:

CWE-434

Impact:

Remote Code Execution

Severity:

CRITICAL RISK

(9.8)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

Weaver E-cology 9.0 has an unrestricted file upload vulnerability in an export/import endpoint that may accept JSP files without adequate restrictions. Because the endpoint is described as unauthenticated and uploaded files may be placed in a web-accessible, executable location, an attacker could potentially execute code on the server.

Affected context

The issue occurs in /page/exportImport/uploadOperation.jsp in Weaver E-cology 9.0. It becomes risky when the endpoint is reachable without authentication, accepts executable file types, and stores uploads where the web server can execute them. The reported exploitation evidence was observed by the Shadowserver Foundation on 2023-10-20.

Exploit preconditions

  • Attack surface: The export/import upload endpoint must be reachable over the network.
  • Required access: The report describes the endpoint as unauthenticated; no account is required if that behavior is present in the deployed environment.
  • Trigger point: The application processes an upload request and makes the uploaded file available.
  • Why exploitation is possible: If file type and content restrictions are inadequate and JSP files are stored in an executable web-accessible location, the server may interpret them as code.

Why this happens

The underlying issue is insufficient restriction of uploaded files, mapping to CWE-434: Unrestricted Upload of File with Dangerous Type. An application that accepts dangerous file types without reliable validation, safe storage, and execution controls can allow uploaded content to be treated as server-side code.

Potential impact

  • An attacker may execute code with the privileges of the application or web server.
  • The attacker could access or modify data available to the compromised service.
  • The affected host may be used to disrupt the application or as a foothold for further activity.

General mitigation guidance

Common defensive patterns focus on preventing uploaded content from becoming executable:

  • Allow only necessary file types, validating both content and declared type rather than relying on filenames alone.
  • Store uploads outside web-executable directories, or serve them through a separate static-content path.
  • Disable script execution in upload locations and use safe-by-default storage handling.
  • Apply size limits, authorization controls where appropriate, and least-privilege permissions for upload-processing components.
  • Treat uploaded files as untrusted and avoid relying on client-side checks.

How teams detect issues like this

High-level detection approaches include:

  • Review upload handlers for missing type allowlists, weak validation, or reliance on file extensions and request metadata.
  • Use static analysis to identify file writes into web roots and paths where script execution is enabled.
  • Monitor upload and web-server logs for unexpected file types, unusual upload activity, and requests to newly created files.
  • Enforce policies that prohibit executable content in user-uploaded storage and require security review of upload-handling changes.

Sources

SourceLink
github.comgithub.com/Ershu1/2021_Hvv/blob/main/%E6%B3%9B%E5%BE%AEOAV9%20%E5%89%8D%E5%8F%B0%E6%96%87%E4%BB%B6%E4%B8%8A%E4%BC%A0.md
github.comgithub.com/PeiQi0/PeiQi-WIKI-Book/blob/main/docs/wiki/oa/%E6%B3%9B%E5%BE%AEOA/%E6%B3%9B%E5%BE%AEOA%20E-Cology%20uploadOperation.jsp%20%E4%BB%BB%E6%84%8F%E6%96%87%E4%BB%B6%E4%B8%8A%E4%BC%A0.md
github.comgithub.com/projectdiscovery/nuclei-templates/blob/main/http/vulnerabilities/weaver/oa-v9-uploads-file.yaml
vulncheck.comvulncheck.com/advisories/weaver-e-cology-9.0-unrestricted-file-upload-via-uploadoperation-jsp

Frequently asked

questions

The reported upload endpoint is network-accessible. Exploitation may be possible when it is reachable and accepts uploads that the server can execute.

The description characterizes the endpoint as unauthenticated. Actual access requirements can depend on deployment configuration and any controls placed in front of it.

Restrict uploads to necessary, validated file types and store them outside locations where the web server can execute content.

Treat all uploaded content as untrusted, enforce server-side validation and storage policies, and monitor upload paths and execution behavior.

Find out what's already
exploitable in your codebase.