🇰🇷 한글 설명
Flatpak의 '파일 포워딩' 기능에서 발생하는 취약점으로, 공격자가 .desktop 파일의 Exec 필드에 특수 토큰(@@ 또는 @@u)을 삽입하여 앱의 권한을 벗어난 파일에 접근할 수 있습니다. 이 취약점은 악의적인 앱 게시자가 사용자가 특정 파일을 열도록 속여 해당 파일에 대한 접근 권한을 자동으로 획득하는 방식으로 악용될 수 있습니다.
💡 쉬운 설명
앱이 원래 접근할 수 없는 개인 파일을 몰래 훔쳐볼 수 있는 보안 구멍이 발견되었습니다. 나쁜 의도를 가진 앱 제작자가 특수한 명령어를 숨겨두면, 사용자가 앱을 실행할 때 허락 없이 파일이 노출될 수 있습니다.
🇺🇸 원문 (English)
Flatpak is a system for building, distributing, and running sandboxed desktop applications on Linux. In Flatpack since version 0.9.4 and before version 1.10.2 has a vulnerability in the "file forwarding" feature which can be used by an attacker to gain access to files that would not ordinarily be allowed by the app's permissions. By putting the special tokens `@@` and/or `@@u` in the Exec field of a Flatpak app's .desktop file, a malicious app publisher can trick flatpak into behaving as though the user had chosen to open a target file with their Flatpak app, which automatically makes that file available to the Flatpak app. This is fixed in version 1.10.2. A minimal solution is the first commit "`Disallow @@ and @@U usage in desktop files`". The follow-up commits "`dir: Reserve the whole @@ prefix`" and "`dir: Refuse to export .desktop files with suspicious uses of @@ tokens`" are recommended, but not strictly required. As a workaround, avoid installing Flatpak apps from untrusted sources, or check the contents of the exported `.desktop` files in `exports/share/applications/*.desktop` (typically `~/.local/share/flatpak/exports/share/applications/*.desktop` and `/var/lib/flatpak/exports/share/applications/*.desktop`) to make sure that literal filenames do not follow `@@` or `@@u`.
📍 영향받는 시스템
Flatpak version 0.9.4 이상 ~ 1.10.2 미만
⚔️ 공격 벡터
악의적인 .desktop 파일 내 Exec 필드에 @@ 또는 @@u 토큰을 삽입하여 파일 접근 권한 탈취
🛡️ 대응 방법
Flatpak을 1.10.2 버전 이상으로 업데이트하거나, 신뢰할 수 없는 출처의 앱 설치를 지양함
🔧 검증 코드
출력 결과에 1.10.2 미만의 버전 번호가 나타나면 취약한 버전이 설치된 상태입니다.
flatpak --version | grep -E '0\.[0-9]+|1\.[0-9]+' | grep -v '1.10.2'
📊 CVSS Vector String
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:N
💻 영향받는 소프트웨어
NVIDIA vGPU Guest Driver for Linux