漏洞描述

​ Lanproxy是一个将局域网个人电脑、服务器代理到公网的内网穿透工具,支持tcp流量转发,可支持任何tcp上层协议(访问内网网站、本地支付接口调试、ssh访问、远程桌面等等)本次Lanproxy 路径遍历漏洞 (CVE-2021-3019)通过../绕过读取任意文件。该漏洞允许目录遍历读取/../conf/config.properties来获取到内部网连接的凭据

漏洞特征

1
header= "Server: LPS-0.1"

环境搭建

https://file.nioee.com/d/2e81550ebdbd416c933f/

只下载服务端proxy-server-0.1.zip

配置文件地址

1
../conf/config.properties

启动服务

1
2
../bin/startup.bat
../bin/startup.sh

漏洞利用

访问服务页面管理地址

1
http://127.0.0.1:8090

当前页面抓包,访问路径../conf/config.properties(直接访问会报404错)

Lanproxy目录遍历漏洞.png

POC下载

https://github.com/FanqXu/CVE-2021-3019

防御措施

下载官方补丁

https://github.com/ffay/lanproxy/commits/master

https://github.com/hailinz/lanproxy