Hi @ll,  
on September 29, 2019, John Page reported a remote code execution  
with escalation of privilege in TrendMicro's Anti-Threat Toolkit  
to its vendor.  
TrendMicro assigned CVE-2019-9491 to this vulnerability and told  
the reporter, his dog and the world on October 18, 2019, that they  
had fixed the vulnerable product.  
See <>,  
<> and  
TrendMicro's claim was but wrong, the vulnerability was NOT FIXED!  
The files attk_ScanCleanOffline_gui_x86.exe, attk_collector_cli_x86.exe,  
attk_ScanCleanOffline_gui_x64.exe and attk_collector_cli_x64.exe  
offered on <> were STILL vulnerable,  
as was their payload!  
Vulnerability #1:  
On a fully patched Windows 7 SP1, the executable self-extractors  
attk_ScanCleanOffline_gui_x86.exe, attk_collector_cli_x86.exe,  
attk_ScanCleanOffline_gui_x64.exe and attk_collector_cli_x64.exe  
loaded and executed at least the following DLLs from their  
"application directory", typically the user's "Downloads" folder  
%USERPROFILE%\Downloads\, instead from Windows' "system directory"  
On other versions of Windows this list varied, but some DLLs were  
ALWAYS loaded from the "application directory"!  
This BEGINNER's error is well-known and well-documented since MORE  
than 20 years:  
see <>,  
Demonstration/Proof of concept:  
Follow <>,  
build a "minefield" of forwarder DLLs, then copy attk_*.exe into  
the directory where you built the DLLs and execute it: enjoy the  
multiple message boxes displayed from the forwarder DLLs.  
Vulnerability #2:  
On all versions of Windows, the batch script batCollector.bat,  
unpacked from the executable extractors, which controls execution  
of the TrendMicro AntiThreat Toolkit itself, executed  
(see the environment variable PATHEXT for the extensions) from  
the directory  
"TrendMicro AntiThreat Toolkit\HC_ATTK"  
where the batch script batCollector.bat lives:  
--- batCollector.bat ---  
| @echo off  
| setlocal disableDelayedExpansion  
| set wd=%~dp0  
| cd /d %wd%  
| for /f "tokens=*" %%a in ('findstr BatCollector= ..\..\config.ini') do (  
| REG EXPORT ...  
findstr and REG are called in the script without file extension and  
without path (although BOTH are well-known), so CMD.exe runs and from its "current working directory"  
"TrendMicro AntiThreat Toolkit\HC_ATTK"  
The missing path and extension are BEGINNER'S error #2.  
Again see <>,  
and <>  
Vulnerability #3:  
The executable self-extractors fail to restrict (at least write)  
access to this directory for UNPRIVILEGED users, i.e. allow write  
access only for members of the "Administrators" group: this is  
BEGINNER'S error #3.  
In standard installations of Windows, where the qUACkery-controlled  
user account created during setup is used, this UNPROTECTED directory  
is therefore writable by the UNPRIVILEGED user who can place a rogue and there ... and gains administrative  
Additionally an UNPRIVILEGED attacker can add arbitrary command  
lines to the UNPROTECTED batch script batCollector.bat between its  
creation and its execution, or replace it completely.  
Again see <>,  
and <>,  
plus <>,  
and <>  
stay tuned, and FAR AWAY from so-called security products:  
their "security" is typically worse than that of the products  
they claim to protect!  
Stefan Kanthak  
PS: the TrendMicro Anti-Threat Toolkit inspected in October 2019  
was built from scrap: the developers used VisualStudio 2008  
(end-of-life since two years), linked against an outdated and  
vulnerable LIBCMT, shipped an outdated and vulnerable cURL 7.48  
plus an outdated and vulnerable libeay32.dll (OpenSSL  
1.0.1 is end-of-life since more than 3 years; the last version  
This POOR (really: TOTAL lack of proper) software engineering  
alone disqualifies this vendor and its "security" products!  
JFTR: "they'll never come back" (really: developers SELDOM learn)  
2019-10-23 sent reports for both vulnerabilities to vendor  
2019-10-25 vendor acknowledged receipt  
2020-01-07 CVE-2019-20358 assigned by vendor  
2020-01-29 updated advisory published by vendor