1/20/2020
06:00 AM
Larry Loeb
Larry Loeb
Larry Loeb

FireEye Finds Mitigation of CVE-2019-19781 Comes With a Price

One threat actor is taking advantage of the current problems with Citrix ADC/Netscaler for their own advantage.



One threat actor is taking advantage of the current problems with Citrix ADC/Netscaler (CVE-2019-19781) for their own advantage.

FireEye has found evidence of an actor first breaching unmitigated Citrix ADC servers, installing a mitigation patch for CVE-2019-19781 and then deploying a new malware payload they call NOTROBIN. This malware serves as a backdoor into the server and is triggered by a secret password which varies from installation to installation.

FireEye believes that this actor may be quietly collecting access to NetScaler devices for a subsequent campaign.

Breaching happens when the actor issues an HTTP POST request from a Tor exit node to transmit the payload to the vulnerable newbm.pl CGI script.

A one-line BASH script is run that will kill and delete all running instances of netscalerd. This is a common process name that is used for cryptocurrency mining utilities which have been deployed to NetScaler devices.

The script creates a hidden staging directory /tmp/.init, and downloads NOTROBIN to it, as well as enabling the execute permission. It then will install /var/nstmp/.nscache/httpd for persistence via the cron daemon. This is the path to which NOTROBIN will copy itself. Finally, it will manually execute NOTROBIN.\r\nNOTROBIN is a utility written in Go 1.10 and compiled to a 64-bit ELF binary for BSD systems. It periodically scans for and deletes files matching filename patterns and content characteristics. It will look for files with an .xml extension in the directory /netscaler/portal/templates/. This is the directory into which exploits for CVE-2019-19781 write templates containing attacker commands.

The mitigation works by deleting the exploit code found within these templates before it can be invoked. This is the action that stops further exploitation of the CVE-2019-19781 vulnerability. FireEye observed more than a dozen exploitation attempts which were thwarted by NOTROBIN over a period of three days. The application server responded to the attempts with an HTTP 404 ("Not Found") when this other actor attempted to invoke their own payload.

NOTROBIN will spawn a background routine that listens on UDP port 18634 and receives data. In the version that FireEye looked at, it drops the data without inspecting it. That may well change in future versions. It also may be that this action is being used as a mutex, since only a single listener can be active on this port.

However, a NetScaler device listening on UDP port 18634 is a "reliable indicator of compromise" in FireEye's view.

— 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  | 
Email This  | 
Print  | 
RSS
More Insights
Copyright © 2020 UBM Electronics, A UBM company, All rights reserved. Privacy Policy | Terms of Service