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(){null!=v&&(v(),v=null);b.showImageDialog(mxResources.get("addImageUrl"),"",function(S,U,N){F=!1;if(null!=S){if("data:image/"==S.substring(0,11)){var P=S.indexOf(",");0<P&&(S=S.substring(0,P)+";base64,"+S.substring(P+1))}x(S,null,0,0,U,N);d.scrollTop=d.scrollHeight}})});e.setAttribute("id","btnAddImageUrl");e.className="geBtn";c.appendChild(e);this.saveBtnClickHandler=function(S,U,N,P){b.saveLibrary(S,U,N,P)};e=mxUtils.button(mxResources.get("save"),mxUtils.bind(this,function(){null!=v&&