alert http any any -> $HOME_NET any (
msg:"ET WEB_SPECIFIC_APPS Totolink disconnectVPN pid Parameter Command Injection Attempt (CVE-2024-34921, CVE-2023-29803)";
flow:established,to_server;
http.method;
content:"POST";
http.uri; bsize:20;
content:"/cgi-bin/cstecgi.cgi";
http.request_body;
content:"|22|topicurl|22|";
content:"|22|disconnectVPN|22|"; fast_pattern; within:20;
content:"|22|pid|22|";
pcre:"/^(?:\x3a(?:\x20\x22|\x22))?[^\x2c\x7d$]*?(?:(?:\x3b|%3[Bb])|(?:\x0a|%0[Aa])|(?:\x60|%60)|(?:\x7c|%7[Cc])|(?:\x24|%24))+/R";
reference:url,github.com/jinhao118/cve/blob/main/TOTOLINK%20X18%20Router.md;
reference:cve,2024-34921;
reference:cve,2023-29803;
classtype:attempted-admin;
sid:2068159; rev:1;
metadata:affected_product TOTOLINK, attack_target Networking_Equipment, tls_state plaintext, created_at 2026_03_11, cve CVE_2024_34921, deployment Perimeter, deployment Internal, performance_impact Low, confidence High, signature_severity Major, tag Exploit, tag Description_Generated_By_Proofpoint_Nexus, updated_at 2026_03_11, mitre_tactic_id TA0001, mitre_tactic_name Initial_Access, mitre_technique_id T1190, mitre_technique_name Exploit_Public_Facing_Application;
target:dest_ip;
)