JPressProjects / jpress

JPress,一个使用 Java 开发的建站神器,目前已经有 10w+ 网站使用 JPress 进行驱动,其中包括多个政府机构,200+上市公司,中科院、红+字会等。
http://www.jpress.cn
GNU Lesser General Public License v3.0
2.66k stars 1.18k forks source link

jpress has an arbitrary file read vulnerability #189

Open microvorld opened 4 weeks ago

microvorld commented 4 weeks ago

Affected version

≤Jpress v5.1.1

Vendor

https://github.com/JPressProjects/jpress

vulnerability File

jfinal-5.1.9.jar

Description

Enter the background at http://127.0.0.1:8080/admin/login. In System Management → Template → Edit Module, select to edit index.html, add a line of code in the file, and click Update File.

#include("../../../../../../../../../Windows/win.ini")

image

Then visit the homepage, and you can see the content of the local c:\Windows\win.ini file.

image

Modify the code to ../../WEB-INF/classes/jboot.properties, and we can read the local database configuration file.

image

image