🇰🇷 한글 설명
Grafana의 Synthetic Monitoring Agent 디버깅 엔드포인트를 통해 인증 토큰이 노출되는 취약점입니다. 공격자는 노출된 토큰을 사용하여 해당 에이전트에 할당된 모니터링 체크 정보를 탈취할 수 있습니다. 버전 0.12.0 미만 버전이 영향을 받으며, 해당 버전에서는 토큰 노출 문제가 존재합니다.
💡 쉬운 설명
모니터링 도구의 관리용 비밀번호가 외부로 드러나서, 누군가 내 모니터링 정보를 몰래 훔쳐볼 수 있는 문제입니다. 최신 버전으로 업데이트하고 비밀번호를 새로 바꾸는 것이 필요합니다.
🇺🇸 원문 (English)
The Synthetic Monitoring Agent for Grafana's Synthetic Monitoring application provides probe functionality and executes network checks for monitoring remote targets. Users running the Synthetic Monitoring agent prior to version 0.12.0 in their local network are impacted. The authentication token used to communicate with the Synthetic Monitoring API is exposed through a debugging endpoint. This token can be used to retrieve the Synthetic Monitoring checks created by the user and assigned to the agent identified with that token. The Synthetic Monitoring API will reject connections from already-connected agents, so access to the token does not guarantee access to the checks. Version 0.12.0 contains a fix. Users are advised to rotate the agent tokens. After upgrading to version v0.12.0 or later, it's recommended that users of distribution packages review the configuration stored in `/etc/synthetic-monitoring/synthetic-monitoring-agent.conf`, specifically the `API_TOKEN` variable which has been renamed to `SM_AGENT_API_TOKEN`. As a workaround for previous versions, it's recommended that users review the agent settings and set the HTTP listening address in a manner that limits the exposure, for example, localhost or a non-routed network, by using the command line parameter `-listen-address`, e.g. `-listen-address localhost:4050`.
📍 영향받는 시스템
Grafana Synthetic Monitoring Agent version < 0.12.0
⚔️ 공격 벡터
디버깅 엔드포인트를 통한 API 인증 토큰 탈취 및 API 호출
🛡️ 대응 방법
에이전트를 v0.12.0 이상으로 업그레이드하고, 기존 API 토큰을 교체(Rotate)하며, 필요 시 리스닝 주소를 localhost로 제한합니다.
🔧 검증 코드
출력된 버전 번호가 0.12.0 미만인지 확인합니다.
synthetic-monitoring-agent --version 2>/dev/null || dpkg -l | grep synthetic-monitoring-agent