alert http any any -> $HOME_NET any (
msg:"ET WEB_SPECIFIC_APPS RaspAP Command Injection Attempt (CVE 2022-39986) M2";
flow:established,to_server;
http.method;
content:"POST";
http.uri;
content:"/ajax/openvpn/";
content:"_ovpncfg.php"; endswith;
http.request_body;
content:"cfg_id|3d 3b|"; startswith; fast_pattern;
content:"|3b 23|"; endswith;
reference:cve,2022-39986;
reference:url,www.exploit-db.com/exploits/51676;
classtype:attempted-admin;
sid:2047675; rev:1;
metadata:affected_product Web_Server_Applications, attack_target Web_Server, created_at 2023_08_18, deployment Perimeter, deployment Internal, deployment SSLDecrypt, performance_impact Low, confidence High, signature_severity Major, updated_at 2023_08_18, mitre_tactic_id TA0008, mitre_tactic_name Lateral_Movement, mitre_technique_id T1210, mitre_technique_name Exploitation_Of_Remote_Services;
target:dest_ip;
)