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:
f,c,k,l){this.insertFile(e,f,c,k,!0,l,!1)};GitHubClient.prototype.insertFile=function(e,f,c,k,l,u,x){l=null!=l?l:!1;u=u.split("/");var E=u[0],D=u[1],A=u[2],K=u.slice(3,u.length).join("/");0<K.length&&(K+="/");K+=e;this.checkExists(E+"/"+D+"/"+A+"/"+K,!0,mxUtils.bind(this,function(H,d){H?l?(x||(f=Base64.encode(f)),this.showCommitDialog(e,!0,mxUtils.bind(this,function(g){this.writeFile(E,D,A,K,g,f,d,mxUtils.bind(this,function(n){try{var q=JSON.parse(n.getText());c(this.createGitHubFile(E,D,A,q.content,
l))}catch(t){k(t)}}),k)}),k)):c(new GitHubFile(this.ui,f,{org:E,repo:D,ref:A,name:e,path:K,sha:d,isNew:!0})):k()}))};GitHubClient.prototype.showCommitDialog=function(e,f,c,k){var l=this.ui.spinner.pause();e=new FilenameDialog(this.ui,mxResources.get(f?"addedFile":"updateFile",[e]),mxResources.get("ok"),mxUtils.bind(this,function(u){l();c(u)}),mxResources.get("commitMessage"),null,null,null,null,mxUtils.bind(this,function(){k()}),null,280);this.ui.showDialog(e.container,400,80,!0,!1);e.init()};GitHubClient.prototype.writeFile=