alert http any any -> $HOME_NET any (
msg:"ET WEB_SPECIFIC_APPS TOTOLINK N600R cstecgi.cgi ipDoamin parameter Command Injection Attempt (CVE-2022-26187)";
flow:established,to_server;
http.method;
content:"POST";
http.uri; bsize:20;
content:"/cgi-bin/cstecgi.cgi";
http.request_body;
content:"|22|topicurl|22 3a|";
content:"|22|setting/setDiagnosisCfg|22|"; within:30; fast_pattern;
content:"|22|ipDoamin|22 3a|";
pcre:"/^[^\x26]*?(?:(?:\x3b|%3[Bb])|(?:\x0a|%0[Aa])|(?:\x60|%60)|(?:\x7c|%7[Cc])|(?:\x24|%24))+/R";
reference:url,github.com/doudoudedi/TOTOLINK_N600R_Command_Injection/blob/main/TOTOLINK-N600R-Command-Injection.md;
reference:cve,2022-26187;
classtype:attempted-admin;
sid:2061799; rev:1;
metadata:affected_product TOTOLINK, attack_target Networking_Equipment, tls_state plaintext, created_at 2025_04_22, cve CVE_2022_26187, deployment Perimeter, deployment Internal, performance_impact Low, confidence High, signature_severity Major, tag Exploit, updated_at 2025_04_22, mitre_tactic_id TA0001, mitre_tactic_name Initial_Access, mitre_technique_id T1190, mitre_technique_name Exploit_Public_Facing_Application;
)