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:
var CommentsWindow=function(b,e,f,c,k,l){function u(){for(var N=v.getElementsByTagName("div"),P=0,R=0;R<N.length;R++)"none"!=N[R].style.display&&N[R].parentNode==v&&P++;B.style.display=0==P?"block":"none"}function x(N,P,R,M){function p(){P.removeChild(L);P.removeChild(m);C.style.display="block";y.style.display="block"}n={div:P,comment:N,saveCallback:R,deleteOnCancel:M};var y=P.querySelector(".geCommentTxt"),C=P.querySelector(".geCommentActionsList"),L=document.createElement("textarea");L.className=
"geCommentEditTxtArea";L.style.minHeight=y.offsetHeight+"px";L.value=N.content;P.insertBefore(L,y);var m=document.createElement("div");m.className="geCommentEditBtns";var z=mxUtils.button(mxResources.get("cancel"),function(){M?(P.parentNode.removeChild(P),u()):p();n=null});z.className="geCommentEditBtn";m.appendChild(z);var J=mxUtils.button(mxResources.get("save"),function(){y.innerText="";N.content=L.value;mxUtils.write(y,N.content);p();R(N);n=null});mxEvent.addListener(L,"keydown",mxUtils.bind(this,
function(O){mxEvent.isConsumed(O)||((mxEvent.isControlDown(O)||mxClient.IS_MAC&&mxEvent.isMetaDown(O))&&13==O.keyCode?(J.click(),mxEvent.consume(O)):27==O.keyCode&&(z.click(),mxEvent.consume(O)))}));J.focus();J.className="geCommentEditBtn gePrimaryBtn";m.appendChild(J);P.insertBefore(m,y);C.style.display="none";y.style.display="none";L.focus()}function E(N,P){P.innerText="";N=new Date(N.modifiedDate);var R=b.timeSince(N);null==R&&(R=mxResources.get("lessThanAMinute"));mxUtils.write(P,mxResources.get("timeAgo",