VUL_Tomcat_Catalina_CVE_2020_1938
Description
Detects a possibly active and vulnerable Tomcat configuration that includes an accessible and unprotected AJP connector (you can ignore backup files or files that are not actively used)
Query · yara
strings:
$h1 = "<?xml "
$a1 = "<Service name=\"Catalina\">" ascii
$v1 = "<Connector port=\"8009\" protocol=\"AJP/1.3\" redirectPort=\"8443\"/>" ascii
$fp1 = "<!--<Connector port=\"8009\" protocol=\"AJP/1.3\" redirectPort=\"8443\"" ascii
$fp2 = " secret=\"" ascii
$fp3 = " requiredSecret=\"" ascii
condition:
$h1 at 0 and filesize <= 300KB and
$a1 and $v1
and not 1 of ($fp*)