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:
H);mxUtils.extend(S,mxCylinder);S.prototype.redrawPath=function(b,h,q,l,p,v){v?(b.moveTo(0,0),b.lineTo(l/2,p/2),b.lineTo(l,0),b.end()):(b.moveTo(0,0),b.lineTo(l,0),b.lineTo(l,p),b.lineTo(0,p),b.close())};mxCellRenderer.registerShape("message",S);mxUtils.extend(V,mxShape);V.prototype.paintBackground=function(b,h,q,l,p){b.translate(h,q);b.ellipse(l/4,0,l/2,p/4);b.fillAndStroke();b.begin();b.moveTo(l/2,p/4);b.lineTo(l/2,2*p/3);b.moveTo(l/2,p/3);b.lineTo(0,p/3);b.moveTo(l/2,p/3);b.lineTo(l,p/3);b.moveTo(l/
2,2*p/3);b.lineTo(0,p);b.moveTo(l/2,2*p/3);b.lineTo(l,p);b.end();b.stroke()};mxCellRenderer.registerShape("umlActor",V);mxUtils.extend(ea,mxShape);ea.prototype.getLabelMargins=function(b){return new mxRectangle(b.width/6,0,0,0)};ea.prototype.paintBackground=function(b,h,q,l,p){b.translate(h,q);b.begin();b.moveTo(0,p/4);b.lineTo(0,3*p/4);b.end();b.stroke();b.begin();b.moveTo(0,p/2);b.lineTo(l/6,p/2);b.end();b.stroke();b.ellipse(l/6,0,5*l/6,p);b.fillAndStroke()};mxCellRenderer.registerShape("umlBoundary",