Browse Source

Skips some url parameters that can inject scripts.

j8
damencho 9 years ago
parent
commit
d65479abc9
1 changed files with 6 additions and 0 deletions
  1. 6
    0
      modules/config/URLProcessor.js

+ 6
- 0
modules/config/URLProcessor.js View File

36
             if (key.indexOf("config.") === 0) {
36
             if (key.indexOf("config.") === 0) {
37
                 confObj = configJSON.config;
37
                 confObj = configJSON.config;
38
                 confKey = key.substr("config.".length);
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
             } else if (key.indexOf("interfaceConfig.") === 0) {
45
             } else if (key.indexOf("interfaceConfig.") === 0) {
40
                 confObj = configJSON.interfaceConfig;
46
                 confObj = configJSON.interfaceConfig;
41
                 confKey = key.substr("interfaceConfig.".length);
47
                 confKey = key.substr("interfaceConfig.".length);

Loading…
Cancel
Save