alert http any any -> $HOME_NET any (
msg:"ET WEB_SPECIFIC_APPS PFsense Stored Cross-Site Scripting (CVE-2024-46538)";
flow:established,to_server;
http.method;
content:"POST";
http.uri;
content:"/interfaces_groups_edit.php"; fast_pattern;
http.cookie;
content:"PHPSESSID|3d|";
http.request_body;
content:"__csrf_magic|3d|";
content:"ifname|3d|";
content:"descr|3d|";
content:"members";
pcre:"/^(?:%5[bB]%5[dD]|\x5b\x5d)\x3d[^\x25]*?(?:[\x20\x27\x22\x2f]on[a-z]+\x3d|(?:[^\x2f]s(?:cript[\x3a\x3e\x20\x2f]|tyle\x3d)|\x3ciframe[\x20\x2f]))/R";
content:"save|3d|";
reference:url,github.com/physicszq/web_issue/blob/main/pfsense/interfaces_groups_edit_file.md_xss.md;
reference:cve,2024-46538;
classtype:web-application-attack;
sid:2057064; rev:1;
metadata:attack_target Server, tls_state TLSDecrypt, created_at 2024_10_28, cve CVE_2024_46538, deployment Perimeter, deployment Internal, deployment SSLDecrypt, confidence High, signature_severity Major, tag Exploit, updated_at 2024_10_28, mitre_tactic_id TA0001, mitre_tactic_name Initial_Access, mitre_technique_id T1190, mitre_technique_name Exploit_Public_Facing_Application;
target:dest_ip;
)