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

Zip slip vulnerability in jpress #126

Closed leemos-xx closed 4 years ago

leemos-xx commented 5 years ago

Attacker can upload the specific zip file to the server, witch makes your application vulnerable to path traversal attack and sensitive data exposure.

Vulnerability url: http://localhost:8080/admin/template/install the flaws happened in this place: 1

the zip file like this: 2

On worst cases, this could even result in remote access/code execution when the user is able to execute commands or shell scripts in remote fashion. Using this attack, An attacker could gain access to certain directories/folders in the file system outside the intended/privileged folder and can invoke/overwrite files.