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:
G){var Ca=R&&this.isResampleImageSize(Q.size,S)?Math.min(1,Math.min(q/la,q/ya)):1;return t(qa,Q.type,g+V*m,n+V*m,Math.round(la*Ca),Math.round(ya*Ca),Q.name)}this.handleError({message:mxResources.get("imageTooBig")});return null}))}),R,q,S,Q.size)}),mxUtils.bind(this,function(){this.handleError({message:mxResources.get("invalidOrMissingFile")})})))}else Y=Z.target.result,t(Y,Q.type,g+V*m,n+V*m,240,160,Q.name,function(ha){T(V,function(){return ha})},Q)}catch(ha){T(V,mxUtils.bind(this,function(){return null})),