alert http $EXTERNAL_NET any -> $HOME_NET any (
msg:"ET EXPLOIT Fortigate VPN - Repeated POST Requests to /remote/error (CVE-2023-27997)";
flow:established,to_server;
threshold:type limit, track by_src, count 1, seconds 120;
http.method;
content:"POST";
http.uri;
content:"/remote/error"; fast_pattern; startswith;
http.content_len;
byte_test:0,>,1000000,0,string,dec;
reference:cve,2023-27997;
reference:url,blog.lexfo.fr/xortigate-cve-2023-27997.html;
reference:url,github.com/BishopFox/CVE-2023-27997-check/blob/main/CVE-2023-27997-check.py;
reference:url,bishopfox.com/blog/cve-2023-27997-exploitable-and-fortigate-firewalls-vulnerable;
classtype:attempted-admin;
sid:2046723; rev:1;
metadata:affected_product Fortigate, attack_target Networking_Equipment, created_at 2023_07_05, cve CVE_2023_27997, deployment Perimeter, deployment SSLDecrypt, performance_impact Low, confidence Medium, signature_severity Major, tag CISA_KEV, tag Description_Generated_By_Proofpoint_Nexus, updated_at 2023_07_05;
target:dest_ip;
)