Bläddra i källkod

Skips some url parameters that can inject scripts.

master
damencho 9 år sedan
förälder
incheckning
d65479abc9
1 ändrade filer med 6 tillägg och 0 borttagningar
  1. 6
    0
      modules/config/URLProcessor.js

+ 6
- 0
modules/config/URLProcessor.js Visa fil

@@ -36,6 +36,12 @@ var URLProcessor = {
36 36
             if (key.indexOf("config.") === 0) {
37 37
                 confObj = configJSON.config;
38 38
                 confKey = key.substr("config.".length);
39
+
40
+                // prevent passing some parameters which can inject scripts
41
+                if (confKey === 'analyticsScriptUrl'
42
+                    || confKey === 'callStatsCustomScriptUrl')
43
+                    continue;
44
+
39 45
             } else if (key.indexOf("interfaceConfig.") === 0) {
40 46
                 confObj = configJSON.interfaceConfig;
41 47
                 confKey = key.substr("interfaceConfig.".length);

Laddar…
Avbryt
Spara