Summary
DataEase has an authentication-filter weakness affecting its standalone static-resource upload endpoint. A remote attacker may be able to upload files without the intended authentication checks when access to the endpoint is not otherwise restricted.
Affected context
The issue is reported in DataEase versions up to 2.10.27 and involves WhitelistUtils.endsWithAny in WhitelistUtils.java, part of the Authentication Filter. The risk occurs when the standalone static-resource upload endpoint relies on a URI suffix whitelist without independently enforcing authentication.
Exploit preconditions
- Attack surface: The standalone static-resource upload endpoint, reachable remotely
- Required access: Network access to the endpoint; the reported weakness concerns missing authentication enforcement
- Trigger point: A request to the upload endpoint with a file argument
- Why exploitation is possible: URI suffix whitelist handling does not independently require authentication for this endpoint
Why this happens
The root cause is an authorization enforcement gap in the authentication filter. A suffix-based whitelist is used in a way that can allow access to a file-upload endpoint without an independent authentication check. This is primarily CWE-434: Unrestricted Upload of File with Dangerous Type, with an access-control aspect related to CWE-284: Improper Access Control.
Potential impact
- An attacker may upload files without authorization.
- Uploaded content could be served as static resources or otherwise handled by the application, depending on deployment and file-processing behavior.
- The issue could undermine trust in hosted content and create opportunities for follow-on attacks.
General mitigation guidance
Defensive patterns include enforcing authentication and authorization directly on upload endpoints, independent of URI suffix or whitelist logic. Treat uploaded files as untrusted: constrain permitted types and sizes, validate content, store files outside executable or publicly served paths where possible, and apply least-privilege permissions to storage and processing components. Avoid relying on filename extensions or routing rules as substitutes for access control.
How teams detect issues like this
Review authentication-filter and routing logic for upload endpoints that are exempted through suffix-based allowlists. Use static analysis and code review to identify upload handlers lacking endpoint-level authorization, and verify that policy checks apply consistently regardless of URI form. Security testing and policy enforcement can also confirm that unauthenticated requests cannot reach file-upload operations.

