alert http any any -> $HOME_NET any (
msg:"ET WEB_SPECIFIC_APPS LG Simple Editor Malicious JSP Disguised as BMP Upload Attempt (CVE-2023-40498)";
flow:established,to_server;
http.method;
content:"POST";
http.uri;
content:"/simpleeditor/imageManager/uploadImage.do"; fast_pattern;
http.request_body;
content:"Content-Disposition|3a 20|form-data|3b 20|name|3d 22|uploadFile|22 3b 20|filename|3d 22|";
content:".bmp|22 0d 0a|"; distance:0; within:40;
content:"Content-Type|3a 20|image/bmp|0d 0a|Content-Transfer-Encoding|3a 20|binary|0d 0a 0d 0a|"; distance:0; within:150;
content:"|3c 25 40|page import|3d 22|java.io."; distance:0; within:60;
reference:url,attackerkb.com/topics/qB3G1ymgSh/cve-2023-40498;
reference:cve,2023-40498;
classtype:attempted-admin;
sid:2049212; rev:2;
metadata:attack_target Web_Server, created_at 2023_11_15, cve CVE_2023_40498, deployment Perimeter, deployment Internal, performance_impact Low, confidence High, signature_severity Major, updated_at 2023_11_16, reviewed_at 2024_10_02;
target:dest_ip;
)