Test, validate and match regular expressions
Matches OGNL expression injection patterns used in CVE-2021-31805 (S2-062), a critical Apache Struts 2 remote code execution vulnerability. The regex detects malicious payloads containing %{(#variable=value).} structures, which exploit OGNL (Object-Graph Navigation Language) evaluation to execute arbitrary code. Primarily used in WAF rules, intrusion detection systems, and security log analysis to identify exploit attempts.