🇰🇷 한글 설명
Hi.Events에서 웹훅 등록 시에만 URL을 검증하고 실제 사용 시에는 재검증하지 않는 취약점이 발견되었습니다. 공격자가 리다이렉트를 이용해 내부 네트워크나 클라우드 메타데이터 주소로 요청을 유도하면, 서버가 내부 정보를 응답하고 이를 로그를 통해 탈취할 수 있습니다.
💡 쉬운 설명
웹훅이라는 기능이 외부 주소만 확인해야 하는데, 중간에 주소를 살짝 바꾸는 '리다이렉트' 공격을 막지 못하는 문제입니다. 이를 통해 해커가 회사의 내부 비밀 정보나 서버 설정 값을 몰래 읽어갈 수 있습니다.
🇺🇸 원문 (English)
Hi.Events validates a webhook destination only when it is registered, never when it is used. NoInternalUrlRule in backend/app/Validators/Rules/NoInternalUrlRule.php resolves the hostname with gethostbyname() and rejects private and reserved ranges, which any public hostname passes. At dispatch, WebhookDispatchService takes the stored URL and calls it through spatie/laravel-webhook-server without repeating the check, and backend/config/webhook-server.php sets no Guzzle options, so redirect following remains enabled by default. A destination that answers with a redirect to a loopback, private or cloud metadata address therefore causes the server to issue that request, and changing the hostname's DNS record after registration reaches the same result because no resolution is repeated. The response is not discarded: WebhookResponseHandlerService stores the body on the webhook log and WebhookLogResource returns it from the webhook logs endpoint, so the requester reads what the internal service replied rather than inferring it. Both event and organizer webhooks share the rule and the dispatch path. Version 1.11.1-beta revalidates at dispatch, pins the validated address, checks every redirect hop, and decodes IPv6 transition addresses that previously bypassed the filter.
📍 영향받는 시스템
Hi.Events 1.11.1-beta 미만 버전
⚔️ 공격 벡터
등록된 웹훅 URL이 내부 IP로 리다이렉트되도록 설정하여 서버가 내부 자원에 접근하게 유도
🛡️ 대응 방법
Hi.Events를 1.11.1-beta 이상의 최신 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 버전이 1.11.1-beta보다 낮으면 취약한 상태입니다.
composer show hi-events/hi-events | grep 'versions'