alert http any any -> $HOME_NET any (
msg:"ET WEB_SPECIFIC_APPS Mailcow Second-Order SQL Injection via quarantine_category (CVE-2026-40871)";
flow:established,to_server;
http.uri;
content:"/api/v1/add/mailbox"; fast_pattern;
http.header;
content:"x-api-key|3a 20|"; nocase;
http.request_body;
content:"|22|quarantine_category|22 3a|";
pcre:"/^\s*\x22[^\x22]*?(?:[\x27\x22\x3b\x2d\x5c\x2a\x2f]|\x25(?:2[27aAdDfF]|3[bB]|5[cC]))/R";
reference:url,github.com/lukehebe/Vulnerability-Disclosures/blob/main/CVE-2026-40871.md;
reference:cve,2026-40871;
classtype:web-application-attack;
sid:2068893; rev:1;
metadata:attack_target Server, tls_state TLSDecrypt, created_at 2026_04_21, cve CVE_2026_40871, deployment Perimeter, deployment Internal, deployment SSLDecrypt, confidence High, signature_severity Major, tag Exploit, updated_at 2026_04_21, mitre_tactic_id TA0001, mitre_tactic_name Initial_Access, mitre_technique_id T1190, mitre_technique_name Exploit_Public_Facing_Application;
target:dest_ip;
)