alert http any any -> $HOME_NET any (
msg:"ET EXPLOIT Viessmann Vitogate 300 Command Injection Attempt (CVE-2023-5702)";
flow:established,to_server;
http.method;
content:"POST";
http.uri;
content:"/cgi-bin/vitogate.cgi"; fast_pattern;
http.content_type;
content:"application/json";
http.request_body;
content:"|7b 22|method|22 3a 20 22|put|22 2c 20 22|form|22 3a 20 22|"; startswith;
content:"|22 2c 20 22|session|22 3a 20 22|"; within:60;
content:"|22 2c 20 22|params|22 3a 20 7b 22|ipaddr|22 3a 20 22|"; within:60;
content:"|3b|"; within:50;
content:"|22 7d 7d|"; endswith;
reference:cve,2023-5702;
reference:url,www.exploit-db.com/exploits/51887;
classtype:attempted-admin;
sid:2051666; rev:1;
metadata:affected_product Viessmann_Vitogate, attack_target Networking_Equipment, tls_state plaintext, created_at 2024_03_15, cve CVE_2023_5702, deployment Perimeter, performance_impact Low, confidence High, signature_severity Major, updated_at 2024_03_15, mitre_tactic_id TA0008, mitre_tactic_name Lateral_Movement, mitre_technique_id T1210, mitre_technique_name Exploitation_Of_Remote_Services;
target:dest_ip;
)