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:
y)}})));c(t);t.onversionchange=function(){t.close()}}catch(y){null!=e?e(y):null!=window.console&&console.warn(y)}});n.onerror=e;n.onblocked=function(){}}catch(p){null!=e?e(p):null!=window.console&&console.error(p)}else null!=e&&e(Error("IndexedDB not supported"))}else c(this.database)};EditorUi.prototype.setDatabaseItem=function(c,e,k,n,p){this.openDatabase(mxUtils.bind(this,function(t){try{p=p||"objects";Array.isArray(p)||(p=[p],c=[c],e=[e]);var y=t.transaction(p,"readwrite");y.oncomplete=k;y.onerror=
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=