No Peer, no Cry: Network Application Fuzzing via Fault Injection
Open Access
- 2 December 2024
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 750-764
Abstract
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 (e.g., via encryption or cryptographic signatures) 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. In an extensive evaluation of 16 targets, we show that our prototype Fuzztruction-Net significantly 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.Keywords
All Related Versions
Funding Information
- German Federal Ministry of Education and Research (BMBF) (16KIS1899)
- European Research Council (101045669)
This publication has 22 references indexed in Scilit:
- Fuzzing API Error Handling Behaviors using Coverage Guided Fault Injection2024
- StateAFL: Greybox fuzzing for stateful network serversEmpirical Software Engineering, 2022
- SnapFuzz: high-throughput fuzzing of network applications2022
- Snipuzz: Black-box Fuzzing of IoT Firmware via Message Snippet Inference2021
- IFIZZ: Deep-State and Efficient Fault-Scenario Generation to Test IoT Firmware2021
- Boosting fuzzer efficiency: an information theoretic perspective2020
- AFLNET: A Greybox Fuzzer for Network Protocols2020
- Inferring OpenVPN State Machines Using Protocol State Fuzzing2018
- HTTP Digest Access Authentication2015
- Introduction to Active Automata Learning from a Practical Perspective2011