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 a SSRF Vulnerability #190

Open ilikeoyt opened 2 weeks ago

ilikeoyt commented 2 weeks ago

Download the latest version and start it locally

image Replication process: Login to the backend and create a new data source

image Select dynamic data source and add the ip of dnslog.

image After submitting, you can get the id from the queryDatasources route.

image Then use queryOptions route to trigger ssrf.

image image

Code Analysis: Come to src/main/jsrf src/main/java/io/jpress/module/form/controller/admin/_FormDatasourceController.java file The queryDatasources route corresponds to the method that can be used to query the ids

image If the data is dynamic, the method corresponding to the queryOptions route calls the proxy.start method.

image Finally, the doSendRequest method is called to trigger the ssrf.

image