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

ZZCMS2021 has a SQL injection vulnerability #1

Open
xunyang1 opened this issue Jan 19, 2022 · 0 comments
Open

ZZCMS2021 has a SQL injection vulnerability #1

xunyang1 opened this issue Jan 19, 2022 · 0 comments

Comments

@xunyang1
Copy link
Owner

xunyang1 commented Jan 19, 2022

ZZCMS2021_sqlinject_1

PoC by rerce&rpsate

ZZCMS the lastest version download page :

http://www.zzcms.net/about/6.html

software link: https://github.com/Boomingjacob/ZZCMS/raw/main/zzcms2021.zip

Environmental requirements

PHP version > = 4.3.0

Mysql version>=4.0.0

vulnerability code:

in file admin/ad_manage.php line20:

微信图片_20220119222533

As shown in the picture above, parameter b is directly assigned to $b.

微信图片_20220119222527

Then, $b is directly spliced into the SQL statement in line 57, which leads to the SQL injection vulnerability.

POC:

  1. First log in to the administrator account
  2. Visit http://ip/admin/ad_manage.php?b=A%27%20%26%26%20sleep(5)%23 and intercept with burp.
  3. You can see that the delay is 5s.
    微信图片_20220119222538
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