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

A stored XSS vulnerability in WUZHI CMS v4.1.0 #180

Open
loong716 opened this issue Jul 9, 2019 · 0 comments
Open

A stored XSS vulnerability in WUZHI CMS v4.1.0 #180

loong716 opened this issue Jul 9, 2019 · 0 comments

Comments

@loong716
Copy link

loong716 commented Jul 9, 2019

This XSS vulnerability was found in the system bulletin(系统公告) in the background.

payload:

</textarea><details open="" ontoggle=alert(document.cookie)><textarea>

First we can write payload with a low-privileged user named 'test'.As an attacker, you can change a title to prompt an administrator to click on this page.

alt

Then log in to the admin account and click the change(修改) button to pop up the admin's cookie.

alt

alt

The reason for the vulnerability is that php code uses blacklists to filter JS code, resulting in poor filtering.

This method can be used to steal admin's cookie.

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