alert http any any -> $HOME_NET any (
msg:"ET WEB_SPECIFIC_APPS Totolink setUpgradeFW slaveIpList Parameter Command Injection Attempt (CVE-2025-5902)";
flow:established,to_server;
http.method;
content:"POST";
http.uri; bsize:20;
content:"/cgi-bin/cstecgi.cgi";
http.request_body;
content:"|22|setUpgradeFW|22|"; fast_pattern;
content:"|22|slaveIpList|22|";
pcre:"/^[^\x2c\x7d$]*?(?:(?:\x3b|%3[Bb])|(?:\x0a|%0[Aa])|(?:\x60|%60)|(?:\x7c|%7[Cc])|(?:\x24|%24))+/R";
reference:url,candle-throne-f75.notion.site/TOTOLINK-T10-setUpgradeFW-20bdf0aa11858089bc28f634bb140d00;
reference:cve,2025-5902;
classtype:attempted-admin;
sid:2062870; rev:1;
metadata:affected_product TOTOLINK, attack_target Networking_Equipment, tls_state plaintext, created_at 2025_06_10, cve CVE_2025_5902, deployment Perimeter, deployment Internal, performance_impact Low, confidence High, signature_severity Major, tag Exploit, updated_at 2025_06_10, mitre_tactic_id TA0001, mitre_tactic_name Initial_Access, mitre_technique_id T1190, mitre_technique_name Exploit_Public_Facing_Application;
target:dest_ip;
)