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

I found upload vulnerability admin/upload_file_do.php getshell at version5.6 #5

Open
liao10086 opened this issue Apr 2, 2019 · 0 comments

Comments

@liao10086
Copy link

1.login as admin
2.visit website setting
upload type add PHP (space)
image
because Windows will remove the space so by pass suffix check
3.upload a php file like name info.PHP
image
filename add a space
you can see upload success
image

4.visit the link
you can see php code was execute
image

becaue at data/httpfile/upload.class.php
image
you do not check the input filename

so trim(filename) can help you

author by [email protected]

version 5.6

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