alert http any any -> $HOME_NET any (
msg:"ET WEB_SPECIFIC_APPS QNAP Viostor server.cgi SPECIFIC_SERVER Parameter Command Injection Attempt (CVE-2023-47565)";
flow:established,to_server;
http.method;
content:"POST";
http.uri;
content:"/cgi-bin/server/server.cgi"; fast_pattern; startswith;
http.request_body;
content:"SPECIFIC_SERVER|3d|";
pcre:"/^[^\x26]*?(?:(?:\x3b|%3[Bb])|(?:\x0a|%0[Aa])|(?:\x60|%60)|(?:\x7c|%7[Cc])|(?:\x24|%24))+/R";
reference:cve,2023-47565;
reference:url,www.akamai.com/blog/security-research/qnap-viostor-zero-day-vulnerability-spreading-mirai-patched;
classtype:attempted-admin;
sid:2059878; rev:1;
metadata:affected_product QNAP, attack_target Networking_Equipment, tls_state plaintext, created_at 2025_02_04, cve CVE_2023_47565, deployment Perimeter, deployment Internal, performance_impact Low, confidence High, signature_severity Major, tag Exploit, tag CISA_KEV, updated_at 2025_02_04, mitre_tactic_id TA0001, mitre_tactic_name Initial_Access, mitre_technique_id T1190, mitre_technique_name Exploit_Public_Facing_Application;
target:dest_ip;
)