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:
n;for(t=0;t<p.length;t++)y.objectStore(p[t]).put(null!=c&&null!=c[t]?{key:c[t],data:e[t]}:e[t])}catch(A){null!=n&&n(A)}}),n)};EditorUi.prototype.removeDatabaseItem=function(c,e,k,n){this.openDatabase(mxUtils.bind(this,function(p){n=n||"objects";Array.isArray(n)||(n=[n],c=[c]);p=p.transaction(n,"readwrite");p.oncomplete=e;p.onerror=k;for(var t=0;t<n.length;t++)p.objectStore(n[t]).delete(c[t])}),k)};EditorUi.prototype.getDatabaseItem=function(c,e,k,n){this.openDatabase(mxUtils.bind(this,function(p){try{n=
n||"objects";var t=p.transaction([n],"readonly").objectStore(n).get(c);t.onsuccess=function(){e(t.result)};t.onerror=k}catch(y){null!=k&&k(y)}}),k)};EditorUi.prototype.getDatabaseItems=function(c,e,k){this.openDatabase(mxUtils.bind(this,function(n){try{k=k||"objects";var p=n.transaction([k],"readonly").objectStore(k).openCursor(IDBKeyRange.lowerBound(0)),t=[];p.onsuccess=function(y){null==y.target.result?c(t):(t.push(y.target.result.value),y.target.result.continue())};p.onerror=e}catch(y){null!=e&&