Language: JavaScript
Label: vulnerable
CWE: CWE-400 \u2014 Uncontrolled Resource Consumption
The product does not properly control the allocation and maintenance of a limited resource, thereby enabling an actor to influence the amount of resources consumed, eventually leading to the exhaustion of available resources.

Code:
G.setAttribute("value",e||"");G.style.marginLeft="4px";G.style.width=null!=q?q+"px":"180px";var aa=mxUtils.button(k,function(){if(null==t||t(G.value))f&&b.hideDialog(),n(G.value)});aa.className="geBtn gePrimaryBtn";this.init=function(){if(null!=D||null==E)if(G.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?G.select():document.execCommand("selectAll",!1,null),Graph.fileSupport){var da=y.parentNode;if(null!=da){var ba=null;mxEvent.addListener(da,"dragleave",function(Y){null!=ba&&(ba.style.backgroundColor=
"",ba=null);Y.stopPropagation();Y.preventDefault()});mxEvent.addListener(da,"dragover",mxUtils.bind(this,function(Y){null==ba&&(!mxClient.IS_IE||10<document.documentMode)&&(ba=G,ba.style.backgroundColor="#ebf2f9");Y.stopPropagation();Y.preventDefault()}));mxEvent.addListener(da,"drop",mxUtils.bind(this,function(Y){null!=ba&&(ba.style.backgroundColor="",ba=null);0<=mxUtils.indexOf(Y.dataTransfer.types,"text/uri-list")&&(G.value=decodeURIComponent(Y.dataTransfer.getData("text/uri-list")),aa.click());
Y.stopPropagation();Y.preventDefault()}))}}};H=document.createElement("td");H.style.whiteSpace="nowrap";H.appendChild(G);C.appendChild(H);if(null!=D||null==E)F.appendChild(C),null!=l&&(H.appendChild(FilenameDialog.createTypeHint(b,G,l)),null!=b.editor.diagramFileTypes&&(C=document.createElement("tr"),H=document.createElement("td"),H.style.textOverflow="ellipsis",H.style.textAlign="right",H.style.maxWidth="100px",H.style.fontSize="10pt",H.style.width="84px",mxUtils.write(H,mxResources.get("type")+