alert http $EXTERNAL_NET any -> $HOME_NET any (
msg:"ET EXPLOIT FortiOS SSL VPN - Remote Code Execution (CVE-2018-13383)";
flow:established,to_client;
http.stat_code;
content:"200";
http.response_body;
content:"|3c|a href=|22|javascript:void|28|0|29 3b|AAA"; depth:33; fast_pattern;
pcre:"/A{1000}/R";
content:"python -c"; distance:0;
content:"socket"; distance:0;
reference:cve,CVE-2018-13383;
reference:url,blog.orange.tw/2019/08/attacking-ssl-vpn-part-2-breaking-the-fortigate-ssl-vpn.html;
classtype:attempted-admin;
sid:2027891; rev:3;
metadata:affected_product Fortigate, attack_target Networking_Equipment, created_at 2019_08_14, deployment Perimeter, performance_impact Low, confidence Medium, signature_severity Major, tag CISA_KEV, updated_at 2020_08_31, mitre_tactic_id TA0001, mitre_tactic_name Initial_Access, mitre_technique_id T1190, mitre_technique_name Exploit_Public_Facing_Application;
)