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:
P.getGlobalVariable=function(xa){return"page"==xa?ha.getName():"pagenumber"==xa?1:ea.apply(this,arguments)};document.body.appendChild(P.container);P.model.setRoot(ha.root)}if(null!=C.layerIds){var na=P.model,Aa=na.getChildCells(na.getRoot()),Fa={};for(pa=0;pa<C.layerIds.length;pa++)Fa[C.layerIds[pa]]=!0;for(pa=0;pa<Aa.length;pa++)na.setVisible(Aa[pa],Fa[Aa[pa].id]||!1)}this.editor.exportToCanvas(mxUtils.bind(this,function(xa){W(xa.toDataURL("image/png"))}),C.width,null,C.background,mxUtils.bind(this,