alert http any any -> $HOME_NET any (
msg:"ET WEB_SPECIFIC_APPS Totolink BufferOverflow Attempt formWsc localPin Command Injection Attempt (CVE-2025-3987)";
flow:established,to_server;
http.method;
content:"POST";
http.uri; bsize:15;
content:"/boafrm/formWsc"; fast_pattern;
http.request_body;
content:"localPin|3d|";
pcre:"/^.*?(?:(?:\x3b|%3[Bb])|(?:\x0a|%0[Aa])|(?:\x60|%60)|(?:\x7c|%7[Cc])|(?:\x24|%24)|(?:\x26|%26){2})+/R";
http.header_names;
content:!"|0d 0a|Cookie|0d 0a|";
reference:cve,2025-3987;
reference:url,github.com/fizz-is-on-the-way/Iot_vuls/tree/main/N150RT;
classtype:attempted-admin;
sid:2062203; rev:1;
metadata:affected_product TOTOLINK, attack_target Networking_Equipment, tls_state plaintext, created_at 2025_05_08, cve CVE_2025_3987, deployment Perimeter, deployment Internal, performance_impact Low, confidence High, signature_severity Major, tag Exploit, updated_at 2025_05_08, mitre_tactic_id TA0001, mitre_tactic_name Initial_Access, mitre_technique_id T1190, mitre_technique_name Exploit_Public_Facing_Application;
target:dest_ip;
)