alert http any any -> $HOME_NET any (
msg:"ET WEB_SPECIFIC_APPS Draytek mainfunction.cgi commandTable parameter Command Injection Attempt (CVE-2023-24229)";
flow:established,to_server;
http.method;
content:"POST";
http.uri; bsize:25;
content:"/cgi-bin/mainfunction.cgi"; fast_pattern;
http.request_body;
content:"action|3d|commandTable";
content:"command|3d|";
content:"parameter|3d|";
pcre:"/^[^\x26]*?(?:(?:\x3b|%3[Bb])|(?:\x0a|%0[Aa])|(?:\x60|%60)|(?:\x7c|%7[Cc])|(?:\x24|%24))+/R";
reference:cve,2023-24229;
reference:url,github.com/advisories/GHSA-pqv5-8qj7-9f3r;
classtype:attempted-admin;
sid:2058382; rev:1;
metadata:affected_product DrayTek, attack_target Networking_Equipment, tls_state plaintext, created_at 2024_12_17, cve CVE_2023_24229, deployment Perimeter, deployment Internal, performance_impact Low, confidence High, signature_severity Major, tag Description_Generated_By_Proofpoint_Nexus, 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;
)