Service Tracing allows users to troubleshoot issues with running services and modules by generating debug information. Its parameters are configurable using the Windows registry.
Setting a custom MaxFileSize value (specifies the maximum size for the trace log files generated by Windows Service Tracing) that is smaller than the size of the log file prompts the file to be renamed with a .OLD extension when the service is triggered.
This move operation is performed by NT AUTHORITY\SYSTEM, and can be abused to move a file of our choosing with the help of mount points and symbolic links.
1 - Compile exploit
We can use this exploit for CVE-2020-0668, download it, and open it in Visual Studio within a VM. Building the solution will create the following files: