alert http any any -> $HOME_NET any (
msg:"ET EXPLOIT Sophos Firewall Authentication Bypass (CVE-2022-1040)";
flow:established,to_server;
http.method;
content:"POST";
http.uri;
content:"/userportal/Controller?"; fast_pattern; startswith;
content:"mode=";
content:"operation=";
content:"datagrid=";
content:"json=";
http.header;
content:"X-Requested-With|3a 20|XMLHttpRequest";
http.header_names;
content:!"Referer";
flowbits:set,ET.SophosAuthBypass;
reference:cve,2022-1040;
reference:url,attackerkb.com/topics/cdXl2NL3cR/cve-2022-1040;
classtype:attempted-admin;
sid:2036548; rev:2;
metadata:created_at 2022_05_09, cve CVE_2022_1040, deployment Perimeter, deployment Internal, deployment SSLDecrypt, confidence High, signature_severity Major, tag CISA_KEV, tag Description_Generated_By_Proofpoint_Nexus, updated_at 2024_11_26, reviewed_at 2024_09_12, mitre_tactic_id TA0001, mitre_tactic_name Initial_Access, mitre_technique_id T1190, mitre_technique_name Exploit_Public_Facing_Application;
target:dest_ip;
)