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.editor.graph.setBackgroundImage;var E=this.pages[0];this.currentPage==E?z.setBackgroundImage(D):null!=E.viewState&&null!=E.viewState&&(D=E.viewState.backgroundImage,z.setBackgroundImage(D));z.getGlobalVariable=function(S){return"page"==S?E.getName():"pagenumber"==S?1:K.apply(this,arguments)};z.getGlobalVariable=K;document.body.appendChild(z.container);z.model.setRoot(E.root)}if(mxClient.IS_CHROMEAPP||this.useCanvasForExport)this.editor.exportToCanvas(mxUtils.bind(this,function(S){try{z!=this.editor.graph&&