Skip to content

There is a file upload vulnerability here: /admin/index.php?mode=content&page=media&action=edit #14

Open
@zhendezuile

Description

Vulnerability file: \functions.php
You can see that the file is uploaded directly without the verification file suffix.
image

Vulnerability to reproduce:
1、First log in to the backend of the website
2、Visit url: http://www.xxx.com/admin/index.php?mode=content&page=media&action=edit&file=de.gif&type=1 .
Then operate as shown below:
image
3、You can see that 1.php is successfully uploaded
image
4、Visit http://www.xxx.com/media/images/1.php and execute the code to get phpinfo information
image

Repair suggestion:
Set the upload whitelist and limit the suffixes of uploaded files to gif, jpg, and png

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions