ET WEB_SPECIFIC_APPS TOTOLINK N600R cstecgi.cgi hostTime parameter Command Injection Attempt (CVE-2022-26188)


Query · suricata

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/NTPSyncWithHost|22|"; within:30; fast_pattern;
content:"|22|hostTime|22 3a|";
pcre:"/^[^\x26]*?(?:(?:\x3b|%3[Bb])|(?:\x0a|%0[Aa])|(?:\x60|%60)|(?:\x7c|%7[Cc])|(?:\x24|%24))+/R";
target:dest_ip;
Raw source ET WEB_SPECIFIC_APPS TOTOLINK N600R cstecgi.cgi hostTime parameter Command Injection Attempt (CVE-2022-26188) · Suricata
Esc
Published by Emerging Threats Open ↗, licensed under BSD 3-Clause ↗. Line breaks added for readability; the rule is otherwise unchanged.
alert http any any -> $HOME_NET any (
    msg:"ET WEB_SPECIFIC_APPS TOTOLINK N600R cstecgi.cgi hostTime parameter Command Injection Attempt (CVE-2022-26188)";
    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/NTPSyncWithHost|22|"; within:30; fast_pattern;
    content:"|22|hostTime|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-26188;
    classtype:attempted-admin;
    sid:2061800; rev:1;
    metadata:affected_product TOTOLINK, attack_target Networking_Equipment, tls_state plaintext, created_at 2025_04_22, cve CVE_2022_26188, 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;
    target:dest_ip;
)

Detection rules belong to the projects that publish them and remain under their own licenses. This site indexes and links to them; it claims no rights in them.