Dark Reading is part of the Informa Tech Division of Informa PLC

This site is operated by a business or businesses owned by Informa PLC and all copyright resides with them.Informa PLC's registered office is 5 Howick Place, London SW1P 1WG. Registered in England and Wales. Number 8860726.

ABTV

8/16/2019
01:25 PM
Larry Loeb
Larry Loeb
Larry Loeb
50%
50%

CTF Protocol Serves as a Low-Level Way to Take Over Windows Machines

There is a protocol in Windows that has been around since the days of Windows XP, which has been found to be insecure.

There is a protocol in Windows that has been around since the days of Windows XP, which has been found to be insecure.

Tavis Ormandy, a security researcher with Google's Project Zero security team, was the one that first notified Microsoft about the problems with it. He published a blog about it this week, which went public after 90 days for the responsible disclosure period.

He found messages between windows in a session were being handled by "CTF", which is buried as part of the Windows Text Services Framework. TSF also manages things like input methods, keyboard layouts, text processing and the like.

Ormandy put the intended function this way: "When users start an app, Windows also starts a CTF client for that app. The CTF client receives instructions from a CTF server about the OS system language and the keyboard input methods."

He goes on to say, "If the OS input method changes from one language to another, then the CTF server notifies all CTF clients, who then change the language in each Windows app accordingly, and in real-time."

So, CTF can change the rails the program is running on in real time. But Ormandy found there was no access control in CTF.

Any application, any user -- even a sandboxed process -- can connect to any CTF session. Clients are expected to pass along all of their thread data, but there is no authentication involved and an attacker can simply lie about it.

A system resident attacker that gained access to the system by some other means could connect to another user's active session via CTF and take it over. They could send messages to the CTF client that will be interpreted by it as coming from Windows. If an app has a high level of privileges, the attacker may be able to take full control over a victim's computer.

You don't have to take Ormandy's word alone on this. He recorded a demo to show what he was talking about.

Microsoft admitted the problem after being told about it by Ormandy, assigning CVE-2019-1162 to the privilege escalation concept.

MSFT even made some patches in the most recent Patch Tuesday that were specifically directed at it. But those patches alone are not going to fix everything that could arise from CTF misuse.

The protocol is used as low-level glue for Windows, and is embedded deeply into it. As Ormandy says, "CTF is vast and complex. The CTF system was most likely designed for LPC in Windows NT and bolted onto ALPC when it became available in Vista and later. The code is clearly dated with many legacy design decisions."

Dealing with all the second-order effects of CTF is not going to be easy. MSFT may be able to patch known problems as they did this week, but attackers will now have a new way to spread their malware.

— Larry Loeb has written for many of the last century's major "dead tree" computer magazines, having been, among other things, a consulting editor for BYTE magazine and senior editor for the launch of WebWeek.

Comment  | 
Print  | 
More Insights
Comments
Newest First  |  Oldest First  |  Threaded View
Cloud Security Threats for 2021
Or Azarzar, CTO & Co-Founder of Lightspin,  12/3/2020
Why Vulnerable Code Is Shipped Knowingly
Chris Eng, Chief Research Officer, Veracode,  11/30/2020
Register for Dark Reading Newsletters
White Papers
Video
Cartoon Contest
Write a Caption, Win an Amazon Gift Card! Click Here
Latest Comment: This comment is waiting for review by our moderators.
Current Issue
2021 Top Enterprise IT Trends
We've identified the key trends that are poised to impact the IT landscape in 2021. Find out why they're important and how they will affect you today!
Flash Poll
Assessing Cybersecurity Risk in Todays Enterprises
Assessing Cybersecurity Risk in Todays Enterprises
COVID-19 has created a new IT paradigm in the enterprise and a new level of cybersecurity risk. This report offers a look at how enterprises are assessing and managing cyber-risk under the new normal.
Twitter Feed
Dark Reading - Bug Report
Bug Report
Enterprise Vulnerabilities
From DHS/US-CERT's National Vulnerability Database
CVE-2020-27772
PUBLISHED: 2020-12-04
A flaw was found in ImageMagick in coders/bmp.c. An attacker who submits a crafted file that is processed by ImageMagick could trigger undefined behavior in the form of values outside the range of type `unsigned int`. This would most likely lead to an impact to application availability, but could po...
CVE-2020-27773
PUBLISHED: 2020-12-04
A flaw was found in ImageMagick in MagickCore/gem-private.h. An attacker who submits a crafted file that is processed by ImageMagick could trigger undefined behavior in the form of values outside the range of type `unsigned char` or division by zero. This would most likely lead to an impact to appli...
CVE-2020-28950
PUBLISHED: 2020-12-04
The installer of Kaspersky Anti-Ransomware Tool (KART) prior to KART 4.0 Patch C was vulnerable to a DLL hijacking attack that allowed an attacker to elevate privileges during installation process.
CVE-2020-27774
PUBLISHED: 2020-12-04
A flaw was found in ImageMagick in MagickCore/statistic.c. An attacker who submits a crafted file that is processed by ImageMagick could trigger undefined behavior in the form of a too large shift for 64-bit type `ssize_t`. This would most likely lead to an impact to application availability, but co...
CVE-2020-27775
PUBLISHED: 2020-12-04
A flaw was found in ImageMagick in MagickCore/quantum.h. An attacker who submits a crafted file that is processed by ImageMagick could trigger undefined behavior in the form of values outside the range of type unsigned char. This would most likely lead to an impact to application availability, but c...