alert http any any -> [$HOME_NET,$HTTP_SERVERS] any (
msg:"ET WEB_SPECIFIC_APPS Apache Struts2 Path Traversal Attempt Inbound M2 (CVE-2024-53677)";
flow:established,to_server;
http.method;
content:"POST";
http.request_body;
content:"------";
content:"Boundary"; within:20;
content:"|22|top.uploadfilename|22|"; nocase; fast_pattern;
pcre:"/^.*?(?:(?:\x2e|%2[Ee]){1,2}(?:\x2f|\x5c|%5[Cc]|%2[Ff]){1,}){1,}/Rmi";
reference:cve,2024-53677;
classtype:web-application-attack;
sid:2058341; rev:1;
metadata:affected_product Apache_Struts2, attack_target Server, created_at 2024_12_17, cve CVE_2024_53677, deployment Perimeter, deployment Internal, confidence High, signature_severity Major, tag Exploit, updated_at 2024_12_17, mitre_tactic_id TA0001, mitre_tactic_name Initial_Access, mitre_technique_id T1190, mitre_technique_name Exploit_Public_Facing_Application;
target:dest_ip;
)