alert http any any -> $HOME_NET any (
msg:"ET WEB_SPECIFIC_APPS D-Link DWL-2600AP Command Injection Attempt (CVE-2019-20499, CVE-2019-20500, CVE-2019-20501)";
flow:established,to_server;
http.method;
content:"POST";
http.uri;
content:"/admin.cgi|3f|action|3d|"; startswith; fast_pattern;
pcre:"/^(?:upgrade|config_(?:save|restore))$/R";
http.request_body;
pcre:"/(?:firmware(?:Serverip|Restore)|config(?:Backup|Restore|Serverip)|downloadServerip)[^\x26]*?(?:(?:\x3b|%3[Bb])|(?:\x0a|%0[Aa])|(?:\x60|%60)|(?:\x7c|%7[Cc])|(?:\x24|%24))+/P";
reference:cve,2019-20499;
reference:cve,2019-20500;
reference:cve,2019-20501;
reference:url,unit42.paloaltonetworks.com/mirai-variant-targets-iot-exploits/;
reference:url,www.exploit-db.com/exploits/46841;
classtype:attempted-admin;
sid:2057317; rev:1;
metadata:attack_target Networking_Equipment, tls_state plaintext, created_at 2024_11_07, cve CVE_2019_20499, deployment Perimeter, deployment Internal, performance_impact Low, confidence High, signature_severity Major, tag Exploit, updated_at 2024_11_07;
target:dest_ip;
)