🇰🇷 한글 설명
datamodel-code-generator 0.63.0 미만 버전에서 원격 스키마를 가져올 때 발생하는 보안 취약점입니다. 교차 출처 리다이렉트를 따르는 과정에서 Authorization, Cookie, Proxy-Authorization 헤더가 재사용되어, 특정 호스트에 속한 인증 정보가 다른 리다이렉트 대상 서버로 유출될 수 있습니다.
💡 쉬운 설명
데이터 모델을 만드는 프로그램이 다른 사이트로 연결될 때, 원래 사이트에서 사용하던 비밀번호나 로그인 정보를 그대로 들고 가서 다른 사이트에 넘겨줄 수 있는 문제입니다. 이로 인해 중요한 로그인 정보가 해커에게 노출될 위험이 있습니다.
🇺🇸 원문 (English)
datamodel-code-generator generates Python data models from schema definitions. Prior to 0.63.0, src/datamodel_code_generator/http.py get_body reuses Authorization, Cookie, and Proxy-Authorization headers when following cross-origin redirects while fetching remote schemas, allowing credentials scoped to one schema host to be leaked to another redirect target. This issue is fixed in version 0.63.0.
📍 영향받는 시스템
datamodel-code-generator versions prior to 0.63.0
⚔️ 공격 벡터
악의적으로 조작된 리다이렉트 경로를 가진 원격 스키마를 제공하여 인증 헤더를 탈취
🛡️ 대응 방법
datamodel-code-generator를 0.63.0 이상의 버전으로 업데이트
🔧 검증 코드
출력된 버전 번호가 0.63.0보다 낮으면 취약한 상태입니다.
pip show datamodel-code-generator | grep Version