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:
A=!1,C=null,F=function(E,O,R){if(!A){var Q="null"==e?null:e;A=!0;E=/(^#?[a-zA-Z0-9]*$)/.test(E)?E:Q;Q=null!=E&&E!=mxConstants.NONE?E:Q;var P=document.createElement("div");P.style.width="36px";P.style.height="12px";P.style.margin="3px";P.style.border="1px solid black";P.style.backgroundColor="default"==Q?n:Q;C.innerHTML="";C.appendChild(P);null!=E&&E!=mxConstants.NONE&&1<E.length&&"string"===typeof E&&(Q="#"==E.charAt(0)?E.substring(1).toUpperCase():E,Q=ColorDialog.prototype.colorNames[Q],C.setAttribute("title",
null!=Q?Q+" (Shift+Click for Color Dropper)":"Shift+Click for Color Dropper"));null!=E&&E!=mxConstants.NONE?(m.setAttribute("checked","checked"),m.defaultChecked=!0,m.checked=!0):(m.removeAttribute("checked"),m.defaultChecked=!1,m.checked=!1);C.style.display=m.checked||k?"":"none";null!=d&&d("null"==E?null:E);x=E;O||(R||k||c()!=x)&&f("null"==x?null:x,x);A=!1}},K=document.createElement("input");K.setAttribute("type","color");K.style.visibility="hidden";K.style.width="0px";K.style.height="0px";K.style.border=