alert http any any -> $HOME_NET any (
msg:"ET WEB_SERVER SonicWall SMA Post-Auth sitecustomization CGI Command Injection";
flow:established,to_server;
http.method;
content:"POST";
http.uri;
content:"/cgi-bin/sitecustomization"; fast_pattern;
http.request_body;
content:"portalname|3d|";
pcre:"/^[^\x26]*?[\x21\x24\x5c\x28\x29\x2a\x2c\x2d\x2e\x3d\x40\x5b\x5d\x5e\x5f\x7b\x7d\x7e]/R";
reference:url,ssd-disclosure.com/ssd-advisory-sonicwall-sma100-stored-xss-to-rce/;
classtype:web-application-attack;
sid:2061631; rev:1;
metadata:affected_product SonicWall, attack_target Server, tls_state TLSDecrypt, created_at 2025_04_16, deployment Perimeter, deployment Internal, deployment SSLDecrypt, confidence High, signature_severity Major, tag Exploit, updated_at 2025_04_16, mitre_tactic_id TA0001, mitre_tactic_name Initial_Access, mitre_technique_id T1190, mitre_technique_name Exploit_Public_Facing_Application;
target:dest_ip;
)