🇰🇷 한글 설명
Typebot 3.17.0 미만 버전에서 WhatsApp 상태 전달 기능이 보안 검증이 되지 않은 URL을 사용하여 SSRF 취약점이 발생합니다. 워크스페이스 사용자가 설정한 웹훅 URL이 내부 네트워크나 메타데이터 엔드포인트로 요청을 보내도록 조작할 수 있습니다.
💡 쉬운 설명
챗봇 설정 메뉴를 통해 공격자가 서버 내부의 비밀 정보에 접근하거나 내부 네트워크를 공격할 수 있는 취약점입니다. 잘못된 주소를 입력하면 챗봇 서버가 공격자가 원하는 곳으로 몰래 데이터를 보내게 됩니다.
🇺🇸 원문 (English)
TypeBot is a chatbot builder tool. Prior to version 3.17.0, Typebot's WhatsApp status forwarding feature stores a workspace-configured webhook forwarding URL and later POSTs WhatsApp marketing/error status events to it from the server. The stored URL is only validated as a generic URL in settings, but the forwarding code uses the raw `ky` instance instead of the repository's SSRF-protected `safeKy` client. A workspace user who can configure WhatsApp settings can therefore make the Typebot server issue HTTP requests to internal services, private-network hosts, localhost, or metadata-style endpoints whenever the public WhatsApp production webhook receives a status payload that should be forwarded. Version 3.17.0 patches the issue.
📍 영향받는 시스템
Typebot versions prior to 3.17.0
⚔️ 공격 벡터
WhatsApp 설정 내 웹훅 URL을 내부 네트워크 주소나 메타데이터 엔드포인트로 설정하여 SSRF 유도
🛡️ 대응 방법
Typebot을 버전 3.17.0 이상으로 업데이트하여 SSRF 보호 기능이 적용된 safeKy 클라이언트를 사용하도록 조치
🔧 검증 코드
출력된 버전 정보가 3.17.0 이상인지 확인하여 취약점 해결 여부를 판단합니다.
curl -s http://<typebot-instance>/api/version | grep -E '3.17.0'