alert http $EXTERNAL_NET any -> $HOME_NET any (
msg:"ET WEB_SPECIFIC_APPS Cisco Prime Infrastruture RCE - CVE-2019-1821";
http.method;
content:"POST";
http.uri;
content:"/servlet/UploadServlet"; depth:22; endswith; fast_pattern;
http.header;
content:"Destination-Dir|3a 20|tftpRoot";
http.request_body;
content:"String(|22|/bin/";
content:"new Socket(|22|"; distance:0;
content:"Runtime.getRuntime().exec("; distance:0;
http.content_type;
content:"multipart/form-data|3b|"; startswith;
http.header_names;
content:!"Referer";
reference:url,tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-20190515-pi-rce;
classtype:web-application-attack;
sid:2027368; rev:4;
metadata:attack_target Server, created_at 2019_05_20, cve CVE_2019_1821, deployment Perimeter, deployment Datacenter, performance_impact Low, signature_severity Major, updated_at 2020_09_17;
)