alert http $EXTERNAL_NET any -> $HOME_NET any (
msg:"ET WEB_SPECIFIC_APPS TP-Link TL-WR940N Hardware v3/v4 Authenticated Remote Code Execution (CVE-2024-54887)";
flow:established,to_server;
http.method;
content:"GET";
http.uri;
content:"/userRpm/Wan6to4TunnelCfgRpm.htm?"; fast_pattern;
content:"dnsserver";
pcre:"/^[12]\x3d[^\x26]*?\x27\x70\xc0\x01\x2a/R";
reference:url,infosecwriteups.com/reversing-discovering-and-exploiting-a-tp-link-router-vulnerability-cve-2024-54887-341552c4b104;
reference:cve,2024-54887;
classtype:web-application-attack;
sid:2059682; rev:1;
metadata:affected_product TPLINK, attack_target Server, tls_state TLSDecrypt, created_at 2025_01_27, cve CVE_2024_54887, deployment Perimeter, deployment Internal, deployment SSLDecrypt, confidence High, signature_severity Major, tag Exploit, updated_at 2025_01_27, mitre_tactic_id TA0001, mitre_tactic_name Initial_Access, mitre_technique_id T1190, mitre_technique_name Exploit_Public_Facing_Application;
target:dest_ip;
)