A newly found bug in an legacy Windows protocol can lead to real-world privilege-escalation attacks. According to a Threat Post article:
āThe issue is with an obscure piece of functionality called CTF which is part of the Windows Text Services Framework,ā explained Richard Gold, head of security engineering at Digital Shadows, speaking to Threatpost. āPrograms running on a Windows machine connect to this CTF service, which manages things like input methods, keyboard layouts, text processing, etc.ā
As such, it also can be used as a bridge between different windows on a desktop. In his writeup, Ormandy noted inĀ a blog postĀ on Tuesday, āYou might have noticed the āctfmonā service in Task Manager. It is responsible for notifying applications about changes in keyboard layout or input methods. The kernel forces applications to connect to the ctfmon service when they start, and then exchange messages with other clients and receive notifications from the service.ā
In cross-application communication, an authentication mechanism would ordinarily ensure that privileged processes are isolated from unprivileged processes. However, due to a lack of authentication in CTC, an unprivileged program running in one window can use it to connect to a high-privileged program in another, spawning high-privileged processes.
āThese various windows can run with different privilege levels, and there should exist some boundaries between the levels,ā explained Dustin Childs, manager with Trend Microās ZDI, in an email to Threatpost. āTavis found a way to communicate between various permissions levels through the CTF protocol, which has existed in Windows for some time.ā
From a technical perspective, the flaw is being exploited via the Input Method Editor (IME), according to Todd Schell, senior product manager of security for Ivanti.
āWhen you log into a system using one of the Asian languages, you are set up by the IME with an input profile with enhanced capabilities,ā he explained. āThis is pretty severe because it bypasses theĀ User Interface Privilege IsolationĀ (UIPI) features of the OS.ā

