alert http any any -> $HOME_NET any (
msg:"ET WEB_SPECIFIC_APPS Reolink RLC Series IP Camera SetLocalLink Authenticated Command Injection Attempt (CVE-2021-40410, CVE-2021-40411)";
flow:established,to_server;
http.method;
content:"POST";
http.uri;
content:"/cgi-bin/api.cgi|3f|cmd|3d|SetLocalLink"; fast_pattern; startswith;
http.request_body;
content:"|22|cmd|22|";
content:"|22|SetLocalLink|22 2c|"; within:20;
content:"|22|dns"; distance:0;
pcre:"/^[12]\x22\x3a[^\x26]*?(?:(?:\x3b|%3[Bb])|(?:\x0a|%0[Aa])|(?:\x60|%60)|(?:\x7c|%7[Cc])|(?:\x24|%24))+/R";
reference:url,talosintelligence.com/vulnerability_reports/TALOS-2021-1424;
reference:cve,2021-40410;
reference:cve,2021-40411;
classtype:attempted-admin;
sid:2059712; rev:1;
metadata:affected_product Reolink, attack_target IoT, tls_state plaintext, created_at 2025_01_27, cve CVE_2021_40410_CVE_2021_40411, deployment Perimeter, deployment Internal, performance_impact Low, 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;
)