alert http any any -> $HOME_NET any (
msg:"ET WEB_SPECIFIC_APPS Totolink UploadFirmwareFile File Parameter Buffer Overflow Attempt (CVE-2025-5901)";
flow:established,to_server;
http.method;
content:"POST";
http.uri; bsize:20;
content:"/cgi-bin/cstecgi.cgi";
http.request_body;
content:"|22|UploadFirmwareFile|22|"; fast_pattern;
content:"|22|File|22|";
pcre:"/^[^\x2c\x7d$]{100,}(?:\x2c|\x7d|$)/R";
reference:url,candle-throne-f75.notion.site/TOTOLINK-T10-UploadCustomModule-20bdf0aa118580d59961cd545582c118;
reference:cve,2025-5901;
classtype:web-application-attack;
sid:2062872; rev:1;
metadata:affected_product TOTOLINK, attack_target Networking_Equipment, tls_state plaintext, created_at 2025_06_10, cve CVE_2025_5901, deployment Perimeter, deployment Internal, performance_impact Low, confidence High, signature_severity Major, tag Exploit, tag AI_Generated_Description, 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;
)