Language: JavaScript
Label: vulnerable
CWE: CWE-78 \u2014 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.

Code:
function(c,m,v,n,t){var B=mxUtils.getValue(this.style,"fixedSize",this.fixedSize),D=parseFloat(mxUtils.getValue(this.style,"size",this.size));D=B?Math.max(0,Math.min(n,D)):n*Math.max(0,Math.min(1,D));this.isRounded&&(B=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100,D=Math.max(D,Math.min(n*B,t*B)));D=Math.round(D);c.begin();c.moveTo(m+D,v);c.lineTo(m+D,v+t);c.moveTo(m+n-D,v);c.lineTo(m+n-D,v+t);c.end();c.stroke();mxRectangleShape.prototype.paintForeground.apply(this,
arguments)};mxCellRenderer.registerShape("process",ca);mxCellRenderer.registerShape("process2",ca);mxUtils.extend(ja,mxRectangleShape);ja.prototype.paintBackground=function(c,m,v,n,t){c.setFillColor(mxConstants.NONE);c.rect(m,v,n,t);c.fill()};ja.prototype.paintForeground=function(c,m,v,n,t){};mxCellRenderer.registerShape("transparent",ja);mxUtils.extend(ma,mxHexagon);ma.prototype.size=30;ma.prototype.position=.5;ma.prototype.position2=.5;ma.prototype.base=20;ma.prototype.getLabelMargins=function(){return new mxRectangle(0,