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:
"GET")).send(mxUtils.bind(this,function(k){200<=k.getStatus()&&299>=k.getStatus()?this.authenticateStep2(k.getText(),e,f,c):null!=f&&f(k)}),f)};OneDriveClient.prototype.updateAuthInfo=function(e,f,c,k,l){c&&this.setUser(null);b=e.access_token;delete e.access_token;e.expiresOn=Date.now()+1E3*e.expires_in;this.tokenExpiresOn=e.expiresOn;e.remember=f;this.setPersistentToken(JSON.stringify(e),!f);this.resetTokenRefresh(e.expires_in);c?this.getAccountTypeAndEndpoint(mxUtils.bind(this,function(){k()}),
l):k()};OneDriveClient.prototype.authenticateStep2=function(e,f,c,k){if(null==window.onOneDriveCallback){var l=mxUtils.bind(this,function(){var u=!0,x=JSON.parse(this.getPersistentToken(!0));null!=x?(new mxXmlRequest(this.redirectUri+"?state="+encodeURIComponent("cId="+this.clientId+"&domain="+window.location.host+"&token="+e),null,"GET")).send(mxUtils.bind(this,function(E){200<=E.getStatus()&&299>=E.getStatus()?this.updateAuthInfo(JSON.parse(E.getText()),x.remember,!1,f,c):(this.clearPersistentToken(),