alert http any any -> $HOME_NET any (
msg:"ET WEB_SERVER SonicWall SRA diagnostics CGI Command Injection (CVE-2016-9682) M1";
flow:established,to_server;
http.method;
content:"GET";
http.uri;
content:"/cgi-bin/diagnostics|3f|";
content:"currentTSREmailTo|3d|"; fast_pattern;
pcre:"/^[^\x26\x0d\x0a]*?[\x3b\x60\x7c\x24]/R";
reference:url,www.exploit-db.com/exploits/42342;
reference:cve,2016-9682;
classtype:web-application-attack;
sid:2061548; rev:1;
metadata:affected_product SonicWall, attack_target Server, tls_state TLSDecrypt, created_at 2025_04_14, cve CVE_2016_9682, deployment Perimeter, deployment Internal, deployment SSLDecrypt, confidence High, signature_severity Major, tag Exploit, updated_at 2025_04_14, mitre_tactic_id TA0001, mitre_tactic_name Initial_Access, mitre_technique_id T1190, mitre_technique_name Exploit_Public_Facing_Application;
target:dest_ip;
)