alert http $EXTERNAL_NET any -> $HOME_NET any (
msg:"ET WEB_SERVER Kubernetes Ingress NGINX Controller permanent-redirect Annotation Injection (CVE-2023-5044)";
flow:established,to_server;
http.method;
content:"POST";
http.content_type;
content:"application/json";
http.request_body;
content:"|22|admission.k8s.io/v1|22 2c|";
content:"|22|nginx.ingress.kubernetes.io/permanent-redirect|22 3a|"; fast_pattern;
pcre:"/^\s*?\x22[^\x22]*?(?:\\n|[\x23\x3b])/R";
reference:url,raesene.github.io/blog/2023/10/29/exploiting-CVE-2023-5044/;
reference:cve,2023-5044;
classtype:web-application-attack;
sid:2061120; rev:1;
metadata:affected_product Kubernetes, attack_target Server, tls_state TLSDecrypt, created_at 2025_03_27, cve CVE_2023_5044, deployment Perimeter, deployment Internal, deployment SSLDecrypt, signature_severity Major, tag Exploit, updated_at 2025_03_27, mitre_tactic_id TA0001, mitre_tactic_name Initial_Access, mitre_technique_id T1190, mitre_technique_name Exploit_Public_Facing_Application;
target:dest_ip;
)