🇰🇷 한글 설명
TS3 Manager 2.2.6 미만 버전에서 발생하는 취약점으로, /api/download 핸들러의 포트 매개변수를 이용한 XSS 공격이 가능합니다. 공격자는 HttpOnly 및 Secure 설정이 누락된 토큰 쿠키를 탈취하여 관리자의 세션을 하이재킹하고 TeamSpeak3 서버를 제어할 수 있습니다.
💡 쉬운 설명
관리자가 악성 링크를 클릭하면 해커가 관리자의 로그인 정보를 몰래 훔쳐갈 수 있는 보안 결함입니다. 이를 통해 해커가 관리자 권한을 얻어 서버를 마음대로 조작할 위험이 있습니다.
🇺🇸 원문 (English)
TS3 Manager is modern web interface for maintaining Teamspeak3 servers. Prior to 2.2.6, the /api/download handler in packages/server/routes/api.js passes the attacker-controlled port query parameter to socket.connect(port, host) and returns the resulting error.message through res.status(400).send(error.message) as text/html without a Content Security Policy. When a logged-in operator follows a crafted top-level link, the reflected value executes in the manager origin. The token cookie set in packages/ui/src/store/modules/query.js lacks HttpOnly, Secure, and an explicit SameSite attribute, allowing the script to read the token and call the autofillform event in packages/server/socket.js. autofillform returns the decoded JWT, including the cleartext ServerQuery password, enabling operator-session hijacking and control of the managed TeamSpeak server when the operator uses administrative ServerQuery credentials. A valid operator session and user interaction are required. This issue is fixed in 2.2.6.
📍 영향받는 시스템
TS3 Manager 2.2.6 미만 버전
⚔️ 공격 벡터
XSS(Cross-Site Scripting)를 통한 세션 토큰 탈취 및 세션 하이재킹
🛡️ 대응 방법
TS3 Manager를 최신 버전인 2.2.6 이상으로 업데이트하십시오.
🔧 검증 코드
출력된 결과에서 설치된 TS3 Manager의 버전이 2.2.6 미만인지 확인합니다.
npm list ts3-manager || dpkg -l | grep ts3-manager