🇰🇷 한글 설명
Canarytokens의 'Cloned Website' 기능에서 발견된 자체-XSS 취약점으로, 토큰 생성자가 느린 리다이렉트의 목적지 URL에 JavaScript를 삽입하여 관리 페이지 접속 시 실행 가능합니다. 공격자가 관리 링크를 피해자에게 전송하면 JavaScript가 실행되지만 세션 정보 등 민감한 데이터는 유출되지 않습니다.
💡 쉬운 설명
Canarytokens 서비스의 특정 링크에 악의적인 코드를 숨겨넣을 수 있는 보안 구멍입니다. 그 링크를 클릭한 사람의 브라우저에서 숨겨진 코드가 실행되지만, 로그인 정보나 중요한 데이터를 빼앗을 수는 없습니다.
🇺🇸 원문 (English)
Canarytokens help track activity and actions on a network. A Cross-Site Scripting vulnerability was identified in the "Cloned Website" Canarytoken, whereby the Canarytoken's creator can attack themselves. The creator of a slow-redirect Canarytoken can insert Javascript into the destination URL of their slow redirect token. When the creator later browses the management page for their own Canarytoken, the Javascript executes. This is a self-XSS. An attacker could create a Canarytoken with this self-XSS, and send the management link to a victim. When they click on it, the Javascript would execute. However, no sensitive information (ex. session information) will be disclosed to the malicious actor. This issue is now patched on Canarytokens.org. Users of self-hosted Canarytokens installations can update by pulling the latest Docker image, or any Docker image after `sha-097d91a`.
📍 영향받는 시스템
Canarytokens (자체 호스팅 설치 환경의 Docker 이미지, sha-097d91a 이전 버전)
⚔️ 공격 벡터
공격자가 느린 리다이렉트 토큰 URL에 JavaScript를 삽입한 후 관리 링크를 피해자에게 전송하여 코드 실행
🛡️ 대응 방법
Canarytokens.org는 패치 완료, 자체 호스팅은 최신 Docker 이미지 또는 sha-097d91a 이후 버전으로 업데이트
🔧 검증 코드
Docker 이미지의 빌드 날짜가 2024년 중반 이후인지 확인하거나 git commit이 sha-097d91a 이후인지 확인하여 패치 여부 검증
docker images --format '{{.Repository}}:{{.Tag}}' 2>/dev/null | grep -i canary || echo 'No Canarytoken Docker image found'