bg5sbk / MiniCMS

至简的个人网站内容管理系统
http://1234n.com/?projects/minicms/
227 stars 61 forks source link

MiniCMS install.php installation files lead to storage xss vulnerabilities #50

Open czheisenberg opened 5 months ago

czheisenberg commented 5 months ago

Preparatory work:

Download the install.php file from Releases.

Image Image

Download the CMS source code and install.php installation files. Copy the edited install.php file to the source code root.

Contents of the original install.php file: Ctrl + F search version Image

Change 1.11 to the xss code:

Image

Copy to the root directory after modification.

Image

Visit install.php

Image

Click the "开始升级" button

Image

Clicking the "开始体验" button and jumping to the background page will trigger the xss code Any page in the background will trigger a vulnerability. Image The location where the xss code is stored is:

mc-admin/mc-conf.php Image As shown in the figure: our xss code is saved in version