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 vulnerability #532

Closed
andrevus opened this issue Mar 25, 2021 · 0 comments · Fixed by #535
Closed

XSS vulnerability #532

andrevus opened this issue Mar 25, 2021 · 0 comments · Fixed by #535

Comments

@andrevus
Copy link

Steps to reproduce

  1. Start tileserver-gl
  2. Open url http://localhost:8080/styles/basic-preview/?key=l5uof%27-alert(1)-%27t0shv#0.89/0/0

This issue is connected with #461. I think that this can be fixed used library eg. express-sanitizer, cause encodeURIComponent don't fix this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant