From 8f82826065d899a0076e8ce8da1d8ba8c6118230 Mon Sep 17 00:00:00 2001 From: Tom Udding Date: Fri, 29 Nov 2024 20:05:01 +0100 Subject: [PATCH] fix: potential sources of XSS through BM/GMM body abbreviation and name --- module/Decision/view/decision/organ/index.phtml | 4 ++-- module/Frontpage/view/frontpage/organ/organ.phtml | 2 +- module/Frontpage/view/partial/organ-card.phtml | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/module/Decision/view/decision/organ/index.phtml b/module/Decision/view/decision/organ/index.phtml index 83380b2467..b00a9cf8b9 100644 --- a/module/Decision/view/decision/organ/index.phtml +++ b/module/Decision/view/decision/organ/index.phtml @@ -53,12 +53,12 @@ $this->headTitle($this->translate('Organ list')); - getAbbr() ?> + escapeHtml($organ->getAbbr()) ?> - getName() ?> + escapeHtml($organ->getName()) ?> diff --git a/module/Frontpage/view/frontpage/organ/organ.phtml b/module/Frontpage/view/frontpage/organ/organ.phtml index 90e8319309..c0a77c80cd 100644 --- a/module/Frontpage/view/frontpage/organ/organ.phtml +++ b/module/Frontpage/view/frontpage/organ/organ.phtml @@ -116,7 +116,7 @@ function getOrganDescription($organInformation, $lang)
-

getName() ?>

+

escapeHtml($organ->getName()) ?>

diff --git a/module/Frontpage/view/partial/organ-card.phtml b/module/Frontpage/view/partial/organ-card.phtml index 706f380715..637eea4ddf 100644 --- a/module/Frontpage/view/partial/organ-card.phtml +++ b/module/Frontpage/view/partial/organ-card.phtml @@ -21,7 +21,7 @@ $organInformation = $organ->getApprovedOrganInformation() getThumbnailPath()): ?> - getAbbr() ?> + escapeHtml($organ->getAbbr()) ?>
getShortEnglishDescription() : $organInformation->getShortDutchDescription() ?> @@ -30,7 +30,7 @@ $organInformation = $organ->getApprovedOrganInformation()
- getName() ?> + escapeHtml($organ->getName()) ?> acl('decision_service_acl')->isAllowed('organ', 'view')): ?>