alert http any any -> $HOME_NET any (
msg:"ET WEB_SPECIFIC_APPS Adobe Commerce / Magento Pre-Authentication XML Entity Injection (CVE-2024-34102)";
flow:established,to_server;
http.method;
content:"POST";
http.uri;
content:"/rest/"; startswith;
content:"/V1/guest-carts/"; distance:0;
content:"/estimate-shipping-methods"; fast_pattern; endswith;
http.content_type;
content:"application/json";
http.header;
content:"X-Requested-With|3a 20|XMLHttpRequest|0d 0a|";
http.request_body;
content:"|3c 21|DOCTYPE|20|";
content:"|3c 21|ELEMENT|20|"; distance:0;
content:"|3c 21|ENTITY|20 25|"; distance:0;
reference:url,www.assetnote.io/resources/research/why-nested-deserialization-is-harmful-magento-xxe-cve-2024-34102;
reference:cve,2024-34102;
classtype:web-application-attack;
sid:2056207; rev:1;
metadata:affected_product Magento, attack_target Server, tls_state TLSDecrypt, created_at 2024_09_26, cve CVE_2024_34102, deployment Perimeter, deployment Internal, deployment SSLDecrypt, confidence High, signature_severity Major, tag Exploit, tag CISA_KEV, updated_at 2024_09_26, mitre_tactic_id TA0001, mitre_tactic_name Initial_Access, mitre_technique_id T1190, mitre_technique_name Exploit_Public_Facing_Application;
target:dest_ip;
)