alert http any any -> $HOME_NET any (
msg:"ET WEB_SPECIFIC_APPS Reolink RLC Series IP Camera SetDevName Authenticated Command Injection Attempt (CVE-2021-40412)";
flow:established,to_server;
http.method;
content:"POST";
http.uri;
content:"/cgi-bin/api.cgi|3f|cmd|3d|SetDevName"; fast_pattern; startswith;
http.request_body;
content:"|22|cmd|22|";
content:"|22|SetDevName|22 2c|"; within:20;
content:"|22|name|22 3a|"; distance:0;
pcre:"/^[^\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-40412;
classtype:attempted-admin;
sid:2059717; rev:1;
metadata:affected_product Reolink, attack_target IoT, created_at 2025_01_27, cve CVE_2021_40412, deployment Perimeter, deployment Internal, performance_impact Low, confidence High, signature_severity Major, tag Exploit, updated_at 2025_01_27;
target:dest_ip;
)