WAFFLED : Exploiting Parsing Discrepancies to Bypass Web Application Firewalls

1 st Seyed Ali Akhavani, 2 nd Bahruz Jabiyev, 3 rd Ben Kallus, 4 th Cem Topcuoglu, 5 th Sergey Bratus, 6 th Engin Kirda · 2025

Read WAFFLED : Exploiting Parsing Discrepancies to Bypass Web Application Firewalls by 1 st Seyed Ali Akhavani, 2 nd Bahruz Jabiyev, 3 rd Ben Kallus, 4 th Cem Topcuoglu, 5 th Sergey Bratus, 6 th Engin Kirda (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2503-10846.txt.

Introduction

Seyed Ali Akhavani, Bahruz Jabiyev, Ben Kallus, Cem Topcuoglu, Sergey Bratus, and Engin Kirda slip malicious requests past web application firewalls by exploiting parser disagreements. Their paper from twenty twenty-five, WAFFLED, runs advanced fuzzing over headers, body segments, and common content types. Five major firewalls are the test targets: AWS, Azure, Cloud Armor, Cloudflare, and ModSecurity.

The fuzzing found and confirmed 1207 bypasses across the five. A wild study adds sting: over ninety percent of websites take form-encoded and multipart bodies interchangeably, so the tricks apply broadly. All vendors acknowledged the flaws, some paying bounties. The team also ships HTTP-Normalizer, a proxy that checks requests against the RFC rules and blocks every bypass shown. Parser gaps are now a named attack lane.

Catalog record

CREATOR1 st Seyed Ali Akhavani, 2 nd Bahruz Jabiyev, 3 rd Ben Kallus, 4 th Cem Topcuoglu, 5 th Sergey Bratus, 6 th Engin Kirda
YEAR2025
COLLECTIONPAPERS
FORMATTXT
FILE SIZE56 KB
VERSION1.0
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2503-10846

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

WAFFLED : Exploiting Parsing Discrepancies to Bypass Web Application Firewalls 1 st Seyed Ali Akhavani, 2 nd Bahruz Jabiyev, 3 rd Ben Kallus, 4 th Cem Topcuoglu, 5 th Sergey Bratus, 6 th Engin Kirda Abstract Web Application Firewalls (WAFs) have been introduced as essential and popular security gates that inspect incoming HTTP traffic to filter out malicious requests and provide defenses against a diverse array of web-based threats. Evading WAFs can compromise these defenses, potentially harming Internet users. In recent years, parsing discrepancies have plagued many entities in the communication path; however, their potential impact on WAF evasion and request smuggling remains largely unexplored. In this work, we present an innovative approach to bypassing WAFs by uncovering and exploiting parsing discrepancies through advanced fuzzing techniques. By targeting non-malicious components such as headers and segments of the body and using widely used content-types such as application/json , multipart/form-data , and application/xml , we identified and confirmed 1207 bypasses across 5 well-known WAFs, AWS, Azure, Cloud Armor, Cloudflare, and ModSecurity. To validate our findings, we conducted a study in the wild, revealing that more than 90% of websites accepted both application/x-www-form-urlencoded and multipart/form-data interchangeably, highlighting a significant vulnerability and the broad applicability of our bypass techniques. We have reported these vulnerabilities to the affected parties and received acknowledgments from all, as well as bug bounty rewards from some vendors. Further, to mitigate these vulnerabilities, we introduce HTTP-Normalizer , a robust proxy tool designed to rigorously validate HTTP requests against current RFC standards. Our results demonstrate its effectiveness in normalizing or blocking all bypass attempts presented in this work. I Introduction The widespread adoption of web applications has made them prime targets for cyberattacks. To protect these applications, Web Application Firewalls (WAFs) have been introduced as essential and popular security gates. These systems inspect incoming HTTP traffic to filter out malicious requests, and provide defenses against a diverse array of web-based threats, ranging from SQL injection to Cross-Site Scripting attacks, and beyond. Despite their critical role, WAFs are not immune to evasion. Traditional WAF evasion techniques often rely on distorting attack payloads to bypass detection rules while ensuring the payloads remain executable by web applications. Attackers usually either obfuscate the payload with encoding schemes or inject new characters into payloads to bypass WAF rules. However, WAF vendors have already taken measures against most of these bypass techniques, which have been known for many years now. Also, these types of attacks assume the ability of the target web application to parse the encoded, or obfuscated payload. As the threat landscape evolves, HTTP Request Smuggling (HRS) attacks have gained significant attention. HRS exploits discrepancies in the interpretation of HTTP requests between different entities in the communication chain, such as servers, proxies, and WAFs. These attacks can have severe consequences, including unauthorized access to sensitive information, session hijacking, and server compromise. The increasing complexity of web applications and their reliance on intermediary components have increased the risk of HRS vulnerabilities. Recent studies have investigated the importance of HRS, identifying new variants of attack and suggesting defense mechanisms [ 1 , 2 , 3 , 4 ] . Parsing discrepancies, caused by inconsistencies in the interpretation of HTTP requests, play a critical role in enabling attacks such as HRS. These discrepancies first appeared in the communication path between servers, but WAFs, which are integrated to this path, may themselves be vulnerable to such inconsistencies. As a layer between the client and the web application, WAFs must correctly interpret HTTP requests to protect against malicious activities. However, vulnerabilities in their parsing mechanisms can allow attackers to exploit these discrepancies, bypassing the WAF, and allowing attacks to reach the web application. Building on this understanding of the limitations of current WAF defenses and the emerging threat of HRS, we present a novel, real-world approach to bypassing WAFs. Our method exploits content parsing discrepancies between WAFs and web application frameworks. Unlike traditional evasion tactics, we keep the attack payload intact, and focus on mutating specific content elements, such as the boundary in multipart/form-data , or namespace feature in application/xml , causing the WAF to misinterpret the content. This misinterpretation allows the payload to pass through, while the web application framework correctly parses and executes the attack. Our work tested a wide range of combinations of popular WAFs, including Google Cloud Armor, Cloudflare, AWS WAF, Azure WAF, and ModSecurity on NGINX, alongside widely-used web application frameworks such as Flask, Laravel, FastAPI, Gin, Express, and Spring Boot. We focused on three complex content types: multipart/form-data , application/xml , and application/json . By repurposing a grammar-based and structure-aware HTTP fuzzer, we identified implementation differences in how these WAFs and frameworks parse these content types. Our findings reveal that most WAF-framework pairs can be bypassed using various content distortions, highlighting a significant vulnerability in current WAF implementations. In this work, we summarize our contributions as follows: • We introduce a fundamentally new approach that uses content parsing discrepancies to bypass web application firewalls. • We present a practical methodology for automatically finding new discrepancy-based bypass vectors using black-box fuzzing techniques. • We design and implement a pipeline that tests these bypass vectors against popular web application firewalls and frameworks. • We demonstrate successful discrepancy-based bypass instances on the pairs of most popular web application firewalls and frameworks, and we coordinate mitigation efforts with the affected technology vendors. • We analyze the interchangeability of our bypass techniques using real-world data from PublicWWW, demonstrating that our findings are widely-applicable and practical across real-world web applications. • We present the first tool, HTTP-Normalizer , that ensures that all proposed bypasses are avoidable by enforcing proper techniques. Availability. Our results and source code, including fuzzer input grammars and WAF configurations are publicly available 1 1 1 https://github.com/sa-akhavani/waffled . Sensitive bypass requests will remain restricted until the vulnerabilities are resolved. II Background II-A Web Content Types and RFCs Explained Our work focuses on using specific features of content-types to bypass a malicious request. Thus, it is crucial to inspect the details of the content and media types discussed in this paper. RFCs (Request for Comments). RFCs [ 5 ] are a series of documents that define protocols, procedures, and conventions used on the Internet and networking standards. They are published by the Internet Engineering Task Force (IETF) and related organizations. Each RFC is assigned a unique number, and these documents serve as the authoritative source of information on various Internet standards and protocols. For instance, the structure of HTTP headers, MIME types, and various other web technologies are defined by respective RFCs. ABNF (Augmented Backus-Naur Form). ABNF grammar rules [ 6 ] are a formal notation used to specify the syntax of RFCs. ABNF extends the basic BNF notation to provide a more flexible and precise way to define the syntax of Internet protocols. It is particularly important in our work as it allows for precise definitions of content types and headers, which we exploit to identify parsing discrepancies in WAFs. By understanding and manipulating ABNF rules, we can generate requests that challenge the ability of WAFs to consistently parse and enforce these standards. Multipart. Multipart content-types allow HTTP messages to include multiple entities with varying media types

Read the complete text