Language: JavaScript
Label: vulnerable
CWE: CWE-78 \u2014 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.

Code:
z=/\.png$/i.test(m)||/\.pdf$/i.test(m)||z;var J="t="+(new Date).getTime();m=PROXY_URL+"?url="+encodeURIComponent(m)+"&"+J+(z?"&base64=1":"")}return m};Editor.prototype.isCorsEnabledForUrl=function(m){if(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||m.substring(0,window.location.origin.length)==window.location.origin)return!0;null!=urlParams.cors&&null==this.corsRegExp&&(this.corsRegExp=new RegExp(decodeURIComponent(urlParams.cors)));return null!=this.corsRegExp&&this.corsRegExp.test(m)||"https://raw.githubusercontent.com/"===
m.substring(0,34)||"https://fonts.googleapis.com/"===m.substring(0,29)||"https://fonts.gstatic.com/"===m.substring(0,26)};Editor.prototype.createImageUrlConverter=function(){var m=new mxUrlConverter;m.updateBaseUrl();var z=m.convert,J=this;m.convert=function(O){if(null!=O){var T="http://"==O.substring(0,7)||"https://"==O.substring(0,8);T&&!navigator.onLine?O=Editor.svgBrokenImage.src:!T||O.substring(0,m.baseUrl.length)==m.baseUrl||J.crossOriginImages&&J.isCorsEnabledForUrl(O)?"chrome-extension://"==