Skip to content

jpress has an arbitrary file read vulnerability #189

@microvorld

Description

@microvorld

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions