ResolverFuzz:通过查询-响应模糊测试自动发现DNS解析器漏洞
ResolverFuzz: Automated Discovery of DNS Resolver Vulnerabilities with Query-Response Fuzzing
AI总结:
针对DNS解析器漏洞检测难的问题,提出聚焦短查询-响应序列、结合PCFG输入生成与字节级变异、用差分测试聚类识别非崩溃漏洞的ResolverFuzz系统,在主流DNS软件中发现23个漏洞,19个已确认修复,15个获CVE编号。
摘要:
域名系统(DNS)是互联网的关键组成部分。DNS解析器作为DNS客户端与DNS域名服务器之间的缓存层,是DNS基础设施的核心组件,对DNS的可扩展性至关重要。然而,发现解析器漏洞并非易事,现有工具未能很好地解决这一问题。原因主要有以下几点:首先,大多数已知的解析器漏洞属于非崩溃类漏洞,无法通过现有的检测预言(或 sanitizer)直接检测到。其次,缺乏可作为参考的严格规范来判定测试用例是否属于解析器漏洞。第三,DNS解析器是有状态的,由于输入空间庞大,有状态模糊测试仍然颇具挑战性。\n在本文中,我们提出了一种名为ResolverFuzz的新型模糊测试系统,以解决上述与DNS解析器相关的挑战,并开发了一系列新技术。首先,ResolverFuzz通过聚焦于短查询-响应序列执行受限有状态模糊测试,基于我们对已公开的DNS CVE(通用漏洞披露)的研究,这种方式被证明是发现解析器漏洞最有效的方法。其次,为了生成更有可能触发解析器漏洞的测试用例,我们将基于概率上下文无关文法(PCFG)的输入生成与字节级变异相结合,同时应用于查询和响应。第三,我们利用差分测试和聚类技术来识别缓存投毒漏洞等非崩溃类漏洞。我们在4种解析器模式下,针对6款主流DNS软件对ResolverFuzz进行了评估。总体而言,我们发现了23个可导致缓存投毒、资源消耗和崩溃攻击的漏洞。经过负责任的披露流程,其中19个漏洞已得到确认或修复,且已有15个漏洞被分配了CVE编号。
英文摘要:
Domain Name System (DNS) is a critical component of the Internet. DNS resolvers, which act as the cache between DNS clients and DNS nameservers, are the central piece of the DNS infrastructure, essential to the scalability of DNS. However, finding the resolver vulnerabilities is non-trivial, and this problem is not well addressed by the existing tools. To list a few reasons, first, most of the known resolver vulnerabilities are non-crash bugs that cannot be directly detected by the existing oracles (or sanitizers). Second, there lacks rigorous specifications to be used as references to classify a test case as a resolver bug. Third, DNS resolvers are stateful, and stateful fuzzing is still challenging due to the large input space. In this paper, we present a new fuzzing system termed ResolverFuzz to address the aforementioned challenges related to DNS resolvers, with a suite of new techniques being developed. First, ResolverFuzz performs constrained stateful fuzzing by focusing on the short query-response sequence, which has been demonstrated as the most effective way to find resolver bugs, based on our study of the published DNS CVEs. Second, to generate test cases that are more likely to trigger resolver bugs, we combine probabilistic context-free grammar (PCFG) based input generation with byte-level mutation for both queries and responses. Third, we leverage differential testing and clustering to identify non-crash bugs like cache poisoning bugs. We evaluated ResolverFuzz against 6 mainstream DNS software under 4 resolver modes. Overall, we identify 23 vulnerabilities that can result in cache poisoning, resource consumption, and crash attacks. After responsible disclosure, 19 of them have been confirmed or fixed, and 15 CVE numbers have been assigned.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。