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:
aa()}));var S=mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(fa.style,"transform",F);window.setTimeout(mxUtils.bind(this,function(){aa()}),ka)});mxEvent.addListener(fa,"click",mxUtils.bind(this,function(da){var P=mxEvent.getSource(da);P!=ja&&P!=ma?(null!=k&&k(),aa(),mxEvent.consume(da)):S()}));window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(fa.style,"transform",K)}),ka/2);window.setTimeout(S,z?4E3:3E4);H=!0}return H};EditorUi.prototype.setCurrentFile=function(d){null!=
d&&(d.opened=new Date);this.currentFile=d};EditorUi.prototype.getCurrentFile=function(){return this.currentFile};EditorUi.prototype.isExportToCanvas=function(){return this.editor.isExportToCanvas()};EditorUi.prototype.createImageDataUri=function(d,f,k,u){d=d.toDataURL("image/"+k);if(null!=d&&6<d.length)null!=f&&(d=Editor.writeGraphModelToPng(d,"tEXt","mxfile",encodeURIComponent(f))),0<u&&(d=Editor.writeGraphModelToPng(d,"pHYs","dpi",u));else throw{message:mxResources.get("unknownError")};return d};