Summary
A server-side request forgery (SSRF) vulnerability affects the OpenAPI call function in JeecgBoot. A remote attacker may be able to cause the server to make requests to unintended destinations, depending on network access and deployment controls.
Affected context
The reported issue is in OpenApiController.call, at the /openapi/call endpoint, within the Authentication Filter component of JeecgBoot versions up to 3.9.5. Risk depends on whether the endpoint is reachable and whether requests can influence destinations used by the server.
Exploit preconditions
- Attack surface: The
/openapi/callendpoint must be reachable over the network. - Required access: The description does not specify whether authentication is required; this depends on endpoint configuration and deployment controls.
- Trigger point: Processing a request through
OpenApiController.call. - Why exploitation may be possible: The affected operation reportedly permits server-side requests to unintended destinations.
Why this happens
CWE-918 describes server-side request forgery: an application makes requests to a destination that is not adequately constrained by its intended trust policy. The reported flaw involves the OpenAPI call function; the precise implementation detail is not specified, but insufficient control over request destinations can expose the server's network position and access.
Potential impact
- The server may be induced to contact internal or otherwise unintended services.
- Responses from reachable services could be exposed through the application, depending on its behavior.
- Network controls or services trusted by the server could be reached or affected.
- Sensitive resources accessible from the server may be put at risk.
General mitigation guidance
Common defensive patterns for SSRF include:
- Restricting outbound requests to explicitly approved destinations and protocols.
- Validating and normalizing destinations before making requests, including handling redirects and resolved addresses.
- Using network egress controls to limit access to internal and sensitive services.
- Avoiding caller-controlled destinations where a fixed or allowlisted destination can meet the application's needs.
- Applying least privilege to the service identity and limiting the data returned from outbound requests.
How teams detect issues like this
Detection can include:
- Reviewing request-handling code for outbound calls whose destinations derive from user-controlled input.
- Using static analysis to identify server-side HTTP or URL-fetching APIs and check for destination validation.
- Monitoring outbound traffic for unexpected destinations, protocols, or access to internal address ranges.
- Enforcing egress policies and alerting on denied or unusual connection attempts.
- Including SSRF scenarios in security testing and automated code review.

