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

后台头像管理模块存在任意文件上传getshell #51

Closed
whb5974 opened this issue Mar 27, 2020 · 1 comment
Closed

后台头像管理模块存在任意文件上传getshell #51

whb5974 opened this issue Mar 27, 2020 · 1 comment

Comments

@whb5974
Copy link

whb5974 commented Mar 27, 2020

  1. The administrator will use the beforSave function in the /common/models/AdminUser.php file to modify the avatar.
    This function will call Util's handleModelSingleFileUpload function
    图片
  2. We continue to use the handleModelSingleFileUpload function to find that the function directly calls the upload function without filtering the file name.
    图片
  3. We followed up the saveAs function and found that the temporary file was directly moved to an undetected file name.
    图片
  4. Vulnerability verification
    图片
    图片
    图片
    图片
@liufee
Copy link
Owner

liufee commented Apr 7, 2020

image

@liufee liufee closed this as completed Apr 7, 2020
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

2 participants