🇰🇷 한글 설명
openssl-encrypt 1.4.9 미만 버전의 PluginSandbox._is_safe_path 함수에서 경로 탐색 취약점이 발견되었습니다. 파일 읽기 권한이 없는 샌드박스 플러그인이 문자열 접두사 일치 방식의 허점을 이용해 다른 플러그인의 디렉토리에 접근할 수 있습니다. 이는 동일 사용자 내 플러그인 간의 격리 체계를 무너뜨립니다.
💡 쉬운 설명
파일 경로를 확인할 때 이름이 비슷하면 같은 폴더로 착각하는 보안 허점이 있습니다. 이로 인해 권한이 없는 프로그램이 다른 프로그램의 파일을 몰래 읽거나 쓸 수 있습니다.
🇺🇸 원문 (English)
openssl_encrypt (pip: openssl-encrypt) versions before 1.4.9 contain a path traversal flaw in PluginSandbox._is_safe_path, which authorized file access using a bare string-prefix match. A sandboxed plugin without the READ_FILES permission could read or write another plugin's directory that merely shares a name prefix (e.g., .../plugins/foobar matching allowed .../plugins/foo), breaking per-plugin isolation within the same user. Fixed by matching each allowed directory exactly or with a trailing path separator.
📍 영향받는 시스템
openssl-encrypt (pip package) versions before 1.4.9
⚔️ 공격 벡터
권한이 제한된 플러그인이 이름이 유사한 다른 플러그인의 디렉토리 경로를 이용한 경로 탐색 공격
🛡️ 대응 방법
openssl-encrypt 패키지를 1.4.9 이상의 최신 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 버전이 1.4.9 미만이면 취약한 상태이며, 1.4.9 이상이면 안전합니다.
pip show openssl-encrypt 2>/dev/null | grep Version