[EU-FOSSA] DLL hijacking of plugins\Config\Config.dll loaded by Notepad++
This commit is contained in:
parent
1a356c2019
commit
c314ed1d8a
@ -320,7 +320,7 @@ bool PluginsManager::loadPluginsV2(const TCHAR* dir)
|
||||
if (hFindFolder != INVALID_HANDLE_VALUE && (foundData.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY))
|
||||
{
|
||||
generic_string foundFileName = foundData.cFileName;
|
||||
if (foundFileName != TEXT(".") && foundFileName != TEXT(".."))
|
||||
if (foundFileName != TEXT(".") && foundFileName != TEXT("..") && generic_stricmp(foundFileName.c_str(), TEXT("Config")) != 0)
|
||||
{
|
||||
generic_string pluginsFullPathFilter = pluginsFolder;
|
||||
PathAppend(pluginsFullPathFilter, foundFileName);
|
||||
@ -343,7 +343,7 @@ bool PluginsManager::loadPluginsV2(const TCHAR* dir)
|
||||
while (::FindNextFile(hFindFolder, &foundData))
|
||||
{
|
||||
generic_string foundFileName2 = foundData.cFileName;
|
||||
if (foundFileName2 != TEXT(".") && foundFileName2 != TEXT(".."))
|
||||
if (foundFileName2 != TEXT(".") && foundFileName2 != TEXT("..") && generic_stricmp(foundFileName2.c_str(), TEXT("Config")) != 0)
|
||||
{
|
||||
generic_string pluginsFullPathFilter2 = pluginsFolder;
|
||||
PathAppend(pluginsFullPathFilter2, foundFileName2);
|
||||
|
Loading…
Reference in New Issue
Block a user