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