🔍 CVE-2021-23336

5.9
CVSS Score
MEDIUM
2021-02-15
2026-10-14 12:17
✅ 완료

🇰🇷 한글 설명

python/cpython의 특정 버전에서 urllib.parse.parse_qsl 및 parse_qs 함수를 사용할 때 파라미터 은닉(parameter cloaking)을 통한 웹 캐시 포이즈닝 취약점이 존재합니다. 공격자가 세미콜론(;)을 사용하여 쿼리 파라미터를 분리하면 프록시 서버와 실제 서버 간의 해석 차이가 발생하여 악성 요청이 안전한 요청으로 캐싱될 수 있습니다.

💡 쉬운 설명

웹사이트의 중간 전달자(프록시)와 실제 서버가 데이터를 읽는 방식이 서로 달라 발생하는 문제입니다. 공격자가 특수 기호를 섞어 보내면, 중간 전달자는 정상적인 요청으로 착각하여 공격용 데이터를 저장해버릴 수 있습니다.

🇺🇸 원문 (English)

The package python/cpython from 0 and before 3.6.13, from 3.7.0 and before 3.7.10, from 3.8.0 and before 3.8.8, from 3.9.0 and before 3.9.2 are vulnerable to Web Cache Poisoning via urllib.parse.parse_qsl and urllib.parse.parse_qs by using a vector called parameter cloaking. When the attacker can separate query parameters using a semicolon (;), they can cause a difference in the interpretation of the request between the proxy (running with default configuration) and the server. This can result in malicious requests being cached as completely safe ones, as the proxy would usually not see the semicolon as a separator, and therefore would not include it in a cache key of an unkeyed parameter.

📍 영향받는 시스템

python/cpython 3.6.13 미만, 3.7.0~3.7.9, 3.8.0~3.8.7, 3.9.0~3.9.1

⚔️ 공격 벡터

세미콜론(;)을 이용한 쿼리 파라미터 분리 및 파라미터 은닉을 통한 웹 캐시 포이즈닝

🛡️ 대응 방법

취약점이 해결된 최신 버전의 Python(3.6.13+, 3.7.10+, 3.8.8+, 3.9.2+)으로 업데이트

🔧 검증 코드

출력된 Python 버전이 취약한 버전 범위에 포함되는지 확인

Shell / Script
python3 --version

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:H

💻 영향받는 소프트웨어

Python