alert http any any -> $HOME_NET any (
msg:"ET WEB_SERVER SonicWall SRA Post-Auth gencsr CGI Command Injection";
flow:established,to_server;
http.method;
content:"POST";
http.uri;
content:"/cgi-bin/gencsr"; fast_pattern;
http.request_body;
content:"key_size|3d|";
pcre:"/^[^\x26\x0d\x0a]*?[\x21\x24\x5c\x28\x29\x2a\x2c\x2d\x2e\x3d\x40\x5b\x5d\x5e\x5f\x7b\x7d\x7e\x3b]/R";
reference:url,www.exploit-db.com/exploits/42343;
classtype:web-application-attack;
sid:2061550; rev:1;
metadata:affected_product SonicWall, attack_target Server, tls_state TLSDecrypt, created_at 2025_04_14, deployment Perimeter, deployment Internal, deployment SSLDecrypt, 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;
)