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:
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;