Summary
JeecgBoot's flow-run endpoint has a server-side request forgery (SSRF) vulnerability involving calls to RestTemplate.exchange. A remote attacker may be able to cause the server to make requests to unintended destinations if the endpoint allows attacker-controlled input to influence the request.
Affected context
The issue is reported in JeecgBoot up to version 3.9.6, in the flow-run endpoint and the RestTemplate.exchange function in org/jeecg/modules/airag/flow/c/a.class. It becomes risky where request destinations or related request details can be influenced by remote input without sufficient validation or destination restrictions. The disclosure reports remote exploitability and a publicly available exploit; specific authentication requirements are not provided.
Exploit preconditions
- Attack surface: The remotely reachable flow-run endpoint
- Required access: The description does not specify whether authentication or particular permissions are required
- Trigger point: Processing a flow-run request that leads to a
RestTemplate.exchangecall - Why exploitation is possible: If remote input can affect the outbound request destination, the server may make requests beyond the intended set of targets
Why this happens
The underlying issue is an insufficiently constrained server-side request. This maps to CWE-918: Server-Side Request Forgery (SSRF), which occurs when an application uses a request derived from untrusted input without adequately restricting where the server can connect. The specific input and validation logic are not described in the vulnerability information.
Potential impact
- The server may be induced to contact internal or otherwise unintended services
- Responses from reachable services could be exposed through application behavior
- Internal services could receive unintended requests, potentially affecting their state
- The server's network access could provide a path to further probing, depending on deployment controls
General mitigation guidance
Defensive patterns generally focus on controlling outbound destinations and reducing trust in request input:
- Prefer fixed, explicitly configured destinations over destinations supplied by callers
- Validate destinations against an allowlist of approved hosts and schemes
- Restrict outbound network access to only the services the application needs
- Normalize and validate URLs consistently, including redirects and resolved addresses
- Apply least privilege to the application's network and service permissions
How teams detect issues like this
Review code paths that pass request parameters into RestTemplate.exchange or other outbound HTTP clients. Look for caller-controlled URLs, weak destination checks, and redirect handling that could bypass restrictions. Static analysis can flag outbound requests derived from untrusted input; code review and policy checks can verify destination allowlists and network egress controls. Monitor outbound requests for unexpected destinations, especially requests to internal address ranges.

