任何副本都不安全:混合大小写敏感引起的名称冲突
Unsafe at Any Copy: Name Collisions from Mixing Case Sensitivities
摘要:
文件名混淆攻击,例如恶意符号链接和文件占用,长期以来一直被研究为安全漏洞的来源。然而,最近出现的一种类型,即,大小写敏感性引起的名称冲突,尚未仔细审查。这些冲突是由区分大小写和不区分大小写的文件系统或目录下的名称解析差异引起的。一个突出的例子是最近的Git漏洞(CVE-2021-21300),当它将恶意构建的存储库克隆到不区分大小写的文件系统时,可能导致受害客户端上的代码执行。随着ext4增加对每个目录不区分大小写的支持以及Linux Windows子系统的广泛部署等趋势,即使在单个系统中,此类漏洞的先决条件也越来越可能存在。在本文中,我们第一次努力调查如何以及在哪里缺乏任何统一的方法来处理名称冲突导致扩散的责任和由此产生的漏洞。有趣的是,我们证明了存在一系列新的安全挑战所产生的名称冲突和不一致的处理低级别的实用程序和应用程序。具体来说,我们的实验表明,实用程序处理许多名称冲突的情况不安全,离开的责任,应用程序的开发人员不幸的是还没有意识到的威胁。我们研究三个案例研究,作为第一步,系统地了解新出现的类型的名称冲突漏洞。
英文摘要:
File name confusion attacks, such as malicious symbolic links and file squatting, have long been studied as sources of security vulnerabilities. However, a recently emerged type, i.e., case-sensitivity-induced name collisions, has not been scrutinized. These collisions are introduced by differences in name resolution under case-sensitive and case-insensitive file systems or directories. A prominent example is the recent Git vulnerability (CVE-2021-21300) which can lead to code execution on a victim client when it clones a maliciously crafted repository onto a case-insensitive file system. With trends including ext4 adding support for per-directory case-insensitivity and the broad deployment of the Windows Subsystem for Linux, the prerequisites for such vulnerabilities are increasingly likely to exist even in a single system. In this paper, we make a first effort to investigate how and where the lack of any uniform approach to handling name collisions leads to a diffusion of responsibility and resultant vulnerabilities. Interestingly, we demonstrate the existence of a range of novel security challenges arising from name collisions and their inconsistent handling by low-level utilities and applications. Specifically, our experiments show that utilities handle many name collision scenarios unsafely, leaving the responsibility to applications whose developers are unfortunately not yet aware of the threats. We examine three case studies as a first step towards systematically understanding the emerging type of name collision vulnerability.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。