alert http any any -> $HOME_NET any (
msg:"ET WEB_SPECIFIC_APPS Github Enterprise S3 OIDC Command Injection Attempt (CVE-2024-0507)";
flow:established,to_server;
http.method;
content:"POST";
http.uri; bsize:36;
content:"/setup/settings/test/storage/actions";
http.request_body;
content:"actions_storage"; fast_pattern;
content:"s3_oidc"; within:10;
content:"bucket_name"; within:17;
pcre:"/^[^\x26]*?(?:(?:\x3b|%3[Bb])|(?:\x0a|%0[Aa])|(?:\x60|%60)|(?:\x7c|%7[Cc])|(?:\x24|%24))+/R";
reference:url,blog.convisoappsec.com/en/analysis-of-github-enterprise-vulnerabilities-cve-2024-0507-cve-2024-0200/;
reference:cve,2024-0507;
classtype:attempted-admin;
sid:2058204; rev:1;
metadata:affected_product Github_Enterprise, attack_target Web_Server, tls_state TLSDecrypt, created_at 2024_12_12, cve CVE_2024_0507, deployment Perimeter, deployment Internal, deployment SSLDecrypt, performance_impact Low, confidence High, signature_severity Major, tag Exploit, updated_at 2024_12_12, mitre_tactic_id TA0001, mitre_tactic_name Initial_Access, mitre_technique_id T1190, mitre_technique_name Exploit_Public_Facing_Application;
target:dest_ip;
)