Summary
Baidu UEditor's ImageHunter component can make server-side requests to URLs supplied through the source[] parameter at the catchimage endpoint. Because the endpoint is described as unauthenticated, a remote attacker may be able to reach internal services accessible from the server.
Affected context
The issue affects Baidu UEditor deployments in the stated affected release range: version 1.4.0 before 1.4.3.1. It occurs in the JSP controller's catchimage action, where the ImageHunter component fetches URLs provided through source[] using url.openConnection().
Exploit preconditions
- Attack surface: The
/ueditor/jsp/controller.jsp?action=catchimageHTTP endpoint - Required access: The description reports that the endpoint can be used without authentication
- Trigger point: Processing a request containing attacker-supplied values in
source[] - Why exploitation is possible: The server fetches supplied URLs, potentially reaching destinations available to the server but not to the requester
Why this happens
The application uses a server-side URL-fetching component with attacker-controlled URL input. Without sufficient validation of destinations and controls on outbound connections, the server can be induced to make requests to unintended hosts or internal services. This behavior maps to CWE-918: Server-Side Request Forgery (SSRF).
Potential impact
- An attacker may cause requests to internal services reachable from the UEditor server
- Network boundaries or access restrictions may be bypassed from the server's network position
- Responses or side effects from reachable services could expose information or affect internal systems, depending on those services
General mitigation guidance
Mitigation generally focuses on limiting where server-side fetchers can connect and reducing trust in user-supplied URLs.
Common defensive patterns include:
- Applying strict URL and destination validation, including checks after DNS resolution
- Allowing requests only to explicitly approved hosts and schemes
- Blocking access to loopback, private, link-local, and other restricted address ranges
- Enforcing outbound network policies so application servers can reach only necessary services
- Avoiding server-side fetching when a safer design can meet the requirement
- Applying least privilege to the application process and its network permissions
How teams detect issues like this
High-level detection approaches include:
- Reviewing code for server-side request APIs that consume user-controlled URLs
- Using static analysis to trace request parameters into URL connection or HTTP client calls
- Monitoring outbound traffic for unexpected connections to internal, loopback, or restricted address ranges
- Enforcing code review and CI policies for URL-fetching features, including destination validation and egress controls

