Rapid7 Vulnerability & Exploit Database

Decrypt Citrix NetScaler Config Secrets

Back to Search

Decrypt Citrix NetScaler Config Secrets

Disclosed
05/19/2022
Created
07/16/2022

Description

This module takes a Citrix NetScaler ns.conf configuration file as input and extracts secrets that have been stored with reversible encryption. The module supports legacy NetScaler encryption (RC4) as well as the newer AES-256-ECB and AES-256-CBC encryption types. It is also possible to decrypt secrets protected by the Key Encryption Key (KEK) method, provided the key fragment files F1.key and F2.key are provided.

Author(s)

  • npm <npm@cesium137.io>

Platform

BSD

Development

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':

msf > use auxiliary/admin/citrix/citrix_netscaler_config_decrypt
msf auxiliary(citrix_netscaler_config_decrypt) > show actions
    ...actions...
msf auxiliary(citrix_netscaler_config_decrypt) > set ACTION < action-name >
msf auxiliary(citrix_netscaler_config_decrypt) > show options
    ...show and set options...
msf auxiliary(citrix_netscaler_config_decrypt) > run 

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security

;