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

Bug: V5.6 Cross Site Scripting Vulnerability #7

Closed
lolipop1234 opened this issue Sep 4, 2019 · 1 comment
Closed

Bug: V5.6 Cross Site Scripting Vulnerability #7

lolipop1234 opened this issue Sep 4, 2019 · 1 comment

Comments

@lolipop1234
Copy link

lolipop1234 commented Sep 4, 2019

There is an xss vulnerability in your latest version of the v5.6

No security check in page phpmywind/admin/infolist_add.php
image

When I add a new article, I use "<script>alert(/xss/)</script>" as the title
image
then back to the PHPMYWIND/admin/infolist.php
image
background page executed a javascript script

javascript also executed on mainpage
image

Fix:

Strictly verify user input, you must perform strict checks and html escape escaping on all input scripts, iframes, etc. The input here is not only the input interface that the user can directly interact with, but also the variables in the HTTP request in the HTTP request, the variables in the HTTP request header, and so on.
Verify the data type and verify its format, length, scope, and content.
Not only need to be verified on the client side but also on the server side.
The output data should also be checked. The values in the database may be output in multiple places on a large website. Even if the input is coded, the security check should be performed at the output points.

@duyueping
Copy link
Collaborator

Thank you

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

2 participants