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(){mxClient.IS_SF?window.setTimeout(function(){Ea.drawImage(Ba,0,0);l(Wa,Da)},0):(Ea.drawImage(Ba,0,0),l(Wa,Da))},Wa=document.createElement("canvas"),La=parseInt(Da.getAttribute("width")),$a=parseInt(Da.getAttribute("height"));ia=null!=ia?ia:1;null!=A&&(ia=Z?Math.min(1,Math.min(3*A/(4*$a),A/La)):A/La);ia=this.getMaxCanvasScale(La,$a,ia);La=Math.ceil(ia*La);$a=Math.ceil(ia*$a);Wa.setAttribute("width",La);Wa.setAttribute("height",$a);var Ea=Wa.getContext("2d");null!=ta&&(Ea.beginPath(),Ea.rect(0,