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:
this.showDialog(f.container,340,300+d,!0,!0);null!=ca?(ca.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?ca.select():document.execCommand("selectAll",!1,null)):ma.focus()};EditorUi.prototype.showRemoteExportDialog=function(d,f,k,u,z){var C=document.createElement("div");C.style.whiteSpace="nowrap";var F=document.createElement("h3");mxUtils.write(F,mxResources.get("image"));F.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:"+(z?"10":"4")+"px";C.appendChild(F);
if(z){mxUtils.write(C,mxResources.get("zoom")+":");var K=document.createElement("input");K.setAttribute("type","text");K.style.marginRight="16px";K.style.width="60px";K.style.marginLeft="4px";K.style.marginRight="12px";K.value=this.lastExportZoom||"100%";C.appendChild(K);mxUtils.write(C,mxResources.get("borderWidth")+":");var O=document.createElement("input");O.setAttribute("type","text");O.style.marginRight="16px";O.style.width="60px";O.style.marginLeft="4px";O.value=this.lastExportBorder||"0";C.appendChild(O);
mxUtils.br(C)}var H=this.addCheckbox(C,mxResources.get("selectionOnly"),!1,this.editor.graph.isSelectionEmpty()),ka=u?null:this.addCheckbox(C,mxResources.get("includeCopyOfMyDiagram"),Editor.defaultIncludeDiagram);F=this.editor.graph;var fa=u?null:this.addCheckbox(C,mxResources.get("transparentBackground"),F.background==mxConstants.NONE||null==F.background);null!=fa&&(fa.style.marginBottom="16px");d=new CustomDialog(this,C,mxUtils.bind(this,function(){var ca=parseInt(K.value)/100||1,ja=parseInt(O.value)||
0;k(!H.checked,null!=ka?ka.checked:!1,null!=fa?fa.checked:!1,ca,ja)}),null,d,f);this.showDialog(d.container,300,(z?25:0)+(u?125:210),!0,!0)};EditorUi.prototype.showExportDialog=function(d,f,k,u,z,C,F,K,O){F=null!=F?F:Editor.defaultIncludeDiagram;var H=document.createElement("div");H.style.whiteSpace="nowrap";var ka=this.editor.graph,fa="jpeg"==K?220:300,ca=document.createElement("h3");mxUtils.write(ca,d);ca.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:10px";H.appendChild(ca);