-
Notifications
You must be signed in to change notification settings - Fork 50
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
An Unauthorized Remote Code Execution vulnerability exists in AtomCMS v2.0. #256
Comments
Thank you for taking the time to write this Issue for the project. It's very helpful for new users to understand some of the common problems they can face while developing a website on any platform. This is a very dangerous vulnerability, thanks for bringing it up. I have found this reference which I believe has good information on how to deal with uploads on PHP, but it's a very difficult topic so I'll recommend some more digging. Remember that Atom.CMS is not meant to be used in production, and it should be used solely for learning PHP in a controlled environment. I'm not the author or maintainer of this project, just someone who learned a lot from the YouTube series and is willing to help. |
The branch "AtomCMS-2.1" contains security fixes. |
@v-dumitrescu Could you please provide the patch submission link for this vulnerability? Thank you very much |
github.com/thedigicraft/Atom.CMS/blob/AtomCMS-2.1/admin/uploads.php |
An Unauthorized attacker can upload arbitrary file in the /admin/uploads.php and executing it on the server reaching the RCE.
poc
you can find the filename in response. `1645019130555.php` then you get a shell in `/uploads/1645019130555.php`
analysis
file /admin/uploads.php line 10 without any protect for upload files extension
Repair suggestions
set some filter about files extension
The text was updated successfully, but these errors were encountered: