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

无对等端,无崩溃:通过故障注入进行网络应用模糊测试

No Peer, no Cry: Network Application Fuzzing via Fault Injection

Nils Bars, Moritz Schloegel, Nico Schiller, Lukas Bernhard, Thorsten Holz

AI总结:

本文提出 Fuzztruction-Net,通过故障注入使通信对等端进入异常状态而非修改消息,首次有效测试客户端网络应用,在 16 个目标中发现 23 个新缺陷,优于现有模糊测试器。

摘要:

面向网络的应用程序通常会遭受各种攻击,尤其是在连接到互联网时。因此,像 Nginx 这样的 Web 服务器或像 curl 这样的客户端应用程序会尽一切努力保护和加固其代码,以排除内存安全违规问题。人们会期望这包括定期的模糊测试,因为模糊测试已被证明是发现软件缺陷最成功的方法之一。然而,令人惊讶的是,很少有研究关注网络应用程序的模糊测试。在研究根本原因时,我们发现通信的交互性、其状态性以及交换消息的保护使得典型的模糊测试器失效。尝试重放记录的消息或即时修改它们仅适用于特定目标,并且通常会导致通信提前终止。在本文中,我们详细讨论了这些挑战,强调现有工作对协议状态空间的关注几乎无法带来缓解。我们提出了一种根本不同的方法,该方法依赖于故障注入而不是修改消息。实际上,我们迫使通信对等端之一进入一种异常状态,使其输出不再符合目标对等端的期望,从而有可能发现缺陷。重要的是,这个异常对等端仍然可以正确加密/签名协议消息,克服了当前模糊测试器的一个根本挑战。实际上,我们保持通信系统完整,但引入小的损坏。由于我们可以将服务器或客户端变成异常对等端,我们的方法是第一个能够有效测试客户端网络应用程序的方法。通过对 16 个目标进行评估,我们表明 Fuzztruction-Net 在覆盖率和发现的缺陷方面优于其他模糊测试器。总体而言,Fuzztruction-Net 在经过充分测试的软件中发现了 23 个新缺陷,例如 Web 服务器 Nginx 和 Apache HTTPd 以及 OpenSSH 客户端。

英文摘要:

Network-facing applications are commonly exposed to all kinds of attacks, especially when connected to the internet. As a result, web servers like Nginx or client applications such as curl make every effort to secure and harden their code to rule out memory safety violations. One would expect this to include regular fuzz testing, as fuzzing has proven to be one of the most successful approaches to uncovering bugs in software. Yet, surprisingly little research has focused on fuzzing network applications. When studying the underlying reasons, we find that the interactive nature of communication, its statefulness, and the protection of exchanged messages render typical fuzzers ineffective. Attempts to replay recorded messages or modify them on the fly only work for specific targets and often lead to early termination of communication. In this paper, we discuss these challenges in detail, highlighting how the focus of existing work on protocol state space promises little relief. We propose a fundamentally different approach that relies on fault injection rather than modifying messages. Effectively, we force one of the communication peers into a weird state where its output no longer matches the expectations of the target peer, potentially uncovering bugs. Importantly, this weird peer can still properly encrypt/sign the protocol message, overcoming a fundamental challenge of current fuzzers. In effect, we leave the communication system intact but introduce small corruptions. Since we can turn either the server or the client into the weird peer, our approach is the first that can effectively test client-side network applications. Evaluating 16 targets, we show that Fuzztruction-Net outperforms other fuzzers in terms of coverage and bugs found. Overall, Fuzztruction-Net uncovered 23 new bugs in well-tested software, such as the web servers Nginx and Apache HTTPd and the OpenSSH client.

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

↑