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:
b.end(),b.stroke())};mxCellRenderer.registerShape("note",u);mxUtils.extend(m,u);mxCellRenderer.registerShape("note2",m);m.prototype.getLabelMargins=function(b){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var h=mxUtils.getValue(this.style,"size",15);return new mxRectangle(0,Math.min(b.height*this.scale,h*this.scale),0,0)}return null};mxUtils.extend(r,mxShape);r.prototype.isoAngle=15;r.prototype.paintVertexShape=function(b,h,q,l,p){var v=Math.max(.01,Math.min(94,parseFloat(mxUtils.getValue(this.style,
"isoAngle",this.isoAngle))))*Math.PI/200;v=Math.min(l*Math.tan(v),.5*p);b.translate(h,q);b.begin();b.moveTo(.5*l,0);b.lineTo(l,v);b.lineTo(l,p-v);b.lineTo(.5*l,p);b.lineTo(0,p-v);b.lineTo(0,v);b.close();b.fillAndStroke();b.setShadow(!1);b.begin();b.moveTo(0,v);b.lineTo(.5*l,2*v);b.lineTo(l,v);b.moveTo(.5*l,2*v);b.lineTo(.5*l,p);b.stroke()};mxCellRenderer.registerShape("isoCube2",r);mxUtils.extend(x,mxShape);x.prototype.size=15;x.prototype.paintVertexShape=function(b,h,q,l,p){var v=Math.max(0,Math.min(.5*