alert http $EXTERNAL_NET any -> $HOME_NET any (
msg:"ET WEB_SPECIFIC_APPS QNAP quick.cgi uploaf_firmware_image Command Injection Attempt (CVE-2023-47218)";
flow:established,to_server;
http.method;
content:"POST";
http.uri;
content:"/cgi-bin/quick/quick.cgi?func=switch_os&todo=uploaf_firmware_image"; fast_pattern;
http.user_agent;
content:"Mozilla";
content:"Macintosh";
http.request_body;
content:"|3d 22|%22";
content:"|22|"; within:200;
reference:url,www.rapid7.com/blog/post/2024/02/13/cve-2023-47218-qnap-qts-and-quts-hero-unauthenticated-command-injection-fixed/;
reference:cve,2023-47218;
classtype:trojan-activity;
sid:2050811; rev:1;
metadata:affected_product QNAP, attack_target Networking_Equipment, created_at 2024_02_13, cve CVE_2023_47218, deployment Perimeter, performance_impact Low, confidence High, signature_severity Major, updated_at 2024_02_13, mitre_tactic_id TA0008, mitre_tactic_name Lateral_Movement, mitre_technique_id T1210, mitre_technique_name Exploitation_Of_Remote_Services;
)