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:
C.getGlobalVariable=function(ka){return"page"==ka?H.getName():"pagenumber"==ka?1:O.apply(this,arguments)};document.body.appendChild(C.container);C.model.setRoot(H.root)}this.editor.exportToCanvas(mxUtils.bind(this,function(ka){try{null==K&&(K=this.getFileData(!0,null,null,null,null,null,null,null,null,!1));var fa=ka.toDataURL("image/png");fa=Editor.writeGraphModelToPng(fa,"tEXt","mxfile",encodeURIComponent(K));d(fa.substring(fa.lastIndexOf(",")+1));C!=this.editor.graph&&C.container.parentNode.removeChild(C.container)}catch(ca){null!=