中危 flatpak flatpak 输出中的特殊元素转义处理不恰当(注入)

CVE编号

CVE-2021-21381

利用情况

暂无

补丁情况

官方补丁

披露时间

2021-03-12
漏洞描述
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`.
解决建议
建议您更新当前系统或软件至最新版,完成漏洞的修复。
受影响软件情况
# 类型 厂商 产品 版本 影响面
1
运行在以下环境
应用 flatpak flatpak * From
(including)
0.9.4
Up to
(excluding)
1.10.2
运行在以下环境
系统 alibaba_cloud_linux_2.1903 flatpak * Up to
(excluding)
1.0.9-11.1.al7
运行在以下环境
系统 alibaba_cloud_linux_3 flatpak * Up to
(excluding)
1.6.2-6.1.al8
运行在以下环境
系统 amazon_2 flatpak * Up to
(excluding)
1.0.9-10.amzn2.0.1
运行在以下环境
系统 anolis_os_8 flatpak * Up to
(excluding)
1.6.2-5
运行在以下环境
系统 centos_7 flatpak * Up to
(excluding)
1.0.0-11.el7_9
运行在以下环境
系统 debian_10 flatpak * Up to
(excluding)
1.2.5-0+deb10u4
运行在以下环境
系统 debian_11 flatpak * Up to
(excluding)
1.10.1-4
运行在以下环境
系统 debian_12 flatpak * Up to
(excluding)
1.10.1-4
运行在以下环境
系统 fedora_33 flatpak * Up to
(excluding)
1.10.2-1.fc33
运行在以下环境
系统 fedora_34 flatpak * Up to
(excluding)
1.10.2-1.fc34
运行在以下环境
系统 kylinos_aarch64_V10 flatpak * Up to
(excluding)
1.0.9-11.el7_9
运行在以下环境
系统 kylinos_aarch64_V10SP1 flatpak * Up to
(excluding)
1.0.3-11.ky10
运行在以下环境
系统 kylinos_aarch64_V10SP2 flatpak * Up to
(excluding)
1.0.3-11.ky10
运行在以下环境
系统 kylinos_loongarch64_V10SP1 flatpak * Up to
(excluding)
1.0.3-11.a.ky10
运行在以下环境
系统 kylinos_x86_64_V10 flatpak * Up to
(excluding)
1.0.9-11.el7_9
运行在以下环境
系统 kylinos_x86_64_V10SP1 flatpak * Up to
(excluding)
1.0.3-11.ky10
运行在以下环境
系统 kylinos_x86_64_V10SP2 flatpak * Up to
(excluding)
1.0.3-5.ky10
运行在以下环境
系统 oracle_7 flatpak * Up to
(excluding)
1.0.0-11.el7_9
运行在以下环境
系统 oracle_8 flatpak * Up to
(excluding)
1.6.2-6.el8_3
运行在以下环境
系统 redhat_7 flatpak * Up to
(excluding)
1.0.0-11.el7_9
运行在以下环境
系统 redhat_8 flatpak * Up to
(excluding)
1.6.2-6.el8_3
运行在以下环境
系统 ubuntu_18.04 flatpak * Up to
(excluding)
1.0.9-0ubuntu0.3
运行在以下环境
系统 ubuntu_20.04 flatpak * Up to
(excluding)
1.6.5-0ubuntu0.3
阿里云评分
5.3
  • 攻击路径
    远程
  • 攻击复杂度
    复杂
  • 权限要求
    无需权限
  • 影响范围
    越权影响
  • EXP成熟度
    N/A
  • 补丁情况
    官方补丁
  • 数据保密性
    数据泄露
  • 数据完整性
    无影响
  • 服务器危害
    无影响
  • 全网数量
    N/A
CWE-ID 漏洞类型
CWE-74 输出中的特殊元素转义处理不恰当(注入)
阿里云安全产品覆盖情况