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:
(S="1"==f.getCurrentCellStyle(aa).treeMoving);return S}function q(aa){var S=!1;null!=aa&&(aa=k.getParent(aa),S=f.view.getState(aa),S="tree"==(null!=S?S.style:f.getCellStyle(aa)).containerType);return S}function E(aa){var S=!1;null!=aa&&(aa=k.getParent(aa),S=f.view.getState(aa),f.view.getState(aa),S=null!=(null!=S?S.style:f.getCellStyle(aa)).childLayout);return S}function L(aa){aa=f.view.getState(aa);if(null!=aa){var S=f.getIncomingTreeEdges(aa.cell);if(0<S.length&&(S=f.view.getState(S[0]),null!=S&&
(S=S.absolutePoints,null!=S&&0<S.length&&(S=S[S.length-1],null!=S)))){if(S.y==aa.y&&Math.abs(S.x-aa.getCenterX())<aa.width/2)return mxConstants.DIRECTION_SOUTH;if(S.y==aa.y+aa.height&&Math.abs(S.x-aa.getCenterX())<aa.width/2)return mxConstants.DIRECTION_NORTH;if(S.x>aa.getCenterX())return mxConstants.DIRECTION_WEST}}return mxConstants.DIRECTION_EAST}function T(aa,S){S=null!=S?S:!0;f.model.beginUpdate();try{var da=f.model.getParent(aa),P=f.getIncomingTreeEdges(aa),V=f.cloneCells([P[0],aa]);f.model.setTerminal(V[0],