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:
360,null!=d.pages&&1<d.pages.length?470:390,!0,!0)};this.defaultFilename=mxResources.get("untitledDiagram");var S=g.getExportVariables;g.getExportVariables=function(){var C=S.apply(this,arguments),L=d.getCurrentFile();null!=L&&(C.filename=L.getTitle());C.pagecount=null!=d.pages?d.pages.length:1;C.page=null!=d.currentPage?d.currentPage.getName():"";C.pagenumber=null!=d.pages&&null!=d.currentPage?mxUtils.indexOf(d.pages,d.currentPage)+1:1;return C};var U=g.getGlobalVariable;g.getGlobalVariable=function(C){var L=
d.getCurrentFile();return"filename"==C&&null!=L?L.getTitle():"page"==C&&null!=d.currentPage?d.currentPage.getName():"pagenumber"==C?null!=d.currentPage&&null!=d.pages?mxUtils.indexOf(d.pages,d.currentPage)+1:1:"pagecount"==C?null!=d.pages?d.pages.length:1:U.apply(this,arguments)};var N=null,P=null;this.addListener("fileDescriptorChanged",mxUtils.bind(this,function(){var C=this.getCurrentFile(),L=null!=C&&null!=C.getTitle()?C.getTitle():this.defaultFilename;N!=L&&C==P&&(g.invalidateDescendantsWithPlaceholders(g.model.getRoot()),