NetScaler ADC / Gateway Vulnerability Fix Coming; In The Meantime Do This

NetScaler ADC / Gateway Vulnerability Fix Coming; In The Meantime Do This

By Timothy Karl
Posted in Infrastructure, Security
On January 15, 2020

On December 17, 2019, Citrix released a critical advisory regarding a vulnerability that allows for remote code execution: CVE-2019-19781 - Vulnerability in Citrix Application Delivery Controller and Citrix Gateway (https://support.citrix.com/article/CTX267027). The vulnerability exploits a directory traversal attack on the /vpn directory on the NetScaler. It allows for remote execution of code under the user nobody.

Gotham previously alerted customers to this vulnerability. Citrix plans to release a permanent firmware fix for the issue on January 20, 2020. (https://www.citrix.com/blogs/2020/01/11/citrix-provides-update-on-citrix-adc-citrix-gateway-vulnerability/)

In the meantime, working exploits have been found and Gotham has been helping customers mitigate the situation. We're advising NetScaler admins to do the following:

  1. To prevent the vulnerability from being exploited, implement this solution from Citrix:

https://support.citrix.com/article/CTX267679

  1. In addition to implementing the prevention steps, the following tests should be performed on the NetScaler to determine if it was comprised:

Review File Locations:

There are a few locations where back doors may initially be placed on the NetScaler after it is exploited. Search the following directories on the NetScaler for unusual files:

  • /netscaler/portal/templates
  • /var/tmp/netscaler/portal/template

Check for any Cron Jobs:

Run the following command on the NetScaler to determine if any cron jobs for nobody are running:

# crontab -l -u nobody

Check Running Processes:

Run the following command on the NetScaler to determine if any commands are being executed for nobody:

# Ps aux | grep nobody

Monitor Firewall Traffic:

Check your firewall for any communication to these public IPs:

  • 62.113.112.33
  • 185.178.45.221
  • 193.187.174.104
  • 217.12.221.12

If you need assistance, please contact us via email at support@gothamtg.com.

Timothy Karl

Timothy Karl

Tim has over 10 years’ experience in the design, development, and deployment of Windows infrastructure technologies. His experience also includes the high-level design of complex thin client and server-based computing environments. He is highly fluent in all aspects of Windows and Citrix infrastructure technologies.