EXPL_XML_Encoded_CVE_2021_40444
Description
Detects possible CVE-2021-40444 with no encoding, HTML/XML entity (and hex notation) encoding, or all 3
Query · yara
strings:
$h1 = "<?xml " ascii wide
$t_xml_r = /Target[\s]{0,20}=[\s]{0,20}\["']([Mm]|&#(109|77|x6d|x4d);)([Hh]|&#(104|72|x68|x48);)([Tt]|&#(116|84|x74|x54);)([Mm]|&#(109|77|x6d|x4d);)([Ll]|&#(108|76|x6c|x4c);)(:|:|:)/
$t_mode_r = /TargetMode[\s]{0,20}=[\s]{0,20}\["']([Ee]|&#(x45|x65|69|101);)([Xx]|&#(x58|x78|88|120);)([Tt]|&#(x74|x54|84|116);)/
condition:
filesize < 500KB and $h1 and all of ($t_*)