Local Privilege Escalation via DLL Search-Order Hijacking with Cyber Protection Agent - tibxread.exe utility
The tibxread.exe utility loads a DLL (tcmalloc.dll) by searching directories listed in the PATH environment variable, so a low-privileged user who can write to any PATH folder can place a malicious DLL there. When the utility runs, the malicious DLL executes, allowing privilege escalation.
- Triaged in 7 hours
- Fixed in 10 months
- Paid in 4 days
- Disclosed after 4.0 years
Using the latest version of Cyber Protection Agent (Version 12.5.23130) is possible to perform DLL Search-Order Hijacking. The only requirement is to have modify rights to one folder defined in the PATH system variable, due to the order in which the DLL is loaded.
-Impact: If a local attacker has modifying rights to one of the folders defined in the PATH system variable, will be able to load his malicious DLL when the tibxread.exe starts, allowing a low privileged attacker to perform horizontal and/or vertical privilege escalation.
-How to Reproduce: 1.Download the latest version for the Windows Agent URL: https://mc-beta-cloud.acronis.com/download/u/baas/4.0/12.5.23130/Cyber_Protection_Agent_for_Windows_web.exe
2.Start a procmon utility, from Sysinternal, and monitor "tibxread.exe" As part of my PATH system variables, I have the Python's location, which was installed in the C:\Python27 folder.
After the installation is complete, you can run the following utility "C:\Program Files\BackupClient\BackupAndRecovery\tibxread.exe" executable. Below is an output of the process is which is looking for tcmalloc.dll:
tibxread.exe 1336 CreateFile C:\python27\tcmalloc.dll NAME NOT FOUND
The test was perform on my Windows 10 Pro Version 1909 (OS Build 18363.1016).
I have attached a sample DLL, when loaded this will call C:\attacker\mmg.bat file. You will need to create the c:\attcker folder and you can add in the mmg.bat file any command you want. For validation i usually append in the file "whoami /all >> c:\attacker\who.txt" to confirm the security context in which my code was executed.
Impact
This could potentially allow an authorized low privileged local account to execute arbitrary code in order to perform horizontal and/or vertical privilege escalation.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the application loads a DLL (tcmalloc.dll) without specifying its full path, so Windows searches the PATH directories and can be tricked into loading a malicious DLL from a user-writable folder.
Impact
A low-privileged local attacker could execute arbitrary code and potentially escalate privileges horizontally or vertically.
What the attacker needed
Modify rights to a PATH folder; local access to the machine
How it was found
- Download and install the latest Cyber Protection Agent for Windows.
- Use Process Monitor to monitor the tibxread.exe process.
- Observe that tibxread.exe attempts to load tcmalloc.dll from a folder in the PATH (e.g., C:\Python27).
- Place a malicious DLL named tcmalloc.dll in a writable PATH folder.
- Run tibxread.exe to trigger loading of the malicious DLL.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
When a program needs extra code from a DLL file, Windows looks in several places, including folders listed in the PATH setting. If an attacker can put a fake DLL with the right name in one of those folders, the program will load it and run the attacker's code. This report shows that a backup tool does this, so a normal user could gain higher privileges.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.