🇰🇷 한글 설명
Python의 http.cookiejar.DefaultPolicy 모듈에서 도메인 검증 오류가 발생하여 쿠키가 잘못된 서버로 전송될 수 있습니다. 공격자가 특정 접미사를 가진 호스트네임을 사용하여 사용자의 유효한 쿠키를 탈취할 수 있는 취약점입니다.
💡 쉬운 설명
인터넷 사이트가 쿠키(로그인 정보 등)를 보낼 때 주소를 제대로 확인하지 못하는 문제입니다. 공격자가 만든 가짜 사이트에 사용자의 중요한 로그인 정보가 실수로 전달될 수 있습니다.
🇺🇸 원문 (English)
http.cookiejar.DefaultPolicy.domain_return_ok in Lib/http/cookiejar.py in Python before 3.7.3 does not correctly validate the domain: it can be tricked into sending existing cookies to the wrong server. An attacker may abuse this flaw by using a server with a hostname that has another valid hostname as a suffix (e.g., pythonicexample.com to steal cookies for example.com). When a program uses http.cookiejar.DefaultPolicy and tries to do an HTTP connection to an attacker-controlled server, existing cookies can be leaked to the attacker. This affects 2.x through 2.7.16, 3.x before 3.4.10, 3.5.x before 3.5.7, 3.6.x before 3.6.9, and 3.7.x before 3.7.3.
📍 영향받는 시스템
Python 2.x ~ 2.7.16, 3.x < 3.4.10, 3.5.x < 3.5.7, 3.6.x < 3.6.9, 3.7.x < 3.7.3
⚔️ 공격 벡터
공격자가 타겟 도메인의 접미사를 포함하는 호스트네임을 사용하여 쿠키 전송을 유도함
🛡️ 대응 방법
Python 버전을 3.7.3, 3.6.9, 3.5.7 또는 3.4.10 이상의 보안 패치 버전으로 업데이트
🔧 검증 코드
출력된 버전이 취약점이 해결된 버전(예: 3.7.3 이상)인지 확인