alert http any any -> $HOME_NET any (
msg:"ET WEB_SPECIFIC_APPS NGINX UI Authenticated Remote Command Execution in logrotate (CVE-2024-49368)";
flow:established,to_server;
http.method;
content:"POST";
http.uri;
content:"/api/settings";
http.header;
content:"Authorization|3a 20|";
http.request_body;
content:"|22|logrotate|22 3a|"; fast_pattern;
content:"|22|cmd|22 3a|"; distance:0;
content:!"|22 22|"; within:3;
reference:cve,2024-49368;
reference:url,github.com/0xJacky/nginx-ui/security/advisories/GHSA-66m6-27r9-77vm;
classtype:web-application-attack;
sid:2057437; rev:1;
metadata:attack_target Server, tls_state TLSDecrypt, created_at 2024_11_13, cve CVE_2024_49368, deployment Perimeter, deployment Internal, deployment SSLDecrypt, confidence High, signature_severity Major, tag Exploit, updated_at 2024_11_13, mitre_tactic_id TA0001, mitre_tactic_name Initial_Access, mitre_technique_id T1190, mitre_technique_name Exploit_Public_Facing_Application;
target:dest_ip;
)