arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2111.08553cs.CR
收藏

远程内存攻击

Remote Memory-Deduplication Attacks

Martin Schwarzl, Erik Kraft, Moritz Lipp, Daniel Gruss

摘要:

通过将相同的内存块合并到写时复制映射中,可以降低内存利用率。以前的工作表明,这种所谓的内存重复数据删除可以在本地攻击中被利用来破坏ASLR,监视其他程序,并确定数据的存在,即,网站图片所有这些攻击都利用了跨安全域的内存重复数据删除,而这反过来又被禁用。但是,在安全域中或在没有不受信任的本地访问的隔离系统上,内存重复数据消除仍然不被视为安全风险,并且默认情况下最近在Windows上重新启用。在本文中,我们提出了第一个完全远程memorydeduplication攻击。与以前的攻击不同,我们的攻击不需要执行本地代码。因此,我们可以通过发送和计时HTTP/1和HTTP/2网络请求来从远程服务器公开内存内容。我们展示了我们在Windows和Linux上对重复数据删除的攻击,并攻击了广泛使用的服务器软件,如Memcached和InnoDB。我们的侧通道通过互联网泄漏高达34.41 B/h,比类似的远程内存泄漏通道更快。我们在三个案例研究中展示了我们的远程内存重复数据删除攻击:首先,我们展示了攻击者可以在运行Memcached的服务器上泄露内存中数据的存在。我们表明,这种信息披露渠道也可以用于指纹识别,并在166.51秒内通过互联网检测正确的libc版本。其次,结合InnoDB,我们提出了一个信息泄露攻击泄漏MariaDB数据库记录。第三,我们演示了一个完全远程的KASLR中断,在不到4分钟的时间内,允许通过互联网对虚拟机的内核映像进行去随机化,即,14个网络跳距。我们的结论是,内存重复数据删除也必须被认为是一个安全风险,如果只适用于一个单一的安全域。

英文摘要:

Memory utilization can be reduced by merging identical memory blocks into copy-on-write mappings. Previous work showed that this so-called memory deduplication can be exploited in local attacks to break ASLR, spy on other programs,and determine the presence of data, i.e., website images. All these attacks exploit memory deduplication across security domains, which in turn was disabled. However, within a security domain or on an isolated system with no untrusted local access, memory deduplication is still not considered a security risk and was recently re-enabled on Windows by default. In this paper, we present the first fully remote memorydeduplication attacks. Unlike previous attacks, our attacks require no local code execution. Consequently, we can disclose memory contents from a remote server merely by sending and timing HTTP/1 and HTTP/2 network requests. We demonstrate our attacks on deduplication both on Windows and Linux and attack widely used server software such as Memcached and InnoDB. Our side channel leaks up to 34.41 B/h over the internet, making it faster than comparable remote memory-disclosure channels. We showcase our remote memory-deduplication attack in three case studies: First, we show that an attacker can disclose the presence of data in memory on a server running Memcached. We show that this information disclosure channel can also be used for fingerprinting and detect the correct libc version over the internet in 166.51 s. Second, in combination with InnoDB, we present an information disclosure attack to leak MariaDB database records. Third, we demonstrate a fully remote KASLR break in less than 4 minutes allowing to derandomize the kernel image of a virtual machine over the Internet, i.e., 14 network hops away. We conclude that memory deduplication must also be considered a security risk if only applied within a single security domain.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑