From c83d2966b80d4820721e3261ad4c1d05a57f546d Mon Sep 17 00:00:00 2001 From: Artem Dzhemesiuk Date: Thu, 21 Sep 2023 20:55:15 +0200 Subject: [PATCH] Freeroam extended XSS fix --- freeroam-extended/client/html/app.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/freeroam-extended/client/html/app.js b/freeroam-extended/client/html/app.js index f54a0a5..ed5c0f2 100644 --- a/freeroam-extended/client/html/app.js +++ b/freeroam-extended/client/html/app.js @@ -15,6 +15,8 @@ if (window.alt === undefined) { } function colorify(text) { + if (text && typeof text === 'string') text = text.replace(/[<>]/g, ''); + let matches = []; let m = null; let curPos = 0;