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:
null==C.data&&null==C.url?(C=S(C),Ba(C,G)):this.loadDescriptor(C,mxUtils.bind(this,function(ea){Ba(za(),G)}),mxUtils.bind(this,function(ea){this.handleError(ea,mxResources.get("errorLoadingFile"))}))}}));var y=window.opener||window.parent;t="json"==urlParams.proto?JSON.stringify({event:"init"}):urlParams.ready||"ready";y.postMessage(t,"*");if("json"==urlParams.proto){var A=this.editor.graph.openLink;this.editor.graph.openLink=function(G,C,V){A.apply(this,arguments);y.postMessage(JSON.stringify({event:"openLink",
href:G,target:C,allowOpener:V}),"*")}}};EditorUi.prototype.createEmbedButton=function(c,e,k,n){var p="simple"==Editor.currentTheme||"sketch"==Editor.currentTheme||"min"==Editor.currentTheme,t=document.createElement("button");t.setAttribute("title",c+(null!=k?" ("+k+")":""));t.style.marginLeft="6px";mxUtils.write(t,c);p?(t.className=n?"gePrimaryBtn":"",t.style.marginLeft="8px",t.style.padding="6px"):t.className="geBigButton"+(n?"":" geBigStandardButton");mxEvent.addListener(t,"click",e);return t};