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.ui.spinner.stop(),this.ui.showError(mxResources.get("error"),mxResources.get("fileExists"),mxResources.get("ok"),function(){k(!1)}))}),function(u){k(!1)},!0)};OneDriveClient.prototype.saveFile=function(e,f,c,k){try{var l=e.getData(),u=mxUtils.bind(this,function(E){var D=mxUtils.bind(this,function(K){f(K,l)}),A=this.getItemURL(e.getId());4E6<=E.length?this.writeLargeFile(A,E,D,c,k):this.writeFile(A+"/content/",E,"PUT",null,D,c,k)});if(this.ui.useCanvasForExport&&/(\.png)$/i.test(e.meta.name)){var x=
this.ui.getPngFileProperties(this.ui.fileNode);this.ui.getEmbeddedPng(mxUtils.bind(this,function(E){u(this.ui.base64ToBlob(E,"image/png"))}),c,this.ui.getCurrentFile()!=e?l:null,x.scale,x.border)}else u(l)}catch(E){c(E)}};OneDriveClient.prototype.writeLargeFile=function(e,f,c,k,l){try{if(null!=f){var u=(new TextEncoder).encode(f).length,x=mxUtils.bind(this,function(D,A,K,H){try{H=H||0;var d=!0,g=null;g=window.setTimeout(mxUtils.bind(this,function(){d=!1;k({code:App.ERROR_TIMEOUT})}),this.ui.timeout);