🇰🇷 한글 설명
Wine이 EXE 파일을 포함한 여러 Windows 실행 파일 유형의 MIME 핸들러로 등록되어 발생하는 취약점입니다. 특정 설정에서 EXE 파일을 처리할 때 사용자의 권한으로 파일이 즉시 실행되어, Flatpak이나 Snap과 같은 샌드박스 환경을 탈출할 수 있습니다.
💡 쉬운 설명
윈도우 프로그램을 실행해주는 Wine 프로그램의 설정 오류로 인해, 격리된 안전한 환경(샌드박스)을 뚫고 악성 코드가 실행될 수 있는 문제입니다. 사용자가 실수로 파일을 클릭하면 보안 벽이 무너질 수 있습니다.
🇺🇸 원문 (English)
Wine ships a .desktop file that registers itself as a MIME handler for EXE files and several other Windows executable file types. In some configurations, handling of an EXE file causes that file to be blindly executed with the permissions of the invoker. This allows escaping Flatpak and Snap sandboxes, because MIME handlers are not intended for use by code interpreters and loaders. NOTE: some parties feel that this is not a bug to be addressed in Wine, because there is no known solution that avoids a severe loss of usability (Wine could be a binfmt-misc handler, but binfmt-misc does not exist on all platforms supported by Wine).
📍 영향받는 시스템
Wine을 사용하는 시스템 (특히 Flatpak 또는 Snap 샌드박스 환경을 사용하는 경우)
⚔️ 공격 벡터
MIME 핸들러로 등록된 EXE 파일을 실행하여 샌드박스 권한을 탈출하고 호스트 시스템에서 코드를 실행
🛡️ 대응 방법
Wine의 .desktop 파일에서 EXE 파일에 대한 MIME 핸들러 등록 설정을 제거하거나 수정해야 합니다.
🔧 검증 코드
명령어 결과에 MIMEType 항목으로 application/x-msdownload 또는 exe 관련 타입이 포함되어 있다면 취약할 수 있습니다.
grep -r "exe" /usr/share/applications/wine*.desktop 2>/dev/null
💻 영향받는 소프트웨어
Storage Protect Snapshot for Windows