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

XSS spotted #18

Closed
BaronnetNoir opened this issue Apr 12, 2021 · 0 comments
Closed

XSS spotted #18

BaronnetNoir opened this issue Apr 12, 2021 · 0 comments

Comments

@BaronnetNoir
Copy link

Hey to every people who want to use this project, and to creator (great project)

I spotted some XSS on the Data Result, not a big vuln because it's pretty rare to have that type of username, but should be fixed. It happend when the database contains some code that can be executed.

Vulnerability Preview

image

How to fix ?

Simply use htmlspecialchars() or htmlentities() on the result variable $value like below.

xss

This fix is the simplest, i also suggest to block any special characters in the search field.

@ofarukcaki ofarukcaki pinned this issue Apr 12, 2021
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