From 45e4f4768bfb97ce23a6bd170b31b424b2db9924 Mon Sep 17 00:00:00 2001 From: Mobb autofixer Date: Thu, 7 Nov 2024 17:45:05 +0000 Subject: [PATCH] mobb fix commit: eaa01f4f-1bb6-44f8-aace-9e6d7410eb4e --- .../resources/webgoat/static/js/goatApp/support/GoatUtils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/webgoat/static/js/goatApp/support/GoatUtils.js b/src/main/resources/webgoat/static/js/goatApp/support/GoatUtils.js index 6ddfbf82dd..841b7aa710 100644 --- a/src/main/resources/webgoat/static/js/goatApp/support/GoatUtils.js +++ b/src/main/resources/webgoat/static/js/goatApp/support/GoatUtils.js @@ -54,7 +54,7 @@ define(['jquery', showLessonCookiesAndParams: function() { $.get(goatConstants.cookieService, {}, function(reply) { - $("#lesson_cookies").html(reply); + $("#lesson_cookies").html(DOMPurify.sanitize(reply)); }, "html"); },