alert http $EXTERNAL_NET any -> $HOME_NET any (
msg:"ET WEB_SPECIFIC_APPS DrayTek Gateway Web Management Interface OS Command Injection (CVE-2024-12987)";
flow:established,to_server;
http.method;
content:"GET";
http.uri;
content:"/cgi-bin/mainfunction.cgi/apmcfgupload"; fast_pattern;
content:"session|3d|";
content:"|b4 25 35 32 24 63 25 35 32 24 63|"; distance:0;
reference:url,nvd.nist.gov/vuln/detail/CVE-2024-12987;
reference:cve,2024-12987;
classtype:web-application-attack;
sid:2059890; rev:1;
metadata:affected_product DrayTek, attack_target Server, tls_state TLSDecrypt, created_at 2025_02_05, cve CVE_2024_12987, deployment Perimeter, deployment Internal, deployment SSLDecrypt, confidence High, signature_severity Major, tag Exploit, updated_at 2025_02_05, mitre_tactic_id TA0001, mitre_tactic_name Initial_Access, mitre_technique_id T1190, mitre_technique_name Exploit_Public_Facing_Application;
target:dest_ip;
)