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(O){E=O};this.setAutoScroll=function(O){R=O};this.setOpenFill=function(O){I=O};this.setStopClickEnabled=function(O){k=O};this.setSelectInserted=function(O){n=O};this.setSmoothing=function(O){l=O};this.setPerfectFreehandMode=function(O){t=O};this.isPerfectFreehandMode=function(){return t};this.setBrushSize=function(O){p.size=O};this.getBrushSize=function(){return p.size};var y=function(O){e=O;b.getRubberband().setEnabled(!O);b.graphHandler.setSelectEnabled(!O);b.graphHandler.setMoveEnabled(!O);
b.container.style.cursor=O?"crosshair":"";b.fireEvent(new mxEventObject("freehandStateChanged"))};this.startDrawing=function(){y(!0)};this.isDrawing=function(){return e};var A=mxUtils.bind(this,function(O){if(d){var Q=D.length,J=k&&0<z.length&&null!=D&&2>D.length;J||z.push.apply(z,D);D=[];z.push(null);q.push(d);d=null;(J||E)&&this.stopDrawing();E&&(!J||2<=Q)&&this.startDrawing();mxEvent.consume(O)}}),G=new mxCell;G.edge=!0;var C=function(){var O=b.getCurrentCellStyle(G);O=mxUtils.getValue(b.currentVertexStyle,