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.endpointHint=this.defEndpointHint;var l=JSON.parse(this.getPersistentToken(!0));null!=l&&(l.endpointHint=this.endpointHint,this.setPersistentToken(JSON.stringify(l),!l.remember));e();return}}catch(u){}f({message:mxResources.get("unknownError")+" (Code: "+c.getStatus()+")"})}),f)};OneDriveClient.prototype.executeRequest=function(e,f,c){var k=mxUtils.bind(this,function(l){var u=!0,x=window.setTimeout(mxUtils.bind(this,function(){u=!1;c({code:App.ERROR_TIMEOUT,retry:k})}),this.ui.timeout);this.get(e,
mxUtils.bind(this,function(E){window.clearTimeout(x);u&&(200<=E.getStatus()&&299>=E.getStatus()||404==E.getStatus()?(null==this.user&&this.updateUser(this.emptyFn,this.emptyFn,!0),f(E)):l||401!==E.getStatus()&&400!==E.getStatus()?c(this.parseRequestText(E)):this.authenticate(function(){k(!0)},c,l))}),mxUtils.bind(this,function(E){window.clearTimeout(x);u&&c(E)}))});null==b||6E4>this.tokenExpiresOn-Date.now()?this.authenticate(function(){k(!0)},c):k(!1)};OneDriveClient.prototype.checkToken=function(e,