🇰🇷 한글 설명
django_make_app 0.1.3의 io_utils.py에서 YAML 파서가 안전하지 않은 역직렬화를 수행하여 임의의 Python 코드 실행이 가능합니다. 공격자가 악의적인 YAML 파일을 로드하도록 유도하면 서버에서 자동으로 Python 명령이 실행됩니다.
💡 쉬운 설명
YAML 파일이라는 설정 파일에 악의적인 명령어를 숨겨서 실행시키는 공격입니다. 마치 이메일 첨부파일을 열면 자동으로 바이러스가 실행되는 것과 같습니다.
🇺🇸 원문 (English)
An exploitable vulnerability exists in the YAML parsing functionality in the read_yaml_file method in io_utils.py in django_make_app 0.1.3. A YAML parser can execute arbitrary Python commands resulting in command execution. An attacker can insert Python into loaded YAML to trigger this vulnerability.
📍 영향받는 시스템
django_make_app 0.1.3 이하
⚔️ 공격 벡터
YAML 파일 입력에 Python 코드 페이로드를 삽입하여 read_yaml_file() 메서드 실행 시 자동 명령 실행 유도
🛡️ 대응 방법
django_make_app을 0.1.4 이상으로 업그레이드하거나 YAML.safe_load()로 변경하여 안전한 파싱 적용
🔧 검증 코드
0.1.3 이하 버전이 표시되면 취약한 상태이며, 업그레이드가 필요합니다.
python3 -c "import pkg_resources; print(pkg_resources.get_distribution('django_make_app').version)" 2>/dev/null