🇰🇷 한글 설명
Apache Camel Platform HTTP Main 컴포넌트에서 부적절한 인증 취약점이 발견되었습니다. JWT 인증 설정 시 issuer(발행자) 또는 audience(대상자)가 설정되지 않으면 해당 클레임 검증을 건너뛰고 서명과 만료 시간만 확인하게 됩니다. 이로 인해 신뢰하는 키로 서명된 다른 서비스용 토큰이 허용될 수 있는 보안 결함이 존재합니다.
💡 쉬운 설명
로그인 확인을 할 때 '누가 발행했는지'와 '누구를 위한 것인지'를 확인해야 하는데, 이 과정을 생략하고 '도장이 진짜인지'만 확인하는 문제입니다. 결과적으로 다른 곳에서 사용하려고 만든 통행증을 가져와도 도장만 맞으면 통과될 수 있습니다.
🇺🇸 원문 (English)
Improper Authentication vulnerability in Apache Camel Platform HTTP Main component.
This issue affects Apache Camel: from 4.8.0 before 4.22.0.
The camel-main embedded HTTP server can protect its endpoints with JWT authentication, configured through authenticationEnabled together with the JWT keystore properties. JWTAuthenticationConfigurer.buildJwtOptions returned null when neither jwtIssuer nor jwtAudience was configured, and the caller then skipped the JWTAuthOptions.setJWTOptions call entirely, so the Vert.x JWTAuth instance was built from the keystore alone. The result was that inbound tokens were checked only for signature and expiry: the iss and aud claims were not validated at all. Nothing signalled this - the server started normally and reported no warning - so a deployment configured the documented way silently enforced less than the operator believed it had enabled, and the component documentation itself presented signature and expiry checking as the default with issuer and audience as an optional extra. Both the application server and the management server were affected, because the omission was in each of the two configureAuthentication paths. Any unexpired token signed by any key the configured keystore trusts was therefore accepted, regardless of which issuer minted it or which audience it was intended for. How far that reaches depends on the trust set of the keystore: where the signing key belongs to a shared or multi-tenant identity provider, a token legitimately issued for an entirely different audience is accepted, while a keystore holding a dedicated signer narrows it to reuse of tokens minted for other services within the same trust domain. The jwtIssuer and jwtAudience options did not exist before 4.21.0, so on earlier releases there was no supported way to have these claims enforced at all.
Users are recommended to upgrade to version 4.22.0, which fixes the issue. From 4.22.0 the server refuses to start when a JWT keystore is configured but neither jwtIssuer nor jwtAudience is set, naming the properties involved, and a deployment that genuinely wants signature and expiry validation only must say so explicitly with the new jwtAllowMissingIssuerAndAudience option, which defaults to false. This behaviour is fixed only on 4.22.0. The 4.14.9 and 4.18.4 releases do not change the default: they add the jwtIssuer and jwtAudience options so that operators on those maintenance lines can enforce the claims by configuration, and an installation that upgrades to 4.14.9 or 4.18.4 without also setting at least one of those two properties is still accepting any unexpired token signed by a trusted key. Users on 4.14.x or 4.18.x should therefore upgrade to 4.14.9 or 4.18.4 and then set jwtIssuer, jwtAudience, or both. Releases from 4.8.0 up to and including 4.21.x offer no way to enforce these claims and should be moved to a version that does. Independently of version, restrict the JWT keystore to the smallest possible trust set - ideally a signer dedicated to this service rather than a shared identity-provider key - and where a gateway already validates issuer and audience in front of the server, ensure it cannot be bypassed.
Notes:
The JIRA ticket: https://issues.apache.org/jira/browse/CAMEL-24281 refers to the various commits that resolved the issue, and has more details.
The fail-closed guard could not be backported. The jwtIssuer and jwtAudience options were themselves only introduced in 4.21.0 by CAMEL-23525, so on camel-4.18.x and camel-4.14.x there was nothing an operator could set to satisfy the requirement and the guard would have broken every JWT deployment on those branches with no remedy available.
📍 영향받는 시스템
Apache Camel 4.8.0 미만 4.22.0 버전
⚔️ 공격 벡터
신뢰하는 인증 기관(IdP)에서 발행되었으나 대상(Audience)이 다른 유효한 JWT 토큰을 사용하여 인증을 우회함
🛡️ 대응 방법
Apache Camel을 4.22.0 이상 버전으로 업그레이드하거나, 4.14.9 또는 4.18.4 버전으로 업그레이드 후 jwtIssuer 또는 jwtAudience 설정을 명시적으로 적용함
🔧 검증 코드
출력된 결과에서 camel-main의 버전을 확인하여 4.8.0 이상 4.22.0 미만인지 체크합니다.
mvn dependency:list | grep 'org.apache.camel:camel-main'
📊 CVSS Vector String
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
💻 영향받는 소프트웨어
Spring Cloud Gateway Server