alert http any any -> $HOME_NET any (
msg:"ET WEB_SPECIFIC_APPS Draytek mainfunction.cgi getSyslogFile option Arbitrary File Read Attempt (CVE-2023-1163)";
flow:established,to_server;
http.method;
content:"POST";
http.uri; bsize:25;
content:"/cgi-bin/mainfunction.cgi"; fast_pattern;
http.request_body;
content:"action|3d|getSyslogFile";
content:"option|3d|";
pcre:"/^[^\x26]*?(?:(?:\x2e|%2[Ee]){1,2}(?:\x2f|\x5c|%5[Cc]|%2[Ff]){1,}){1,}/R";
content:"rtick|3d|";
reference:cve,2023-1163;
reference:url,github.com/xxy1126/Vuln/blob/main/Draytek/3.md;
classtype:attempted-admin;
sid:2058403; rev:1;
metadata:affected_product DrayTek, attack_target Networking_Equipment, tls_state plaintext, created_at 2024_12_18, cve CVE_2023_1163, deployment Perimeter, deployment Internal, performance_impact Low, confidence High, signature_severity Major, tag Exploit, updated_at 2024_12_18, mitre_tactic_id TA0001, mitre_tactic_name Initial_Access, mitre_technique_id T1190, mitre_technique_name Exploit_Public_Facing_Application;
)