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