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:
v,"image(s) from",H.length,"cell(s): ",[H,B])}finally{q.model.endUpdate()}}));d.actions.addAction("testInspect",mxUtils.bind(this,function(){console.log(d,q.getModel())}));d.actions.addAction("testXmlImageExport",mxUtils.bind(this,function(){var m=new mxImageExport,v=q.getGraphBounds(),B=q.view.scale,H=mxUtils.createXmlDocument(),g=H.createElement("output");H.appendChild(g);H=new mxXmlCanvas2D(g);H.translate(Math.floor((1-v.x)/B),Math.floor((1-v.y)/B));H.scale(1/B);var x=0,F=H.save;H.save=function(){x++;
F.apply(this,arguments)};var M=H.restore;H.restore=function(){x--;M.apply(this,arguments)};var P=m.drawShape;m.drawShape=function(T){mxLog.debug("entering shape",T,x);P.apply(this,arguments);mxLog.debug("leaving shape",T,x)};m.drawState(q.getView().getState(q.model.root),H);mxLog.show();mxLog.debug(mxUtils.getXml(g));mxLog.debug("stateCounter",x)}));d.actions.addAction("testShowConsole",function(){mxLog.isVisible()?mxLog.window.fit():mxLog.show();mxLog.window.div.style.zIndex=mxPopupMenu.prototype.zIndex-