code
stringlengths
14
2.05k
label
int64
0
1
programming_language
stringclasses
7 values
cwe_id
stringlengths
6
14
cwe_name
stringlengths
5
98
description
stringlengths
36
379
url
stringlengths
36
48
label_name
stringclasses
2 values
q.init()}else{var C=function(J){return{id:J.id,isExt:!0,url:J.downloadUrl,title:J.title,imgUrl:J.thumbnailLink,changedBy:J.lastModifyingUserName,lastModifiedOn:J.modifiedDate}};p=new TemplatesDialog(c,function(J,G,P){var O=P.libs,N=P.clibs;c.pickFolder(c.mode,function(T){c.createFile(G,J,null!=O&&0<O.length?O:null,null,function(){c.hideDialog()},null,T,null,null!=N&&0<N.length?N:null)},null==c.stateArg||null==c.stateArg.folderId)},null,null,null,"user",function(J,G,P){var O=new Date;O.setDate(O.getDate()-
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
" "+Z.getStatus()})},X,this.timeout,function(){U&&null!=K&&K({code:App.ERROR_TIMEOUT,retry:Y})},V)});Y()}catch(Z){null!=K&&K(Z)}};Editor.prototype.absoluteCssFonts=function(m){var B=null;if(null!=m){var K=m.split("url(");if(0<K.length){B=[K[0]];m=window.location.pathname;var R=null!=m?m.lastIndexOf("/"):-1;0<=R&&(m=m.substring(0,R+1));R=document.getElementsByTagName("base");var U=null;null!=R&&0<R.length&&(U=R[0].getAttribute("href"));for(var W=1;W<K.length;W++)if(R=K[W].indexOf(")"),0<R){var Q=Editor.trimCssUrl(K[W].substring(0, R));this.graph.isRelativeUrl(Q)&&(Q=null!=U?U+Q:window.location.protocol+"//"+window.location.hostname+("/"==Q.charAt(0)?"":m)+Q);B.push('url("'+Q+'"'+K[W].substring(R))}else B.push(K[W])}else B=[m]}return null!=B?B.join(""):null};Editor.prototype.mapFontUrl=function(m,B,K){/^https?:\/\//.test(B)&&!this.isCorsEnabledForUrl(B)&&(B=PROXY_URL+"?url="+encodeURIComponent(B));K(m,B)};Editor.prototype.embedCssFonts=function(m,B){var K=m.split("url("),R=0;null==this.cachedFonts&&(this.cachedFonts={});var U=
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
c,I,l,x),D&&!z?I.y=n.y:z&&!D&&(I.x=n.x),n.y!=I.y&&null!=this.guideY&&null!=this.guideY.node&&(this.guideY.node.style.visibility="hidden"),n.x!=I.x&&null!=this.guideX&&null!=this.guideX.node&&(this.guideX.node.style.visibility="hidden"),I;S(!0,!0);return b.apply(this,arguments)};var e=mxGuide.prototype.setVisible;mxGuide.prototype.setVisible=function(c){e.call(this,c);var k=this.guidesArrVer,l=this.guidesArrHor;if(null!=k)for(var x=0;x<k.length;x++)k[x].node.style.visibility=c?"visible":"hidden";if(null!= l)for(x=0;x<l.length;x++)l[x].node.style.visibility=c?"visible":"hidden"};var f=mxGuide.prototype.destroy;mxGuide.prototype.destroy=function(){f.call(this);var c=this.guidesArrVer,k=this.guidesArrHor;if(null!=c){for(var l=0;l<c.length;l++)c[l].destroy();this.guidesArrVer=null}if(null!=k){for(l=0;l<k.length;l++)k[l].destroy();this.guidesArrHor=null}}})();function mxRuler(b,e,f,c){function k(){var A=b.diagramContainer;M.style.top=A.offsetTop-E+"px";M.style.left=A.offsetLeft-E+"px";M.style.width=(f?0:A.offsetWidth)+E+"px";M.style.height=(f?A.offsetHeight:0)+E+"px"}function l(A,H,L){if(null!=x)return A;var F;return function(){var S=this,p=arguments,q=L&&!F;clearTimeout(F);F=setTimeout(function(){F=null;L||A.apply(S,p)},H);q&&A.apply(S,p)}}var x=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame,
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
"120px",z.style.backgroundImage="url('"+IMAGE_PATH+"/droptarget.png')",z.style.backgroundPosition="center 65%",z.style.backgroundRepeat="no-repeat",x=document.createElement("div"),x.style.position="absolute",x.style.width="420px",x.style.top="58%",x.style.textAlign="center",x.style.fontSize="18px",x.style.color="#a0c3ff",mxUtils.write(x,mxResources.get("dragImagesHere")),z.appendChild(x));z.appendChild(y);this.container=z},LinkDialog=function(b,e,f,c,k,l,x){function y(A,H,L){L=mxUtils.button("",L); L.className="geBtn";L.setAttribute("title",H);H=document.createElement("img");H.style.height="26px";H.style.width="26px";H.setAttribute("src",A);L.style.minWidth="42px";L.style.verticalAlign="middle";L.appendChild(H);v.appendChild(L)}var E=document.createElement("div");E.style.height="100%";mxUtils.write(E,mxResources.get("editLink")+":");var D=document.createElement("div");D.className="geTitle";D.style.backgroundColor="transparent";D.style.borderColor="transparent";D.style.whiteSpace="nowrap";D.style.textOverflow=
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
S;var R=g(".odPreview"),U=g("#odFiles");b=function(Q,V){V=V||document;return V.querySelectorAll(Q)}(".odCatListTitle");for(S=0;S<b.length;S++)b[S].addEventListener("click",function(){G=m=null;if(!O)switch(L(this),this.id){case "odFiles":H();break;case "odRecent":H("recent");break;case "odShared":H("shared");break;case "odSharepoint":H("sharepoint")}});var W=null;g("#odSearchBox").addEventListener("keyup",function(Q){var V=this;null!=W&&clearTimeout(W);13==Q.keyCode?F(V.value):W=setTimeout(function(){F(V.value)},
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
(m[B]=Graph.fontMapping[B]);return m};Editor.prototype.embedExtFonts=function(m){var B=this.graph.getCustomFonts();if(0<B.length){var K=[],R=0;null==this.cachedGoogleFonts&&(this.cachedGoogleFonts=this.createGoogleFontCache());for(var U=mxUtils.bind(this,function(){0==R&&this.embedCssFonts(K.join(""),m)}),W=0;W<B.length;W++)mxUtils.bind(this,function(Q,V){Graph.isCssFontUrl(V)?null==this.cachedGoogleFonts[V]?(R++,this.loadUrl(V,mxUtils.bind(this,function(X){this.cachedGoogleFonts[V]=X;K.push(X+"\n"); R--;U()}),mxUtils.bind(this,function(X){R--;K.push("@import url("+V+");\n");U()}))):K.push(this.cachedGoogleFonts[V]+"\n"):K.push('@font-face {font-family: "'+Q+'";src: url("'+V+'")}\n')})(B[W].name,B[W].url);U()}else m()};Editor.prototype.addMathCss=function(m){m=m.getElementsByTagName("defs");if(null!=m&&0<m.length)for(var B=document.getElementsByTagName("style"),K=0;K<B.length;K++){var R=mxUtils.getTextContent(B[K]);0>R.indexOf("mxPageSelector")&&0<R.indexOf("MathJax")&&m[0].appendChild(B[K].cloneNode(!0))}};
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
ha=document.createElement("img");ha.setAttribute("src",ka);ha.setAttribute("alt",pa);ha.style.maxWidth=Ka+"px";ha.style.maxHeight=oa+"px";K=ha;var Xa=ka.replace(".drawio.xml","").replace(".drawio","").replace(".xml","");ra.appendChild(ha);ha.onerror=function(){this.src!=Xa?this.src=Xa:(this.src=Editor.errorImage,this.onerror=null)};mxEvent.addGestureListeners(ra,mxUtils.bind(this,function(Oa){F(ra,null,null,aa,ua,Aa)}),null,null);mxEvent.addListener(ra,"dblclick",function(Oa){L();mxEvent.consume(Oa)})}else if(!Ia&&
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
var CreateDialog=function(b,e,f,c,k,l,x,y,E,D,z,M,I,d,g,n,t){function u(q,C,J,G){function P(){mxEvent.addListener(O,"click",function(){var K=J;if(x){var R=H.value,U=R.lastIndexOf(".");if(0>e.lastIndexOf(".")&&0>U){K=null!=K?K:p.value;var W="";K==App.MODE_GOOGLE?W=b.drive.extension:K==App.MODE_GITHUB?W=b.gitHub.extension:K==App.MODE_GITLAB?W=b.gitLab.extension:K==App.MODE_TRELLO?W=b.trello.extension:K==App.MODE_DROPBOX?W=b.dropbox.extension:K==App.MODE_ONEDRIVE?W=b.oneDrive.extension:K==App.MODE_DEVICE&& (W=".drawio");0<=U&&(R=R.substring(0,U));H.value=R+W}}v(J)})}var O=document.createElement("a");O.style.overflow="hidden";var N=document.createElement("img");N.src=q;N.setAttribute("border","0");N.setAttribute("align","absmiddle");N.style.width="60px";N.style.height="60px";N.style.paddingBottom="6px";O.style.display="inline-block";O.className="geBaseButton";O.style.position="relative";O.style.margin="4px";O.style.padding="8px 8px 10px 8px";O.style.whiteSpace="nowrap";O.appendChild(N);O.style.color= "gray";O.style.fontSize="11px";var T=document.createElement("div");O.appendChild(T);mxUtils.write(T,C);if(null!=G&&null==b[G]){N.style.visibility="hidden";mxUtils.setOpacity(T,10);var m=new Spinner({lines:12,length:12,width:5,radius:10,rotate:0,color:"#000",speed:1.5,trail:60,shadow:!1,hwaccel:!1,top:"40%",zIndex:2E9});m.spin(O);var B=window.setTimeout(function(){null==b[G]&&(m.stop(),O.style.display="none")},3E4);b.addListener("clientLoaded",mxUtils.bind(this,function(){null!=b[G]&&(window.clearTimeout(B), mxUtils.setOpacity(T,100),N.style.visibility="",m.stop(),P())}))}else P();F.appendChild(O);++S==M&&(mxUtils.br(F),S=0)}function v(q){var C=H.value;if(null==q||null!=C&&0<C.length)t&&b.hideDialog(),f(C,q,H)}z="1"==urlParams.noDevice?!1:z;x=null!=x?x:!0;y=null!=y?y:!0;M=null!=M?M:4;t=null!=t?t:!0;l=document.createElement("div");l.style.whiteSpace="nowrap";null==c&&b.addLanguageMenu(l);var A=document.createElement("h2");mxUtils.write(A,k||mxResources.get("create"));A.style.marginTop="0px";A.style.marginBottom=
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
"*");this.remoteInvokeQueue=[]};EditorUi.prototype.handleRemoteInvokeResponse=function(d){var g=d.msgMarkers,n=this.remoteInvokeCallbacks[g.callbackId];if(null==n)throw Error("No callback for "+(null!=g?g.callbackId:"null"));d.error?n.error&&n.error(d.error.errResp):n.callback&&n.callback.apply(this,d.resp);this.remoteInvokeCallbacks[g.callbackId]=null};EditorUi.prototype.remoteInvoke=function(d,g,n,t,u){var v=!0,A=window.setTimeout(mxUtils.bind(this,function(){v=!1;u({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout")})}),
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
EditorUi.prototype.showLocalStorageDialog=function(d,g,n,t,u,v){var A=localStorage.getItem(g);d=new TextareaDialog(this,d,null!=A?JSON.stringify(JSON.parse(A),null,2):"",mxUtils.bind(this,function(H){if(null!=H)try{if(null!=v&&v(H),H==A)this.hideDialog();else{if(0<H.length){var L=JSON.parse(H);localStorage.setItem(g,JSON.stringify(L))}else localStorage.removeItem(g);this.hideDialog();this.alert(mxResources.get("restartForChangeRequired"))}}catch(F){this.handleError(F)}}),null,mxResources.get("close"), null,null,null,!0,null,null,u,n,t);this.showDialog(d.container,620,460,!0,!1);d.init()};EditorUi.prototype.showBackgroundImageDialog=function(d,g,n,t){d=null!=d?d:mxUtils.bind(this,function(u,v,A,H){v||(u=new ChangePageSetup(this,t?A:null,u),u.ignoreColor=!t,null!=H&&t&&(u.shadowVisible=H),this.editor.graph.model.execute(u))});d=new BackgroundImageDialog(this,d,g,n,t);this.showDialog(d.container,400,t?240:220,!0,!0);d.init()};EditorUi.prototype.showLibraryDialog=function(d,g,n,t,u){d=new LibraryDialog(this,
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
this.customFonts)))}finally{K.getModel().endUpdate()}}}));this.editorUi.showDialog(U.container,380,Editor.enableWebFonts?250:180,!0,!0);U.init()}),q,null,!0)})))}})();function DiagramPage(b,e){this.node=b;null!=e?this.node.setAttribute("id",e):null==this.getId()&&this.node.setAttribute("id",Editor.guid())}DiagramPage.prototype.node=null;DiagramPage.prototype.root=null;DiagramPage.prototype.viewState=null;DiagramPage.prototype.getId=function(){return this.node.getAttribute("id")};DiagramPage.prototype.getName=function(){return this.node.getAttribute("name")};
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
z.code=null);D(z)})))};GitHubClient.prototype.checkExists=function(e,f,c){var k=e.split("/"),l=k[0],x=k[1],y=k[2];e=k.slice(3,k.length).join("/");this.getSha(l,x,e,y,mxUtils.bind(this,function(E){if(f){var D=this.ui.spinner.pause();this.ui.confirm(mxResources.get("replaceIt",[e]),function(){D();c(!0,E)},function(){D();c(!1)})}else this.ui.spinner.stop(),this.ui.showError(mxResources.get("error"),mxResources.get("fileExists"),mxResources.get("ok"),function(){c(!1)})}),mxUtils.bind(this,function(E){c(!0)}), !0)};GitHubClient.prototype.saveFile=function(e,f,c,k,l){var x=e.meta.org,y=e.meta.repo,E=e.meta.ref,D=e.meta.path,z=mxUtils.bind(this,function(I,d){this.writeFile(x,y,E,D,l,d,I,mxUtils.bind(this,function(g){delete e.meta.isNew;f(JSON.parse(g.getText()).content.sha)}),mxUtils.bind(this,function(g){c(g)}))}),M=mxUtils.bind(this,function(){if(this.ui.useCanvasForExport&&/(\.png)$/i.test(D)){var I=this.ui.getPngFileProperties(this.ui.fileNode);this.ui.getEmbeddedPng(mxUtils.bind(this,function(d){z(e.meta.sha,
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
mxConstants.GUIDE_STROKEWIDTH);O.dialect=mxConstants.DIALECT_SVG;O.pointerEvents=!1;O.init(M.graph.getView().getOverlayPane());return O};S=function(O,N){if(O&&null!=M.guidesArrHor)for(O=0;O<M.guidesArrHor.length;O++)M.guidesArrHor[O].node.style.visibility="hidden";if(N&&null!=M.guidesArrVer)for(O=0;O<M.guidesArrVer.length;O++)M.guidesArrVer[O].node.style.visibility="hidden"};if(1<F&&F==t.length-1){F=[];q=M.guidesArrHor;D=[];E=0;u=t[0]==I?1:0;J=t[u].y+t[u].height;if(0<p)for(u=0;u<t.length-1;u++)d=
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
161==d.charCodeAt(4)&&177==d.charCodeAt(5)&&26==d.charCodeAt(6)&&225==d.charCodeAt(7)||60==d.charCodeAt(0)&&63==d.charCodeAt(1)&&120==d.charCodeAt(2)&&109==d.charCodeAt(3)&&108==d.charCodeAt(3))};var b=EditorUi.prototype.createKeyHandler;EditorUi.prototype.createKeyHandler=function(d){var g=b.apply(this,arguments);if(!this.editor.chromeless||this.editor.editable){var n=g.getFunction,t=this.editor.graph,u=this;g.getFunction=function(v){if(t.isSelectionEmpty()&&null!=u.pages&&0<u.pages.length){var A= u.getSelectedPageIndex();if(mxEvent.isShiftDown(v)){if(37==v.keyCode)return function(){0<A&&u.movePage(A,A-1)};if(38==v.keyCode)return function(){0<A&&u.movePage(A,0)};if(39==v.keyCode)return function(){A<u.pages.length-1&&u.movePage(A,A+1)};if(40==v.keyCode)return function(){A<u.pages.length-1&&u.movePage(A,u.pages.length-1)}}else if(mxEvent.isControlDown(v)||mxClient.IS_MAC&&mxEvent.isMetaDown(v)){if(37==v.keyCode)return function(){0<A&&u.selectNextPage(!1)};if(38==v.keyCode)return function(){0< A&&u.selectPage(u.pages[0])};if(39==v.keyCode)return function(){A<u.pages.length-1&&u.selectNextPage(!0)};if(40==v.keyCode)return function(){A<u.pages.length-1&&u.selectPage(u.pages[u.pages.length-1])}}}return!(65<=v.keyCode&&90>=v.keyCode)||t.isSelectionEmpty()||mxEvent.isAltDown(v)||mxEvent.isShiftDown(v)||mxEvent.isControlDown(v)||mxClient.IS_MAC&&mxEvent.isMetaDown(v)?n.apply(this,arguments):null}}return g};var e=EditorUi.prototype.extractGraphModelFromHtml;EditorUi.prototype.extractGraphModelFromHtml=
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
Z+"')";break;default:null==V?N=[{driveId:Q}]:N.push({name:Y,driveId:Q,folderId:V}),qa=(Q?"/drives/"+Q:"/me/drive")+(V?"/items/"+V:"/root")+"/children"}ea||(qa+=(0<qa.indexOf("?")?"&":"?")+"select=id,name,description,parentReference,file,createdBy,lastModifiedBy,lastModifiedDateTime,size,folder,remoteItem,@microsoft.graph.downloadUrl");var ia=[];da()}}function L(Q){U.className=U.className.replace("odCatSelected","");U=Q;U.className+=" odCatSelected"}function F(Q){O||(W=null,H("search",null,null,null,
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
function(){b.spinner.stop();if(null==b.linkPicker){var A=b.drive.createLinkPicker();b.linkPicker=A.setCallback(function(H){LinkDialog.filePicked(H)}).build()}b.linkPicker.setVisible(!0)}))});"undefined"!=typeof Dropbox&&"undefined"!=typeof Dropbox.choose&&y(IMAGE_PATH+"/dropbox-logo.svg",mxResources.get("dropbox"),function(){Dropbox.choose({linkType:"direct",cancel:function(){},success:function(A){z.value=A[0].link;z.focus()}})});null!=b.oneDrive&&y(IMAGE_PATH+"/onedrive-logo.svg",mxResources.get("oneDrive"),
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
return R};Editor.getDiagramNodeXml=function(m){var B=mxUtils.getTextContent(m),K=null;0<B.length?K=Graph.decompress(B):null!=m.firstChild&&(K=mxUtils.getXml(m.firstChild));return K};Editor.extractGraphModelFromPdf=function(m){m=m.substring(m.indexOf(",")+1);m=window.atob&&!mxClient.IS_SF?atob(m):Base64.decode(m,!0);if("%PDF-1.7"==m.substring(0,8)){var B=m.indexOf("EmbeddedFile");if(-1<B){var K=m.indexOf("stream",B)+9;if(0<m.substring(B,K).indexOf("application#2Fvnd.jgraph.mxfile"))return B=m.indexOf("endstream", K-1),pako.inflateRaw(Graph.stringToArrayBuffer(m.substring(K,B)),{to:"string"})}return null}K=null;B="";for(var R=0,U=0,W=[],Q=null;U<m.length;){var V=m.charCodeAt(U);U+=1;10!=V&&(B+=String.fromCharCode(V));V=="/Subject (%3Cmxfile".charCodeAt(R)?R++:R=0;if(19==R){var X=m.indexOf("%3C%2Fmxfile%3E)",U)+15;U-=9;if(X>U){K=m.substring(U,X);break}}10==V&&("endobj"==B?Q=null:"obj"==B.substring(B.length-3,B.length)||"xref"==B||"trailer"==B?(Q=[],W[B.split(" ")[0]]=Q):null!=Q&&Q.push(B),B="")}null==K&&(K= Editor.extractGraphModelFromXref(W));null!=K&&(K=decodeURIComponent(K.replace(/\\\(/g,"(").replace(/\\\)/g,")")));return K};Editor.extractGraphModelFromXref=function(m){var B=m.trailer,K=null;null!=B&&(B=/.* \/Info (\d+) (\d+) R/g.exec(B.join("\n")),null!=B&&0<B.length&&(B=m[B[1]],null!=B&&(B=/.* \/Subject (\d+) (\d+) R/g.exec(B.join("\n")),null!=B&&0<B.length&&(m=m[B[1]],null!=m&&(m=m.join("\n"),K=m.substring(1,m.length-1))))));return K};Editor.extractParserError=function(m,B){var K=null;m=null!=
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
!0,D=window.setTimeout(mxUtils.bind(this,function(){E=!1;c({code:App.ERROR_TIMEOUT})}),this.ui.timeout),z=this.client.filesGetMetadata({path:"/"+e.path.substring(1),include_deleted:!1});z.then(mxUtils.bind(this,function(M){}));z["catch"](function(M){window.clearTimeout(D);E&&null!=M&&409==M.status&&(E=!1,c({message:mxResources.get("fileNotFound")}))});z=this.client.filesDownload(e);z.then(mxUtils.bind(this,function(M){window.clearTimeout(D);if(E){E=!1;try{var I=new FileReader;I.onload=mxUtils.bind(this,
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
38==G.keyCode?(I(P,mxConstants.DIRECTION_NORTH),mxEvent.consume(G)):39==G.keyCode?(I(P,mxConstants.DIRECTION_EAST),mxEvent.consume(G)):40==G.keyCode&&(I(P,mxConstants.DIRECTION_SOUTH),mxEvent.consume(G)))}}catch(N){d.handleError(N)}mxEvent.isConsumed(G)||F.apply(this,arguments)};var S=g.connectVertex;g.connectVertex=function(G,P,O,N,T,m,B){var K=g.getIncomingTreeEdges(G);if(c(G)){var R=y(G),U=R==mxConstants.DIRECTION_EAST||R==mxConstants.DIRECTION_WEST,W=P==mxConstants.DIRECTION_EAST||P==mxConstants.DIRECTION_WEST; return R==P||0==K.length?z(G,P):U==W?D(G):E(G,P!=mxConstants.DIRECTION_NORTH&&P!=mxConstants.DIRECTION_WEST)}return S.apply(this,arguments)};g.getSubtree=function(G){var P=[G];!k(G)&&!c(G)||x(G)||g.traverse(G,!0,function(O,N){var T=null!=N&&g.isTreeEdge(N);T&&0>mxUtils.indexOf(P,N)&&P.push(N);(null==N||T)&&0>mxUtils.indexOf(P,O)&&P.push(O);return null==N||T});return P};var p=mxVertexHandler.prototype.init;mxVertexHandler.prototype.init=function(){p.apply(this,arguments);(k(this.state.cell)||c(this.state.cell))&&
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
this.cellEditor.textarea.getElementsByTagName("font");B=Graph.getFontUrl(m,B);for(var R=0;R<K.length;R++)K[R].getAttribute("face")==m&&K[R].getAttribute("data-font-src")!=B&&K[R].setAttribute("data-font-src",B)}};var v=Graph.prototype.isFastZoomEnabled;Graph.prototype.isFastZoomEnabled=function(){return v.apply(this,arguments)&&(!this.shadowVisible||!mxClient.IS_SF)};Graph.prototype.updateGlobalUrlVariables=function(){this.globalVars=Editor.globalVars;if(null!=urlParams.vars)try{this.globalVars=null!= this.globalVars?mxUtils.clone(this.globalVars):{};var m=JSON.parse(decodeURIComponent(urlParams.vars));if(null!=m)for(var B in m)this.globalVars[B]=m[B]}catch(K){null!=window.console&&console.log("Error in vars URL parameter: "+K)}};Graph.prototype.getExportVariables=function(){return null!=this.globalVars?mxUtils.clone(this.globalVars):{}};var A=Graph.prototype.getGlobalVariable;Graph.prototype.getGlobalVariable=function(m){var B=A.apply(this,arguments);null==B&&null!=this.globalVars&&(B=this.globalVars[m]);
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
y=document.createElement("div");y.style.height="300px";y.style.width="300px";y.style.display="inline-flex";y.style.justifyContent="center";y.style.alignItems="center";y.style.position="absolute";var E=document.createElement("img");E.onload=function(){function F(){z.model.setStyle(d,g+k())}z=new Graph(D);z.autoExtend=!1;z.autoScroll=!1;z.setGridEnabled(!1);z.setEnabled(!0);z.setPanning(!1);z.setConnectable(!1);z.getRubberband().setEnabled(!1);z.graphHandler.allowLivePreview=!1;var S=z.createVertexHandler; z.createVertexHandler=function(){var U=S.apply(this,arguments);U.livePreview=!1;return U};if(null!=f)try{if("inset"==f.substring(0,5)){var p=d.geometry,q=E.width,C=E.height,J=(300-q)/2,G=(300-C)/2,P=f.match(/\(([^)]+)\)/)[1].split(/[ ,]+/),O=parseFloat(P[0]),N=parseFloat(P[1]),T=parseFloat(P[2]),m=parseFloat(P[3]);isFinite(O)&&isFinite(N)&&isFinite(T)&&isFinite(m)?(p.x=m/100*q+J,p.y=O/100*C+G,p.width=(100-N)/100*q+J-p.x,p.height=(100-T)/100*C+G-p.y,"round"==P[4]?"50%"==P[5]?u.setAttribute("checked", "checked"):(I=parseInt(P[5]),A.value=I,t.setAttribute("checked","checked"),v.style.visibility="visible"):n.setAttribute("checked","checked")):f=null}else f=null}catch(U){}d.style=g+(f?f:k());d.vertex=!0;z.addCell(d,null,null,null,null);z.selectAll();z.addListener(mxEvent.CELLS_MOVED,F);z.addListener(mxEvent.CELLS_RESIZED,F);var B=z.graphHandler.mouseUp,K=z.graphHandler.mouseDown;z.graphHandler.mouseUp=function(){B.apply(this,arguments);D.style.backgroundColor="#fff9"};z.graphHandler.mouseDown=function(){K.apply(this, arguments);D.style.backgroundColor=""};z.dblClick=function(){};var R=z.getSelectionModel().changeSelection;z.getSelectionModel().changeSelection=function(){R.call(this,[d],[d])}};E.onerror=function(){E.onload=null;E.src=Editor.errorImage};E.setAttribute("src",e);E.style.maxWidth="300px";E.style.maxHeight="300px";y.appendChild(E);x.appendChild(y);var D=document.createElement("div");D.style.width="300px";D.style.height="300px";D.style.overflow="hidden";D.style.backgroundColor="#fff9";x.appendChild(D);
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
d=G;this.confirmImageResize(function(T){J=T;N()},L)}else N()};EditorUi.prototype.isBlankFile=function(){return null!=this.pages&&1==this.pages.length&&this.isDiagramEmpty()&&this.currentPage.getName()==mxResources.get("pageWithNumber",[1])};EditorUi.prototype.confirmImageResize=function(d,g){g=null!=g?g:!1;var n=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},t=isLocalStorage||mxClient.IS_CHROMEAPP?mxSettings.getResizeImages():null,u=function(v,A){if(v||g)mxSettings.setResizeImages(v? A:null),mxSettings.save();n();d(A)};null==t||g?this.showDialog((new ConfirmDialog(this,mxResources.get("resizeLargeImages"),function(v){u(v,!0)},function(v){u(v,!1)},mxResources.get("resize"),mxResources.get("actualSize"),'<img style="margin-top:8px;" src="'+Editor.loResImage+'"/>','<img style="margin-top:8px;" src="'+Editor.hiResImage+'"/>',isLocalStorage||mxClient.IS_CHROMEAPP)).container,340,isLocalStorage||mxClient.IS_CHROMEAPP?220:200,!0,!0):u(!1,t)};EditorUi.prototype.parseFile=function(d,g,
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
document.body.clientHeight,(1200>(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)||708>d)&&this.formatWindow.window.toggleMinimized()):this.formatWindow.window.setVisible(!1)}};var y=EditorUi.prototype.toggleFormatPanel;EditorUi.prototype.toggleFormatPanel=function(d){var g=this.formatWindow;null!=g?g.window.setVisible(null!=d?d:!this.isFormatPanelVisible()):y.apply(this,arguments)};EditorUi.prototype.toggleShapesPanel=function(d){var g=EditorUi.prototype.hsplitPosition; 0==g&&(g=134);var n=this.hsplitPosition,t=mxUtils.bind(this,function(){this.hsplitPosition=u;this.refresh();this.diagramContainer.scrollLeft-=n-this.hsplitPosition}),u=d?g:0;mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform",0==u?"translateX(0)":"translateX(-100%)");0!=u&&t();window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform",0==u?"translateX(-100%)":"translateX(0)");mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transition", "transform 0.3s ease-in-out");mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform-origin","top left");window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transition",null);mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform",null);mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform-origin",null);0==u&&t()}),300)}),10)};EditorUi.prototype.isShapesPanelVisible=function(){return 0<this.hsplitPosition};var E=EditorUi.prototype.isFormatPanelVisible;
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
var CommentsWindow=function(b,e,f,c,k,l){function x(){for(var q=v.getElementsByTagName("div"),C=0,J=0;J<q.length;J++)"none"!=q[J].style.display&&q[J].parentNode==v&&C++;A.style.display=0==C?"block":"none"}function y(q,C,J,G){function P(){C.removeChild(T);C.removeChild(m);N.style.display="block";O.style.display="block"}n={div:C,comment:q,saveCallback:J,deleteOnCancel:G};var O=C.querySelector(".geCommentTxt"),N=C.querySelector(".geCommentActionsList"),T=document.createElement("textarea");T.className=
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
EditorUi.prototype.chromelessWindowResize=function(){};var D=Menus.prototype.init;Menus.prototype.init=function(){D.apply(this,arguments);var I=this.editorUi;EditorUi.enablePlantUml&&!I.isOffline()&&I.actions.put("plantUml",new Action(mxResources.get("plantUml")+"...",function(){var n=new ParseDialog(I,mxResources.get("plantUml")+"...","plantUml");I.showDialog(n.container,620,420,!0,!1);n.init()}));I.actions.put("mermaid",new Action(mxResources.get("mermaid")+"...",function(){var n=new ParseDialog(I, mxResources.get("mermaid")+"...","mermaid");I.showDialog(n.container,620,420,!0,!1);n.init()}));var d="horizontalFlow verticalFlow - horizontalTree verticalTree radialTree - organic circle".split(" "),g=function(n,t,u,v){n.addItem(u,null,mxUtils.bind(this,function(){var A=new CreateGraphDialog(I,u,v);I.showDialog(A.container,620,420,!0,!1);A.init()}),t)};this.put("insertLayout",new Menu(mxUtils.bind(this,function(n,t){for(var u=0;u<d.length;u++)"-"==d[u]?n.addSeparator(t):g(n,t,mxResources.get(d[u])+ "...",d[u])})))};EditorUi.prototype.installFormatToolbar=function(I){var d=this.editor.graph,g=document.createElement("div");g.style.cssText="position:absolute;top:10px;z-index:1;border-radius:4px;box-shadow:0px 0px 3px 1px #d1d1d1;padding:6px;white-space:nowrap;background-color:#fff;transform:translate(-50%, 0);left:50%;";d.getSelectionModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(n,t){0<d.getSelectionCount()?(I.appendChild(g),g.innerHTML="Selected: "+d.getSelectionCount()):null!=
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
!0,"1"==urlParams.dev?mxscript("js/orgchart/bridge.min.js",function(){mxscript("js/orgchart/bridge.collections.min.js",function(){mxscript("js/orgchart/OrgChart.Layout.min.js",function(){mxscript("js/orgchart/mxOrgChartLayout.js",n,null,null,null,t)},null,null,null,t)},null,null,null,t)},null,null,null,t):mxscript(DRAWIO_BASE_URL+"/js/orgchart.min.js",n,null,null,null,t))}),onerror)};EditorUi.prototype.importCsv=function(d,g){this.loadOrgChartLayouts(mxUtils.bind(this,function(){this.doImportCsv(d, g)}))};EditorUi.prototype.doImportCsv=function(d,g){try{var n=d.split("\n"),t=[],u=[],v=[],A={};if(0<n.length){var H={},L=this.editor.graph,F=null,S=null,p=null,q=null,C=null,J=null,G=null,P="whiteSpace=wrap;html=1;",O=null,N=null,T="",m="auto",B="auto",K=!1,R=null,U=null,W=40,Q=40,V=100,X=0,Y=mxUtils.bind(this,function(){null!=g?g(Ua):(L.setSelectionCells(Ua),L.scrollCellToVisible(L.getSelectionCell()));null!=this.chromelessResize&&window.setTimeout(mxUtils.bind(this,function(){this.chromelessResize(!0)}),
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
P&&(G=this.getDeletableCells(this.addAllEdges(G)));for(var O=[],N=0;N<G.length;N++){var T=G[N];n.isEdge(T)&&l(T)&&(O.push(T),T=n.getTerminal(T,!1));if(c(T)){var m=[];g.traverse(T,!0,function(B,K){var R=null!=K&&g.isTreeEdge(K);R&&m.push(K);(null==K||R)&&m.push(B);return null==K||R});0<m.length&&(O=O.concat(m),T=g.getIncomingTreeEdges(G[N]),G=G.concat(T))}else null!=T&&O.push(G[N])}G=O;return u.apply(this,arguments)};d.hoverIcons.getStateAt=function(G,P,O){return c(G.cell)?null:this.graph.view.getState(this.graph.getCellAt(P, O))};var v=g.duplicateCells;g.duplicateCells=function(G,P){G=null!=G?G:this.getSelectionCells();for(var O=G.slice(0),N=0;N<O.length;N++){var T=g.view.getState(O[N]);if(null!=T&&c(T.cell)){var m=g.getIncomingTreeEdges(T.cell);for(T=0;T<m.length;T++)mxUtils.remove(m[T],G)}}this.model.beginUpdate();try{var B=v.call(this,G,P);if(B.length==G.length)for(N=0;N<G.length;N++)if(c(G[N])){var K=g.getIncomingTreeEdges(B[N]);m=g.getIncomingTreeEdges(G[N]);if(0==K.length&&0<m.length){var R=this.cloneCell(m[0]);
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
[J],"{1} ago"));C.setAttribute("title",q.toLocaleDateString()+" "+q.toLocaleTimeString())}function D(q){var C=document.createElement("img");C.className="geCommentBusyImg";C.src=IMAGE_PATH+"/spin.gif";q.appendChild(C);q.busyImg=C}function z(q){q.style.border="1px solid red";q.removeChild(q.busyImg)}function M(q){q.style.border="";q.removeChild(q.busyImg)}function I(q,C,J,G,P){function O(W,Q,V){var X=document.createElement("li");X.className="geCommentAction";var Y=document.createElement("a");Y.className=
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
l)for(x=0;x<l.length;x++)l[x].node.style.visibility=c?"visible":"hidden"};var f=mxGuide.prototype.destroy;mxGuide.prototype.destroy=function(){f.call(this);var c=this.guidesArrVer,k=this.guidesArrHor;if(null!=c){for(var l=0;l<c.length;l++)c[l].destroy();this.guidesArrVer=null}if(null!=k){for(l=0;l<k.length;l++)k[l].destroy();this.guidesArrHor=null}}})();function mxRuler(b,e,f,c){function k(){var A=b.diagramContainer;M.style.top=A.offsetTop-E+"px";M.style.left=A.offsetLeft-E+"px";M.style.width=(f?0:A.offsetWidth)+E+"px";M.style.height=(f?A.offsetHeight:0)+E+"px"}function l(A,H,L){if(null!=x)return A;var F;return function(){var S=this,p=arguments,q=L&&!F;clearTimeout(F);F=setTimeout(function(){F=null;L||A.apply(S,p)},H);q&&A.apply(S,p)}}var x=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame,
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
if(null!=v.hoverIcons){var C=v.hoverIcons.update;v.hoverIcons.update=function(){A.freehand.isDrawing()||C.apply(this,arguments)}}if(null!=A.freehand){var J=A.freehand.createStyle;A.freehand.createStyle=function(V){return J.apply(this,arguments)+"sketch=0;"}}v.editor.addListener("statusChanged",mxUtils.bind(this,function(){v.setStatusText(v.editor.getStatus())}));v.setStatusText(v.editor.getStatus());var G=v.menus.get("viewZoom");if(null!=G){var P=function(V){if(mxEvent.isAltDown(V))v.hideCurrentMenu(),
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
mxUtils.bind(this,function(){this.hideDialog()}),mxResources.get("saveAs"),mxResources.get("download"),!1,!1,A,null,1<H,L,t,v,u);H=this.isServices(H)?4<H?390:280:160;this.showDialog(d.container,420,H,!0,!0);d.init()};EditorUi.prototype.isServices=function(d){return 1!=d};EditorUi.prototype.getEditBlankXml=function(){return this.getFileData(!0)};EditorUi.prototype.exportFile=function(d,g,n,t,u,v){};EditorUi.prototype.pickFolder=function(d,g,n){g(null)};EditorUi.prototype.exportSvg=function(d,g,n,t,
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
u?4E3:3E4);F=!0}return F};EditorUi.prototype.setCurrentFile=function(d){null!=d&&(d.opened=new Date);this.currentFile=d};EditorUi.prototype.getCurrentFile=function(){return this.currentFile};EditorUi.prototype.isExportToCanvas=function(){return this.editor.isExportToCanvas()};EditorUi.prototype.createImageDataUri=function(d,g,n,t){d=d.toDataURL("image/"+n);if(null!=d&&6<d.length)null!=g&&(d=Editor.writeGraphModelToPng(d,"tEXt","mxfile",encodeURIComponent(g))),0<t&&(d=Editor.writeGraphModelToPng(d,
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
function(){this.setGraphEnabled(!1);if((window.opener||window.parent)!=window&&("1"!=urlParams.spin||this.spinner.spin(document.body,mxResources.get("loading")))){var d=!1;this.installMessageHandler(mxUtils.bind(this,function(g,n,t,u){d||(d=!0,this.spinner.stop(),this.addEmbedButtons(),this.setGraphEnabled(!0));if(null==g||0==g.length)g=this.emptyDiagramXml;this.setCurrentFile(new EmbedFile(this,g,{}));this.mode=App.MODE_EMBED;this.setFileData(g);if(u)try{var v=this.editor.graph;v.setGridEnabled(!1); v.pageVisible=!1;var A=v.model.cells,H;for(H in A){var L=A[H];null!=L&&null!=L.style&&(L.style+=";sketch=1;"+(-1==L.style.indexOf("fontFamily=")||-1<L.style.indexOf("fontFamily=Helvetica;")?"fontFamily=Architects Daughter;fontSource=https%3A%2F%2Ffonts.googleapis.com%2Fcss%3Ffamily%3DArchitects%2BDaughter;":""))}}catch(F){console.log(F)}this.editor.isChromelessView()?this.editor.graph.isLightboxView()&&this.lightboxFit():this.showLayersDialog();this.chromelessResize&&this.chromelessResize();this.editor.undoManager.clear(); this.editor.modified=null!=t?t:!1;this.updateUi();window.self!==window.top&&window.focus();null!=this.format&&this.format.refresh()}))}};EditorUi.prototype.showLayersDialog=function(){1<this.editor.graph.getModel().getChildCount(this.editor.graph.getModel().getRoot())&&(null==this.actions.layersWindow?this.actions.get("layers").funct():this.actions.layersWindow.window.setVisible(!0))};EditorUi.prototype.getPublicUrl=function(d,g){null!=d?d.getPublicUrl(g):g(null)};EditorUi.prototype.createLoadMessage=
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
Q[X[Z]]&&Y++;Y=Y==W}Y&&(1!=R||this.isCellVisible(B[V]))&&U.push(B[V])}}return U};Graph.prototype.getAllTags=function(){return this.getTagsForCells(this.model.getDescendants(this.model.getRoot()))};Graph.prototype.getCommonTagsForCells=function(m){for(var B=null,K=[],R=0;R<m.length;R++){var U=this.getTagsForCell(m[R]);K=[];if(0<U.length){U=U.split(" ");for(var W={},Q=0;Q<U.length;Q++)if(null==B||null!=B[U[Q]])W[U[Q]]=!0,K.push(U[Q]);B=W}else return[]}return K};Graph.prototype.getTagsForCells=function(m){for(var B= [],K={},R=0;R<m.length;R++){var U=this.getTagsForCell(m[R]);if(0<U.length){U=U.split(" ");for(var W=0;W<U.length;W++)null==K[U[W]]&&(K[U[W]]=!0,B.push(U[W]))}}return B};Graph.prototype.getTagsForCell=function(m){return this.getAttributeForCell(m,"tags","")};Graph.prototype.addTagsForCells=function(m,B){if(0<m.length&&0<B.length){this.model.beginUpdate();try{for(var K=0;K<m.length;K++){for(var R=this.getTagsForCell(m[K]),U=R.split(" "),W=!1,Q=0;Q<B.length;Q++){var V=mxUtils.trim(B[Q]);""!=V&&0>mxUtils.indexOf(U,
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
f=mxUtils.button(f,c);f.insertBefore(y,f.firstChild);f.style.marginTop="6px";f.className="geBigButton";f.style.fontSize="18px";f.style.padding="14px";k.appendChild(l);k.appendChild(b);k.appendChild(f);this.container=k},FontDialog=function(b,e,f,c,k){function l(A){this.style.border="";13==A.keyCode&&v.click()}var x=document.createElement("table"),y=document.createElement("tbody");x.style.marginTop="8px";var E=document.createElement("tr");var D=document.createElement("td");D.colSpan=2;D.style.whiteSpace=
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
f.style.verticalAlign="middle";f.className="geBtn";v.appendChild(f);b.isOffline()&&!mxClient.IS_CHROMEAPP&&(f.style.display="none");f=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});f.style.verticalAlign="middle";f.className="geBtn";b.editor.cancelFirst&&v.appendChild(f);LinkDialog.selectedDocs=null;LinkDialog.filePicked=function(A){if(A.action==google.picker.Action.PICKED){LinkDialog.selectedDocs=A.docs;var H=A.docs[0].url;"application/mxe"==A.docs[0].mimeType||null!=A.docs[0].mimeType&& "application/vnd.jgraph."==A.docs[0].mimeType.substring(0,23)?H="https://www.draw.io/#G"+A.docs[0].id:"application/vnd.google-apps.folder"==A.docs[0].mimeType&&(H="https://drive.google.com/#folders/"+A.docs[0].id);z.value=H;z.focus()}else LinkDialog.selectedDocs=null;z.focus()};"undefined"!=typeof google&&"undefined"!=typeof google.picker&&null!=b.drive&&y(IMAGE_PATH+"/google-drive-logo.svg",mxResources.get("googlePlus"),function(){b.spinner.spin(document.body,mxResources.get("authorizing"))&&b.drive.checkToken(mxUtils.bind(this,
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
this.graph.currentStyle);var R=this.graph.getBackgroundImageObject(this.graph.backgroundImage,B);null!=R&&K.setAttribute("backgroundImage",JSON.stringify(R));K.setAttribute("math",this.graph.mathEnabled?"1":"0");K.setAttribute("shadow",this.graph.shadowVisible?"1":"0");null!=this.graph.extFonts&&0<this.graph.extFonts.length&&(R=this.graph.extFonts.map(function(U){return U.name+"^"+U.url}),K.setAttribute("extFonts",R.join("|")));return K};Editor.prototype.isDataSvg=function(m){try{var B=mxUtils.parseXml(m).documentElement.getAttribute("content"); if(null!=B&&(null!=B&&"<"!=B.charAt(0)&&"%"!=B.charAt(0)&&(B=unescape(window.atob?atob(B):Base64.decode(cont,B))),null!=B&&"%"==B.charAt(0)&&(B=decodeURIComponent(B)),null!=B&&0<B.length)){var K=mxUtils.parseXml(B).documentElement;return"mxfile"==K.nodeName||"mxGraphModel"==K.nodeName}}catch(R){}return!1};Editor.prototype.extractGraphModel=function(m,B,K){return Editor.extractGraphModel.apply(this,arguments)};var f=Editor.prototype.resetGraph;Editor.prototype.resetGraph=function(){this.graph.mathEnabled=
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
function(d,g,n,t,u,v,A,H){EditorUi.logEvent("SHOULD NOT BE CALLED: loadUrl");return this.editor.loadUrl(d,g,n,t,u,v,A,H)};EditorUi.prototype.loadFonts=function(d){EditorUi.logEvent("SHOULD NOT BE CALLED: loadFonts");return this.editor.loadFonts(d)};EditorUi.prototype.createSvgDataUri=function(d){EditorUi.logEvent("SHOULD NOT BE CALLED: createSvgDataUri");return Editor.createSvgDataUri(d)};EditorUi.prototype.embedCssFonts=function(d,g){EditorUi.logEvent("SHOULD NOT BE CALLED: embedCssFonts");return this.editor.embedCssFonts(d, g)};EditorUi.prototype.embedExtFonts=function(d){EditorUi.logEvent("SHOULD NOT BE CALLED: embedExtFonts");return this.editor.embedExtFonts(d)};EditorUi.prototype.exportToCanvas=function(d,g,n,t,u,v,A,H,L,F,S,p,q,C,J,G){EditorUi.logEvent("SHOULD NOT BE CALLED: exportToCanvas");return this.editor.exportToCanvas(d,g,n,t,u,v,A,H,L,F,S,p,q,C,J,G)};EditorUi.prototype.createImageUrlConverter=function(){EditorUi.logEvent("SHOULD NOT BE CALLED: createImageUrlConverter");return this.editor.createImageUrlConverter()};
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
R.length&&(U=R[Math.max(0,Math.min(R.length-1,urlParams.page||0))])),null!=U&&(m=Editor.parseDiagramNode(U,K)));null==m||"mxGraphModel"==m.nodeName||B&&"mxfile"==m.nodeName||(m=null);return m};Editor.parseDiagramNode=function(m,B){var K=mxUtils.trim(mxUtils.getTextContent(m)),R=null;0<K.length?(m=Graph.decompress(K,null,B),null!=m&&0<m.length&&(R=mxUtils.parseXml(m).documentElement)):(m=mxUtils.getChildNodes(m),0<m.length&&(R=mxUtils.createXmlDocument(),R.appendChild(R.importNode(m[0],!0)),R=R.documentElement)); return R};Editor.getDiagramNodeXml=function(m){var B=mxUtils.getTextContent(m),K=null;0<B.length?K=Graph.decompress(B):null!=m.firstChild&&(K=mxUtils.getXml(m.firstChild));return K};Editor.extractGraphModelFromPdf=function(m){m=m.substring(m.indexOf(",")+1);m=window.atob&&!mxClient.IS_SF?atob(m):Base64.decode(m,!0);if("%PDF-1.7"==m.substring(0,8)){var B=m.indexOf("EmbeddedFile");if(-1<B){var K=m.indexOf("stream",B)+9;if(0<m.substring(B,K).indexOf("application#2Fvnd.jgraph.mxfile"))return B=m.indexOf("endstream",
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
arguments);D.style.backgroundColor=""};z.dblClick=function(){};var R=z.getSelectionModel().changeSelection;z.getSelectionModel().changeSelection=function(){R.call(this,[d],[d])}};E.onerror=function(){E.onload=null;E.src=Editor.errorImage};E.setAttribute("src",e);E.style.maxWidth="300px";E.style.maxHeight="300px";y.appendChild(E);x.appendChild(y);var D=document.createElement("div");D.style.width="300px";D.style.height="300px";D.style.overflow="hidden";D.style.backgroundColor="#fff9";x.appendChild(D);
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
this.loadImage(Y.target.result,mxUtils.bind(this,function(fa){this.resizeImage(fa,Y.target.result,mxUtils.bind(this,function(qa,ia,ya){U(Q,mxUtils.bind(this,function(){if(null!=qa&&qa.length<F){var xa=J&&this.isResampleImageSize(V.size,S)?Math.min(1,Math.min(t/ia,t/ya)):1;return u(qa,V.type,g+Q*m,n+Q*m,Math.round(ia*xa),Math.round(ya*xa),V.name)}this.handleError({message:mxResources.get("imageTooBig")});return null}))}),J,t,S,V.size)}),mxUtils.bind(this,function(){this.handleError({message:mxResources.get("invalidOrMissingFile")})})))}else Z=
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
(ka?"geTempDlgRadioBtnLarge":"geTempDlgRadioBtnSmall");N.querySelector("."+aa).src="/images/"+la+"-sel.svg";N.querySelector("."+pa).src="/images/"+ha+".svg";return!0}function v(ja,aa,la,na){function pa(wa,Ma){null==ka?(wa=/^https?:\/\//.test(wa)&&!b.editor.isCorsEnabledForUrl(wa)?PROXY_URL+"?url="+encodeURIComponent(wa):TEMPLATE_PATH+"/"+wa,mxUtils.get(wa,mxUtils.bind(this,function(Ia){200<=Ia.getStatus()&&299>=Ia.getStatus()&&(ka=Ia.getText());Ma(ka)}))):Ma(ka)}function ha(wa,Ma,Ia){if(null!=wa&& mxUtils.isAncestorNode(document.body,aa)&&(wa=mxUtils.parseXml(wa),wa=Editor.extractGraphModel(wa.documentElement,!0),null!=wa)){"mxfile"==wa.nodeName&&(wa=Editor.parseDiagramNode(wa.getElementsByTagName("diagram")[0]));var Aa=new mxCodec(wa.ownerDocument),Ja=new mxGraphModel;Aa.decode(wa,Ja);wa=Ja.root.getChildAt(0).children||[];b.sidebar.createTooltip(aa,wa,Math.min((window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)-80,1E3),Math.min((window.innerHeight||document.documentElement.clientHeight|| document.body.clientHeight)-80,800),null!=ja.title?mxResources.get(ja.title,null,ja.title):null,!0,new mxPoint(Ma,Ia),!0,null,!0);var Na=document.createElement("div");Na.className="geTempDlgDialogMask";N.appendChild(Na);var ra=b.sidebar.hideTooltip;b.sidebar.hideTooltip=function(){Na&&(N.removeChild(Na),Na=null,ra.apply(this,arguments),b.sidebar.hideTooltip=ra)};mxEvent.addListener(Na,"click",function(){b.sidebar.hideTooltip()})}}var ka=null;if(oa||b.sidebar.currentElt==aa)b.sidebar.hideTooltip(); else{var ua=function(wa){oa&&b.sidebar.currentElt==aa&&ha(wa,mxEvent.getClientX(na),mxEvent.getClientY(na));oa=!1;la.src="/images/icon-search.svg"};b.sidebar.hideTooltip();b.sidebar.currentElt=aa;oa=!0;la.src="/images/aui-wait.gif";ja.isExt?E(ja,ua,function(){n(mxResources.get("cantLoadPrev"));oa=!1;la.src="/images/icon-search.svg"}):pa(ja.url,ua)}}function A(ja,aa,la){if(null!=R){for(var na=R.className.split(" "),pa=0;pa<na.length;pa++)if(-1<na[pa].indexOf("Active")){na.splice(pa,1);break}R.className=
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
function(R){mxEvent.isConsumed(R)||((mxEvent.isControlDown(R)||mxClient.IS_MAC&&mxEvent.isMetaDown(R))&&13==R.keyCode?(K.click(),mxEvent.consume(R)):27==R.keyCode&&(B.click(),mxEvent.consume(R)))}));K.focus();K.className="geCommentEditBtn gePrimaryBtn";m.appendChild(K);C.insertBefore(m,O);N.style.display="none";O.style.display="none";T.focus()}function E(q,C){C.innerText="";q=new Date(q.modifiedDate);var J=b.timeSince(q);null==J&&(J=mxResources.get("lessThanAMinute"));mxUtils.write(C,mxResources.get("timeAgo", [J],"{1} ago"));C.setAttribute("title",q.toLocaleDateString()+" "+q.toLocaleTimeString())}function D(q){var C=document.createElement("img");C.className="geCommentBusyImg";C.src=IMAGE_PATH+"/spin.gif";q.appendChild(C);q.busyImg=C}function z(q){q.style.border="1px solid red";q.removeChild(q.busyImg)}function M(q){q.style.border="";q.removeChild(q.busyImg)}function I(q,C,J,G,P){function O(W,Q,V){var X=document.createElement("li");X.className="geCommentAction";var Y=document.createElement("a");Y.className=
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
"")+"/log?severity="+v+"&v="+encodeURIComponent(EditorUi.VERSION)+"&msg=clientError:"+encodeURIComponent(d)+":url:"+encodeURIComponent(window.location.href)+":lnum:"+encodeURIComponent(n)+(null!=t?":colno:"+encodeURIComponent(t):"")+(""!=u.stack?"&stack="+encodeURIComponent(u.stack):""))}catch(H){}try{A||null==window.console||console.error(v,d,g,n,t,u)}catch(H){}}};EditorUi.logEvent=function(d){if("1"==urlParams.dev)EditorUi.debug("logEvent",d);else if(EditorUi.enableLogging)try{var g=null!=window.DRAWIO_LOG_URL? window.DRAWIO_LOG_URL:"";(new Image).src=g+"/images/1x1.png?v="+encodeURIComponent(EditorUi.VERSION)+(null!=d?"&data="+encodeURIComponent(JSON.stringify(d)):"")}catch(n){}};EditorUi.sendReport=function(d,g){if("1"==urlParams.dev)EditorUi.debug("sendReport",d);else if(EditorUi.enableLogging)try{g=null!=g?g:5E4,d.length>g&&(d=d.substring(0,g)+"\n...[SHORTENED]"),mxUtils.post("/email","version="+encodeURIComponent(EditorUi.VERSION)+"&url="+encodeURIComponent(window.location.href)+"&data="+encodeURIComponent(d))}catch(n){}};
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
p);this.handleError(d,g,n,t,u)}),S,mxResources.get("changeUser"),mxUtils.bind(this,function(){function C(){O.innerText="";for(var N=0;N<J.length;N++){var T=document.createElement("option");mxUtils.write(T,J[N].displayName);T.value=N;O.appendChild(T);T=document.createElement("option");T.innerHTML="&nbsp;&nbsp;&nbsp;";mxUtils.write(T,"<"+J[N].email+">");T.setAttribute("disabled","disabled");O.appendChild(T)}T=document.createElement("option");mxUtils.write(T,mxResources.get("addAccount"));T.value=J.length; O.appendChild(T)}var J=this.drive.getUsersList(),G=document.createElement("div"),P=document.createElement("span");P.style.marginTop="6px";mxUtils.write(P,mxResources.get("changeUser")+": ");G.appendChild(P);var O=document.createElement("select");O.style.width="200px";C();mxEvent.addListener(O,"change",mxUtils.bind(this,function(){var N=O.value,T=J.length!=N;T&&this.drive.setUser(J[N]);this.drive.authorize(T,mxUtils.bind(this,function(){T||(J=this.drive.getUsersList(),C())}),mxUtils.bind(this,function(m){this.handleError(m)}),
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
I.vertex=!0;M.addCell(I);M.dblClick=function(J,G){if(null!=G&&G!=I)M.setSelectionCell(G);else{G=mxUtils.convertPoint(M.container,mxEvent.getClientX(J),mxEvent.getClientY(J));mxEvent.consume(J);J=M.view.scale;var P=M.view.translate;M.setSelectionCell(l((G.x-3*J)/J-P.x,(G.y-3*J)/J-P.y))}};k=new mxKeyHandler(M);k.bindKey(46,x);k.bindKey(8,x);M.getRubberband().isForceRubberbandEvent=function(J){return 0==J.evt.button&&(null==J.getCell()||J.getCell()==I)};M.panningHandler.isForcePanningEvent=function(J){return 2==
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
mxUtils.bind(this,function(){this.hideDialog()}),mxResources.get("saveAs"),mxResources.get("download"),!1,!1,A,null,1<H,L,t,v,u);H=this.isServices(H)?4<H?390:280:160;this.showDialog(d.container,420,H,!0,!0);d.init()};EditorUi.prototype.isServices=function(d){return 1!=d};EditorUi.prototype.getEditBlankXml=function(){return this.getFileData(!0)};EditorUi.prototype.exportFile=function(d,g,n,t,u,v){};EditorUi.prototype.pickFolder=function(d,g,n){g(null)};EditorUi.prototype.exportSvg=function(d,g,n,t,
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
try{this.ui.pages=this.ui.applyPatches(this.ui.pages,b,!0,e,this.isModified()),0==this.ui.pages.length&&this.ui.pages.push(this.ui.createPage()),0>mxUtils.indexOf(this.ui.pages,this.ui.currentPage)&&this.ui.selectPage(this.ui.pages[0],!0)}finally{y.container.style.visibility="";y.model.endUpdate();y.cellRenderer.redraw=M;this.changeListenerEnabled=E;f||(k.history=l,k.indexOfNextAdd=x,k.fireEvent(new mxEventObject(mxEvent.CLEAR)));if(null==this.ui.currentPage||this.ui.currentPage.needsUpdate)z!=y.mathEnabled? (this.ui.editor.updateGraphComponents(),y.refresh()):(D!=y.foldingEnabled?y.view.revalidate():y.view.validate(),y.sizeDidChange());null!=this.sync&&this.isRealtime()&&!c&&(this.sync.snapshot=this.ui.clonePages(this.ui.pages));this.ui.editor.fireEvent(new mxEventObject("pagesPatched","patches",b))}EditorUi.debug("DrawioFile.patch",[this],"patches",b,"resolver",e,"undoable",f)}return b};
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
ma=la;ca=na;da=ka;ea=aa;za=pa;Ba=ua;Ca=ha;ea.style.backgroundColor=y;ea.style.border=E}function S(aa,la,na,pa,ha,ka,ua,wa,Ma,Ia,Aa){function Ja(Oa,Ya){null==Ha?(La=Oa,La=/^https?:\/\//.test(La)&&!b.editor.isCorsEnabledForUrl(La)?PROXY_URL+"?url="+encodeURIComponent(La):TEMPLATE_PATH+"/"+La,mxUtils.get(La,mxUtils.bind(this,function(Wa){200<=Wa.getStatus()&&299>=Wa.getStatus()&&(Ha=Wa.getText());Ya(Ha,La)}))):Ya(Ha,La)}function Na(Oa,Ya){if(null==aa||B||b.sidebar.currentElt==ra)b.sidebar.hideTooltip(); else if(b.sidebar.hideTooltip(),null!=K){var Wa="<mxfile><diagram>"+Graph.compress('<mxGraphModel><root><mxCell id="0"/><mxCell id="1" parent="0"/><mxCell id="2" value="" style="shape=image;image='+K.src+';imageAspect=1;" parent="1" vertex="1"><mxGeometry width="'+K.naturalWidth+'" height="'+K.naturalHeight+'" as="geometry" /></mxCell></root></mxGraphModel>')+"</diagram></mxfile>";A(Wa,mxEvent.getClientX(Oa),mxEvent.getClientY(Oa),na,aa)}else b.sidebar.currentElt=ra,B=!0,Ja(aa,function(ab){B&&b.sidebar.currentElt== ra&&A(ab,mxEvent.getClientX(Oa),mxEvent.getClientY(Oa),ra,Ya);B=!1})}var ra=document.createElement("div");ra.className="geTemplate geAdaptiveAsset";ra.style.position="relative";ra.style.height=Ka+"px";ra.style.width=oa+"px";ra.style.border="1px solid transparent";var Ha=null,La=aa;null!=na?ra.setAttribute("title",mxResources.get(na,null,na)):null!=pa&&0<pa.length&&ra.setAttribute("title",pa);if(null!=ka){ra.style.display="inline-flex";ra.style.justifyContent="center";ra.style.alignItems="center";
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
function(p,q){var C=c.getCurrentFile();null==C||C.getMode()!=App.MODE_GOOGLE&&C.getMode()!=App.MODE_GITHUB||!/(\.png)$/i.test(C.getTitle())||this.addMenuItems(p,["liveImage","-"],q);this.addMenuItems(p,["embedImage","embedSvg","-","embedHtml"],q);navigator.standalone||c.isOffline()||this.addMenuItems(p,["embedIframe"],q);"1"==urlParams.embed||c.isOffline()||this.addMenuItems(p,"- googleDocs googleSlides googleSheets - microsoftOffice - embedNotion".split(" "),q)})));c.addInsertItem=function(p,q,C, J){("plantUml"!=J||EditorUi.enablePlantUml&&!c.isOffline())&&p.addItem(C,null,mxUtils.bind(this,function(){if("fromText"==J||"formatSql"==J||"plantUml"==J||"mermaid"==J){var G=new ParseDialog(c,C,J);c.showDialog(G.container,620,420,!0,!1);c.dialog.container.style.overflow="auto"}else G=new CreateGraphDialog(c,C,J),c.showDialog(G.container,620,420,!0,!1);G.init()}),q,null,l())};var A=function(p){k.getModel().beginUpdate();try{p=k.addCell(p),k.fireEvent(new mxEventObject("cellsInserted","cells",[p])),
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
return S};EditorUi.prototype.getXmlFileData=function(d,g,n,t){d=null!=d?d:!0;g=null!=g?g:!1;n=null!=n?n:!Editor.defaultCompressed;var u=this.editor.getGraphXml(d,t);if(d&&null!=this.fileNode&&null!=this.currentPage)if(d=function(L){var F=L.getElementsByTagName("mxGraphModel");F=0<F.length?F[0]:null;null==F&&n?(F=mxUtils.trim(mxUtils.getTextContent(L)),L=L.cloneNode(!1),0<F.length&&(F=Graph.decompress(F),null!=F&&0<F.length&&L.appendChild(mxUtils.parseXml(F).documentElement))):null==F||n?L=L.cloneNode(!0): (L=L.cloneNode(!1),mxUtils.setTextContent(L,Graph.compressNode(F)));u.appendChild(L)},EditorUi.removeChildNodes(this.currentPage.node),mxUtils.setTextContent(this.currentPage.node,Graph.compressNode(u)),u=this.fileNode.cloneNode(!1),g)d(this.currentPage.node);else for(g=0;g<this.pages.length;g++){var v=this.pages[g],A=v.node;if(v!=this.currentPage)if(v.needsUpdate){var H=new mxCodec(mxUtils.createXmlDocument());H=H.encode(new mxGraphModel(v.root));this.editor.graph.saveViewState(v.viewState,H,null,
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
d?d:"",extras:JSON.stringify(u),scale:A,border:H,w:p&&isFinite(p)?p:null,h:q&&isFinite(q)?q:null}};EditorUi.prototype.setMode=function(d,g){this.mode=d};EditorUi.prototype.getDiagramId=function(){var d=window.location.hash;null!=d&&0<d.length&&(d=d.substring(1));if(null!=d&&1<d.length){var g=d.indexOf("#");0<=g&&(d=d.substring(0,g))}return d};EditorUi.prototype.getHashObject=function(){var d=window.location.hash,g={};if(null!=d&&0<d.length){var n=d.lastIndexOf("#");if(0<n){d=decodeURIComponent(d.substring(n+
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
ua.innerText=ka;ha.appendChild(ua);qa.appendChild(ha);mxEvent.addListener(ha,"click",function(){function Ma(){var Aa=Ia.querySelector(".geTemplateDrawioCatLink");null!=Aa?Aa.click():setTimeout(Ma,200)}da=!0;var Ia=N.querySelector(".geTemplatesList");Ia.style.display="block";Ca.style.width="";xa.style.display="";xa.value="";Z=null;Ma()});ma.style.display=ja.length<=la?"none":""}function p(ja,aa,la){function na(La,Xa){La=mxResources.get(La,null,La.substring(0,1).toUpperCase()+La.substring(1));var Sa=
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
c.appendChild(D);mxUtils.br(c);this.init=function(){D.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?D.select():document.execCommand("selectAll",!1,null)};mxUtils.write(c,mxResources.get("top")+":");var z=document.createElement("input");z.setAttribute("type","text");z.setAttribute("size","4");z.style.marginRight="16px";z.style.marginLeft="4px";z.value=y;c.appendChild(z);mxUtils.write(c,mxResources.get("height")+":");var M=document.createElement("input");M.setAttribute("type","text");
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
(t<<5)-t+this.hashValue(d.childNodes[u],g,n)<<0}else if(null!=d&&"function"!==typeof d){d=String(d);g=0;null!=n&&(n.byteCount+=d.length);for(u=0;u<d.length;u++)g=(g<<5)-g+d.charCodeAt(u)<<0;t^=g}return t};EditorUi.prototype.descriptorChanged=function(){};EditorUi.prototype.restoreLibraries=function(){};EditorUi.prototype.saveLibrary=function(d,g,n,t,u,v,A){};EditorUi.prototype.isScratchpadEnabled=function(){return isLocalStorage||mxClient.IS_CHROMEAPP};EditorUi.prototype.toggleScratchpad=function(){this.isScratchpadEnabled()&&
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
da));U--;0==U&&B(m)})):Y.setAttribute(V,ca)}else null!=Z&&Y.setAttribute(V,Z)}}catch(da){}})(Q[X])});K("image","xlink:href");K("img","src");0==U&&B(m)};Editor.base64Encode=function(m){for(var B="",K=0,R=m.length,U,W,Q;K<R;){U=m.charCodeAt(K++)&255;if(K==R){B+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(U>>2);B+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((U&3)<<4);B+="==";break}W=m.charCodeAt(K++);if(K==R){B+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(U>> 2);B+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((U&3)<<4|(W&240)>>4);B+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((W&15)<<2);B+="=";break}Q=m.charCodeAt(K++);B+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(U>>2);B+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((U&3)<<4|(W&240)>>4);B+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((W&15)<<2|(Q&192)>>6); B+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(Q&63)}return B};Editor.prototype.loadUrl=function(m,B,K,R,U,W,Q,V){try{var X=!Q&&(R||/(\.png)($|\?)/i.test(m)||/(\.jpe?g)($|\?)/i.test(m)||/(\.gif)($|\?)/i.test(m)||/(\.pdf)($|\?)/i.test(m));U=null!=U?U:!0;var Y=mxUtils.bind(this,function(){mxUtils.get(m,mxUtils.bind(this,function(Z){if(200<=Z.getStatus()&&299>=Z.getStatus()){if(null!=B){var ca=Z.getText();if(X){if((9==document.documentMode||10==document.documentMode)&&"undefined"!==
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
EditorUi.prototype.importZipFile=function(d,g,n){var t=this,u=mxUtils.bind(this,function(){this.loadingExtensions=!1;"undefined"!==typeof JSZip?JSZip.loadAsync(d).then(function(v){if(mxUtils.isEmptyObject(v.files))n();else{var A=0,H,L=!1;v.forEach(function(F,S){F=S.name.toLowerCase();"diagram/diagram.xml"==F?(L=!0,S.async("string").then(function(p){0==p.indexOf("<mxfile ")?g(p):n()})):0==F.indexOf("versions/")&&(F=parseInt(F.substr(9)),F>A&&(A=F,H=S))});0<A?H.async("string").then(function(F){(new XMLHttpRequest).upload&& t.isRemoteFileFormat(F,d.name)?t.isOffline()?t.showError(mxResources.get("error"),mxResources.get("notInOffline"),null,n):t.parseFileData(F,mxUtils.bind(this,function(S){4==S.readyState&&(200<=S.status&&299>=S.status?g(S.responseText):n())}),d.name):n()}):L||n()}},function(v){n(v)}):n()});"undefined"!==typeof JSZip||this.loadingExtensions||this.isOffline(!0)?u():(this.loadingExtensions=!0,mxscript("js/extensions.min.js",u,null,null,null,n))};EditorUi.prototype.importFile=function(d,g,n,t,u,v,A,H,
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
ColorDialog.resetRecentColors=function(){E.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()}}"undefined"!==typeof window.EditDataDialog&&(EditDataDialog.getDisplayIdForCell=function(m,B){var K=null;null!=m.editor.graph.getModel().getParent(B)?K=B.getId():null!=m.currentPage&&(K=m.currentPage.getId());return K});if(null!=window.StyleFormatPanel){var D=Format.prototype.init;Format.prototype.init=function(){D.apply(this,arguments);this.editorUi.editor.addListener("fileLoaded",
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
Aa?ka.getName():"pagenumber"==Aa?ha+1:"pagecount"==Aa?null!=m.pages?m.pages.length:1:Ia.apply(this,arguments)};document.body.appendChild(ja.container);m.updatePageRoot(ka);ja.model.setRoot(ka.root)}na=Fa(ja,na,ha!=la,ka.getId());ja!=U&&ja.container.parentNode.removeChild(ja.container)}}else na=Fa(U);null==na?m.handleError({message:mxResources.get("errorUpdatingPreview")}):(na.mathEnabled&&(la=na.wnd.document,Qa&&(na.wnd.IMMEDIATE_PRINT=!0),la.writeln('<script type="text/javascript" src="'+DRAWIO_BASE_URL+ '/js/math-print.js">\x3c/script>')),na.closeDocument(),Graph.rewritePageLinks(na.wnd.document),!na.mathEnabled&&Qa&&PrintDialog.printPreview(na));null!=Ga&&(U.shapeForegroundColor=Va,U.shapeBackgroundColor=Ua,U.stylesheet=Ga,U.refresh())}}var U=m.editor.graph,W=document.createElement("div"),Q=document.createElement("h3");Q.style.width="100%";Q.style.textAlign="center";Q.style.marginTop="0px";mxUtils.write(Q,B||mxResources.get("print"));W.appendChild(Q);var V=1,X=1;Q=document.createElement("div");
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
b.container.style.cursor=C?"crosshair":"";b.fireEvent(new mxEventObject("freehandStateChanged"))};this.startDrawing=function(){A(!0)};this.isDrawing=function(){return g};var H=mxUtils.bind(this,function(C){if(c){var J=y.length,G=n&&0<x.length&&null!=y&&2>y.length;G||x.push.apply(x,y);y=[];x.push(null);k.push(c);c=null;(G||z)&&this.stopDrawing();z&&(!G||2<=J)&&this.startDrawing();mxEvent.consume(C)}}),L=new mxCell;L.edge=!0;var F=function(){var C=b.getCurrentCellStyle(L);C=mxUtils.getValue(b.currentVertexStyle,
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
null,null,null,!0,null,null,u,n,t);this.showDialog(d.container,620,460,!0,!1);d.init()};EditorUi.prototype.showBackgroundImageDialog=function(d,g,n,t){d=null!=d?d:mxUtils.bind(this,function(u,v,A,H){v||(u=new ChangePageSetup(this,t?A:null,u),u.ignoreColor=!t,null!=H&&t&&(u.shadowVisible=H),this.editor.graph.model.execute(u))});d=new BackgroundImageDialog(this,d,g,n,t);this.showDialog(d.container,400,t?240:220,!0,!0);d.init()};EditorUi.prototype.showLibraryDialog=function(d,g,n,t,u){d=new LibraryDialog(this, d,g,n,t,u);this.showDialog(d.container,640,440,!0,!1,mxUtils.bind(this,function(v){v&&null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.showSplash()}));d.init()};var f=EditorUi.prototype.createFormat;EditorUi.prototype.createFormat=function(d){var g=f.apply(this,arguments);this.editor.graph.addListener("viewStateChanged",mxUtils.bind(this,function(n){this.editor.graph.isSelectionEmpty()&&g.refresh()}));return g};EditorUi.prototype.handleError=function(d,g,n,t,u,v,A){var H=null!=this.spinner&&
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
urlParams.thumb||null!=L.mimeType&&"application/vnd.jgraph.mxfile"!=L.mimeType.substring(0,29)||!this.ui.getThumbnail(this.thumbnailWidth,mxUtils.bind(this,function(S){try{var p=null;try{null!=S&&(p=S.toDataURL("image/png")),null!=p&&(p=p.length>this.maxThumbnailSize?null:p.substring(p.indexOf(",")+1).replace(/\+/g,"-").replace(/\//g,"_"))}catch(q){p=null}F(p,"image/png")}catch(q){d(q)}})))&&F(null,null,f.constructor!=DriveLibrary)}catch(S){d(S)}}else this.ui.editor.graph.reset(),I({message:mxResources.get("readOnly")})}catch(S){d(S)}};
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
function(D){return this.isTreeEdge(D)}))};Graph.prototype.getIncomingTreeEdges=function(c,k){return this.getTreeEdges(c,k,!0,!1,!1)};Graph.prototype.getOutgoingTreeEdges=function(c,k){return this.getTreeEdges(c,k,!1,!0,!1)};var e=EditorUi.prototype.init;EditorUi.prototype.init=function(){e.apply(this,arguments);this.editor.isChromelessView()&&!this.editor.editable||this.addTrees()};EditorUi.prototype.addTrees=function(){function c(G){return n.isVertex(G)&&l(G)}function k(G){var P=!1;null!=G&&(P="1"==
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
mxEvent.consume(W)}));mxEvent.addListener(this.chromelessToolbar,"mouseleave",mxUtils.bind(this,function(W){mxEvent.isTouchEvent(W)||F(30)}));var Y=a.getTolerance();a.addMouseListener({startX:0,startY:0,scrollLeft:0,scrollTop:0,mouseDown:function(W,J){this.startX=J.getGraphX();this.startY=J.getGraphY();this.scrollLeft=a.container.scrollLeft;this.scrollTop=a.container.scrollTop},mouseMove:function(W,J){},mouseUp:function(W,J){mxEvent.isTouchEvent(J.getEvent())&&Math.abs(this.scrollLeft-a.container.scrollLeft)<
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
G){return new mxXmlRequest(EXPORT_URL,"format="+n+"&base64="+(G||"0")+(null!=J?"&filename="+encodeURIComponent(J):"")+"&extras="+encodeURIComponent(JSON.stringify(C))+(0<A?"&dpi="+A:"")+"&bg="+(null!=t?t:"none")+"&w="+p+"&h="+q+"&border="+v+"&xml="+encodeURIComponent(F))})}else"png"==n?d.exportImage(u,null==t||"none"==t,!0,!1,!1,v,!0,!1,null,H,A):d.exportImage(u,!1,!0,!1,!1,v,!0,!1,"jpeg",H);else mxUtils.alert(mxResources.get("drawingTooLarge"))}});EditorUi.prototype.getDiagramTextContent=function(){this.editor.graph.setEnabled(!1); var d=this.editor.graph,g="";if(null!=this.pages)for(var n=0;n<this.pages.length;n++){var t=d;this.currentPage!=this.pages[n]&&(t=this.createTemporaryGraph(d.getStylesheet()),this.updatePageRoot(this.pages[n]),t.model.setRoot(this.pages[n].root));g+=this.pages[n].getName()+" "+t.getIndexableText()+" "}else g=d.getIndexableText();this.editor.graph.setEnabled(!0);return g};EditorUi.prototype.showRemotelyStoredLibrary=function(d){var g={},n=document.createElement("div");n.style.whiteSpace="nowrap";var t=
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
f?z=new mxHierarchicalLayout(l,mxConstants.DIRECTION_WEST):"circle"==f?z=new mxCircleLayout(l):(z=new mxFastOrganicLayout(l,!1),z.forceConstant=80);if(null!=z){var M=function(n,t){l.getModel().beginUpdate();try{null!=n&&n(),z.execute(l.getDefaultParent(),D)}catch(u){throw u;}finally{n=new mxMorphing(l),n.addListener(mxEvent.DONE,mxUtils.bind(this,function(){l.getModel().endUpdate();null!=t&&t()})),n.startAnimation()}},I=mxEdgeHandler.prototype.connect;mxEdgeHandler.prototype.connect=function(n,t,
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
mxDualRuler.prototype.setUnit=function(b){this.vRuler.setUnit(b);this.hRuler.setUnit(b)};mxDualRuler.prototype.setStyle=function(b){this.vRuler.setStyle(b);this.hRuler.setStyle(b)};mxDualRuler.prototype.destroy=function(){this.vRuler.destroy();this.hRuler.destroy();this.ui.refresh=this.editorUiRefresh;mxGuide.prototype.move=this.origGuideMove;mxGuide.prototype.destroy=this.origGuideDestroy;this.ui.getDiagramContainerOffset=this.editorUiGetDiagContOffset};function mxFreehand(b){var e=null!=b.view&&null!=b.view.canvas?b.view.canvas.ownerSVGElement:null;if(null!=b.container&&null!=e){b.addListener(mxEvent.ESCAPE,mxUtils.bind(this,function(){this.stopDrawing()}));var f=mxFreehand.prototype.NORMAL_SMOOTHING,c=null,k=[],l,x=[],y,E=!1,D=!0,z=!0,M=!0,I=!0,d=[],g=!1,n=!1,t=!1,u={size:5,thinning:.5,smoothing:.5,streamline:.5,start:{taper:0,cap:!0},end:{taper:0,cap:!0}},v=!0;this.setClosedPath=function(C){E=C};this.setAutoClose=function(C){D=C};this.setAutoInsert=
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
function(){return"simple"!=Editor.currentTheme};this.menus.isShowArrangeItems=this.menus.isShowStyleItems;this.menus.isShowCellEditItems=this.menus.isShowStyleItems}d.actions.get("print").funct=function(){d.showDialog((new PrintDialog(d)).container,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 O=S.apply(this,arguments),N=d.getCurrentFile();null!=N&&(O.filename=N.getTitle()); O.pagecount=null!=d.pages?d.pages.length:1;O.page=null!=d.currentPage?d.currentPage.getName():"";O.pagenumber=null!=d.pages&&null!=d.currentPage?mxUtils.indexOf(d.pages,d.currentPage)+1:1;return O};var p=g.getGlobalVariable;g.getGlobalVariable=function(O){var N=d.getCurrentFile();return"filename"==O&&null!=N?N.getTitle():"page"==O&&null!=d.currentPage?d.currentPage.getName():"pagenumber"==O?null!=d.currentPage&&null!=d.pages?mxUtils.indexOf(d.pages,d.currentPage)+1:1:"pagecount"==O?null!=d.pages?
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
n=document.createElement("div");n.style.whiteSpace="nowrap";n.style.height="30px";C.appendChild(n);q=mxUtils.button(mxResources.get("Templates",null,"Templates"),function(){ta.style.display="";qa.style.display="";fa.style.left="160px";X(0);fa.scrollTop=0;fa.innerText="";O=0;W!=Ga&&(Ga=W,sa=Q,Da=V,ta.innerText="",p(),W=null)});U.push(q);n.appendChild(q);var Y=function(aa){ta.style.display="none";qa.style.display="none";fa.style.left="30px";X(aa?-1:1);null==W&&(W=Ga);fa.scrollTop=0;fa.innerText=""; N.spin(fa);var la=function(na,pa,ha){O=0;N.stop();Ga=na;ha=ha||{};var ka=0,ua;for(ua in ha)ka+=ha[ua].length;if(pa)fa.innerText=pa;else if(0==na.length&&0==ka)fa.innerText=mxResources.get("noDiagrams",null,"No Diagrams Found");else if(fa.innerText="",0<ka){ta.style.display="";fa.style.left="160px";ta.innerText="";Da=0;sa={"draw.io":na};for(ua in ha)sa[ua]=ha[ua];p()}else v(!0)};aa?I(Z.value,la):M(la)};M&&(q=mxUtils.button(mxResources.get("Recent",null,"Recent"),function(){Y()}),n.appendChild(q),U.push(q));
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
this.originalQuadTo.apply(this.canvas,arguments):(this.addOp(this.quadOp,W,Q,V,X),this.lastX=V,this.lastY=X)};m.prototype.curveTo=function(W,Q,V,X,Y,Z){this.passThrough?this.originalCurveTo.apply(this.canvas,arguments):(this.addOp(this.curveOp,W,Q,V,X,Y,Z),this.lastX=Y,this.lastY=Z)};m.prototype.arcTo=function(W,Q,V,X,Y,Z,ca){if(this.passThrough)this.originalArcTo.apply(this.canvas,arguments);else{var da=mxUtils.arcToCurves(this.lastX,this.lastY,W,Q,V,X,Y,Z,ca);if(null!=da)for(var ma=0;ma<da.length;ma+= 6)this.curveTo(da[ma],da[ma+1],da[ma+2],da[ma+3],da[ma+4],da[ma+5]);this.lastX=Z;this.lastY=ca}};m.prototype.rect=function(W,Q,V,X){this.passThrough?this.originalRect.apply(this.canvas,arguments):(this.path=[],this.nextShape=this.rc.generator.rectangle(W,Q,V,X,this.getStyle(!0,!0)))};m.prototype.ellipse=function(W,Q,V,X){this.passThrough?this.originalEllipse.apply(this.canvas,arguments):(this.path=[],this.nextShape=this.rc.generator.ellipse(W+V/2,Q+X/2,V,X,this.getStyle(!0,!0)))};m.prototype.roundrect=
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
g;u.onerror=n;for(var v=0;v<t.length;v++)u.objectStore(t[v]).delete(d[v])}),n)};EditorUi.prototype.getDatabaseItem=function(d,g,n,t){this.openDatabase(mxUtils.bind(this,function(u){try{t=t||"objects";var v=u.transaction([t],"readonly").objectStore(t).get(d);v.onsuccess=function(){g(v.result)};v.onerror=n}catch(A){null!=n&&n(A)}}),n)};EditorUi.prototype.getDatabaseItems=function(d,g,n){this.openDatabase(mxUtils.bind(this,function(t){try{n=n||"objects";var u=t.transaction([n],"readonly").objectStore(n).openCursor(IDBKeyRange.lowerBound(0)),
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
var CreateDialog=function(b,e,f,c,k,l,x,y,E,D,z,M,I,d,g,n,t){function u(q,C,J,G){function P(){mxEvent.addListener(O,"click",function(){var K=J;if(x){var R=H.value,U=R.lastIndexOf(".");if(0>e.lastIndexOf(".")&&0>U){K=null!=K?K:p.value;var W="";K==App.MODE_GOOGLE?W=b.drive.extension:K==App.MODE_GITHUB?W=b.gitHub.extension:K==App.MODE_GITLAB?W=b.gitLab.extension:K==App.MODE_TRELLO?W=b.trello.extension:K==App.MODE_DROPBOX?W=b.dropbox.extension:K==App.MODE_ONEDRIVE?W=b.oneDrive.extension:K==App.MODE_DEVICE&& (W=".drawio");0<=U&&(R=R.substring(0,U));H.value=R+W}}v(J)})}var O=document.createElement("a");O.style.overflow="hidden";var N=document.createElement("img");N.src=q;N.setAttribute("border","0");N.setAttribute("align","absmiddle");N.style.width="60px";N.style.height="60px";N.style.paddingBottom="6px";O.style.display="inline-block";O.className="geBaseButton";O.style.position="relative";O.style.margin="4px";O.style.padding="8px 8px 10px 8px";O.style.whiteSpace="nowrap";O.appendChild(N);O.style.color=
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
u,v,A){I.apply(this,arguments);M()};l.resizeCell=function(){mxGraph.prototype.resizeCell.apply(this,arguments);M()};l.connectionHandler.addListener(mxEvent.CONNECT,function(){M()})}var d=mxUtils.button(mxResources.get("close"),function(){b.confirm(mxResources.get("areYouSure"),function(){null!=k.parentNode&&(l.destroy(),k.parentNode.removeChild(k));b.hideDialog()})});d.className="geBtn";b.editor.cancelFirst&&c.appendChild(d);var g=mxUtils.button(mxResources.get("insert"),function(n){l.clearCellOverlays();
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
null!=d.getMode())try{this.addRecent({id:d.getHash(),title:d.getTitle(),mode:d.getMode()})}catch(H){}try{mxSettings.setOpenCounter(mxSettings.getOpenCounter()+1),mxSettings.save()}catch(H){}}catch(H){this.fileLoadedError=H;if(null!=d)try{d.close()}catch(L){}if(EditorUi.enableLogging&&!this.isOffline())try{EditorUi.logEvent({category:"ERROR-LOAD-FILE-"+(null!=d?d.getHash():"none"),action:"message_"+H.message,label:"stack_"+H.stack})}catch(L){}d=mxUtils.bind(this,function(){null!=urlParams.url&&this.spinner.spin(document.body, mxResources.get("reconnecting"))?window.location.search=this.getSearch(["url"]):null!=t?this.fileLoaded(t)||v():v()});g?d():this.handleError(H,mxResources.get("errorLoadingFile"),d,!0,null,null,!0)}else v();return u};EditorUi.prototype.getHashValueForPages=function(d,g){var n=0,t=new mxGraphModel,u=new mxCodec;null!=g&&(g.byteCount=0,g.attrCount=0,g.eltCount=0,g.nodeCount=0);for(var v=0;v<d.length;v++){this.updatePageRoot(d[v]);var A=d[v].node.cloneNode(!1);A.removeAttribute("name");t.root=d[v].root;
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
function(){return this.openLink("mailto:"+mxUtils.htmlEntities(L.ownerEmail))}));this.showError(g,A,F,n,S,null,null,v,q,null,null,null,t?n:null)}else null!=n&&n()};EditorUi.prototype.alert=function(d,g,n){d=new ErrorDialog(this,null,d,mxResources.get("ok"),g);this.showDialog(d.container,n||340,100,!0,!1);d.init()};EditorUi.prototype.confirm=function(d,g,n,t,u,v){d=null!=d?d:"";var A=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},H=Math.min(220,28*Math.ceil(Math.max(1,
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
g)};EditorUi.prototype.embedExtFonts=function(d){EditorUi.logEvent("SHOULD NOT BE CALLED: embedExtFonts");return this.editor.embedExtFonts(d)};EditorUi.prototype.exportToCanvas=function(d,g,n,t,u,v,A,H,L,F,S,p,q,C,J,G){EditorUi.logEvent("SHOULD NOT BE CALLED: exportToCanvas");return this.editor.exportToCanvas(d,g,n,t,u,v,A,H,L,F,S,p,q,C,J,G)};EditorUi.prototype.createImageUrlConverter=function(){EditorUi.logEvent("SHOULD NOT BE CALLED: createImageUrlConverter");return this.editor.createImageUrlConverter()};
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
"0"!=urlParams.pv;Graph.prototype.shadowId="dropShadow";Graph.prototype.svgShadowColor="#3D4574";Graph.prototype.svgShadowOpacity="0.4";Graph.prototype.svgShadowBlur="1.7";Graph.prototype.svgShadowSize="3";Graph.prototype.hiddenTags=[];Graph.prototype.defaultMathEnabled=!1;var g=Graph.prototype.init;Graph.prototype.init=function(){function m(U){B=U}g.apply(this,arguments);this.hiddenTags=[];window.mxFreehand&&(this.freehand=new mxFreehand(this));var B=null;mxEvent.addListener(this.container,"mouseenter", m);mxEvent.addListener(this.container,"mousemove",m);mxEvent.addListener(this.container,"mouseleave",function(U){B=null});this.isMouseInsertPoint=function(){return null!=B};var K=this.getInsertPoint;this.getInsertPoint=function(){return null!=B?this.getPointForEvent(B):K.apply(this,arguments)};var R=this.layoutManager.getLayout;this.layoutManager.getLayout=function(U){var W=this.graph.getCellStyle(U);if(null!=W&&"rack"==W.childLayout){var Q=new mxStackLayout(this.graph,!1);Q.gridSize=null!=W.rackUnitSize? parseFloat(W.rackUnitSize):"undefined"!==typeof mxRackContainer?mxRackContainer.unitSize:20;Q.marginLeft=W.marginLeft||0;Q.marginRight=W.marginRight||0;Q.marginTop=W.marginTop||0;Q.marginBottom=W.marginBottom||0;Q.allowGaps=W.allowGaps||0;Q.horizontal="1"==mxUtils.getValue(W,"horizontalRack","0");Q.resizeParent=!1;Q.fill=!0;return Q}return R.apply(this,arguments)};this.updateGlobalUrlVariables()};var n=Graph.prototype.postProcessCellStyle;Graph.prototype.postProcessCellStyle=function(m,B){return Graph.processFontStyle(n.apply(this,
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
"0"!=urlParams.pv;Graph.prototype.shadowId="dropShadow";Graph.prototype.svgShadowColor="#3D4574";Graph.prototype.svgShadowOpacity="0.4";Graph.prototype.svgShadowBlur="1.7";Graph.prototype.svgShadowSize="3";Graph.prototype.hiddenTags=[];Graph.prototype.defaultMathEnabled=!1;var g=Graph.prototype.init;Graph.prototype.init=function(){function m(U){B=U}g.apply(this,arguments);this.hiddenTags=[];window.mxFreehand&&(this.freehand=new mxFreehand(this));var B=null;mxEvent.addListener(this.container,"mouseenter",
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
v.defaultLibraryName=mxResources.get("untitledLibrary");var H=document.createElement("div");H.className="geMenubarContainer";var L=null,F=new Menubar(v,H);v.statusContainer=v.createStatusContainer();v.statusContainer.style.position="relative";v.statusContainer.style.maxWidth="";v.statusContainer.style.color="gray";v.statusContainer.style.cursor="default";var S=v.hideCurrentMenu;v.hideCurrentMenu=function(){S.apply(this,arguments);this.editor.graph.popupMenuHandler.hideMenu()};var p=v.descriptorChanged;
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
m);mxEvent.addListener(this.container,"mousemove",m);mxEvent.addListener(this.container,"mouseleave",function(U){B=null});this.isMouseInsertPoint=function(){return null!=B};var K=this.getInsertPoint;this.getInsertPoint=function(){return null!=B?this.getPointForEvent(B):K.apply(this,arguments)};var R=this.layoutManager.getLayout;this.layoutManager.getLayout=function(U){var W=this.graph.getCellStyle(U);if(null!=W&&"rack"==W.childLayout){var Q=new mxStackLayout(this.graph,!1);Q.gridSize=null!=W.rackUnitSize?
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
function(m){"data:action/json,"==m.substring(0,17)&&(m=JSON.parse(m.substring(17)),null!=m.actions&&this.executeCustomActions(m.actions))};Graph.prototype.executeCustomActions=function(m,B){if(this.executingCustomActions)this.stoppingCustomActions=!0,null!=this.pendingWaitThread&&window.clearTimeout(this.pendingWaitThread),null!=this.pendingExecuteNextAction&&this.pendingExecuteNextAction(),this.fireEvent(new mxEventObject("stopExecutingCustomActions"));else{this.executingCustomActions=!0;var K=!1,
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
v=[];u.onsuccess=function(A){null==A.target.result?d(v):(v.push(A.target.result.value),A.target.result.continue())};u.onerror=g}catch(A){null!=g&&g(A)}}),g)};EditorUi.prototype.getDatabaseItemKeys=function(d,g,n){this.openDatabase(mxUtils.bind(this,function(t){try{n=n||"objects";var u=t.transaction([n],"readonly").objectStore(n).getAllKeys();u.onsuccess=function(){d(u.result)};u.onerror=g}catch(v){null!=g&&g(v)}}),g)};EditorUi.prototype.commentsSupported=function(){var d=this.getCurrentFile();return null!= d?d.commentsSupported():!1};EditorUi.prototype.commentsRefreshNeeded=function(){var d=this.getCurrentFile();return null!=d?d.commentsRefreshNeeded():!0};EditorUi.prototype.commentsSaveNeeded=function(){var d=this.getCurrentFile();return null!=d?d.commentsSaveNeeded():!1};EditorUi.prototype.getComments=function(d,g){var n=this.getCurrentFile();null!=n?n.getComments(d,g):d([])};EditorUi.prototype.addComment=function(d,g,n){var t=this.getCurrentFile();null!=t?t.addComment(d,g,n):g(Date.now())};EditorUi.prototype.canReplyToReplies=
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
null!=d)f||b.hideDialog(),d(za,Ca,P.value);else if(c)f||b.hideDialog(),c(ma,P.value,Ba,ca);else{var aa=P.value;null!=aa&&0<aa.length&&b.pickFolder(b.mode,function(la){b.createFile(aa,ma,null!=ca&&0<ca.length?ca:null,null,function(){b.hideDialog()},null,la,null,null!=da&&0<da.length?da:null)},b.mode!=App.MODE_GOOGLE||null==b.stateArg||null==b.stateArg.folderId)}}function F(aa,la,na,pa,ha,ka,ua){null!=ea&&(ea.style.backgroundColor="transparent",ea.style.border="1px solid transparent");T.removeAttribute("disabled"); ma=la;ca=na;da=ka;ea=aa;za=pa;Ba=ua;Ca=ha;ea.style.backgroundColor=y;ea.style.border=E}function S(aa,la,na,pa,ha,ka,ua,wa,Ma,Ia,Aa){function Ja(Oa,Ya){null==Ha?(La=Oa,La=/^https?:\/\//.test(La)&&!b.editor.isCorsEnabledForUrl(La)?PROXY_URL+"?url="+encodeURIComponent(La):TEMPLATE_PATH+"/"+La,mxUtils.get(La,mxUtils.bind(this,function(Wa){200<=Wa.getStatus()&&299>=Wa.getStatus()&&(Ha=Wa.getText());Ya(Ha,La)}))):Ya(Ha,La)}function Na(Oa,Ya){if(null==aa||B||b.sidebar.currentElt==ra)b.sidebar.hideTooltip();
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
function(Q){"undefined"!==typeof MathJax&&"function"===typeof MathJax.typeset?Editor.doMathJaxRender(Q):Editor.mathJaxQueue.push(Q)};Editor.onMathJaxDone=function(){};var U=Editor.prototype.init;Editor.prototype.init=function(){U.apply(this,arguments);var Q=mxUtils.bind(this,function(V,X){null!=this.graph.container&&this.graph.mathEnabled&&Editor.MathJaxRender(this.graph.container)});this.graph.model.addListener(mxEvent.CHANGE,Q);this.graph.addListener(mxEvent.REFRESH,Q)};B=document.getElementsByTagName("script");
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
var BtnDialog=function(b,e,f,c){var k=document.createElement("div");k.style.textAlign="center";var l=document.createElement("p");l.style.fontSize="16pt";l.style.padding="0px";l.style.margin="0px";l.style.color="gray";mxUtils.write(l,mxResources.get("done"));var x="Unknown",y=document.createElement("img");y.setAttribute("border","0");y.setAttribute("align","absmiddle");y.style.marginRight="10px";e==b.drive?(x=mxResources.get("googleDrive"),y.src=IMAGE_PATH+"/google-drive-logo-white.svg"):e==b.dropbox? (x=mxResources.get("dropbox"),y.src=IMAGE_PATH+"/dropbox-logo-white.svg"):e==b.oneDrive?(x=mxResources.get("oneDrive"),y.src=IMAGE_PATH+"/onedrive-logo-white.svg"):e==b.gitHub?(x=mxResources.get("github"),y.src=IMAGE_PATH+"/github-logo-white.svg"):e==b.gitLab?(x=mxResources.get("gitlab"),y.src=IMAGE_PATH+"/gitlab-logo.svg"):e==b.trello&&(x=mxResources.get("trello"),y.src=IMAGE_PATH+"/trello-logo-white.svg");b=document.createElement("p");mxUtils.write(b,mxResources.get("authorizedIn",[x],"You are now authorized in {1}")); f=mxUtils.button(f,c);f.insertBefore(y,f.firstChild);f.style.marginTop="6px";f.className="geBigButton";f.style.fontSize="18px";f.style.padding="14px";k.appendChild(l);k.appendChild(b);k.appendChild(f);this.container=k},FontDialog=function(b,e,f,c,k){function l(A){this.style.border="";13==A.keyCode&&v.click()}var x=document.createElement("table"),y=document.createElement("tbody");x.style.marginTop="8px";var E=document.createElement("tr");var D=document.createElement("td");D.colSpan=2;D.style.whiteSpace=
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
Toolbar.prototype.selectedBackground="rgb(242, 242, 242)"),Editor.prototype.initialTopSpacing=3,EditorUi.prototype.menubarHeight=41,EditorUi.prototype.toolbarHeight=38);"sketch"==Editor.currentTheme&&(Editor.configurationKey=".sketch-configuration",Editor.settingsKey=".sketch-config")};EditorUi.initTheme();EditorUi.prototype.showImageDialog=function(d,g,n,t,u,v,A){d=new ImageDialog(this,d,g,n,t,u,v,A);this.showDialog(d.container,Graph.fileSupport?480:360,Graph.fileSupport?200:90,!0,!0);d.init()};
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
function(D){return this.isTreeEdge(D)}))};Graph.prototype.getIncomingTreeEdges=function(c,k){return this.getTreeEdges(c,k,!0,!1,!1)};Graph.prototype.getOutgoingTreeEdges=function(c,k){return this.getTreeEdges(c,k,!1,!0,!1)};var e=EditorUi.prototype.init;EditorUi.prototype.init=function(){e.apply(this,arguments);this.editor.isChromelessView()&&!this.editor.editable||this.addTrees()};EditorUi.prototype.addTrees=function(){function c(G){return n.isVertex(G)&&l(G)}function k(G){var P=!1;null!=G&&(P="1"==
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
preview:aa.getAttribute("preview"),clibs:ha,tags:aa.getAttribute("tags")};ka.push(ha);null!=na&&(ka=va[pa],null==ka&&(ka={},va[pa]=ka),pa=ka[na],null==pa&&(pa=[],ka[na]=pa),pa.push(ha))}aa=aa.nextSibling}N.stop();p()}})};C.appendChild(qa);C.appendChild(ta);C.appendChild(fa);var Ua=!1,ja=z;/^https?:\/\//.test(ja)&&!b.editor.isCorsEnabledForUrl(ja)&&(ja=PROXY_URL+"?url="+encodeURIComponent(ja));N.spin(fa);null!=t?t(function(aa,la){Ea=aa;V=Da=la;Va()},Va):Va();Q=sa}mxEvent.addListener(P,"keypress",function(aa){b.dialog.container.firstChild==
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
J.translate(Math.floor((1-q.x)/C),Math.floor((1-q.y)/C));J.scale(1/C);var P=0,O=J.save;J.save=function(){P++;O.apply(this,arguments)};var N=J.restore;J.restore=function(){P--;N.apply(this,arguments)};var T=p.drawShape;p.drawShape=function(m){mxLog.debug("entering shape",m,P);T.apply(this,arguments);mxLog.debug("leaving shape",m,P)};p.drawState(k.getView().getState(k.model.root),J);mxLog.show();mxLog.debug(mxUtils.getXml(G));mxLog.debug("stateCounter",P)}));c.actions.addAction("testShowConsole",function(){mxLog.isVisible()?
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
d?d:"",extras:JSON.stringify(u),scale:A,border:H,w:p&&isFinite(p)?p:null,h:q&&isFinite(q)?q:null}};EditorUi.prototype.setMode=function(d,g){this.mode=d};EditorUi.prototype.getDiagramId=function(){var d=window.location.hash;null!=d&&0<d.length&&(d=d.substring(1));if(null!=d&&1<d.length){var g=d.indexOf("#");0<=g&&(d=d.substring(0,g))}return d};EditorUi.prototype.getHashObject=function(){var d=window.location.hash,g={};if(null!=d&&0<d.length){var n=d.lastIndexOf("#");if(0<n){d=decodeURIComponent(d.substring(n+
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
f&&f();this.ui.fileLoaded(I)}),mxUtils.bind(this,function(){this.savingFile=!1;null!=c&&c()}),!1,M,E)}))});null!=x?y(x):this.peer.showCommitDialog(this.meta.name,null==this.getDescriptorEtag(this.meta)||this.meta.isNew,mxUtils.bind(this,function(E){y(E)}),c)}else null!=f&&f()};GitHubLibrary=function(b,e,f){GitHubFile.call(this,b,e,f)};mxUtils.extend(GitHubLibrary,GitHubFile);GitHubLibrary.prototype.doSave=function(b,e,f){this.saveFile(b,!1,e,f)};GitHubLibrary.prototype.open=function(){};(function(){var b=null;window.GitHubClient=function(e,f){DrawioClient.call(this,e,f||"ghauth")};mxUtils.extend(GitHubClient,DrawioClient);GitHubClient.prototype.clientId="test.draw.io"==window.location.hostname?"Iv1.1218f5567fbc258a":window.DRAWIO_GITHUB_ID;GitHubClient.prototype.extension=".drawio";GitHubClient.prototype.baseUrl=DRAWIO_GITHUB_API_URL;GitHubClient.prototype.baseHostUrl=DRAWIO_GITHUB_URL;GitHubClient.prototype.redirectUri=window.location.protocol+"//"+window.location.host+"/github2";
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
this.state.y+this.state.height+(40>this.state.height?10:0)+2+"px")};var C=mxVertexHandler.prototype.setHandlesVisible;mxVertexHandler.prototype.setHandlesVisible=function(G){C.apply(this,arguments);null!=this.moveHandle&&(this.moveHandle.style.display=G?"":"none")};var J=mxVertexHandler.prototype.destroy;mxVertexHandler.prototype.destroy=function(G,P){J.apply(this,arguments);null!=this.moveHandle&&(this.moveHandle.parentNode.removeChild(this.moveHandle),this.moveHandle=null)}};if("undefined"!==typeof Sidebar){var f=
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
function(D){return this.isTreeEdge(D)}))};Graph.prototype.getIncomingTreeEdges=function(c,k){return this.getTreeEdges(c,k,!0,!1,!1)};Graph.prototype.getOutgoingTreeEdges=function(c,k){return this.getTreeEdges(c,k,!1,!0,!1)};var e=EditorUi.prototype.init;EditorUi.prototype.init=function(){e.apply(this,arguments);this.editor.isChromelessView()&&!this.editor.editable||this.addTrees()};EditorUi.prototype.addTrees=function(){function c(G){return n.isVertex(G)&&l(G)}function k(G){var P=!1;null!=G&&(P="1"==
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
function(d){f(I.result,M)});k?I.readAsDataURL(M.fileBlob):I.readAsText(M.fileBlob)}catch(d){c(d)}}}));z["catch"](mxUtils.bind(this,function(M){window.clearTimeout(D);E&&(E=!1,null==M||500!=M.status&&400!=M.status&&401!=M.status?c({message:mxResources.get("error")+" "+M.status}):(this.client.setAccessToken(null),this.setUser(null),b=null,y?c({message:mxResources.get("accessDenied"),retry:mxUtils.bind(this,function(){this.authenticate(function(){x(!0)},c)})}):this.authenticate(function(){l(!0)},c)))}))}),
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
v.setAttribute("disabled","disabled")}));mxUtils.br(d);return{getLink:function(){return n.checked?"blank"===v.value?"_blank":u:null},getEditInput:function(){return n},getEditSelect:function(){return v}}};EditorUi.prototype.addLinkSection=function(d,g){function n(){var H=document.createElement("div");H.style.width="100%";H.style.height="100%";H.style.boxSizing="border-box";null!=v&&v!=mxConstants.NONE?(H.style.border="1px solid black",H.style.backgroundColor=v):(H.style.backgroundPosition="center center", H.style.backgroundRepeat="no-repeat",H.style.backgroundImage="url('"+Dialog.prototype.closeImage+"')");A.innerText="";A.appendChild(H)}mxUtils.write(d,mxResources.get("links")+":");var t=document.createElement("select");t.style.width="100px";t.style.padding="0px";t.style.marginLeft="8px";t.style.marginRight="10px";t.className="geBtn";var u=document.createElement("option");u.setAttribute("value","auto");mxUtils.write(u,mxResources.get("automatic"));t.appendChild(u);u=document.createElement("option"); u.setAttribute("value","blank");mxUtils.write(u,mxResources.get("openInNewWindow"));t.appendChild(u);u=document.createElement("option");u.setAttribute("value","self");mxUtils.write(u,mxResources.get("openInThisWindow"));t.appendChild(u);g&&(g=document.createElement("option"),g.setAttribute("value","frame"),mxUtils.write(g,mxResources.get("openInThisWindow")+" ("+mxResources.get("iframe")+")"),t.appendChild(g));d.appendChild(t);mxUtils.write(d,mxResources.get("borderColor")+":");var v="#0000ff",A= null;A=mxUtils.button("",mxUtils.bind(this,function(H){this.pickColor(v||"none",function(L){v=L;n()});mxEvent.consume(H)}));n();A.style.padding=mxClient.IS_FF?"4px 2px 4px 2px":"4px";A.style.marginLeft="4px";A.style.height="22px";A.style.width="22px";A.style.position="relative";A.style.top=mxClient.IS_IE||mxClient.IS_IE11||mxClient.IS_EDGE?"6px":"1px";A.className="geColorBtn";d.appendChild(A);mxUtils.br(d);return{getColor:function(){return v},getTarget:function(){return t.value},focus:function(){t.focus()}}};
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
function(D){return this.isTreeEdge(D)}))};Graph.prototype.getIncomingTreeEdges=function(c,k){return this.getTreeEdges(c,k,!0,!1,!1)};Graph.prototype.getOutgoingTreeEdges=function(c,k){return this.getTreeEdges(c,k,!1,!0,!1)};var e=EditorUi.prototype.init;EditorUi.prototype.init=function(){e.apply(this,arguments);this.editor.isChromelessView()&&!this.editor.editable||this.addTrees()};EditorUi.prototype.addTrees=function(){function c(G){return n.isVertex(G)&&l(G)}function k(G){var P=!1;null!=G&&(P="1"== g.getCurrentCellStyle(G).treeMoving);return P}function l(G){var P=!1;null!=G&&(G=n.getParent(G),P=g.view.getState(G),P="tree"==(null!=P?P.style:g.getCellStyle(G)).containerType);return P}function x(G){var P=!1;null!=G&&(G=n.getParent(G),P=g.view.getState(G),g.view.getState(G),P=null!=(null!=P?P.style:g.getCellStyle(G)).childLayout);return P}function y(G){G=g.view.getState(G);if(null!=G){var P=g.getIncomingTreeEdges(G.cell);if(0<P.length&&(P=g.view.getState(P[0]),null!=P&&(P=P.absolutePoints,null!=
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
function(){this.hideDialog()}),mxResources.get("saveAs"),mxResources.get("download"),!1,v,A,null,1<u,L,d,n,t);v=this.isServices(u)?u>L?390:280:160;this.showDialog(g.container,420,v,!0,!0);g.init()};EditorUi.prototype.openInNewWindow=function(d,g,n){var t=window.open("about:blank");null==t||null==t.document?mxUtils.popup(d,!0):("image/svg+xml"!=g||mxClient.IS_SVG?"image/svg+xml"!=g||n?(d=n?d:btoa(unescape(encodeURIComponent(d))),t.document.write('<html><img style="max-width:100%;" src="data:'+g+";base64,"+ d+'"/></html>')):t.document.write("<html>"+d+"</html>"):t.document.write("<html><pre>"+mxUtils.htmlEntities(d,!1)+"</pre></html>"),t.document.close())};var c=EditorUi.prototype.addChromelessToolbarItems;EditorUi.prototype.isChromelessImageExportEnabled=function(){return"draw.io"!=this.getServiceName()||/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname)};EditorUi.prototype.addChromelessToolbarItems=function(d){if(null!=urlParams.tags){this.tagsDialog=
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
return B};Graph.prototype.getDefaultStylesheet=function(){if(null==this.defaultStylesheet){var m=this.themes["default-style2"];this.defaultStylesheet=(new mxCodec(m.ownerDocument)).decode(m)}return this.defaultStylesheet};Graph.prototype.isViewer=function(){return urlParams.viewer};var H=Graph.prototype.getSvg;Graph.prototype.getSvg=function(m,B,K,R,U,W,Q,V,X,Y,Z,ca,da,ma){var ea=null,za=null,Ba=null;ca||null==this.themes||"darkTheme"!=this.defaultThemeName||(ea=this.stylesheet,za=this.shapeForegroundColor,
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
this.loadImage(Y.target.result,mxUtils.bind(this,function(fa){this.resizeImage(fa,Y.target.result,mxUtils.bind(this,function(qa,ia,ya){U(Q,mxUtils.bind(this,function(){if(null!=qa&&qa.length<F){var xa=J&&this.isResampleImageSize(V.size,S)?Math.min(1,Math.min(t/ia,t/ya)):1;return u(qa,V.type,g+Q*m,n+Q*m,Math.round(ia*xa),Math.round(ya*xa),V.name)}this.handleError({message:mxResources.get("imageTooBig")});return null}))}),J,t,S,V.size)}),mxUtils.bind(this,function(){this.handleError({message:mxResources.get("invalidOrMissingFile")})})))}else Z=
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
mxUtils.setOpacity(T,100),N.style.visibility="",m.stop(),P())}))}else P();F.appendChild(O);++S==M&&(mxUtils.br(F),S=0)}function v(q){var C=H.value;if(null==q||null!=C&&0<C.length)t&&b.hideDialog(),f(C,q,H)}z="1"==urlParams.noDevice?!1:z;x=null!=x?x:!0;y=null!=y?y:!0;M=null!=M?M:4;t=null!=t?t:!0;l=document.createElement("div");l.style.whiteSpace="nowrap";null==c&&b.addLanguageMenu(l);var A=document.createElement("h2");mxUtils.write(A,k||mxResources.get("create"));A.style.marginTop="0px";A.style.marginBottom=
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable