Awesome-POC/CMS漏洞/OpenSNS ThemeController.class.php 后台任意文件上传漏洞.md
2023-08-28 15:55:36 +08:00

35 lines
794 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# OpenSNS ThemeController.class.php 后台任意文件上传漏洞
## 漏洞描述
OpenSNS ThemeController.class.php文件中存在文件上传载其中过滤不足导致可以上传至服务器任意文件
## 漏洞影响
```
OpenSNS
```
## 网络测绘
```
icon_hash="1167011145"
```
## 漏洞复现
登录页面如下
![image-20220518154644354](./images/202205181546412.png)
登录后的上传页面`/admin.php?s=/theme/add.html`
![image-20220518154658941](./images/202205181546002.png)
存在漏洞的文件为 `Application/Admin/Model/ThemeController.class.php`
![image-20220518154711821](./images/202205181547904.png)
其中只需要文件后缀为 zip和rar 就会成功上传并解压至当前的 Theme目录中
![image-20220518154728501](./images/202205181547562.png)