🇰🇷 한글 설명
openssl_encrypt 1.4.0 미만 버전의 restore_hidden_modules() 함수에서 모듈 개수를 잘못 기록하여 감사 로그를 손상시키는 버그가 존재합니다. 또한, 모듈 숨기기와 임포트 훅 설치 과정 사이에 레이스 컨디션이 발생하여 멀티스레드 환경에서 차단된 모듈이 재임포트될 수 있는 취약점이 있습니다.
💡 쉬운 설명
프로그램이 보안을 위해 특정 기능을 숨기는 과정에서 기록이 잘못 남거나, 아주 짧은 찰나의 순간을 이용해 숨겨야 할 기능이 다시 나타날 수 있는 문제입니다. 이로 인해 보안 감사가 제대로 이루어지지 않거나 보안 설정이 무력화될 수 있습니다.
🇺🇸 원문 (English)
openssl_encrypt versions before 1.4.0 contain a logging bug in restore_hidden_modules() that logs module counts after clearing, always showing zero restored modules and corrupting audit trails. Additionally, a race condition exists between module hiding and import hook installation where another thread could re-import blocked modules in multi-threaded environments.
📍 영향받는 시스템
openssl_encrypt versions < 1.4.0
⚔️ 공격 벡터
멀티스레드 환경을 이용한 레이스 컨디션 공격 또는 로그 조작
🛡️ 대응 방법
openssl_encrypt 버전을 1.4.0 이상으로 업데이트하십시오.
🔧 검증 코드
출력된 Version이 1.4.0 미만이면 취약한 상태입니다.
pip show openssl_encrypt 2>/dev/null | grep Version