arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.03133cs.CR
收藏

越努力越失败:针对 DNSSEC 的 KeyTrap 拒绝服务算法复杂度攻击

The Harder You Try, The Harder You Fail: The KeyTrap Denial-of-Service Algorithmic Complexity Attacks on DNSSEC

Elias Heftrig, Haya Schulmann, Niklas Vogel, Michael Waidner

AI总结:

本文揭示了 DNSSEC 设计中的缺陷,提出 KeyTrap 攻击,仅需单个 DNS 数据包即可导致解析器 CPU 指令激增 200 万倍并停滞长达 16 小时,严重影响互联网可用性。

摘要:

可用性是 DNSSEC 设计中的一个主要关注点。为确保可用性,DNSSEC 遵循 Postel 法则 [RFC1123]:“在接收时要宽容,在发送时要保守。”因此,域名服务器不仅应发送记录集的一个匹配密钥,还应发送所有相关的密码材料,例如它们支持的所有密码的所有密钥以及所有相应的签名。这确保了即使某些 DNSSEC 密钥配置错误、不正确或对应不支持的密码,验证也能成功,从而保证可用性。我们表明 DNSSEC 的这种设计存在缺陷。利用 DNSSEC 标准中的漏洞建议,我们开发了一类新的基于 DNSSEC 的针对 DNS 的算法复杂度攻击,我们将其称为 KeyTrap 攻击。所有流行的 DNS 实现和服务都存在漏洞。仅需单个 DNS 数据包,KeyTrap 攻击就会导致易受攻击的 DNS 解析器中的 CPU 指令计数激增 2,000,000 倍,使其中一些解析器停滞长达 16 小时。这种毁灭性的影响促使主要 DNS 供应商将 KeyTrap 称为有史以来发现的最严重的 DNS 攻击。利用 KeyTrap,攻击者可以有效地在任何使用 DNSSEC 验证解析器的系统中禁用互联网访问。我们于 2023 年 11 月 2 日向供应商和运营商披露了 KeyTrap,将漏洞机密地报告给来自业界的 DNS 专家、运营商和开发者核心小组。此后,我们一直与所有主要供应商合作以缓解 KeyTrap,反复发现并协助关闭所提议补丁中的弱点。在我们的披露之后,业界已分配了通用 CVE-2023-50387,涵盖了我们在本工作中提出的 DNSSEC 协议漏洞。

英文摘要:

Availability is a major concern in the design of DNSSEC. To ensure availability, DNSSEC follows Postel's Law [RFC1123]: "Be liberal in what you accept, and conservative in what you send." Hence, nameservers should send not just one matching key for a record set, but all the relevant cryptographic material, e.g., all the keys for all the ciphers that they support and all the corresponding signatures. This ensures that validation succeeds, and hence availability, even if some of the DNSSEC keys are misconfigured, incorrect or correspond to unsupported ciphers. We show that this design of DNSSEC is flawed. Exploiting vulnerable recommendations in the DNSSEC standards, we develop a new class of DNSSEC-based algorithmic complexity attacks on DNS, we dub KeyTrap attacks. All popular DNS implementations and services are vulnerable. With just a single DNS packet, the KeyTrap attacks lead to a 2.000.000x spike in CPU instruction count in vulnerable DNS resolvers, stalling some for as long as 16 hours. This devastating effect prompted major DNS vendors to refer to KeyTrap as the worst attack on DNS ever discovered. Exploiting KeyTrap, an attacker could effectively disable Internet access in any system utilizing a DNSSEC-validating resolver. We disclosed KeyTrap to vendors and operators on November 2, 2023, confidentially reporting the vulnerabilities to a closed group of DNS experts, operators and developers from the industry. Since then we have been working with all major vendors to mitigate KeyTrap, repeatedly discovering and assisting in closing weaknesses in proposed patches. Following our disclosure, the industry-wide umbrella CVE-2023-50387 has been assigned, covering the DNSSEC protocol vulnerabilities we present in this work.

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

↑