alert http $EXTERNAL_NET any -> $HTTP_SERVERS any (
msg:"ET WEB_SPECIFIC_APPS SonicWALL SonicOS searchStr XML Tag Script Insertion Attempt";
flow:established,to_server;
http.method;
content:"POST";
http.request_body;
content:"dbInfo"; nocase;
content:"dbInfoRequest"; nocase;
content:"searchStr"; nocase;
pcre:"/(?:\x3c|\x253c)dbInfo(?:\x3e|\x253e)[\r\n\s]*?(?:\x3c|\x253c)dbInfoRequest(?:\x3e|\x253e).+?(?:\x3c|\x253c)searchStr(?:\x3e|\x253e)((?!(?:\x3c|\x253c)(?:\/|\x252f)searchStr(?:\x3e|\x253e)).)+?(?:on(?:(?:s(?:elec|ubmi)|rese)t|d(?:blclick|ragdrop)|(?:mouse|key)[a-z]|c(?:hange|lick)|(?:un)?load|focus|blur)|s(?:cript|tyle=)).+?(?:\x3c|\x253c)(?:\/|\x252f)searchStr(?:\x3e|\x253e)/si";
reference:url,securelist.com/en/advisories/51615;
reference:url,seclists.org/bugtraq/2012/Dec/110;
classtype:web-application-attack;
sid:2016086; rev:3;
metadata:created_at 2012_12_21, signature_severity Major, updated_at 2020_04_22;
)