alert http any any -> $HOME_NET any (
msg:"ET WEB_SPECIFIC_APPS Octoprint File Upload File Name Command Injection Attempt (CVE-2025-58180)";
flow:established,to_server;
http.method;
content:"POST";
http.uri; bsize:16;
content:"/api/files/local"; fast_pattern;
http.request_body;
content:"name|3d 22|file|22 3b 20|filename|3d 22|";
pcre:"/^[^\x22\x0d\x0a]*?(?:(?:\x3b|%3[Bb])|(?:\x0a|%0[Aa])|(?:\x60|%60)|(?:\x7c|%7[Cc])|(?:\x24|%24))+/R";
reference:url,www.exploit-db.com/exploits/52476;
reference:cve,2025-58180;
classtype:attempted-admin;
sid:2067295; rev:2;
metadata:affected_product Octoprint, attack_target Networking_Equipment, tls_state plaintext, created_at 2026_02_04, cve CVE_2025_58180, deployment Perimeter, deployment Internal, performance_impact Low, confidence High, signature_severity Major, tag Exploit, updated_at 2026_06_15, mitre_tactic_id TA0001, mitre_tactic_name Initial_Access, mitre_technique_id T1190, mitre_technique_name Exploit_Public_Facing_Application;
target:dest_ip;
)