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:
mxShape);Ja.prototype.size=10;Ja.prototype.inset=2;Ja.prototype.paintBackground=function(b,h,q,l,p){var v=parseFloat(mxUtils.getValue(this.style,"size",this.size)),w=parseFloat(mxUtils.getValue(this.style,"inset",this.inset))+this.strokewidth;b.translate(h,q);b.begin();b.moveTo(l/2,v+w);b.lineTo(l/2,p);b.end();b.stroke();b.begin();b.moveTo((l-v)/2-w,v/2);b.quadTo((l-v)/2-w,v+w,l/2,v+w);b.quadTo((l+v)/2+w,v+w,(l+v)/2+w,v/2);b.end();b.stroke()};mxCellRenderer.registerShape("requires",Ja);mxUtils.extend(Ga,