🇰🇷 한글 설명
Apache Camel A2A 컴포넌트의 WebhookUrlValidator에서 IP 리터럴과 DNS 해석 결과에 대한 주소 분류가 일치하지 않아 SSRF가 발생합니다. 4.21.0 이상 4.22.2 미만 버전이 영향을 받으며, fc00::/7 고유 로컬 주소 검사가 누락되어 있습니다.
💡 쉬운 설명
웹훅 주소 검사가 IPv6 내부 주소를 일관되게 차단하지 못해, 공격자가 서버가 내부 시스템에 요청을 보내도록 유도할 수 있습니다. 응답은 공격자에게 돌아오지 않는 블라인드 요청 형태입니다.
🇺🇸 원문 (English)
Server-Side Request Forgery (SSRF) vulnerability in Apache Camel A2A component.
This issue affects Apache Camel: from 4.21.0 before 4.22.2.
WebhookUrlValidator classified a push notification webhook host in two places that did not agree. A host written as an IP literal was matched against a list of string prefixes that named the IPv6 unique local range fc00::/7, while a host reached through a name was resolved and the resulting address classified with the InetAddress predicates isLoopbackAddress, isAnyLocalAddress, isLinkLocalAddress and isSiteLocalAddress. Those predicates do not cover the same ground as the prefix list: isSiteLocalAddress reports the deprecated fec0::/10 block and not the fc00::/7 unique local addresses that replaced it, and the JDK carries no predicate for them at all. The same address was therefore accepted or rejected depending on how it was written, and a webhook URL whose host name resolved into fc00::/7 passed a guard that refused the identical address given as a literal. PushNotificationDispatcher then sent the push notification to that address, together with any Authorization header carried in the same configuration, whose scheme and credentials the registering caller supplies. The webhook URL arrives as TaskPushNotificationConfig.url from the caller registering the push notification, so it is attacker-controlled, and allowLocalWebhookUrls is false by default, which is the configuration in which the guard is expected to hold. The response is not relayed back to the caller who registered the configuration, so what the gap yields is a blind outbound HTTPS request from the Camel process to an internal address the guard was written to refuse; reaching a service that way additionally requires that the name resolve into fc00::/7 in the target environment, that an HTTPS service be listening on that address, and that the TLS handshake succeed for the name being requested, which is why the severity is assessed medium. The same string pre-check was also wrong in the other direction: it matched the raw host string without first establishing that the host was an IP literal, so any name merely beginning with fc or fd, such as fcm.googleapis.com, was refused outright.
Users are recommended to upgrade to version 4.23.0, which fixes the issue. If users are on the 4.22.x releases stream, then they are suggested to upgrade to 4.22.2. The 4.21.x release line reached end of life before this issue was resolved and will not receive a fix, so deployments on it must move to a supported release. Both the literal and the resolved path now classify the address from its raw bytes with one shared classifier, which recognises fc00::/7 and the shared address space 100.64.0.0/10, as well as IPv4-compatible, NAT64 (64:ff9b::/96) and 6to4 (2002::/16) addresses whose embedded IPv4 address is not globally routable. For deployments that cannot upgrade immediately, place authentication in front of the A2A push notification configuration path so that the webhook URL does not arrive from an untrusted caller, and deny egress from the Camel process to fc00::/7 at the network level; where the deployment has no need of IPv6, starting the JVM with -Djava.net.preferIPv4Stack=true removes the address class the gap turns on. Note that allowLocalWebhookUrls=false is already the default and does not by itself close the gap.
📍 영향받는 시스템
Apache Camel 4.21.0 이상 4.22.2 미만 (A2A 컴포넌트 사용 환경); 4.21.x 라인은 EOL로 패치되지 않음
⚔️ 공격 벡터
공격자가 A2A 푸시 알림 설정 등록 시 fc00::/7 대역으로 해석되는 웹훅 URL을 지정하여 Camel 프로세스가 내부 주소로 HTTPS 요청을 보내게 함
🛡️ 대응 방법
Apache Camel 4.23.0 또는 4.22.2 이상으로 업그레이드; 불가 시 A2A 푸시 알림 경로에 인증 적용 및 Camel 프로세스의 fc00::/7 아웃바운드 차단
🔧 검증 코드
출력된 camel-a2a 관련 JAR의 버전이 4.21.0 이상 4.22.2 미만이면 취약, 4.22.2 이상 또는 4.23.0 이상이면 패치된 것으로 판단합니다.
find / -name 'camel-*.jar' 2>/dev/null | xargs -I{} sh -c 'unzip -p {} META-INF/MANIFEST.MF 2>/dev/null | grep -i "Implementation-Version" | sed "s|^|{}: |"'