CMSsite
CMSsite copied to clipboard
profile.php arbitrary file upload vulnerability
-
1.Profile.php does not evaluate the suffix at the upload file, causing any file upload vulnerability
-
test.php
<?php
phpinfo();
?>
- Upload test.php at user management; successfully execute code
http://localhost/CMSsite-master/img/test.php
Thanks for the review, kindly send a corresponding fix or PR to this issue.
You should judge the uploaded file suffix before the move_uploaded_file function.