Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jpress has an arbitrary file read vulnerability #189

Open
microvorld opened this issue Aug 22, 2024 · 0 comments
Open

jpress has an arbitrary file read vulnerability #189

microvorld opened this issue Aug 22, 2024 · 0 comments

Comments

@microvorld
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant