🇰🇷 한글 설명
오픈 소스 테스트 관리 시스템인 Kiwi TCMS에서 발생하는 취약점으로, Nginx 설정 오류로 인해 브라우저가 텍스트로 처리해야 할 파일을 스크립트로 실행할 수 있습니다. 또한 파일 업로드 검증 및 HTML 렌더링 코드의 미흡한 살균 처리로 인해 보안 위협이 발생할 수 있습니다.
💡 쉬운 설명
사용자가 올린 파일을 웹 브라우저가 위험한 프로그램으로 착각하여 실행하게 만드는 보안 구멍이 발견되었습니다. 이로 인해 해커가 악성 코드를 실행할 위험이 있습니다.
🇺🇸 원문 (English)
Kiwi TCMS, an open source test management system allows users to upload attachments to test plans, test cases, etc. Versions of Kiwi TCMS prior to 12.5 had introduced changes which were meant to serve all uploaded files as plain text in order to prevent browsers from executing potentially dangerous files when such files are accessed directly. The previous Nginx configuration was incorrect allowing certain browsers like Firefox to ignore the `Content-Type: text/plain` header on some occasions thus allowing potentially dangerous scripts to be executed. Additionally, file upload validators and parts of the HTML rendering code had been found to require additional sanitation and improvements. Version 12.5 fixes this vulnerability with updated Nginx content type configuration, improved file upload validation code to prevent more potentially dangerous uploads, and Sanitization of test plan names used in the `tree_view_html()` function.
📍 영향받는 시스템
Kiwi TCMS 12.5 미만 버전
⚔️ 공격 벡터
악성 스크립트가 포함된 파일을 업로드한 후, 특정 브라우저를 통해 해당 파일에 접근하여 실행 유도
🛡️ 대응 방법
Kiwi TCMS를 최신 버전인 12.5 이상으로 업데이트하고 Nginx 설정을 확인하십시오.
🔧 검증 코드
출력된 버전이 12.5 미만이면 취약한 상태이며, 12.5 이상이면 안전합니다.
pip show kiwi-tcms | grep Version