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:
V.preventDefault()}function K(V){V.stopPropagation();V.preventDefault();A=!1;p=z(V);if(null!=n)null!=p&&p<c.children.length?(E.splice(p>n?p-1:p,0,E.splice(n,1)[0]),c.insertBefore(c.children[n],c.children[p])):(E.push(E.splice(n,1)[0]),c.appendChild(c.children[n]));else if(0<V.dataTransfer.files.length)b.importFiles(V.dataTransfer.files,0,0,b.maxImageSize,G(V));else if(0<=mxUtils.indexOf(V.dataTransfer.types,"text/uri-list")){var S=decodeURIComponent(V.dataTransfer.getData("text/uri-list"));(/(\.jpg)($|\?)/i.test(S)||
/(\.png)($|\?)/i.test(S)||/(\.gif)($|\?)/i.test(S)||/(\.svg)($|\?)/i.test(S))&&b.loadImage(S,function(N){D(S,null,0,0,N.width,N.height);c.scrollTop=c.scrollHeight})}V.stopPropagation();V.preventDefault()}var E=[];l=document.createElement("div");l.style.height="100%";var R=document.createElement("div");R.style.whiteSpace="nowrap";R.style.height="40px";l.appendChild(R);mxUtils.write(R,mxResources.get("filename")+":");null==f&&(f=b.defaultLibraryName+".xml");var I=document.createElement("input");I.setAttribute("value",