Skip to content
Commit 5cbd79d7 authored by Hauke Mehrtens's avatar Hauke Mehrtens
Browse files

themes: Call striptags() on hostname to prevent XSS



This calls striptags() on the hostname to prevent any XSS over the
hostname. This should fix CVE-2021-33425 as far as I understood it.

If someone adds some Javascript into system.@system[0].hostname it would
have been directly added to the page, this prevents the problem.

This can only be exploited by someone being able to modify the uci
configuration, normally a user with such privileges could also just
modify the webpage.

Signed-off-by: default avatarHauke Mehrtens <hauke@hauke-m.de>
parent da972880
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment