From e453adef2d746de3f3be9bea0b6d78f78d657cc8 Mon Sep 17 00:00:00 2001 From: Axel Guckelsberger Date: Tue, 30 Nov 2021 19:01:27 +0100 Subject: [PATCH] harden output sanitizing in admin area --- CHANGELOG-3.0.md | 2 ++ .../AdminModule/Resources/views/Admin/adminpanel.html.twig | 4 ++-- .../Resources/views/AdminInterface/categories.panel.html.twig | 2 +- .../Resources/views/AdminInterface/categories.tabs.html.twig | 4 ++-- .../Resources/views/AdminInterface/modules.panel.html.twig | 2 +- .../Resources/views/AdminInterface/modules.tabs.html.twig | 2 +- src/system/BlocksModule/Resources/views/Admin/view.html.twig | 4 ++-- 7 files changed, 11 insertions(+), 9 deletions(-) diff --git a/CHANGELOG-3.0.md b/CHANGELOG-3.0.md index be6da6aa73..249b2911e4 100644 --- a/CHANGELOG-3.0.md +++ b/CHANGELOG-3.0.md @@ -8,6 +8,8 @@ - Fixes: - [CoreBundle] More robust autoloader detection. - [CoreBundle] Add `flex-wrap` class to pagination for responsive behaviour ([bs#23504](https://github.com/twbs/bootstrap/issues/23504)). + - [Admin] Sanitize extension title in admin panel. + - [Blocks] Sanitize block title and description in admin list view. - [Blocks] Strip script tags from XSLT block stylesheets. - [Categories] Sanitize context menu in admin category list. - [Extensions] Disable caching headers in `AbstractTheme` if user is logged in. diff --git a/src/system/AdminModule/Resources/views/Admin/adminpanel.html.twig b/src/system/AdminModule/Resources/views/Admin/adminpanel.html.twig index ef6f21c6aa..3259d8e07e 100644 --- a/src/system/AdminModule/Resources/views/Admin/adminpanel.html.twig +++ b/src/system/AdminModule/Resources/views/Admin/adminpanel.html.twig @@ -10,13 +10,13 @@
  • {# module icon #} {% if getModVar('ZikulaAdminModule', 'admingraphic') == 1 %} - + {% endif %}
    {# movable icon #} {# module title #} - {{ adminLink.menuText|raw }} + {{ adminLink.menuText }} {# dropdown with quick links #} {% if adminLink.extensionMenu|default %}