Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Skips some url parameters that can inject scripts.

damenchod65479abc9c1
diff --git a/modules/config/URLProcessor.js b/modules/config/URLProcessor.js
index 8f1021dfef..5ab19f9661 100644
--- a/modules/config/URLProcessor.js
+++ b/modules/config/URLProcessor.js
@@ -36,6 +36,12 @@ var URLProcessor = {
if (key.indexOf("config.") === 0) {
confObj = configJSON.config;
confKey = key.substr("config.".length);
+
+ // prevent passing some parameters which can inject scripts
+ if (confKey === 'analyticsScriptUrl'
+ || confKey === 'callStatsCustomScriptUrl')
+ continue;
+
} else if (key.indexOf("interfaceConfig.") === 0) {
confObj = configJSON.interfaceConfig;
confKey = key.substr("interfaceConfig.".length);