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.

Vulnerabilities / Threats

5/14/2020
05:10 PM
Connect Directly
Twitter
LinkedIn
RSS
E-Mail
100%
0%

Microsoft Patch for Reverse RDP Flaw Leaves Room for Other Attacks

Fix released in February is Microsoft's second pass at fully addressing issue that Check Point first disclosed at Black Hat USA last summer.

Turns out a patch Microsoft issued in February to address a previous — but improper — fix released last August for a security flaw in its Remote Desktop Protocol (RDP) doesn't fully do the job either.

As a result, attackers can still take advantage of the original underlying issue to access sensitive information on a system, modify critical files, steal password files, expose source code of Web applications, and carry out other malicious tasks.

Check Point, which uncovered the original vulnerability and also the problems in the two patches that Microsoft issued to address the flaw, on Thursday urged software developers and security researchers to be aware of the issue and ensure their own software projects are manually patched.

According to the company, while the February patch addresses the vulnerability in the RDP client itself, it does not fix the problem in an associated application programming interface (API) that triggered the problem in the first place. The security vendor said it had contacted Microsoft about the problem after analyzing the company's second patch, but it had not received any comment from the company.

"IT staff in large enterprises that use Windows should install Microsoft's February Patch (CVE 2020-0655) to make sure their RDP client is protected," Check Point said in a statement. Developers, meanwhile, need to understand that all programs that include the API function in question are still vulnerable to a path-traversal attack.

"We want developers to be aware of this threat, so that they could go over their programs and manually apply a patch against it," the security vendor noted.

The original bugs in RDP that Check Point first disclosed at Black Hat USA 2019 basically gave attackers a way to carry out what the security vendor described as a reverse RDP attack. RDP essentially gives Windows administrators and even individual users a way to connect to and control another Windows computer remotely for various legitimate and often used reasons. In a typical scenario, an RDP client system would connect with and control an RDP server. Check Point found the vulnerabilities could be used to reverse the flow so the RDP server controlled the RDP client, setting the scene for all sorts of mayhem.

If at First You Don't Succeed …
When Microsoft issued a patch for the issue (CVE-2019-0887), Check Point researchers found they could bypass the fix and re-create the reverse RDP situation all over again. This prompted Microsoft to issue a second fix for the problem as part of the company's monthly patch updates in February. Check Point discovered that while the second patch worked as advertised in mitigating the RDP reversal issue, it still left open the possibility for attackers to "traverse" the directories on a victim system and to access, read, and manipulate files to which they shouldn't normally have access.

The issue had to do with an API that Microsoft recommends, ironically enough, as a best practice for preventing path traversal, according to Check Point.

"In secure coding practices, when encountering a path to a file given by the user, the developer needs to make sure that path … is represented in a single way in order to validate that it refers to an allowed location," says Omri Herscovici, vulnerability research team leader at Check Point.

Windows developers do that by using a Microsoft recommended API called "PathCchCanonicalize." "We discovered that the Windows function "PathCchCanonicalize" can be easily bypassed when an attacker is using '/' instead of '\' when writing a path," Herscovici says.

Microsoft's failure to address this issue is what now gives threat actors an avenue for carrying out path-traversal attacks.

"In CVE-2019-0887, Microsoft tried to solve the path traversal with PathCchCanonicalize without realizing it can be bypassed," Herscovici notes. "In CVE-2020-0655, Microsoft addressed the '\' issue independently in the RDP handling code, without fixing the PathCchCanonicalize function."

Microsoft has so far not offered any reason why it hasn't fixed this issue though Check Point notified the vendor of it, he says.

In an emailed statement, a Microsoft spokeswoman said the update the company released in February resolved the issue in Remote Desktop Services. "We are looking into additional claims and will take appropriate action as needed to help keep customers protected," the statement said.

Related Content:

 

A listing of free products and services compiled for Dark Reading by Omdia analysts to help meet the challenges of COVID-19. 

Jai Vijayan is a seasoned technology reporter with over 20 years of experience in IT trade journalism. He was most recently a Senior Editor at Computerworld, where he covered information security and data privacy issues for the publication. Over the course of his 20-year ... View Full Bio
 

Recommended Reading:

Comment  | 
Print  | 
More Insights
Comments
Newest First  |  Oldest First  |  Threaded View
SchemaCzar
50%
50%
SchemaCzar,
User Rank: Strategist
5/15/2020 | 11:39:28 AM
Unbelievable, unacceptable to have so sloppy a security patch
To have a security patch done so sloppily by programmers who should be security-aware and who should know the operating system thoroughly is simply unacceptable. Is there anything to Microsoft's efforts other than "security theatre"?
COVID-19: Latest Security News & Commentary
Dark Reading Staff 6/3/2020
Stay-at-Home Orders Coincide With Massive DNS Surge
Robert Lemos, Contributing Writer,  5/27/2020
Register for Dark Reading Newsletters
White Papers
Video
Cartoon Contest
Current Issue
How Cybersecurity Incident Response Programs Work (and Why Some Don't)
This Tech Digest takes a look at the vital role cybersecurity incident response (IR) plays in managing cyber-risk within organizations. Download the Tech Digest today to find out how well-planned IR programs can detect intrusions, contain breaches, and help an organization restore normal operations.
Flash Poll
Twitter Feed
Dark Reading - Bug Report
Bug Report
Enterprise Vulnerabilities
From DHS/US-CERT's National Vulnerability Database
CVE-2020-4035
PUBLISHED: 2020-06-03
In WatermelonDB (NPM package "@nozbe/watermelondb") before versions 0.15.1 and 0.16.2, a maliciously crafted record ID can exploit a SQL Injection vulnerability in iOS adapter implementation and cause the app to delete all or selected records from the database, generally causing the app to...
CVE-2020-13783
PUBLISHED: 2020-06-03
D-Link DIR-865L Ax 1.20B01 Beta devices have Cleartext Storage of Sensitive Information.
CVE-2020-13784
PUBLISHED: 2020-06-03
D-Link DIR-865L Ax 1.20B01 Beta devices have a predictable seed in a Pseudo-Random Number Generator.
CVE-2020-13785
PUBLISHED: 2020-06-03
D-Link DIR-865L Ax 1.20B01 Beta devices have Inadequate Encryption Strength.
CVE-2020-13786
PUBLISHED: 2020-06-03
D-Link DIR-865L Ax 1.20B01 Beta devices allow CSRF.