Awesome-POC/Web应用漏洞/Coremail 路径遍历与文件上传漏洞.md
2022-12-06 17:17:54 +08:00

11 lines
683 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.

# Coremail 路径遍历与文件上传漏洞
## 漏洞描述
监测到Coremail论客邮件系统存在路径遍历与文件上传漏洞攻击者可利用/lunkr/cache/;/;/../../manager/html 设置参数X-Forwarded-For: 127.0.0.1.Coremail 的 nginx 配置文件中,未针对/lunkr/cache 路径向上解析的时候做 X-Forwarded-For 字段的限制,从而可以利用该接口实现配合利用 nginx 不解析,但 tomcat 解析的差异特性,实现绕过 tomcat manager 的本地 ip 限制。
## 漏洞复现
通过/lunkr/cache/;/;/../../manager/html进入Tomcat控制台部署war包进行getshell。
![image-20221206101942381](images/image-20221206101942381.png)