Summary
MeterSphere exposes plugin upload and invocation endpoints without requiring authentication, allowing unauthenticated users to reach sensitive functionality. If those endpoints are accessible to an attacker, the plugin execution path may enable remote code execution.
Affected context
The issue affects MeterSphere releases in the specified vulnerable version ranges when the /plugin/** endpoints are available with anonymous access. The risk arises where these endpoints permit plugin handling and method invocation without first verifying the caller's identity and authorization.
Exploit preconditions
- Attack surface: The
/plugin/**endpoints must be reachable over the network. - Required access: No authenticated account is required when anonymous access is enabled.
- Trigger point: Plugin upload and custom method invocation functionality.
- Why exploitation is possible: Plugin-related inputs reach class loading and method invocation without adequate authentication and authorization controls.
Why this happens
Critical plugin operations are exposed without an authentication check, mapping to CWE-306: Missing Authentication for Critical Function. The application allows caller-controlled plugin-related values to reach dynamic class loading and method invocation, creating a path to execute code when the endpoints are accessible to an unauthenticated caller.
Potential impact
- An attacker could execute code in the MeterSphere application context.
- The application or its underlying host may be compromised.
- Sensitive data accessible to the application may be exposed or altered.
- The compromise could disrupt services or provide a foothold for further activity.
General mitigation guidance
Mitigation generally focuses on protecting sensitive plugin operations and reducing the authority of code that handles plugins.
- Require authentication and authorization for plugin upload and invocation operations.
- Disable or restrict plugin-management endpoints when they are not needed.
- Avoid exposing dynamic class loading and method invocation to caller-controlled values; use constrained registries or allowlists where dynamic behavior is necessary.
- Run the application with least privilege and limit its access to sensitive data and system resources.
- Apply network access controls to reduce exposure of administrative and plugin-related interfaces.
How teams detect issues like this
- Review route and security configuration for plugin endpoints that allow anonymous access.
- Use static analysis and code review to identify missing authorization checks on sensitive operations and caller-controlled inputs reaching class loading or reflective invocation.
- Monitor application and network logs for unexpected requests to plugin upload or invocation routes, especially from unauthenticated sources.
- Enforce policy checks that require explicit authorization for administrative and plugin-management functionality.

