luci/themes/luci-theme-openwrt-2020
Hauke Mehrtens 5cbd79d7e3 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: Hauke Mehrtens <hauke@hauke-m.de>
2021-06-09 01:33:44 +02:00
..
htdocs/luci-static Merge pull request #4985 from j123b567/feature_luci-theme-openwrt-2020_mainmenu-submenu-tweek 2021-06-02 08:21:20 +02:00
luasrc/view/themes/openwrt2020 themes: Call striptags() on hostname to prevent XSS 2021-06-09 01:33:44 +02:00
root/etc/uci-defaults luci-theme-*: set mediaurlbase if it is the first time to be installed 2020-04-03 21:44:28 +08:00
Makefile themes: add new theme OpenWrt 2020 2020-03-26 09:54:40 +01:00