alert http any any -> $HOME_NET any (
msg:"ET WEB_SPECIFIC_APPS ServiceNow Command Injection Attempt (CVE-2024-5217,2024-4879) M1";
flow:established,to_server;
http.method;
content:"POST";
http.uri; bsize:9;
content:"/login.do";
http.request_body;
content:"jvar_page_title|3d|"; fast_pattern;
pcre:"/^.*?(?:javascript|style)/R";
content:"j|3a|jelly|20|xmlns|3a|j|3d 22|jelly|3a|core|22 20|xmlns|3a|g|3d 27|glide|27|"; within:80;
reference:cve,2024-5217;
reference:cve,2024-4879;
reference:url,www.assetnote.io/resources/research/chaining-three-bugs-to-access-all-your-servicenow-data;
reference:url,www.resilientx.com/blog/cve-2024-5217-servicenow-vulnerability;
classtype:attempted-admin;
sid:2060406; rev:1;
metadata:affected_product ServiceNow, attack_target Server, tls_state plaintext, created_at 2025_02_27, cve CVE_2024_5217, deployment Perimeter, deployment Internal, performance_impact Low, confidence High, signature_severity Major, tag Exploit, tag CISA_KEV, updated_at 2025_02_27, mitre_tactic_id TA0001, mitre_tactic_name Initial_Access, mitre_technique_id T1190, mitre_technique_name Exploit_Public_Facing_Application;
target:dest_ip;
)