From d91db76c7bc624a35e72af5043a13ecb90a7ca17 Mon Sep 17 00:00:00 2001 From: Mobb autofixer Date: Tue, 17 Sep 2024 15:51:05 +0000 Subject: [PATCH] mobb fix commit: cc5421bc-ce93-4fd5-ab7d-9db4cfee9505 --- .../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"); },