ET EXPLOIT Apache Struts 2 REST Plugin XStream RCE (Runtime.Exec)


Query · suricata

flow:to_server,established;
http.request_body;
content:"java.lang.Runtime"; nocase; fast_pattern;
content:".exec"; distance:0;
content:"<command"; nocase; distance:0;
pcre:"/^[\s>]/Rs";
Raw source ET EXPLOIT Apache Struts 2 REST Plugin XStream RCE (Runtime.Exec) · Suricata
Esc
Published by Emerging Threats Open ↗, licensed under BSD 3-Clause ↗. Line breaks added for readability; the rule is otherwise unchanged.
alert http any any -> $HOME_NET any (
    msg:"ET EXPLOIT Apache Struts 2 REST Plugin XStream RCE (Runtime.Exec)";
    flow:to_server,established;
    http.request_body;
    content:"java.lang.Runtime"; nocase; fast_pattern;
    content:".exec"; distance:0;
    content:"<command"; nocase; distance:0;
    pcre:"/^[\s>]/Rs";
    reference:cve,2017-9805;
    reference:url,lgtm.com/blog/apache_struts_CVE-2017-9805_announcement;
    classtype:attempted-user;
    sid:2024664; rev:2;
    metadata:affected_product Apache_Struts2, attack_target Web_Server, created_at 2017_09_06, cve CVE_2017_9805, deployment Perimeter, performance_impact Low, confidence Medium, signature_severity Critical, tag CISA_KEV, updated_at 2020_08_12;
)

Detection rules belong to the projects that publish them and remain under their own licenses. This site indexes and links to them; it claims no rights in them.