🇰🇷 한글 설명
Vitess의 twopcz HTTP 디버그 엔드포인트에서 입력값에 대한 HTML 이스케이프 처리가 누락되어 발생하는 교차 사이트 스크립팅(XSS) 취약점입니다. 공격자가 조작된 요청을 보내 운영자의 브라우저에서 악성 스크립트를 실행할 수 있으며, 이를 통해 진단 데이터와 같은 민감한 정보가 유출될 수 있습니다.
💡 쉬운 설명
데이터베이스 관리 도구의 특정 페이지에서 보안 처리가 미흡하여, 공격자가 보낸 악성 코드가 관리자의 브라우저에서 실행될 수 있는 문제입니다. 이를 통해 관리자의 권한으로 중요한 데이터베이스 정보가 해커에게 넘어갈 위험이 있습니다.
🇺🇸 원문 (English)
Vitess is a database clustering system for horizontal scaling of MySQL. Prior to 23.0.5 and 24.0.2, twopczHandler in go/vt/vttablet/tabletserver/twopcz.go writes the Action and dtid form values from the vttablet and vtcombo /twopcz HTTP debug endpoint into a text/html response without HTML escaping. Under the default allow-all ACL policy, a remote unauthenticated attacker can send an operator a crafted request that executes script in the operator's browser after the request is opened. The script runs with the vttablet debug origin and can read same-origin diagnostic endpoints that expose query, transaction, environment, variable, or profiling data available in that deployment. This issue is fixed in versions 23.0.5 and 24.0.2.
📍 영향받는 시스템
Vitess versions prior to 23.0.5 and 24.0.2
⚔️ 공격 벡터
조작된 HTTP 요청을 통해 운영자의 브라우저에서 악성 스크립트를 실행하는 방식
🛡️ 대응 방법
Vitess를 23.0.5 또는 24.0.2 이상의 버전으로 업데이트하십시오.
🔧 검증 코드
명령어 결과에 23.0.5 또는 24.0.2 이상의 버전이 표시되면 취약점이 해결된 상태입니다.
vtctl version | grep -E '23.0.5|24.0.2'