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.

Network Security

1/28/2020
12:15 PM
Larry Loeb
Larry Loeb
Larry Loeb
50%
50%

RDG Gets Fooled by UDP

Security researchers have found that the implementation in Remote Desktop Gateway of string segmentation lays it open to memory corruption vulnerabilities.

Remote Desktop Gateway (RDG) (which has also been called Terminal Services Gateway) is a Windows Server component that provides address routing for Remote Desktop (RDP). Users connect and authenticate to the gateway instead of directly to an RDP server. RDG will forward remote RDP traffic to an address that is specified by the user. The idea here is that the exposed-to-the-Internet RDG provides much less of an attack surface than the RDP server itself.

But security researchers have found that the implementation in RDG of string segmentation lays it open to memory corruption vulnerabilities. This means that a remote, unauthenticated attacker can execute arbitrary code by sending specially crafted requests that will invoke segmentation in a particular way.

The vulnerabilities affect Windows Server 2012, 2016 and 2019. MSFT has since patched them, but -- as always -- the patches may not end up universally applied.

Marcus Hutchins took a look at the evolving situation from a technical standpoint in the Kryptos Logic blog.

While RDG supports three different protocols (HTTP, HTTPS, and UDP), he saw that only one protocol had been changed by the MSFT patches. It was UDP, and CVE-2020-0609 was involved.

The RDG UDP protocol is there to allow for large messages to be split across multiple separate UDP packets. They have to be reassembled when they arrive at the target, since they may arrive out of order. It's in the re-assembler that RDG can get fooled and where the vulnerability lives.

Hutchins says: "This vulnerability is much more flexible than a typical linear heap overflow. It allows us to not only control the size of the data written, but the offset to where it's written. With the extra control, it's easier to do more precise writes, avoiding unnecessarily data corruption."

A rifle, not a cannon then.

Combined with the handling of arrays in the packet handler (CVE-2020-0610), an attacker will find fertile ground for exploits in the unpatched server.

Hutchins decided to help the vulnerable by developing and publishing the source code for an RDG scanner. This open-sourced scanner will look for vulnerable RDG gateways on a network and report back.

Mitigating the threat of an unpatched server can be simpler and more direct than might be apparent. Since only UDP is involved in both of the vulnerabilities, stopping the UDP traffic by disabling it should stop the vulnerability's effect as well.

Alternatively, firewalling the UDP port (usually port 3391) may serve the same mitigation function.

— 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
COVID-19: Latest Security News & Commentary
Dark Reading Staff 7/9/2020
Omdia Research Launches Page on Dark Reading
Tim Wilson, Editor in Chief, Dark Reading 7/9/2020
Mobile App Fraud Jumped in Q1 as Attackers Pivot from Browsers
Jai Vijayan, Contributing Writer,  7/10/2020
Register for Dark Reading Newsletters
White Papers
Video
Cartoon
Current Issue
Special Report: Computing's New Normal, a Dark Reading Perspective
This special report examines how IT security organizations have adapted to the "new normal" of computing and what the long-term effects will be. Read it and get a unique set of perspectives on issues ranging from new threats & vulnerabilities as a result of remote working to how enterprise security strategy will be affected long term.
Flash Poll
The Threat from the Internetand What Your Organization Can Do About It
The Threat from the Internetand What Your Organization Can Do About It
This report describes some of the latest attacks and threats emanating from the Internet, as well as advice and tips on how your organization can mitigate those threats before they affect your business. Download it today!
Twitter Feed
Dark Reading - Bug Report
Bug Report
Enterprise Vulnerabilities
From DHS/US-CERT's National Vulnerability Database
CVE-2020-15105
PUBLISHED: 2020-07-10
Django Two-Factor Authentication before 1.12, stores the user's password in clear text in the user session (base64-encoded). The password is stored in the session when the user submits their username and password, and is removed once they complete authentication by entering a two-factor authenticati...
CVE-2020-11061
PUBLISHED: 2020-07-10
In Bareos Director less than or equal to 16.2.10, 17.2.9, 18.2.8, and 19.2.7, a heap overflow allows a malicious client to corrupt the director's memory via oversized digest strings sent during initialization of a verify job. Disabling verify jobs mitigates the problem. This issue is also patched in...
CVE-2020-4042
PUBLISHED: 2020-07-10
Bareos before version 19.2.8 and earlier allows a malicious client to communicate with the director without knowledge of the shared secret if the director allows client initiated connection and connects to the client itself. The malicious client can replay the Bareos director's cram-md5 challenge to...
CVE-2020-11081
PUBLISHED: 2020-07-10
osquery before version 4.4.0 enables a priviledge escalation vulnerability. If a Window system is configured with a PATH that contains a user-writable directory then a local user may write a zlib1.dll DLL, which osquery will attempt to load. Since osquery runs with elevated privileges this enables l...
CVE-2020-6114
PUBLISHED: 2020-07-10
An exploitable SQL injection vulnerability exists in the Admin Reports functionality of Glacies IceHRM v26.6.0.OS (Commit bb274de1751ffb9d09482fd2538f9950a94c510a) . A specially crafted HTTP request can cause SQL injection. An attacker can make an authenticated HTTP request to trigger this vulnerabi...