WAFFLED:利用解析差异绕过Web应用防火墙
WAFFLED: Exploiting Parsing Discrepancies to Bypass Web Application Firewalls
AI总结:
本文提出利用解析差异通过高级模糊技术绕过Web应用防火墙,发现5种主流WAF的1207种绕过方法,并引入HTTP-Normalizer工具缓解漏洞。
摘要:
Web应用防火墙(WAFs)作为重要的安全网关,通过检查进入的HTTP流量来过滤恶意请求并防御多种网络威胁。绕过WAF可能破坏这些防护,危害互联网用户。近年来,通信路径中普遍存在解析差异问题,但其对WAF绕过和请求走私的影响尚不明确。本文提出通过高级模糊技术发现并利用解析差异绕过WAF的方法,针对非恶意组件如头信息和请求体部分,使用常见内容类型如application/json、multipart/form-data和application/xml,发现5种主流WAF的1207种绕过方法。通过实地研究发现,超过90%的网站接受application/x-www-form-urlencoded和multipart/form-data互换使用,暴露了重大漏洞。我们已向相关方报告这些漏洞并获得认可,部分供应商还提供了漏洞赏金。为进一步缓解漏洞,我们引入HTTP-Normalizer工具,该工具严格验证HTTP请求符合当前RFC标准,证明其在阻止本文提出的绕过尝试方面的有效性。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。