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

There is an xss vulnerability of HTTP header injection storage in jfinal_cms V5.1.0 #34

Open
qq87234770 opened this issue Apr 14, 2022 · 0 comments

Comments

@qq87234770
Copy link

qq87234770 commented Apr 14, 2022

There is a storage XSS vulnerability in the guest TOP10 of jfinal_cms. TOP10 will display the ip of the user, but it can be modified by X-Forwarded-For, where the attacker can insert malicious XSS code. When the administrator logs in, the malicious XSS code triggers successfully.

payload: X-Forwarded-For: 192.168.1.1<script>alert ("xss")</script>

In the background login interface, enter the account password randomly, fill in the correct verification code, and then submit and grab the package.
图片

The contents of the grab bag are as follows:
图片

Add an X-Forwarded-For here and enter paylaod (192.168.1.1<script>alert ("xss")</script>)
图片

Then log in with the background administrator account to trigger the storage XSS.
图片

Safety advice:
Strictly filter the user's input
Strict control of page rendering content

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