Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any file is deleted in DedeCMS V5.7.114 #13

Open
QianGeG opened this issue Apr 24, 2024 · 0 comments
Open

Any file is deleted in DedeCMS V5.7.114 #13

QianGeG opened this issue Apr 24, 2024 · 0 comments

Comments

@QianGeG
Copy link
Owner

QianGeG commented Apr 24, 2024

Official website: https://www.dedecms.com/
Version: DedeCMS V5.7.114
DedeCMS-V5.7.114-UTF8.zip

Start at line 6 of the mail_file_manage.php file

This period of regular filter preg_replace (" # ([.] + [/] +) * # ", "", $filename).. / But it can be used in windows ..\ and can be used in linux .. Perform an operation to cause any file to be deleted

Demo:
Create a flag on disk d, and then perform the deletion test
image-20240424121038247

Then access the following address to successfully delete any file
http://ddcms.asd/dede/mail_file_manage.php?fmdo=del&filename=..\..\..\..\..\flag&activepath=%2Fdata%2F123
Snipaste_2024-04-24_12-12-27

Snipaste_2024-04-24_12-13-31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant