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(){try{if(fa>=ka.length)ca();else{var S=ka[fa];StorageFile.getFileContent(this,S,mxUtils.bind(this,function(da){null==da||".scratchpad"==S&&da==this.emptyLibraryXml?K.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",funtionName:"getLocalStorageFile",functionArgs:[S]}),"*"):ja()}),ja)}}catch(da){console.log(da)}}),aa=mxUtils.bind(this,function(S){try{this.setDatabaseItem(null,[{title:S.title,size:S.data.length,lastModified:Date.now(),type:S.isLib?"L":"F"},{title:S.title,data:S.data}],
ja,ja,["filesInfo","files"])}catch(da){console.log(da)}});F=mxUtils.bind(this,function(S){try{if(S.source==K.contentWindow){var da={};try{da=JSON.parse(S.data)}catch(P){}"init"==da.event?(K.contentWindow.postMessage(JSON.stringify({action:"remoteInvokeReady"}),"*"),K.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",funtionName:"getLocalStorageFileNames"}),"*")):"remoteInvokeResponse"!=da.event||H||(O?null!=da.resp&&0<da.resp.length&&null!=da.resp[0]?(ka=da.resp[0],O=!1,ma()):ca():null!=