mirror of
https://github.com/kiwix/libkiwix.git
synced 2026-10-22 17:15:18 -04:00
use encoded URLs for searchSuggestionHtml
Previously, the seachURL was not encoded. This resulted in an XSS vulnerability, a concept of proof is: start kiwix-serve visit - http://192.168.18.1:8081/"><svg onload="alert(1)"> This would display an alert message. This encodes the searchURL before passing it to searchSuggestionHtml
This commit is contained in:
500 Internal Server Error
Gitea Version: 1.28.0+dev-477-g8b6ad49a5f