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:
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-