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:
A.code=null);D(A)})))};GitHubClient.prototype.checkExists=function(e,f,c){var k=e.split("/"),l=k[0],u=k[1],x=k[2];e=k.slice(3,k.length).join("/");this.getSha(l,u,e,x,mxUtils.bind(this,function(E){if(f){var D=this.ui.spinner.pause();this.ui.confirm(mxResources.get("replaceIt",[e]),function(){D();c(!0,E)},function(){D();c(!1)})}else this.ui.spinner.stop(),this.ui.showError(mxResources.get("error"),mxResources.get("fileExists"),mxResources.get("ok"),function(){c(!1)})}),mxUtils.bind(this,function(E){c(!0)}),
!0)};GitHubClient.prototype.saveFile=function(e,f,c,k,l){var u=e.meta.org,x=e.meta.repo,E=e.meta.ref,D=e.meta.path,A=mxUtils.bind(this,function(H,d){this.writeFile(u,x,E,D,l,d,H,mxUtils.bind(this,function(g){delete e.meta.isNew;f(JSON.parse(g.getText()).content.sha)}),mxUtils.bind(this,function(g){c(g)}))}),K=mxUtils.bind(this,function(){if(this.ui.useCanvasForExport&&/(\.png)$/i.test(D)){var H=this.ui.getPngFileProperties(this.ui.fileNode);this.ui.getEmbeddedPng(mxUtils.bind(this,function(d){A(e.meta.sha,