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:
function(f){var c=0<this.lastTokenRefresh;(new Date).getTime()-this.lastTokenRefresh>this.tokenRefreshInterval||null==this.tokenRefreshThread?this.execute(mxUtils.bind(this,function(){f();c&&this.fireEvent(new mxEventObject("disconnected"))})):f()};DriveClient.prototype.updateUser=function(f,c){try{var k={Authorization:"Bearer "+b};this.ui.editor.loadUrl("https://www.googleapis.com/oauth2/v2/userinfo?alt=json",mxUtils.bind(this,function(l){var u=JSON.parse(l);this.executeRequest({url:"/about"},mxUtils.bind(this,
function(x){var E=mxResources.get("notAvailable"),D=E,A=null;null!=x&&null!=x.user&&(E=x.user.emailAddress,D=x.user.displayName,A=null!=x.user.picture?x.user.picture.url:null);this.setUser(new DrawioUser(u.id,E,D,A,u.locale));this.userId=u.id;null!=f&&f()}),c)}),c,null,null,null,null,k)}catch(l){if(null!=c)c(l);else throw l;}};DriveClient.prototype.copyFile=function(f,c,k,l){null!=f&&null!=c&&this.executeRequest({url:"/files/"+f+"/copy?fields="+encodeURIComponent(this.allFields)+"&supportsAllDrives=true&enforceSingleParent=true",