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:
t-D/2;c.begin();c.moveTo(m,v);c.lineTo(m,v+t);c.moveTo(m+B,ha);c.lineTo(m+B+D,ha-D/2);c.moveTo(m+B,ha);c.lineTo(m+B+D,ha+D/2);c.moveTo(m+B,ha);c.lineTo(m+n-B,ha);c.moveTo(m+n,v);c.lineTo(m+n,v+t);c.moveTo(m+n-B,ha);c.lineTo(m+n-D-B,ha-D/2);c.moveTo(m+n-B,ha);c.lineTo(m+n-D-B,ha+D/2);c.end();c.stroke()};mxCellRenderer.registerShape("dimension",wa);mxUtils.extend(sa,mxEllipse);sa.prototype.drawHidden=!0;sa.prototype.paintVertexShape=function(c,m,v,n,t){this.outline||c.setStrokeColor(null);if(null!=
this.style){var B=c.pointerEvents,D=null!=this.fill&&this.fill!=mxConstants.NONE;"1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1")||D||(c.pointerEvents=!1);var ha="1"==mxUtils.getValue(this.style,"top","1"),I="1"==mxUtils.getValue(this.style,"left","1"),va="1"==mxUtils.getValue(this.style,"right","1"),na="1"==mxUtils.getValue(this.style,"bottom","1");this.drawHidden||D||this.outline||ha||va||na||I?(c.rect(m,v,n,t),c.fill(),c.pointerEvents=B,c.setStrokeColor(this.stroke),c.setLineCap("square"),
c.begin(),c.moveTo(m,v),this.outline||ha?c.lineTo(m+n,v):c.moveTo(m+n,v),this.outline||va?c.lineTo(m+n,v+t):c.moveTo(m+n,v+t),this.outline||na?c.lineTo(m,v+t):c.moveTo(m,v+t),(this.outline||I)&&c.lineTo(m,v),c.end(),c.stroke(),c.setLineCap("flat")):c.setStrokeColor(this.stroke)}};mxCellRenderer.registerShape("partialRectangle",sa);mxUtils.extend(ua,mxEllipse);ua.prototype.paintVertexShape=function(c,m,v,n,t){mxEllipse.prototype.paintVertexShape.apply(this,arguments);c.setShadow(!1);c.begin();"vertical"==