alert http any any -> $HOME_NET any (
msg:"ET WEB_SERVER SonicWall SMA Unauthenticated Stack Buffer Overflow (CVE-2021-20045) M2";
flow:established,to_server;
http.method;
content:"POST";
http.uri;
content:"/fileshare/sonicfiles|2f 3f|"; fast_pattern;
content:"Pass|3d|";
pcre:"/^[^\x26]{136,}/R";
content:"RacNumber|3d|36";
reference:url,www.nccgroup.com/us/research-blog/technical-advisory-sonicwall-sma-100-series-multiple-unauthenticated-heap-based-and-stack-based-buffer-overflow-cve-2021-20045/;
reference:cve,2021-20045;
classtype:web-application-attack;
sid:2061731; rev:1;
metadata:affected_product SonicWall, attack_target Server, tls_state TLSDecrypt, created_at 2025_04_18, cve CVE_2021_20045, deployment Perimeter, deployment Internal, deployment SSLDecrypt, confidence High, signature_severity Major, tag Exploit, updated_at 2025_04_18, mitre_tactic_id TA0001, mitre_tactic_name Initial_Access, mitre_technique_id T1190, mitre_technique_name Exploit_Public_Facing_Application;
target:dest_ip;
)