Server-side Request Forgery (SSRF)Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) via the validateAndResolve function in the A2A component’s WebhookUrlValidator. An attacker can make Camel send a blind outbound HTTPS request to an internal IPv6 unique-local address by registering a push-notification webhook URL whose hostname resolves into fc00::/7; the validator accepts it because its hostname-resolution checks do not identify that range. The request may include the configured Authorization header, and its response is not returned to the registering caller; exploitation requires the name to resolve to that range in the target environment and an HTTPS service there to accept the connection.
Workarounds
- Place authentication in front of the A2A push-notification configuration path to prevent untrusted callers from supplying webhook URLs.
- Deny network egress from the Camel process to
fc00::/7 to block requests to IPv6 unique-local addresses.
- If the deployment does not need IPv6, start the JVM with
-Djava.net.preferIPv4Stack=true to remove the IPv6 address path involved in this vulnerability.
How to fix Server-side Request Forgery (SSRF)? Upgrade org.apache.camel:camel-a2a to version 4.22.2 or higher.
| |