Protection from Struts Remote Code Execution Vulnerability (S2-057)
Sep 5, 2018Richard Sommerville

Summary
This post details Cloudflare's immediate mitigation of the Apache Struts S2-057 vulnerability using its Web Application Firewall (WAF). It explains the nature of OGNL expressions used in Struts RCE payloads and how S2-057 differs from previous vulnerabilities by allowing payloads in the 'namespace' parameter. Cloudflare's WAF already had rules to protect against OGNL expressions and specific Struts exploit vectors, enabling them to deploy a mitigation within hours of the vulnerability's disclosure. The post also shares observed attack patterns, noting that many were probing attempts rather than malicious actions.
More from the Website Security & Threat Management trail
- We tested our own WAF with frontier AI models. Here’s what we found
- When scanners miss the attack: how Cloudflare Client-Side Security protects storefronts
- Introducing automatic remediation policies with Cloudflare CASB
- Introducing context-aware vulnerability discovery and remediation with Cloudflare Managed Defense and OpenAI Daybreak Models
- Introducing Adaptive Intelligence: undermining the economics of every bot attack