alert tcp $EXTERNAL_NET any -> $SQL_SERVERS $ORACLE_PORTS (
msg:"GPL SQL dbms_repcat_instantiate.instantiate_online buffer overflow attempt";
flow:to_server,established;
content:"dbms_repcat_instantiate.instantiate_online"; nocase; fast_pattern;
pcre:"/((\w+)[\r\n\s]*\x3a=[\r\n\s]*(\x27[^\x27]{1024,}\x27|\x22[^\x22]{1024,}\x22)[\r\n\s]*\x3b.*refresh_template_name[\r\n\s]*=>[\r\n\s]*\2|refresh_template_name\s*=>\s*(\x27[^\x27]{1024,}|\x22[^\x22]{1024,})|\(\s*(\x27[^\x27]{1024,}|\x22[^\x22]{1024,}))/si";
classtype:attempted-user;
sid:2102647; rev:5;
metadata:created_at 2010_09_23, confidence High, signature_severity Major, tag Description_Generated_By_Proofpoint_Nexus, updated_at 2019_10_08;
)