🇰🇷 한글 설명
Temporal Server가 HTTP 헤더를 통해 워크플로우 완료 콜백의 내부 여부를 판단할 때 발생하는 보안 결함입니다. 인증된 사용자가 특정 헤더를 포함한 콜백을 설정하면, 서버가 내부 프론트엔드 API에 관리자 권한으로 임의의 요청을 보내게 되어 다른 네임스페이스의 워크플로우를 종료하거나 삭제할 수 있습니다.
💡 쉬운 설명
해커가 가짜 명령서를 서버에 전달하면, 서버가 스스로를 속여 관리자 권한으로 시스템을 파괴하는 공격입니다. 권한이 없는 사용자도 서버 내부의 중요한 설정이나 데이터를 마음대로 조작할 수 있게 됩니다.
🇺🇸 원문 (English)
Temporal Server decided whether a Workflow completion callback was internal by reading a caller-supplied HTTP header. An authenticated caller holding only write permission in a single namespace could attach a completion callback whose URL host matched the configured callback address allowlist, whose URL path was any Temporal HTTP API route, and whose header map contained a non-empty header named source. When the History service delivered that callback, the non-empty source header caused it to re-target the request at the local frontend client and rewrite only the scheme and host, preserving the caller's path, query, and request body. Where an internal frontend is deployed with its HTTP API enabled, that client resolves to the internal frontend, which authorizes every request as a system administrator without requiring authentication information. The result is that the server performs an attacker-chosen state-changing HTTP POST against its own administrative API on the caller's behalf, in namespaces where the caller has no permission. The caller never needs network access to the internal frontend, because the History service makes the request. Confirmed effects include terminating Workflows in other namespaces, registering namespaces, modifying another namespace's configuration, and deleting another namespace and its Workflows. The affected routing logic is present in both the HSM and CHASM callback delivery implementations. This description and the CVSS score in this record describe releases 1.30.0 and later, where any non-empty source header is sufficient. Releases 1.25.0 through 1.29.7 are affected by a narrower form of the same defect in which the header must exactly match a configured cluster ID, a UUID that a namespace-scoped caller cannot read through the API. The consequence once that match occurs is the same, but the attack is materially harder and scores lower. To determine whether a deployment is affected, check two settings together: the static Server configuration for a non-zero services.internal-frontend.rpc.httpPort, and the effective per-namespace dynamic configuration value of component.callbacks.allowedAddresses. A deployment is exposed only when an internal frontend is deployed with a non-zero HTTP port, at least one allowlist rule admits a host, and authorization is enabled. The allowlist is empty by default, which denies all external callback URLs, and the stock static topology does not include an internal frontend. Note that a failed attach returns the error 'invalid url: url does not match any configured callback address', which proves only that one tested URL did not match and does not prove the effective allowlist is empty. To look for callbacks already attached, use DescribeWorkflowExecution, which returns callback information for a Workflow's registered completion callbacks. Operators should be aware of a gap when searching for evidence of delivery: the frontend HTTP API server records the request method and URL at debug level only, so at default log levels a delivered request is not written to the internal frontend's logs, and the absence of such log entries is not evidence that the issue was not exploited.
📍 영향받는 시스템
Temporal Server 1.25.0 ~ 1.29.7 (제한적 조건), 1.30.0 이상 (전체 조건)
⚔️ 공격 벡터
인증된 사용자가 특정 헤더(source)를 포함한 악의적인 콜백 URL을 등록하여 내부 프론트엔드 API에 요청을 위조함
🛡️ 대응 방법
Temporal Server를 최신 보안 패치 버전으로 업데이트하고, 내부 프론트엔드의 HTTP 포트 설정을 검토하십시오.
🔧 검증 코드
출력된 버전이 1.30.0 미만인지 확인하여 취약한 버전 범위에 해당하는지 판단합니다.