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:
15;A.prototype.paintVertexShape=function(b,h,q,l,p){var v=Math.max(0,Math.min(.5*p,parseFloat(mxUtils.getValue(this.style,"size",this.size)))),w=mxUtils.getValue(this.style,"lid",!0);b.translate(h,q);0==v?(b.rect(0,0,l,p),b.fillAndStroke()):(b.begin(),w?(b.moveTo(0,v),b.arcTo(.5*l,v,0,0,1,.5*l,0),b.arcTo(.5*l,v,0,0,1,l,v)):(b.moveTo(0,0),b.arcTo(.5*l,v,0,0,0,.5*l,v),b.arcTo(.5*l,v,0,0,0,l,0)),b.lineTo(l,p-v),b.arcTo(.5*l,v,0,0,1,.5*l,p),b.arcTo(.5*l,v,0,0,1,0,p-v),b.close(),b.fillAndStroke(),b.setShadow(!1),
w&&(b.begin(),b.moveTo(l,v),b.arcTo(.5*l,v,0,0,1,.5*l,2*v),b.arcTo(.5*l,v,0,0,1,0,v),b.stroke()))};mxCellRenderer.registerShape("cylinder3",A);mxUtils.extend(C,mxActor);C.prototype.redrawPath=function(b,h,q,l,p){b.moveTo(0,0);b.quadTo(l/2,.5*p,l,0);b.quadTo(.5*l,p/2,l,p);b.quadTo(l/2,.5*p,0,p);b.quadTo(.5*l,p/2,0,0);b.end()};mxCellRenderer.registerShape("switch",C);mxUtils.extend(F,mxCylinder);F.prototype.tabWidth=60;F.prototype.tabHeight=20;F.prototype.tabPosition="right";F.prototype.arcSize=.1;