/

CVE-2018-25442

Severity:

HIGH RISK

(8.3)

Server-Side Request Forgery (CWE-918) in Baidu UEditor

CVE-2018-25442

Received

Vulnerability type

Category:

Server-Side Request Forgery (SSRF)

CWE:

CWE-918

Impact:

Server-side requests to internal or otherwise restricted network resources

Severity:

HIGH RISK

(8.3)

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

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=catchimage HTTP 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

Sources

SourceLink
github.comgithub.com/fex-team/ueditor/blob/v1.4.3/jsp/src/com/baidu/ueditor/hunter/ImageHunter.java
github.comgithub.com/projectdiscovery/nuclei-templates/blob/main/http/vulnerabilities/ueditor/ueditor-ssrf.yaml
seebug.orgseebug.org/vuldb/ssvid-97311
vulncheck.comvulncheck.com/advisories/baidu-ueditor-1.4.0-1.4.3.1-ssrf-via-controller-jsp-catchimage
vulncheck.comvulncheck.com/advisories/baidu-ueditor-1.4.0-before-1.4.3.1-ssrf-via-controller-jsp-catchimage

Frequently asked

questions

The described endpoint is unauthenticated, so a remote attacker may be able to submit requests if the endpoint is reachable.

The description indicates that authentication is not required. The attacker needs network access to the endpoint, and the server must be able to reach the targeted destination.

Restrict server-side fetches to explicitly approved destinations, validate resolved addresses, and enforce outbound network controls.

Treat user-provided URLs as untrusted, review data flows into network clients, and apply egress policies that limit the impact of validation failures.

Find out what's already
exploitable in your codebase.