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 |
|---|---|---|---|---|---|---|---|
function(K,U,L){return this.graph.isCellSelected(K)?!1:da.apply(this,arguments)};var ja=this.updateMouseEvent;this.updateMouseEvent=function(K){K=ja.apply(this,arguments);null!=K.state&&this.isCellLocked(this.getLayerForCell(K.getCell()))&&(K.state=null);return K};var ia=this.isCellSelectable;this.isCellSelectable=function(K){return ia.apply(this,arguments)&&!this.isCellLocked(this.getLayerForCell(K))};this.isCellLocked=function(K){for(;null!=K;){if("1"==mxUtils.getValue(this.getCurrentCellStyle(K), | 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){var v=document.createElement("div");v.style.whiteSpace="nowrap";var A=document.createElement("h3");mxUtils.write(A,mxResources.get("image"));A.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:"+(u?"10":"4")+"px";v.appendChild(A);if(u){mxUtils.write(v,mxResources.get("zoom")+":");var H=document.createElement("input");H.setAttribute("type","text");H.style.marginRight="16px";H.style.width="60px";H.style.marginLeft="4px";H.style.marginRight="12px";H.value=this.lastExportZoom||
"100%";v.appendChild(H);mxUtils.write(v,mxResources.get("borderWidth")+":");var L=document.createElement("input");L.setAttribute("type","text");L.style.marginRight="16px";L.style.width="60px";L.style.marginLeft="4px";L.value=this.lastExportBorder||"0";v.appendChild(L);mxUtils.br(v)}var F=this.addCheckbox(v,mxResources.get("selectionOnly"),!1,this.editor.graph.isSelectionEmpty()),S=t?null:this.addCheckbox(v,mxResources.get("includeCopyOfMyDiagram"),Editor.defaultIncludeDiagram);A=this.editor.graph;
var p=t?null:this.addCheckbox(v,mxResources.get("transparentBackground"),A.background==mxConstants.NONE||null==A.background);null!=p&&(p.style.marginBottom="16px");d=new CustomDialog(this,v,mxUtils.bind(this,function(){var q=parseInt(H.value)/100||1,C=parseInt(L.value)||0;n(!F.checked,null!=S?S.checked:!1,null!=p?p.checked:!1,q,C)}),null,d,g);this.showDialog(d.container,300,(u?25:0)+(t?125:210),!0,!0)};EditorUi.prototype.showExportDialog=function(d,g,n,t,u,v,A,H,L){A=null!=A?A:Editor.defaultIncludeDiagram; | 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 |
retry:k})}),mxUtils.bind(this,function(){l&&(window.onGitLabCallback=null,l=!1,c({message:mxResources.get("accessDenied"),retry:k}))}))});k()}else c({code:App.ERROR_BUSY})};GitLabClient.prototype.executeRequest=function(e,f,c,k){var l=mxUtils.bind(this,function(y){var E=!0,D=window.setTimeout(mxUtils.bind(this,function(){E=!1;c({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout")})}),this.ui.timeout),z=this.authToken+" "+b;e.setRequestHeaders=function(M,I){M.setRequestHeader("Authorization",
z);M.setRequestHeader("PRIVATE_TOKEN",z);M.setRequestHeader("Content-Type","application/json")};e.send(mxUtils.bind(this,function(){window.clearTimeout(D);if(E)if(200<=e.getStatus()&&299>=e.getStatus()||k&&404==e.getStatus())f(e);else if(401===e.getStatus())y?c({message:mxResources.get("accessDenied"),retry:mxUtils.bind(this,function(){this.authenticate(function(){x(!0)},c)})}):this.authenticate(function(){l(!0)},c);else if(403===e.getStatus()){var M=!1;try{var I=JSON.parse(e.getText());null!=I&& | 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 |
"cells",[J])),b.fireEvent(new mxEventObject("freehandInserted","cell",J))}finally{b.model.endUpdate()}t&&b.setSelectionCells([J])}}for(J=0;J<k.length;J++)k[J].parentNode.removeChild(k[J]);c=null;k=[];x=[]}A(!1)};b.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(C,J){C=J.getProperty("eventName");J=J.getProperty("event");C==mxEvent.MOUSE_MOVE&&g&&(null!=J.sourceState&&J.sourceState.setCursor("crosshair"),J.consume())}));b.addMouseListener({mouseDown:mxUtils.bind(this,function(C,J){if(b.isEnabled()&&
!b.isCellLocked(b.getDefaultParent())&&(C=J.getEvent(),g&&!mxEvent.isPopupTrigger(C)&&!mxEvent.isMultiTouchEvent(C))){var G=parseFloat(b.currentVertexStyle[mxConstants.STYLE_STROKEWIDTH]||1);G=Math.max(1,G*b.view.scale);var P=F();c=document.createElementNS("http://www.w3.org/2000/svg","path");c.setAttribute("fill",v?P:"none");c.setAttribute("stroke",P);c.setAttribute("stroke-width",G);"1"==b.currentVertexStyle[mxConstants.STYLE_DASHED]&&(P=b.currentVertexStyle[mxConstants.STYLE_DASH_PATTERN]||"3 3",
P=P.split(" ").map(function(O){return parseFloat(O)*G}).join(" "),c.setAttribute("stroke-dasharray",P));d=[];C=S(C);p(C);l="M"+C.x+" "+C.y;x.push(C);y=[];c.setAttribute("d",v?PerfectFreehand.getSvgPathFromStroke([[C.x,C.y]],u):l);e.appendChild(c);J.consume()}}),mouseMove:mxUtils.bind(this,function(C,J){if(c&&b.isEnabled()&&!b.isCellLocked(b.getDefaultParent())){C=J.getEvent();C=S(C);p(C);var G=q(0);if(G)if(x.push(G),v){var P=[];for(G=0;G<x.length;G++)P.push([x[G].x,x[G].y]);y=[];for(var O=2;O<d.length;O+= | 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==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 |
va,Ga=Fa+(Qa.x-Fa)/va-da,Va=Ra+(Qa.y-Ra)/va-da,Ua=new Image;Ua.onload=function(){try{for(var ja=-Math.round(Da-mxUtils.mod((Fa-Ga)*V,Da)),aa=-Math.round(Da-mxUtils.mod((Ra-Va)*V,Da));ja<ta;ja+=Da)for(var la=aa;la<Ka;la+=Da)oa.drawImage(Ua,ja/V,la/V);ya()}catch(na){null!=U&&U(na)}};Ua.onerror=function(ja){null!=U&&U(ja)};Ua.src=Ea}else ya()}catch(ja){null!=U&&U(ja)}});qa.onerror=function(ya){null!=U&&U(ya)};Y&&this.graph.addSvgShadow(fa);this.graph.mathEnabled&&this.addMathCss(fa);var ia=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 |
document.createElement("canvas");J.width=S;J.height=p;var G=J.toDataURL();C!==G&&(g=C,H=S,L=p)}}}catch(P){}n(g,H,L)};EditorUi.prototype.extractGraphModelFromPng=function(d){return Editor.extractGraphModelFromPng(d)};EditorUi.prototype.loadImage=function(d,g,n){try{var t=new Image;t.onload=function(){t.width=0<t.width?t.width:120;t.height=0<t.height?t.height:120;g(t)};null!=n&&(t.onerror=n);t.src=d}catch(u){if(null!=n)n(u);else throw u;}};EditorUi.prototype.getDefaultSketchMode=function(){var d="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 |
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 |
d.appendChild(f));D.appendChild(d);D.appendChild(g);this.container=D},FindWindow=function(b,e,f,c,k,l){function x(T,m,B,K){if("object"===typeof m.value&&null!=m.value.attributes){m=m.value.attributes;for(var R=0;R<m.length;R++)if("label"!=m[R].nodeName){var U=mxUtils.trim(m[R].nodeValue.replace(/[\x00-\x1F\x7F-\x9F]|\s+/g," ")).toLowerCase();if(null==T&&(K&&0<=U.indexOf(B)||!K&&U.substring(0,B.length)===B)||null!=T&&T.test(U))return!0}}return!1}function y(){d?(P.removeAttribute("disabled"),O.removeAttribute("disabled")):
(P.setAttribute("disabled","disabled"),O.setAttribute("disabled","disabled"));H.value?N.removeAttribute("disabled"):N.setAttribute("disabled","disabled")}function E(T,m,B){J.innerText="";var K=z.model.getDescendants(z.model.getRoot()),R=H.value.toLowerCase(),U=F.checked?new RegExp(R):null,W=null;n=null;M!=R&&(M=R,I=null,g=!1);var Q=null==I;if(0<R.length){if(g){g=!1;for(var V,X=0;X<b.pages.length;X++)if(b.currentPage==b.pages[X]){V=X;break}T=(V+1)%b.pages.length;I=null;do g=!1,K=b.pages[T],z=b.createTemporaryGraph(z.getStylesheet()), | 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 |
K,[O]);var W=g.model.getGeometry(O);null!=W&&(W=W.clone(),W.width=Math.max(W.width,R),W.height=Math.max(W.height,U),g.cellsResized([O],[W],!1));g.setAttributeForCell(O,"mermaidData",JSON.stringify({data:B,config:m.config},null,2))}finally{g.getModel().endUpdate()}},function(K){d.handleError(K)})},null,null,400,220);d.showDialog(N.container,420,300,!0,!0);N.init()};var n=g.cellEditor.startEditing;g.cellEditor.startEditing=function(O,N){try{var T=this.graph.getAttributeForCell(O,"plantUmlData");if(null!=
T)this.editPlantUmlData(O,N,T);else if(T=this.graph.getAttributeForCell(O,"mermaidData"),null!=T)this.editMermaidData(O,N,T);else{var m=g.getCellStyle(O);"1"==mxUtils.getValue(m,"metaEdit","0")?d.showDataDialog(O):n.apply(this,arguments)}}catch(B){d.handleError(B)}};g.getLinkTitle=function(O){return d.getLinkTitle(O)};g.customLinkClicked=function(O){var N=!1;try{d.handleCustomLink(O),N=!0}catch(T){d.handleError(T)}return N};var t=g.parseBackgroundImage;g.parseBackgroundImage=function(O){var N=t.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 |
(new mxXmlRequest(SAVE_URL,"format="+M+"&xml="+encodeURIComponent(D)+"&filename="+encodeURIComponent(b)+(l?"&binary=1":""))).simulate(document,"_blank")}else this.ui.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(D)}));y()}});l?(e=this.ui.getPngFileProperties(this.ui.fileNode),this.ui.getEmbeddedPng(mxUtils.bind(this,function(D){E(D)}),c,this.ui.getCurrentFile()!=this?x:null,e.scale,e.border)):E(x)}; | 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["remote-selection"]){var Q=null!=b.currentPage?b.currentPage.getId():null;if(null==Q||null!=W.pageId&&W.pageId==Q){m();for(m=0;m<W.removed.length;m++){var V=W.removed[m];if(null!=V){var X=U[V];delete U[V];null!=X&&X.destroy()}}for(m=0;m<W.added.length;m++)if(V=W.added[m],null!=V){var Y=z.model.getCell(V);null!=Y&&(U[V]=z.highlightCell(Y,g[K].color,6E4,70,3))}}}}e.file.fireEvent(new mxEventObject("realtimeMessage","message",N))}}catch(Z){null!=window.console&&console.warn(Z,N,T)}}function y(N,
T){if(!C&&SimplePeer.WEBRTC_SUPPORT){var m=new SimplePeer({initiator:T,config:{iceServers:[{urls:"stun:54.89.235.160:3478"}]}});m.on("signal",function(B){O("sendSignal",{to:N,from:H,signal:B})});m.on("error",function(B){delete L[N];EditorUi.debug("P2PCollab: p2p socket error",B);!q&&T&&m.destroyed&&v[N]&&(EditorUi.debug("P2PCollab: p2p socket reconnecting",N),y(N,!0))});m.on("connect",function(){delete L[N];null==F[N]||F[N].destroyed?(F[N]=m,v[N]=!0,EditorUi.debug("P2PCollab: p2p socket connected",
N)):(m.noP2PMapDel=!0,m.destroy(),EditorUi.debug("P2PCollab: p2p socket duplicate",N))});m.on("close",function(){m.noP2PMapDel||(EditorUi.debug("P2PCollab: p2p socket closed",N),D(u[N]),delete F[N])});m.on("data",x);return L[N]=m}}function E(N,T){D(T||u[N]);null!=N&&(delete u[N],v[N]=!1)}function D(N){var T=g[N];if(null!=T){var m=T.selection,B;for(B in m)null!=m[B]&&m[B].destroy();null!=T.cursor&&null!=T.cursor.parentNode&&T.cursor.parentNode.removeChild(T.cursor);clearTimeout(T.inactiveTO);delete g[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 |
"24px",t.innerText="");return t};EditorUi.prototype.createToolbarButton=function(d,g,n,t){t=null!=t?t:24;var u=document.createElement("a");u.className="geToolbarButton geAdaptiveAsset";u.setAttribute("title",g);u.style.backgroundImage="url("+d+")";u.style.backgroundPosition="center center";u.style.backgroundRepeat="no-repeat";u.style.backgroundSize="100% 100%";u.style.display="inline-block";u.style.cursor="pointer";u.style.marginLeft="6px";u.style.width=t+"px";u.style.height=t+"px";null!=n&&(mxEvent.addListener(u,
mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,function(v){v.preventDefault()})),mxEvent.addListener(u,"click",function(v){"disabled"!=u.getAttribute("disabled")&&n(v);mxEvent.consume(v)}));return u};EditorUi.prototype.createMenuItem=function(d,g,n){var t=this.actions.get(d),u=null!=t?t.funct:null,v=this.createToolbarButton(g,mxResources.get(d)+(null!=t&&null!=t.shortcut?" ("+t.shortcut+")":""),u);null==t||n||(d=function(){t.isEnabled()?(v.removeAttribute("disabled"),v.style.cursor= | 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 |
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,
n){n=null!=n?n:d.name;var t=new FileReader;t.onload=mxUtils.bind(this,function(){this.parseFileData(t.result,g,n)});t.readAsText(d)};EditorUi.prototype.parseFileData=function(d,g,n){var t=new XMLHttpRequest;t.open("POST",OPEN_URL);t.setRequestHeader("Content-Type","application/x-www-form-urlencoded");t.onreadystatechange=function(){g(t)};t.send("format=xml&filename="+encodeURIComponent(n)+"&data="+encodeURIComponent(d));try{EditorUi.logEvent({category:"GLIFFY-IMPORT-FILE",action:"size_"+file.size})}catch(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 |
size:P.data.length,lastModified:Date.now(),type:P.isLib?"L":"F"},{title:P.title,data:P.data}],C,C,["filesInfo","files"])}catch(O){console.log(O)}});A=mxUtils.bind(this,function(P){try{if(P.source==H.contentWindow){var O={};try{O=JSON.parse(P.data)}catch(N){}"init"==O.event?(H.contentWindow.postMessage(JSON.stringify({action:"remoteInvokeReady"}),"*"),H.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",funtionName:"getLocalStorageFileNames"}),"*")):"remoteInvokeResponse"!=O.event||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 |
Graph.prototype.setHiddenTags=function(m){this.hiddenTags=m;this.fireEvent(new mxEventObject("hiddenTagsChanged"))};Graph.prototype.toggleHiddenTag=function(m){var B=mxUtils.indexOf(this.hiddenTags,m);0>B?this.hiddenTags.push(m):0<=B&&this.hiddenTags.splice(B,1);this.fireEvent(new mxEventObject("hiddenTagsChanged"))};Graph.prototype.isAllTagsHidden=function(m){if(null==m||0==m.length||0==this.hiddenTags.length)return!1;m=m.split(" ");if(m.length>this.hiddenTags.length)return!1;for(var B=0;B<m.length;B++)if(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 d=Menus.prototype.createMenubar;Menus.prototype.createMenubar=function(p){var q=d.apply(this,arguments);if(("1"!=urlParams.embed||"1"==urlParams.atlas)&&null!=q&&Editor.enableSimpleTheme&&"atlassian"!=c.getServiceName()){var C=this.get("appearance");if(null!=C){var J=q.addMenu("",C.funct);J.setAttribute("title",mxResources.get("appearance"));J.className="geToolbarButton geAdaptiveAsset";J.style.backgroundPosition="center center";J.style.backgroundRepeat="no-repeat";J.style.backgroundSize="100% 100%";
J.style.display="inline-block";J.style.cursor="pointer";J.style.zIndex="1";J.style.position="absolute";J.style.height="18px";J.style.width="18px";"atlas"==Editor.currentTheme?(J.style.filter="invert(100%)",J.style.right="11px",J.style.top="10px"):(J.style.right="10px",J.style.top="5px");document.body.appendChild(J);q.langIcon=J;C=mxUtils.bind(this,function(){var G=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;J.style.display="atlas"==Editor.currentTheme||"min"==
Editor.currentTheme||"sketch"==Editor.currentTheme?"none":"";J.style.backgroundImage="simple"==Editor.currentTheme?750>G?"url("+Editor.thinDoubleArrowRightImage+")":"url("+(Editor.isDarkMode()?Editor.thinDarkImage:Editor.thinLightImage)+")":"url("+(Editor.isDarkMode()?Editor.darkModeImage:Editor.lightModeImage)+")"});this.editorUi.addListener("currentThemeChanged",C);this.editorUi.addListener("darkModeChanged",C);mxEvent.addListener(window,"resize",C);C()}}return q}}c.customLayoutConfig=[{layout:"mxHierarchicalLayout", | 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 |
"simple"==Editor.currentTheme&&this.addMenuItems(O,["zoomIn","zoomOut","-"],null,T);L.apply(this,arguments);g.isSelectionEmpty()||null==d.addSelectionToScratchpad||this.addMenuItems(O,["-","addToScratchpad"],null,T);g.isSelectionEmpty()&&"simple"==Editor.currentTheme&&this.addMenuItems(O,["-","exitGroup","home"],null,T)};var F=Menus.prototype.addPopupMenuEditItems;this.menus.addPopupMenuEditItems=function(O,N,T){if(d.editor.graph.isSelectionEmpty())F.apply(this,arguments),d.menus.addMenuItems(O,["copyAsImage"],
null,T);else if(this.isShowCellEditItems()?this.addPopupDeleteItem(O,N,T):this.addPopupMenuArrangeItems(O,N,T),this.addMenuItems(O,"- cut copy copyAsImage duplicate -".split(" "),null,T),this.isShowCellEditItems()||this.addPopupDeleteItem(O,N,T),this.addMenuItems(O,["lockUnlock","-"],null,T),!this.isShowStyleItems()){if(1==g.getSelectionCount()&&!g.isCellLocked(N)&&g.isCellEditable(N)&&(this.addSubmenu("editCell",O,null,mxResources.get("edit")),O.addSeparator(),g.getModel().isEdge(N))){this.addSubmenu("line",
O);var m=g.getModel().getGeometry(N);null!=m&&null!=m.points&&0<m.points.length&&this.addMenuItems(O,["clearWaypoints"],null,T)}1==g.getSelectionCount()&&this.addMenuItems(O,["enterGroup"],null,T);m=d.getSelectionState();null!=m.mergeCell?this.addMenuItem(O,"mergeCells"):(1<m.style.colspan||1<m.style.rowspan)&&this.addMenuItem(O,"unmergeCells")}};this.menus.isShowStyleItems=function(){return"simple"!=Editor.currentTheme&&"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme};this.menus.isShowHistoryItems= | 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.debug("P2PCollab:","sendReply error",arguments,m)}});this.sendMessage=c;this.sendDiff=function(N){this.sendMessage("diff",{diff:N})};this.getState=function(){return null!=I?I.readyState:3};this.getLastError=function(){return P};this.mouseListeners={startX:0,startY:0,scrollLeft:0,scrollTop:0,mouseDown:function(N,T){},mouseMove:function(N,T){var m,B=-1;return function(){clearTimeout(m);var K=this,R=arguments,U=function(){m=null;B=Date.now();N.apply(K,R)};Date.now()-B>T?U():m=setTimeout(U,T)}}(function(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 |
N.cell.id,N.text),O=!1);O||G++;P++});console.log("states checked",P,"invalid",G)}));c.actions.addAction("testCheckFile",mxUtils.bind(this,function(){var p=null!=c.pages&&null!=c.getCurrentFile()?c.getCurrentFile().getAnonymizedXmlForPages(c.pages):"";p=new TextareaDialog(c,"Paste Data:",p,function(q){if(0<q.length)try{var C=function(N){function T(Y){if(null==X[Y]){if(X[Y]=!0,null!=K[Y]){for(;0<K[Y].length;){var Z=K[Y].pop();T(Z)}delete K[Y]}}else mxLog.debug(m+": Visited: "+Y)}var m=N.parentNode.id, | 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 |
na.join(" ")}null!=ja?(R=ja,R.className+=" "+aa,U=la,ia.className="geTempDlgCreateBtn"):(U=R=null,ia.className="geTempDlgCreateBtn geTempDlgBtnDisabled")}function H(ja,aa){if(null!=U){var la=function(ua){ka.isExternal?E(ka,function(wa){na(wa,ua)},pa):ka.url?mxUtils.get(TEMPLATE_PATH+"/"+ka.url,mxUtils.bind(this,function(wa){200<=wa.getStatus()&&299>=wa.getStatus()?na(wa.getText(),ua):pa()})):na(b.emptyDiagramXml,ua)},na=function(ua,wa){g||b.hideDialog(!0);e(ua,wa,ka,aa)},pa=function(){n(mxResources.get("cannotLoad"));
ha()},ha=function(){U=ka;ia.className="geTempDlgCreateBtn";aa&&(ya.className="geTempDlgOpenBtn")},ka=U;U=null;"boolean"!==typeof aa&&(aa=ka.isExternal&&M);1==ja?D(ka.url,ka):aa?(ya.className="geTempDlgOpenBtn geTempDlgBtnDisabled geTempDlgBtnBusy",la()):(ia.className="geTempDlgCreateBtn geTempDlgBtnDisabled geTempDlgBtnBusy",ja=null==b.mode||b.mode==App.MODE_GOOGLE||b.mode==App.MODE_BROWSER?mxResources.get("diagramName"):mxResources.get("filename"),ja=new FilenameDialog(b,b.defaultFilename+".drawio",
mxResources.get("ok"),la,ja,function(ua){var wa=null!=ua&&0<ua.length;return wa&&g?(la(ua),!1):wa},null,null,null,ha,d?null:[]),b.showDialog(ja.container,350,80,!0,!0),ja.init())}}function L(ja){ia.innerText=mxResources.get(da||ja?"create":"copy");ja=ja?"none":"";M&&(ya.style.display=ja);for(var aa=N.querySelectorAll(".geTempDlgLinkToDiagram"),la=0;la<aa.length;la++)aa[la].style.display=ja}function F(ja,aa,la,na,pa){pa||(ea.innerText="",A(),X=ja,Y=na);var ha=null;if(la){ha=document.createElement("table"); | 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,K,R){for(var U=0;U<R;U++)m=Editor.crcTable[(m^B.charCodeAt(K+U))&255]^m>>>8;return m};Editor.crc32=function(m){for(var B=-1,K=0;K<m.length;K++)B=B>>>8^Editor.crcTable[(B^m.charCodeAt(K))&255];return(B^-1)>>>0};Editor.writeGraphModelToPng=function(m,B,K,R,U){function W(Z,ca){var da=X;X+=ca;return Z.substring(da,X)}function Q(Z){Z=W(Z,4);return Z.charCodeAt(3)+(Z.charCodeAt(2)<<8)+(Z.charCodeAt(1)<<16)+(Z.charCodeAt(0)<<24)}function V(Z){return String.fromCharCode(Z>>24&255,Z>>16&255,Z>>8&255,Z&255)}
m=m.substring(m.indexOf(",")+1);m=window.atob?atob(m):Base64.decode(m,!0);var X=0;if(W(m,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=U&&U();else if(W(m,4),"IHDR"!=W(m,4))null!=U&&U();else{W(m,17);U=m.substring(0,X);do{var Y=Q(m);if("IDAT"==W(m,4)){U=m.substring(0,X-8);"pHYs"==B&&"dpi"==K?(K=Math.round(R/.0254),K=V(K)+V(K)+String.fromCharCode(1)):K=K+String.fromCharCode(0)+("zTXt"==B?String.fromCharCode(0):"")+R;R=4294967295;R=Editor.updateCRC(R,B,0,4);R=Editor.updateCRC(R,
K,0,K.length);U+=V(K.length)+B+K+V(R^4294967295);U+=m.substring(X-8,m.length);break}U+=m.substring(X-8,X-4+Y);W(m,Y);W(m,4)}while(Y);return"data:image/png;base64,"+(window.btoa?btoa(U):Base64.encode(U,!0))}};if(window.ColorDialog){FilenameDialog.filenameHelpLink="https://www.drawio.com/doc/faq/save-file-formats";var y=ColorDialog.addRecentColor;ColorDialog.addRecentColor=function(m,B){y.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()};var E=ColorDialog.resetRecentColors; | 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 |
k.model.isVertex(p)&&k.isAutoSizeCell(p)&&k.updateCellSize(p)}finally{k.getModel().endUpdate()}k.scrollCellToVisible(p);k.setSelectionCell(p);k.container.focus();k.editAfterInsert&&k.startEditing(p);window.setTimeout(function(){null!=c.hoverIcons&&c.hoverIcons.update(k.view.getState(p))},0);return p},H=function(p,q,C,J,G){p=new mxCell(p,new mxGeometry(0,0,q,C),J);p.vertex=!0;null==G&&(G=k.getCenterInsertPoint(k.getBoundingBoxFromGeometry([p],!0)));p.geometry.x=G.x;p.geometry.y=G.y;return A(p)};c.actions.put("insertText", | 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,c,k,l,x,y,E,D){if(x.length>=this.maxFileSize)D({message:mxResources.get("drawingTooLarge")+" ("+this.ui.formatFileSize(x.length)+" / 10 MB)"});else{var z="POST";c={path:encodeURIComponent(k),branch:decodeURIComponent(c),commit_message:l,content:x,encoding:"base64"};null!=y&&(c.last_commit_id=y,z="PUT");e=this.baseUrl+"/projects/"+encodeURIComponent(e+"/"+f)+"/repository/files/"+encodeURIComponent(k);z=new mxXmlRequest(e,JSON.stringify(c),z);this.executeRequest(z,mxUtils.bind(this,function(M){E(M)}),
D)}};GitLabClient.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;this.getFile(x+"/"+y+"/"+E+"/"+D,mxUtils.bind(this,function(n){n.getData()==e.getData()?f(n.getCurrentEtag()):f({content:e.getCurrentEtag()})}),c,null,null,e.meta.refPos)}),c)}),M=mxUtils.bind(this,function(){if(this.ui.useCanvasForExport&&/(\.png)$/i.test(D)){var I=this.ui.getPngFileProperties(this.ui.fileNode); | 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 |
delete y[M];return x};EditorUi.prototype.patchViewState=function(b,e){if(null!=b.viewState&&null!=e){b==this.currentPage&&(b.viewState=this.editor.graph.getViewState());for(var f in e)try{this.patchViewStateProperty(b,e,f)}catch(c){}b==this.currentPage&&this.editor.graph.setViewState(b.viewState,!0)}};EditorUi.prototype.patchViewStateProperty=function(b,e,f){b.viewState[f]=JSON.parse(e[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 |
P);var X=mxUtils.bind(this,function(Y,Z,ca){V.innerText="";mxUtils.write(V,Math.round(100*v.editor.graph.view.scale*(null!=ca?ca:1))+"%")});v.editor.graph.view.addListener(mxEvent.EVENT_SCALE,X);v.editor.addListener("resetGraphView",X);v.editor.addListener("pageSelected",X);v.editor.graph.addListener("zoomPreview",mxUtils.bind(this,function(Y,Z){X(Y,Z,Z.getProperty("factor"))}))})(W);var Q=v.setGraphEnabled;v.setGraphEnabled=function(){Q.apply(this,arguments);null!=this.tabContainer&&(W.style.visibility=
this.tabContainer.style.visibility,this.diagramContainer.style.bottom="0"!=urlParams.pages&&"hidden"!=this.tabContainer.style.visibility?this.tabContainerHeight+"px":"0px")}}u.appendChild(H);u.appendChild(v.diagramContainer);t.appendChild(u);v.updateTabContainer();!EditorUi.windowed&&1E3<=c&&b(this,!0);u.appendChild(v.tabContainer);n();mxEvent.addListener(window,"resize",function(){n();null!=v.sidebarWindow&&v.sidebarWindow.window.fit();null!=v.formatWindow&&v.formatWindow.window.fit();null!=v.actions.outlineWindow&& | 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 |
mxResources.get("ok"),la,ja,function(ua){var wa=null!=ua&&0<ua.length;return wa&&g?(la(ua),!1):wa},null,null,null,ha,d?null:[]),b.showDialog(ja.container,350,80,!0,!0),ja.init())}}function L(ja){ia.innerText=mxResources.get(da||ja?"create":"copy");ja=ja?"none":"";M&&(ya.style.display=ja);for(var aa=N.querySelectorAll(".geTempDlgLinkToDiagram"),la=0;la<aa.length;la++)aa[la].style.display=ja}function F(ja,aa,la,na,pa){pa||(ea.innerText="",A(),X=ja,Y=na);var ha=null;if(la){ha=document.createElement("table"); | 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.fillStyle=Q;return V};m.prototype.begin=function(){this.passThrough?this.originalBegin.apply(this.canvas,arguments):this.path=[]};m.prototype.end=function(){this.passThrough&&this.originalEnd.apply(this.canvas,arguments)};m.prototype.addOp=function(){if(null!=this.path&&(this.path.push(arguments[0]),2<arguments.length))for(var W=2;W<arguments.length;W+=2)this.lastX=arguments[W-1],this.lastY=arguments[W],this.path.push(this.canvas.format(this.lastX)),this.path.push(this.canvas.format(this.lastY))}; | 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(H){A.stop();null!=this.exportDialog&&null!=this.exportDialog.parentNode&&(this.exportDialog.parentNode.removeChild(this.exportDialog),this.exportDialog=null);this.handleError(H)}),null,null,null,null,null,null,null,Editor.defaultBorder)}mxEvent.consume(t)}),Editor.cameraImage,mxResources.get("export"))}};EditorUi.prototype.saveData=function(d,g,n,t,u){this.isLocalFileSave()?this.saveLocalFile(n,d,t,u,g):this.saveRequest(d,g,mxUtils.bind(this,function(v,A){return this.createEchoRequest(n,
v,t,u,g,A)}),n,u,t)};EditorUi.prototype.saveRequest=function(d,g,n,t,u,v,A){A=null!=A?A:!mxClient.IS_IOS||!navigator.standalone;var H=this.getServiceCount(!1);isLocalStorage&&H++;var L=4>=H?2:6<H?4:3;d=new CreateDialog(this,d,mxUtils.bind(this,function(F,S){if("_blank"==S||null!=F&&0<F.length){var p=n("_blank"==S?null:F,S==App.MODE_DEVICE||"download"==S||null==S||"_blank"==S?"0":"1");null!=p&&(S==App.MODE_DEVICE||"download"==S||"_blank"==S?p.simulate(document,"_blank"):this.pickFolder(S,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 |
var G=0,P=0,O=I.geometry,N=mxUtils.format((J.geometry.x+3-O.x)/O.width);J=mxUtils.format((J.geometry.y+3-O.y)/O.height);0>N?(G=N*O.width,N=0):1<N&&(G=(N-1)*O.width,N=1);0>J?(P=J*O.height,J=0):1<J&&(P=(J-1)*O.height,J=1);return{x:N,y:J,dx:parseInt(G),dy:parseInt(P)}}function D(J){if(1==M.getSelectionCount()){var G=M.getSelectionCell();J&&(G.constObj=null);J=E(G);S.value=100*J.x;q.value=100*J.y;p.value=J.dx;C.value=J.dy;F.style.visibility=""}else F.style.visibility="hidden"}var z=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 |
function(l){try{this.ui.spinner.stop(),f(l.getHash().substring(1),l)}catch(x){c(x)}}),c,!0)}),c)}),mxUtils.bind(this,function(){this.ui.spinner.stop()}))};DropboxClient.prototype.pickFile=function(e,f){null!=Dropbox.choose?(e=null!=e?e:mxUtils.bind(this,function(c,k){this.ui.loadFile(null!=c?"D"+encodeURIComponent(c):k.getHash(),null,k)}),Dropbox.choose({linkType:"direct",cancel:mxUtils.bind(this,function(){}),success:mxUtils.bind(this,function(c){if(this.ui.spinner.spin(document.body,mxResources.get("loading")))if(f)this.ui.spinner.stop(),
e(c[0].link);else{var k=mxUtils.bind(this,function(D){this.ui.spinner.stop();this.ui.handleError(D)}),l=mxUtils.bind(this,function(D,z){this.ui.spinner.stop();e(D,z)}),x=/\.png$/i.test(c[0].name);if(/\.vsdx$/i.test(c[0].name)||/\.gliffy$/i.test(c[0].name)||!this.ui.useCanvasForExport&&x)l(c[0].link);else{var y=c[0].link.indexOf(this.appPath);if(0<y){var E=decodeURIComponent(c[0].link.substring(y+this.appPath.length-1));this.readFile({path:E},mxUtils.bind(this,function(D,z){if(null!=z&&z.id==c[0].id){var M=
x?D.lastIndexOf(","):-1;this.ui.spinner.stop();var I=null;0<M&&(M=this.ui.extractGraphModelFromPng(D),null!=M&&0<M.length?D=M:I=new LocalFile(this,D,E,!0));e(E.substring(1),null!=I?I:new DropboxFile(this.ui,D,z))}else this.createFile(c[0],l,k)}),k,x)}else this.createFile(c[0],l,k)}}})})):this.ui.handleError({message:mxResources.get("serviceUnavailableOrBlocked")})};DropboxClient.prototype.createFile=function(e,f,c){var k=/(\.png)$/i.test(e.name);this.ui.editor.loadUrl(e.link,mxUtils.bind(this,function(l){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 |
k.model.isVertex(p)&&k.isAutoSizeCell(p)&&k.updateCellSize(p)}finally{k.getModel().endUpdate()}k.scrollCellToVisible(p);k.setSelectionCell(p);k.container.focus();k.editAfterInsert&&k.startEditing(p);window.setTimeout(function(){null!=c.hoverIcons&&c.hoverIcons.update(k.view.getState(p))},0);return p},H=function(p,q,C,J,G){p=new mxCell(p,new mxGeometry(0,0,q,C),J);p.vertex=!0;null==G&&(G=k.getCenterInsertPoint(k.getBoundingBoxFromGeometry([p],!0)));p.geometry.x=G.x;p.geometry.y=G.y;return A(p)};c.actions.put("insertText", | 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 |
mxUtils.bind(this,function(Oa){R=b.sidebar.currentElt==ra}),null,null),mxEvent.addListener(ha,"click",mxUtils.bind(this,function(Oa){R||Na(Oa,null!=na?na:pa);mxEvent.consume(Oa)})));fa.appendChild(ra);return ra}function p(){function aa(ra,Ha){ra=mxResources.get(ra,null,ra.substring(0,1).toUpperCase()+ra.substring(1));18<ra.length&&(ra=ra.substring(0,18)+"…");return ra+(null!=Ha?" ("+Ha.length+")":"")}function la(ra,Ha,La){mxEvent.addListener(Ha,"click",function(){Fa!=Ha&&(Fa.style.backgroundColor=
"",Fa=Ha,Fa.style.backgroundColor=x,fa.scrollTop=0,fa.innerText="",O=0,null!=sa[ra].content?(fa.appendChild(sa[ra].content),ma=ba,Ga=null,null!=sa[ra].content.init&&sa[ra].content.init()):(Ga=La?va[ra][La]:sa[ra],W=null,v(!1)))});null!=urlParams["smart-template"]&&"smartTemplate"==ra&&Ha.click()}Qa&&(Qa=!1,mxEvent.addListener(fa,"scroll",function(ra){fa.scrollTop+fa.clientHeight>=fa.scrollHeight&&(v(),mxEvent.consume(ra))}));if(0<Da){var na=document.createElement("div");na.style.cssText="font-weight: bold;background: #f9f9f9;padding: 5px 0 5px 0;text-align: 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 |
B,K,R){for(var U=0;U<R;U++)m=Editor.crcTable[(m^B.charCodeAt(K+U))&255]^m>>>8;return m};Editor.crc32=function(m){for(var B=-1,K=0;K<m.length;K++)B=B>>>8^Editor.crcTable[(B^m.charCodeAt(K))&255];return(B^-1)>>>0};Editor.writeGraphModelToPng=function(m,B,K,R,U){function W(Z,ca){var da=X;X+=ca;return Z.substring(da,X)}function Q(Z){Z=W(Z,4);return Z.charCodeAt(3)+(Z.charCodeAt(2)<<8)+(Z.charCodeAt(1)<<16)+(Z.charCodeAt(0)<<24)}function V(Z){return String.fromCharCode(Z>>24&255,Z>>16&255,Z>>8&255,Z&255)} | 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}),F=!0);return F};var A=u.stop;u.stop=function(){A.call(this);this.active=!1;null!=u.status&&null!=u.status.parentNode&&u.status.parentNode.removeChild(u.status);u.status=null};u.pause=function(){return function(){}};return u};EditorUi.prototype.isCompatibleString=function(d){try{var g=mxUtils.parseXml(d),n=this.editor.extractGraphModel(g.documentElement,!0);return null!=n&&0==n.getElementsByTagName("parsererror").length}catch(t){}return!1};EditorUi.prototype.isVisioData=function(d){return 8< | 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 |
DriveComment.prototype.deleteComment=function(b,e){this.file.ui.drive.executeRequest(this.pCommentId?{url:"/files/"+this.file.getId()+"/comments/"+this.pCommentId+"/replies/"+this.id,method:"DELETE"}:{url:"/files/"+this.file.getId()+"/comments/"+this.id,method:"DELETE"},b,e)};function mxODPicker(b,e,f,c,k,l,x,y,E,D,z,M,I,d){function g(Q,V){V=V||document;return V.querySelector(Q)}function n(Q,V,X){if(null==Q["@microsoft.graph.downloadUrl"])if(null==Q.parentReference)X();else{c(Q.id,Q.parentReference.driveId,function(ca){n(ca,V,X)},X);return}var Y=new XMLHttpRequest;Y.open("GET",Q["@microsoft.graph.downloadUrl"]);var Z=Q.file?"image/png"==Q.file.mimeType:!1;Y.onreadystatechange=function(){if(4==this.readyState){if(200<=this.status&&299>=this.status)try{var ca=Y.responseText; | 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 |
EditorUi.debug("P2PCollab:","sendReply error",arguments,m)}});this.sendMessage=c;this.sendDiff=function(N){this.sendMessage("diff",{diff:N})};this.getState=function(){return null!=I?I.readyState:3};this.getLastError=function(){return P};this.mouseListeners={startX:0,startY:0,scrollLeft:0,scrollTop:0,mouseDown:function(N,T){},mouseMove:function(N,T){var m,B=-1;return function(){clearTimeout(m);var K=this,R=arguments,U=function(){m=null;B=Date.now();N.apply(K,R)};Date.now()-B>T?U():m=setTimeout(U,T)}}(function(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 |
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 |
d.pages.length:1:p.apply(this,arguments)};var q=null;this.addListener("fileDescriptorChanged",function(){var O=this.getCurrentFile();null!=O&&q!=O.getTitle()&&(q=null!=O.getTitle()?O.getTitle():this.defaultFilename,g.invalidateDescendantsWithPlaceholders(g.model.getRoot()),g.view.validate())});var C=g.labelLinkClicked;g.labelLinkClicked=function(O,N,T){var m=N.getAttribute("href");if(null==m||!g.isCustomLink(m)||!mxEvent.isTouchEvent(T)&&mxEvent.isPopupTrigger(T))C.apply(this,arguments);else{if(!g.isEnabled()||
null!=O&&g.isCellLocked(O.cell))g.customLinkClicked(m),g.getRubberband().reset();mxEvent.consume(T)}};this.editor.getOrCreateFilename=function(){var O=d.defaultFilename,N=d.getCurrentFile();null!=N&&(O=null!=N.getTitle()?N.getTitle():O);return O};var J=this.actions.get("print");J.setEnabled(!mxClient.IS_IOS||!navigator.standalone);J.visible=J.isEnabled();if(!this.editor.chromeless||this.editor.editable)this.keyHandler.bindAction(70,!0,"findReplace"),this.keyHandler.bindAction(77,!0,"editGeometry", | 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.preventDefault()}function D(S){S.stopPropagation();S.preventDefault();H=!1;u=x(S);if(null!=t)null!=u&&u<d.children.length?(z.splice(u>t?u-1:u,0,z.splice(t,1)[0]),d.insertBefore(d.children[t],d.children[u])):(z.push(z.splice(t,1)[0]),d.appendChild(d.children[t]));else if(0<S.dataTransfer.files.length)b.importFiles(S.dataTransfer.files,0,0,b.maxImageSize,L(S));else if(0<=mxUtils.indexOf(S.dataTransfer.types,"text/uri-list")){var p=decodeURIComponent(S.dataTransfer.getData("text/uri-list"));(/(\.jpg)($|\?)/i.test(p)||
/(\.png)($|\?)/i.test(p)||/(\.gif)($|\?)/i.test(p)||/(\.svg)($|\?)/i.test(p))&&b.loadImage(p,function(q){y(p,null,0,0,q.width,q.height);d.scrollTop=d.scrollHeight})}S.stopPropagation();S.preventDefault()}var z=[];f=document.createElement("div");f.style.height="100%";var M=document.createElement("div");M.style.whiteSpace="nowrap";M.style.height="40px";f.appendChild(M);mxUtils.write(M,mxResources.get("filename")+":");null==e&&(e=b.defaultLibraryName+".xml");var I=document.createElement("input");I.setAttribute("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 |
EditorUi.initMinimalTheme=function(){function b(I,d){if(EditorUi.windowed){var g=I.editor.graph;g.popupMenuHandler.hideMenu();null==I.formatWindow?(d=Math.max(10,I.diagramContainer.clientWidth-248),g=Math.min(566,g.container.clientHeight-10),I.formatWindow=new WrapperWindow(I,mxResources.get("format"),d,60,240,g,function(n){I.createFormat(n).init()}),I.formatWindow.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){I.formatWindow.window.fit()})),I.formatWindow.window.minimumSize=new mxRectangle(0,
0,240,80)):I.formatWindow.window.setVisible(null!=d?d:!I.formatWindow.window.isVisible())}else null==I.formatElt&&(I.formatElt=I.createSidebarContainer(),I.createFormat(I.formatElt).init(),I.formatElt.style.border="none",I.formatElt.style.width="240px",I.formatElt.style.borderLeft="1px solid gray",I.formatElt.style.right="0px"),g=I.diagramContainer.parentNode,null!=I.formatElt.parentNode?(I.formatElt.parentNode.removeChild(I.formatElt),g.style.right="0px"):(g.parentNode.appendChild(I.formatElt),g.style.right=
I.formatElt.style.width)}function e(I,d){function g(u,v){var A=I.menus.get(u);u=n.addMenu(v,mxUtils.bind(this,function(){A.funct.apply(this,arguments)}));u.style.cssText="position:absolute;border-width:1px;cusor:pointer;border-style:none;height:24px;bottom:0px;text-align:center;padding:8px 6px 0 6px;border-top-style:solid;width:50%;height:32px;box-sizing:border-box;font-size:11px;";u.className="geTitle";d.appendChild(u);return u}var n=new Menubar(I,d);if(Editor.enableCustomLibraries&&("1"!=urlParams.embed|| | 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 |
2)G=q(O),P.push([G.x,G.y]),y.push(G);c.setAttribute("d",PerfectFreehand.getSvgPathFromStroke(P,u))}else{l+=" L"+G.x+" "+G.y;P="";y=[];for(O=2;O<d.length;O+=2)G=q(O),P+=" L"+G.x+" "+G.y,y.push(G);c.setAttribute("d",l+P)}M&&(G=b.view.translate,b.scrollRectToVisible((new mxRectangle(C.x-G.x,C.y-G.y)).grow(20)));J.consume()}}),mouseUp:mxUtils.bind(this,function(C,J){c&&b.isEnabled()&&!b.isCellLocked(b.getDefaultParent())&&(H(J.getEvent()),J.consume())})});var S=function(C){return mxUtils.convertPoint(b.container,
mxEvent.getClientX(C),mxEvent.getClientY(C))},p=function(C){for(d.push(C);d.length>f;)d.shift()},q=function(C){var J=d.length;if(1===J%2||J>=f){var G=0,P=0,O,N=0;for(O=C;O<J;O++)N++,C=d[O],G+=C.x,P+=C.y;return{x:G/N,y:P/N}}return null}}}mxFreehand.prototype.NO_SMOOTHING=1;mxFreehand.prototype.MILD_SMOOTHING=4;mxFreehand.prototype.NORMAL_SMOOTHING=8;mxFreehand.prototype.VERY_SMOOTH_SMOOTHING=12;mxFreehand.prototype.SUPER_SMOOTH_SMOOTHING=16;mxFreehand.prototype.HYPER_SMOOTH_SMOOTHING=20;function P2PCollab(b,e,f){function c(N,T){try{if(!q){var m=e.file.getCurrentUser();if(p&&null!=m&&null!=m.displayName){var B={from:H,id:n,type:N,sessionId:e.clientId,userId:m.id,username:m.displayName,data:T,protocol:DrawioFileSync.PROTOCOL,editor:EditorUi.VERSION};B={bytes:e.objectToString(B),data:"aes"};B=JSON.stringify(B);C&&"cursor"!=N&&EditorUi.debug("P2PCollab: sending to socket server",[B]);n++;m=!C&&("cursor"==N||"selectionChange"==N);S&&!m&&O("message",B);if(m)for(p2pId in F)F[p2pId].send(B)}}}catch(K){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 |
za,this.stylesheet=ea,this.refresh());return Ca};var L=mxCellRenderer.prototype.destroy;mxCellRenderer.prototype.destroy=function(m){L.apply(this,arguments);null!=m.secondLabel&&(m.secondLabel.destroy(),m.secondLabel=null)};mxCellRenderer.prototype.getShapesForState=function(m){return[m.shape,m.text,m.secondLabel,m.control]};var F=mxGraphView.prototype.resetValidationState;mxGraphView.prototype.resetValidationState=function(){F.apply(this,arguments);this.enumerationState=0};var S=mxGraphView.prototype.stateValidated; | 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 |
Q};var U=mxShape.prototype.paintGlassEffect;mxShape.prototype.paintGlassEffect=function(W,Q,V,X,Y,Z){null!=W.handJiggle&&W.handJiggle.constructor==m?(W.handJiggle.passThrough=!0,U.apply(this,arguments),W.handJiggle.passThrough=!1):U.apply(this,arguments)}})();Editor.fastCompress=function(m){return null==m||0==m.length||"undefined"===typeof pako?m:Graph.arrayBufferToString(pako.deflateRaw(m))};Editor.fastDecompress=function(m){return null==m||0==m.length||"undefined"===typeof pako?m:pako.inflateRaw(Graph.stringToArrayBuffer(atob(m)),
{to:"string"})};Editor.extractGraphModel=function(m,B,K){if(null!=m&&"undefined"!==typeof pako){var R=m.ownerDocument.getElementsByTagName("div"),U=[];if(null!=R&&0<R.length)for(var W=0;W<R.length;W++)if("mxgraph"==R[W].getAttribute("class")){U.push(R[W]);break}0<U.length&&(R=U[0].getAttribute("data-mxgraph"),null!=R?(U=JSON.parse(R),null!=U&&null!=U.xml&&(m=mxUtils.parseXml(U.xml),m=m.documentElement)):(U=U[0].getElementsByTagName("div"),0<U.length&&(R=mxUtils.getTextContent(U[0]),R=Graph.decompress(R, | 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[n].parentNode&&"root"!=g[n].parentNode.nodeName&&null!=g[n].parentNode.parentNode&&(g[n].setAttribute("id",g[n].parentNode.getAttribute("id")),g[n].parentNode.parentNode.replaceChild(g[n],g[n].parentNode));return d};EditorUi.prototype.synchronizeCurrentFile=function(d){var g=this.getCurrentFile();null!=g&&(g.savingFile?this.handleError({message:mxResources.get("busy")}):!d&&g.invalidChecksum?g.handleFileError(null,!0):this.spinner.spin(document.body,mxResources.get("updatingDocument"))&&(g.clearAutosave(),
this.editor.setStatus(""),d?g.reloadFile(mxUtils.bind(this,function(){g.handleFileSuccess("manual"==DrawioFile.SYNC)}),mxUtils.bind(this,function(n){g.handleFileError(n,!0)})):g.synchronizeFile(mxUtils.bind(this,function(){g.handleFileSuccess("manual"==DrawioFile.SYNC)}),mxUtils.bind(this,function(n){g.handleFileError(n,!0)}))))};EditorUi.prototype.getFileData=function(d,g,n,t,u,v,A,H,L,F,S){u=null!=u?u:!0;v=null!=v?v:!1;F=null!=F?F:!Editor.defaultCompressed;var p=this.editor.graph;if(g||!d&&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 |
TrelloClient.prototype.getFile=function(b,e,f,c,k){k=null!=k?k:!1;var l=mxUtils.bind(this,function(){var x=b.split(this.SEPARATOR),y=!0,E=window.setTimeout(mxUtils.bind(this,function(){y=!1;f({code:App.ERROR_TIMEOUT,retry:l})}),this.ui.timeout);Trello.cards.get(x[0]+"/attachments/"+x[1],mxUtils.bind(this,function(D){window.clearTimeout(E);if(y){var z=/\.png$/i.test(D.name),M={Authorization:'OAuth oauth_consumer_key="'+Trello.key()+'", oauth_token="'+Trello.token()+'"'};/\.v(dx|sdx?)$/i.test(D.name)||
/\.gliffy$/i.test(D.name)||!this.ui.useCanvasForExport&&z?this.ui.convertFile(PROXY_URL+"?url="+encodeURIComponent(D.url),D.name,D.mimeType,this.extension,e,f,null,M):(y=!0,E=window.setTimeout(mxUtils.bind(this,function(){y=!1;f({code:App.ERROR_TIMEOUT})}),this.ui.timeout),this.ui.editor.loadUrl(PROXY_URL+"?url="+encodeURIComponent(D.url),mxUtils.bind(this,function(I){window.clearTimeout(E);if(y){D.compoundId=b;if(0<(z?I.lastIndexOf(","):-1)){var d=this.ui.extractGraphModelFromPng(I);null!=d&&0<d.length&&
(I=d)}k?e(new TrelloLibrary(this.ui,I,D)):e(new TrelloFile(this.ui,I,D))}}),mxUtils.bind(this,function(I,d){window.clearTimeout(E);y&&(401==d.status?this.authenticate(l,f,!0):f())}),z||null!=D.mimeType&&"image/"==D.mimeType.substring(0,6),null,null,null,M))}}),mxUtils.bind(this,function(D){window.clearTimeout(E);y&&(null!=D&&401==D.status?this.authenticate(l,f,!0):f())}))});this.authenticate(l,f)};TrelloClient.prototype.insertLibrary=function(b,e,f,c,k){this.insertFile(b,e,f,c,!0,k)}; | 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):p.y+p.height>G+C&&(p.height=G+C-p.y,p.y=Math.min(p.y,G+C));var P=(p.x-J)/q*100;q=100-(p.x+p.width-J)/q*100;J=(p.y-G)/C*100;p=100-(p.y+p.height-G)/C*100;return"inset("+mxUtils.format(J)+"% "+mxUtils.format(q)+"% "+mxUtils.format(p)+"% "+mxUtils.format(P)+"%"+(F?" round "+I+"%":S?" round 50%":"")+")"}function l(F){null!=z&&(!0!==F&&(z.model.setGeometry(d,M.clone()),I=5,A.value=I),z.model.setStyle(d,g+k()),z.selectAll(),v.style.visibility=t.checked?"visible":"hidden")}var x=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 |
EditorUi.prototype.isResampleImageSize=function(d,g){g=null!=g?g:this.resampleThreshold;return d>g};EditorUi.prototype.resizeImage=function(d,g,n,t,u,v,A){u=null!=u?u:this.maxImageSize;var H=Math.max(1,d.width),L=Math.max(1,d.height);if(t&&this.isResampleImageSize(null!=A?A:g.length,v))try{var F=Math.max(H/u,L/u);if(1<F){var S=Math.round(H/F),p=Math.round(L/F),q=document.createElement("canvas");q.width=S;q.height=p;q.getContext("2d").drawImage(d,0,0,S,p);var C=q.toDataURL();if(C.length<g.length){var J= | 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}),F=!0);return F};var A=u.stop;u.stop=function(){A.call(this);this.active=!1;null!=u.status&&null!=u.status.parentNode&&u.status.parentNode.removeChild(u.status);u.status=null};u.pause=function(){return function(){}};return u};EditorUi.prototype.isCompatibleString=function(d){try{var g=mxUtils.parseXml(d),n=this.editor.extractGraphModel(g.documentElement,!0);return null!=n&&0==n.getElementsByTagName("parsererror").length}catch(t){}return!1};EditorUi.prototype.isVisioData=function(d){return 8<
d.length&&(208==d.charCodeAt(0)&&207==d.charCodeAt(1)&&17==d.charCodeAt(2)&&224==d.charCodeAt(3)&&161==d.charCodeAt(4)&&177==d.charCodeAt(5)&&26==d.charCodeAt(6)&&225==d.charCodeAt(7)||80==d.charCodeAt(0)&&75==d.charCodeAt(1)&&3==d.charCodeAt(2)&&4==d.charCodeAt(3)||80==d.charCodeAt(0)&&75==d.charCodeAt(1)&&3==d.charCodeAt(2)&&6==d.charCodeAt(3))};EditorUi.prototype.isRemoteVisioData=function(d){return 8<d.length&&(208==d.charCodeAt(0)&&207==d.charCodeAt(1)&&17==d.charCodeAt(2)&&224==d.charCodeAt(3)&& | 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?null!=O.resp&&0<O.resp.length&&null!=O.resp[0]?(S=O.resp[0],L=!1,J()):q():null!=O.resp&&0<O.resp.length&&null!=O.resp[0]?G(O.resp[0]):C())}}catch(N){console.log(N)}});window.addEventListener("message",A)}})));d(v);v.onversionchange=function(){v.close()}}catch(A){null!=g?g(A):null!=window.console&&console.warn(A)}});t.onerror=g;t.onblocked=function(){}}catch(u){null!=g?g(u):null!=window.console&&console.error(u)}else null!=g&&g(Error("IndexedDB not supported"))}else d(this.database)};EditorUi.prototype.setDatabaseItem= | 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&&g(q)}}),null,null,null,mxUtils.bind(this,function(S){null!=g&&g(S)}),null,null,t,null,v.shadowVisible,null,v,u,null,null,null,"diagram",null)}catch(S){null!=g&&g(S)}};EditorUi.prototype.getEmbeddedSvg=function(d,g,n,t,u,v,A,H,L,F,S,p,q){H=null!=H?H:!0;S=null!=S?S:0;A=null!=L?L:g.background;A==mxConstants.NONE&&(A=null);v=g.getSvg(A,F,S,null,null,v,null,null,null,g.shadowVisible||p,null,q,"diagram");(g.shadowVisible||p)&&g.addSvgShadow(v,null,null,0==S);null!=d&&v.setAttribute("content",d);null!=
n&&v.setAttribute("resource",n);var C=mxUtils.bind(this,function(J){J=(t?"":Graph.xmlDeclaration+"\n"+Graph.svgFileComment+"\n"+Graph.svgDoctype+"\n")+mxUtils.getXml(J);null!=u&&u(J);return J});g.mathEnabled&&this.editor.addMathCss(v);if(null!=u)this.embedFonts(v,mxUtils.bind(this,function(J){H?this.editor.convertImages(J,mxUtils.bind(this,function(G){C(G)})):C(J)}));else return C(v)};EditorUi.prototype.embedFonts=function(d,g){this.editor.loadFonts(mxUtils.bind(this,function(){try{null!=this.editor.resolvedFontCss&& | 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 | 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.evt.button};var d=M.isCellSelectable;M.isCellSelectable=function(J){return J==I?!1:d.apply(this,arguments)};M.getLinkForCell=function(){return null};var g=M.view.getState(I);z=M.getAllConnectionConstraints(g);for(var n=0;null!=z&&n<z.length;n++){var t=M.getConnectionPoint(g,z[n]);l(t.x-3,t.y-3,z[n])}M.fit(8);M.center();n=b.createToolbarButton(Editor.zoomInImage,mxResources.get("zoomIn"),function(){M.zoomIn()},20);n.setAttribute("disabled","disabled");t=b.createToolbarButton(Editor.zoomOutImage, | 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.debug("P2PCollab:","sendReply error",arguments,m)}});this.sendMessage=c;this.sendDiff=function(N){this.sendMessage("diff",{diff:N})};this.getState=function(){return null!=I?I.readyState:3};this.getLastError=function(){return P};this.mouseListeners={startX:0,startY:0,scrollLeft:0,scrollTop:0,mouseDown:function(N,T){},mouseMove:function(N,T){var m,B=-1;return function(){clearTimeout(m);var K=this,R=arguments,U=function(){m=null;B=Date.now();N.apply(K,R)};Date.now()-B>T?U():m=setTimeout(U,T)}}(function(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 |
null}l(M)}));f=!0}}catch(p){f=!1,null!=x&&x!=this.editor.graph&&null!=x.container.parentNode&&x.container.parentNode.removeChild(x.container)}f||window.clearTimeout(k);return f};App.prototype.createBackground=function(){var b=this.createDiv("background");b.style.position="absolute";b.style.background="white";b.style.left="0px";b.style.top="0px";b.style.bottom="0px";b.style.right="0px";mxUtils.setOpacity(b,100);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 |
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==
J.evt.button};var d=M.isCellSelectable;M.isCellSelectable=function(J){return J==I?!1:d.apply(this,arguments)};M.getLinkForCell=function(){return null};var g=M.view.getState(I);z=M.getAllConnectionConstraints(g);for(var n=0;null!=z&&n<z.length;n++){var t=M.getConnectionPoint(g,z[n]);l(t.x-3,t.y-3,z[n])}M.fit(8);M.center();n=b.createToolbarButton(Editor.zoomInImage,mxResources.get("zoomIn"),function(){M.zoomIn()},20);n.setAttribute("disabled","disabled");t=b.createToolbarButton(Editor.zoomOutImage, | 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.isCorsEnabledForUrl(m)){var B=/(\.v(dx|sdx?))($|\?)/i.test(m)||/(\.vs(x|sx?))($|\?)/i.test(m);B=/\.png$/i.test(m)||/\.pdf$/i.test(m)||B;var K="t="+(new Date).getTime();m=PROXY_URL+"?url="+encodeURIComponent(m)+"&"+K+(B?"&base64=1":"")}return m};Editor.prototype.isCorsEnabledForUrl=function(m){if(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||m.substring(0,window.location.origin.length)==window.location.origin)return!0;null!=urlParams.cors&&null==this.corsRegExp&&(this.corsRegExp=new RegExp(decodeURIComponent(urlParams.cors)));
return null!=this.corsRegExp&&this.corsRegExp.test(m)||"https://raw.githubusercontent.com/"===m.substring(0,34)||"https://fonts.googleapis.com/"===m.substring(0,29)||"https://fonts.gstatic.com/"===m.substring(0,26)};Editor.prototype.createImageUrlConverter=function(){var m=new mxUrlConverter;m.updateBaseUrl();var B=m.convert,K=this;m.convert=function(R){if(null!=R){var U="http://"==R.substring(0,7)||"https://"==R.substring(0,8);U&&!navigator.onLine?R=Editor.svgBrokenImage.src:!U||R.substring(0,m.baseUrl.length)== | 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){var g=e.apply(this,arguments);if(null==g)try{var n=d.indexOf("<mxfile ");if(0<=n){var t=d.lastIndexOf("</mxfile>");t>n&&(g=d.substring(n,t+15).replace(/>/g,">").replace(/</g,"<").replace(/\\"/g,'"').replace(/\n/g,""))}else{var u=mxUtils.parseXml(d),v=this.editor.extractGraphModel(u.documentElement,null!=this.pages||"hidden"==this.diagramContainer.style.visibility);g=null!=v?mxUtils.getXml(v):""}}catch(A){}return g};EditorUi.prototype.validateFileData=function(d){if(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,!0,null,null,null,null,!0);C.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?C.select():document.execCommand("selectAll",!1,null)};EditorUi.prototype.showEmbedImageDialog=function(d,g,n,t,u){var v=document.createElement("div");v.style.whiteSpace="nowrap";var A=this.editor.graph;if(null!=g){var H=document.createElement("h3");mxUtils.write(H,g);H.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:4px";v.appendChild(H)}var L=this.addCheckbox(v,mxResources.get("fit"),
!0),F=this.addCheckbox(v,mxResources.get("shadow"),A.shadowVisible&&t,!t),S=this.addCheckbox(v,n),p=this.addCheckbox(v,mxResources.get("lightbox"),!0),q=this.addEditButton(v,p),C=q.getEditInput(),J=1<A.model.getChildCount(A.model.getRoot()),G=this.addCheckbox(v,mxResources.get("layers"),J,!J);G.style.marginLeft=C.style.marginLeft;G.style.marginBottom="12px";G.style.marginTop="8px";mxEvent.addListener(p,"change",function(){p.checked?(J&&G.removeAttribute("disabled"),C.removeAttribute("disabled")):
(G.setAttribute("disabled","disabled"),C.setAttribute("disabled","disabled"));C.checked&&p.checked?q.getEditSelect().removeAttribute("disabled"):q.getEditSelect().setAttribute("disabled","disabled")});g=new CustomDialog(this,v,mxUtils.bind(this,function(){d(L.checked,F.checked,S.checked,p.checked,q.getLink(),G.checked)}),null,mxResources.get("embed"),u);this.showDialog(g.container,280,300,!0,!0)};EditorUi.prototype.createEmbedImage=function(d,g,n,t,u,v,A,H){function L(C){var J=" ",G="";t&&(J=" onclick=\"(function(img){if(img.wnd!=null&&!img.wnd.closed){img.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==img.wnd){img.wnd.postMessage(decodeURIComponent(img.getAttribute('src')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);img.wnd=window.open('"+ | 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 |
Graph.prototype.setHiddenTags=function(m){this.hiddenTags=m;this.fireEvent(new mxEventObject("hiddenTagsChanged"))};Graph.prototype.toggleHiddenTag=function(m){var B=mxUtils.indexOf(this.hiddenTags,m);0>B?this.hiddenTags.push(m):0<=B&&this.hiddenTags.splice(B,1);this.fireEvent(new mxEventObject("hiddenTagsChanged"))};Graph.prototype.isAllTagsHidden=function(m){if(null==m||0==m.length||0==this.hiddenTags.length)return!1;m=m.split(" ");if(m.length>this.hiddenTags.length)return!1;for(var B=0;B<m.length;B++)if(0>
mxUtils.indexOf(this.hiddenTags,m[B]))return!1;return!0};Graph.prototype.getCellsForTags=function(m,B,K,R){var U=[];if(null!=m){B=null!=B?B:this.model.getDescendants(this.model.getRoot());for(var W=0,Q={},V=0;V<m.length;V++)0<m[V].length&&(Q[m[V]]=!0,W++);for(V=0;V<B.length;V++)if(K&&this.model.getParent(B[V])==this.model.root||this.model.isVertex(B[V])||this.model.isEdge(B[V])){var X=this.getTagsForCell(B[V]),Y=!1;if(0<X.length&&(X=X.split(" "),X.length>=m.length)){for(var Z=Y=0;Z<X.length&&Y<W;Z++)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 |
a.view.getBackgroundPane(),ia=a.view.getDrawPane();a.cumulativeZoomFactor=1;var qa=null,K=null,U=null,L=null,O=null,X=function(W){null!=qa&&window.clearTimeout(qa);0<=W&&window.setTimeout(function(){if(!a.isMouseDown||L)qa=window.setTimeout(mxUtils.bind(this,function(){a.isFastZoomEnabled()&&(null!=a.view.backgroundPageShape&&null!=a.view.backgroundPageShape.node&&(mxUtils.setPrefixedStyle(a.view.backgroundPageShape.node.style,"transform-origin",null),mxUtils.setPrefixedStyle(a.view.backgroundPageShape.node.style,
"transform",null)),ia.style.transformOrigin="",ja.style.transformOrigin="",mxClient.IS_SF?(ia.style.transform="scale(1)",ja.style.transform="scale(1)",window.setTimeout(function(){ia.style.transform="";ja.style.transform=""},0)):(ia.style.transform="",ja.style.transform=""),a.view.getDecoratorPane().style.opacity="",a.view.getOverlayPane().style.opacity="");var J=new mxPoint(a.container.scrollLeft,a.container.scrollTop),ha=mxUtils.getOffset(a.container),oa=a.view.scale,ua=0,ka=0;null!=K&&(ua=a.container.offsetWidth/
2-K.x+ha.x,ka=a.container.offsetHeight/2-K.y+ha.y);a.zoom(a.cumulativeZoomFactor,null,a.isFastZoomEnabled()?20:null);a.view.scale!=oa&&(null!=U&&(ua+=J.x-U.x,ka+=J.y-U.y),null!=b&&e.chromelessResize(!1,null,ua*(a.cumulativeZoomFactor-1),ka*(a.cumulativeZoomFactor-1)),!mxUtils.hasScrollbars(a.container)||0==ua&&0==ka||(a.container.scrollLeft-=ua*(a.cumulativeZoomFactor-1),a.container.scrollTop-=ka*(a.cumulativeZoomFactor-1)));null!=O&&ia.setAttribute("filter",O);a.cumulativeZoomFactor=1;O=L=K=U=qa=
null}),null!=W?W:a.isFastZoomEnabled()?e.wheelZoomDelay:e.lazyZoomDelay)},0)};a.lazyZoom=function(W,J,ha,oa){oa=null!=oa?oa:this.zoomFactor;(J=J||!a.scrollbars)&&(K=new mxPoint(a.container.offsetLeft+a.container.clientWidth/2,a.container.offsetTop+a.container.clientHeight/2));W?.15>=this.view.scale*this.cumulativeZoomFactor?this.cumulativeZoomFactor*=(this.view.scale+.05)/this.view.scale:(this.cumulativeZoomFactor*=oa,this.cumulativeZoomFactor=Math.round(this.view.scale*this.cumulativeZoomFactor* | 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 V=this.click;this.click=function(K){var U=null==K.state&&null!=K.sourceState&&this.isCellLocked(this.getLayerForCell(K.sourceState.cell));if(this.isEnabled()&&!U||K.isConsumed())return V.apply(this,arguments);U=U?K.sourceState.cell:K.getCell();null!=U&&(U=this.getClickableLinkForCell(U),null!=U&&(this.isCustomLink(U)?this.customLinkClicked(U):this.openLink(U)))};this.tooltipHandler.getStateForEvent=function(K){return K.sourceState};var aa=this.tooltipHandler.show;this.tooltipHandler.show=function(){aa.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 |
p();this.refreshComments=p;H=mxUtils.bind(this,function(){function q(O){var N=J[O.id];if(null!=N)for(E(O,N),N=0;null!=O.replies&&N<O.replies.length;N++)q(O.replies[N])}if(this.window.isVisible()){for(var C=v.querySelectorAll(".geCommentDate"),J={},G=0;G<C.length;G++){var P=C[G];J[P.getAttribute("data-commentId")]=P}for(G=0;G<S.length;G++)q(S[G])}});setInterval(H,6E4);this.refreshCommentsTime=H;this.window=new mxWindow(mxResources.get("comments"),t,e,f,c,k,!0,!0);this.window.minimumSize=new mxRectangle(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 |
function(C){z=C};this.setAutoScroll=function(C){M=C};this.setOpenFill=function(C){I=C};this.setStopClickEnabled=function(C){n=C};this.setSelectInserted=function(C){t=C};this.setSmoothing=function(C){f=C};this.setPerfectFreehandMode=function(C){v=C};this.isPerfectFreehandMode=function(){return v};this.setBrushSize=function(C){u.size=C};this.getBrushSize=function(){return u.size};var A=function(C){g=C;b.getRubberband().setEnabled(!C);b.graphHandler.setSelectEnabled(!C);b.graphHandler.setMoveEnabled(!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 |
na[Xa],0<ja.length&&(pa=document.createElement("div"),pa.className="geTempDlgImportCat",pa.innerText=mxResources.get(Xa,null,Xa),ea.appendChild(pa),F(ja,aa,la,null,!0))}function S(ja,aa){qa.innerText="";A();var la=Math.floor(qa.offsetWidth/150)-1;aa=!aa&&ja.length>la?la:ja.length;for(var na=0;na<aa;na++){var pa=ja[na];pa.isCategory=!0;var ha=document.createElement("div"),ka=mxResources.get(pa.title);null==ka&&(ka=pa.title.substring(0,1).toUpperCase()+pa.title.substring(1));ha.className="geTempDlgNewDiagramCatItem";
ha.setAttribute("title",ka);ka=mxUtils.htmlEntities(ka);15<ka.length&&(ka=ka.substring(0,15)+"…");null==R&&(L(!0),A(ha,"geTempDlgNewDiagramCatItemActive",pa));var ua=document.createElement("div");ua.className="geTempDlgNewDiagramCatItemImg";var wa=document.createElement("img");wa.src=NEW_DIAGRAM_CATS_PATH+"/"+pa.img;ua.appendChild(wa);ha.appendChild(ua);ua=document.createElement("div");ua.className="geTempDlgNewDiagramCatItemLbl";ua.innerHTML=ka;ha.appendChild(ua);qa.appendChild(ha);(function(Ma,
Ia){mxEvent.addListener(ha,"click",function(){R!=Ia&&(L(!0),A(Ia,"geTempDlgNewDiagramCatItemActive",Ma))});mxEvent.addListener(ha,"dblclick",H)})(pa,ha)}ha=document.createElement("div");ha.className="geTempDlgNewDiagramCatItem";ka=mxResources.get("showAllTemps");ha.setAttribute("title",ka);ua=document.createElement("div");ua.className="geTempDlgNewDiagramCatItemImg";ua.innerText="...";ua.style.fontSize="32px";ha.appendChild(ua);ua=document.createElement("div");ua.className="geTempDlgNewDiagramCatItemLbl";
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 |
V)&&(R=0<R.length?R+" "+V:V,W=!0)}W&&this.setAttributeForCell(m[K],"tags",R)}}finally{this.model.endUpdate()}}};Graph.prototype.removeTagsForCells=function(m,B){if(0<m.length&&0<B.length){this.model.beginUpdate();try{for(var K=0;K<m.length;K++){var R=this.getTagsForCell(m[K]);if(0<R.length){for(var U=R.split(" "),W=!1,Q=0;Q<B.length;Q++){var V=mxUtils.indexOf(U,B[Q]);0<=V&&(U.splice(V,1),W=!0)}W&&this.setAttributeForCell(m[K],"tags",U.join(" "))}}}finally{this.model.endUpdate()}}};Graph.prototype.toggleCells= | 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 V=this.click;this.click=function(K){var U=null==K.state&&null!=K.sourceState&&this.isCellLocked(this.getLayerForCell(K.sourceState.cell));if(this.isEnabled()&&!U||K.isConsumed())return V.apply(this,arguments);U=U?K.sourceState.cell:K.getCell();null!=U&&(U=this.getClickableLinkForCell(U),null!=U&&(this.isCustomLink(U)?this.customLinkClicked(U):this.openLink(U)))};this.tooltipHandler.getStateForEvent=function(K){return K.sourceState};var aa=this.tooltipHandler.show;this.tooltipHandler.show=function(){aa.apply(this,
arguments);if(null!=this.div)for(var K=this.div.getElementsByTagName("a"),U=0;U<K.length;U++)null!=K[U].getAttribute("href")&&null==K[U].getAttribute("target")&&K[U].setAttribute("target","_blank")};this.tooltipHandler.getStateForEvent=function(K){return K.sourceState};this.getCursorForMouseEvent=function(K){var U=null==K.state&&null!=K.sourceState&&this.isCellLocked(K.sourceState.cell);return this.getCursorForCell(U?K.sourceState.cell:K.getCell())};var ba=this.getCursorForCell;this.getCursorForCell= | 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)-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(); | 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.readAsText(J)}else this.doImportVisio(J,g,H,t)}catch(P){H(P)}else try{""==C.responseType||"text"==C.responseType?H({message:C.responseText}):(G=new FileReader,G.onload=function(){try{H({message:JSON.parse(G.result).Message})}catch(P){H(P)}},G.readAsText(C.response))}catch(P){H({})}});C.send(F)}else if(A.clear())try{this.doImportVisio(d,g,H,t)}catch(J){H(J)}}else H({message:mxResources.get("serviceUnavailableOrBlocked")})});this.doImportVisio||this.loadingExtensions||this.isOffline(!0)?L():(this.loadingExtensions= | 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,A,mxResources.get("cancel"),mxResources.get("discardChanges")):A()})));else throw Error(mxResources.get("notADiagramFile"));};EditorUi.prototype.getBasenames=function(){var d={};if(null!=this.pages)for(var g=0;g<this.pages.length;g++)this.updatePageRoot(this.pages[g]),this.addBasenamesForCell(this.pages[g].root,d);else this.addBasenamesForCell(this.editor.graph.model.getRoot(),d);g=[];for(var n in d)g.push(n);return g};EditorUi.prototype.addBasenamesForCell=function(d,g){function n(A){if(null!=
A){var H=A.lastIndexOf(".");0<H&&(A=A.substring(H+1,A.length));null==g[A]&&(g[A]=!0)}}var t=this.editor.graph,u=t.getCellStyle(d);n(mxStencilRegistry.getBasenameForStencil(u[mxConstants.STYLE_SHAPE]));t.model.isEdge(d)&&(n(mxMarker.getPackageForType(u[mxConstants.STYLE_STARTARROW])),n(mxMarker.getPackageForType(u[mxConstants.STYLE_ENDARROW])));u=t.model.getChildCount(d);for(var v=0;v<u;v++)this.addBasenamesForCell(t.model.getChildAt(d,v),g)};EditorUi.prototype.setGraphEnabled=function(d){this.diagramContainer.style.visibility= | 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(C){z=C};this.setAutoScroll=function(C){M=C};this.setOpenFill=function(C){I=C};this.setStopClickEnabled=function(C){n=C};this.setSelectInserted=function(C){t=C};this.setSmoothing=function(C){f=C};this.setPerfectFreehandMode=function(C){v=C};this.isPerfectFreehandMode=function(){return v};this.setBrushSize=function(C){u.size=C};this.getBrushSize=function(){return u.size};var A=function(C){g=C;b.getRubberband().setEnabled(!C);b.graphHandler.setSelectEnabled(!C);b.graphHandler.setMoveEnabled(!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 |
libs:ja.getAttribute("libs"),clibs:ja.getAttribute("clibs"),title:ja.getAttribute("title")}),ja=ja.nextSibling;S(Fa)}});var Va=function(ja,aa,la){Ba.style.display="";Ka.stop();T=!1;if(m)m=!1;else if(aa)ea.innerText=aa;else{la=la||{};aa=0;for(var na in la)aa+=la[na].length;0==ja.length&&0==aa?ea.innerText=mxResources.get("noDiagrams"):F(ja,!1,V,0==aa?null:la)}};C(Q);var Ua=null;mxEvent.addListener(xa,"keyup",P);mxEvent.addListener(xa,"search",P);mxEvent.addListener(xa,"input",P);mxEvent.addListener(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 |
A){var H=A.lastIndexOf(".");0<H&&(A=A.substring(H+1,A.length));null==g[A]&&(g[A]=!0)}}var t=this.editor.graph,u=t.getCellStyle(d);n(mxStencilRegistry.getBasenameForStencil(u[mxConstants.STYLE_SHAPE]));t.model.isEdge(d)&&(n(mxMarker.getPackageForType(u[mxConstants.STYLE_STARTARROW])),n(mxMarker.getPackageForType(u[mxConstants.STYLE_ENDARROW])));u=t.model.getChildCount(d);for(var v=0;v<u;v++)this.addBasenamesForCell(t.model.getChildAt(d,v),g)};EditorUi.prototype.setGraphEnabled=function(d){this.diagramContainer.style.visibility=
d?"":"hidden";this.formatContainer.style.visibility=d?"":"hidden";this.sidebarContainer.style.display=d?"":"none";this.hsplit.style.display=d&&"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme?"":"none";this.editor.graph.setEnabled(d);null!=this.tabContainer&&(this.tabContainer.style.visibility=d?"":"hidden");null!=this.ruler&&(this.ruler.hRuler.container.style.visibility=d?"":"hidden",this.ruler.vRuler.container.style.visibility=d?"":"hidden");d||this.hideWindows()};EditorUi.prototype.initializeEmbedMode= | 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.toolbar.edgeShapeMenu&&this.toolbar.edgeShapeMenu.setEnabled(d),null!=this.toolbar.edgeStyleMenu&&this.toolbar.edgeStyleMenu.setEnabled(d));this.updateUserElement()};EditorUi.prototype.updateButtonContainer=function(){};EditorUi.prototype.updateUserElement=function(){};EditorUi.prototype.scheduleSanityCheck=function(){};EditorUi.prototype.stopSanityCheck=function(){};EditorUi.prototype.isDiagramActive=function(){var d=this.getCurrentFile();return null!=d&&d.isEditable()||"1"==urlParams.embed&&
this.editor.graph.isEnabled()};var z=EditorUi.prototype.createSidebar;EditorUi.prototype.createSidebar=function(d){var g=z.apply(this,arguments);this.addListener("darkModeChanged",mxUtils.bind(this,function(){g.refresh()}));this.addListener("sketchModeChanged",mxUtils.bind(this,function(){g.refresh()}));return g};var M=EditorUi.prototype.updateActionStates;EditorUi.prototype.updateActionStates=function(){M.apply(this,arguments);var d=this.editor.graph,g=this.getCurrentFile(),n=this.getSelectionState(), | 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",
this.update)};var z=Format.prototype.refresh;Format.prototype.refresh=function(){null!=this.editorUi.getCurrentFile()||"1"==urlParams.embed||this.editorUi.editor.chromeless?z.apply(this,arguments):this.clear()};DiagramFormatPanel.prototype.isMathOptionVisible=function(m){return"simple"==Editor.currentTheme||"sketch"==Editor.currentTheme||"min"==Editor.currentTheme};var M=DiagramFormatPanel.prototype.addOptions;DiagramFormatPanel.prototype.addOptions=function(m){m=M.apply(this,arguments);var B=this.editorUi, | 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.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 |
!p){var O=function(){K.value=Math.max(1,Math.min(G,Math.max(parseInt(K.value),parseInt(m.value))));m.value=Math.max(1,Math.min(G,Math.min(parseInt(K.value),parseInt(m.value))))},N=c.addRadiobox(q,"pages",mxResources.get("allPages"),!0),T=c.addRadiobox(q,"pages",mxResources.get("pages")+":",!1,null,!0),m=document.createElement("input");m.style.cssText="margin:0 8px 0 8px;";m.setAttribute("value","1");m.setAttribute("type","number");m.setAttribute("min","1");m.style.width="50px";q.appendChild(m);var 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 |
(EditorUi.debug("EditorUi.generateOpenAiMermaidDiagram","\nprompt:",d,"\nresponse:",S,"\nresult:",p),this.spinner.stop(),g(p,q,C,J))}),H)}),H,mxUtils.bind(this,function(q){3>t++?v.clear()&&(this.spinner.stop(),u()):H(q)}))}),H);else{var F={message:mxResources.get("error")+" "+L.getStatus()};try{F=JSON.parse(L.getText()),F=F.error}catch(S){}H(F)}}),H)}),n)});u()};EditorUi.prototype.extractMermaidMindmap=function(d){for(0<d[1].indexOf("orientation")&&d.splice(1,1);1<d.length&&""==d[1];)d.splice(1,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 |
DriveFile.prototype.saveFile=function(b,e,f,c,k,l){try{this.isEditable()?this.savingFile||(this.savingFileTime=new Date,this.setShadowModified(!1),this.savingFile=!0,this.createSecret(mxUtils.bind(this,function(x,y){var E=mxUtils.bind(this,function(D,z){try{var M=this.desc;null!=this.sync&&this.sync.fileSaving();this.ui.drive.saveFile(this,z,mxUtils.bind(this,function(I,d){try{this.savingFile=!1,0!=I?(this.setModified(this.getShadowModified()),e&&(this.lastAutosaveRevision=(new Date).getTime()),this.autosaveDelay=
Math.round(Math.min(1E4,Math.max(DriveFile.prototype.autosaveDelay,this.saveDelay))),this.desc=I,null!=y?this.fileSaved(d,M,mxUtils.bind(this,function(){this.contentChanged();null!=f&&f(I)}),c,y):null!=f&&f(I)):null!=c&&c(I)}catch(g){if(this.savingFile=!1,null!=c)c(g);else throw g;}}),mxUtils.bind(this,function(I,d){try{this.savingFile=!1,this.isConflict(I)?(this.inConflictState=!0,null!=this.sync?(this.savingFile=!0,this.sync.fileConflict(d,mxUtils.bind(this,function(){window.setTimeout(mxUtils.bind(this,
function(){this.updateFileData();this.setShadowModified(!1);E(D,!0)}),100+500*Math.random())}),mxUtils.bind(this,function(){this.savingFile=!1;null!=c&&c()}))):null!=c&&c()):null!=c&&c(I)}catch(g){if(this.savingFile=!1,null!=c)c(g);else throw g;}}),k,k,D,null,x)}catch(I){if(this.savingFile=!1,null!=c)c(I);else throw I;}});E(l,e)}))):null!=f&&f()}catch(x){if(null!=c)c(x);else throw x;}}; | 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 |
500)});g("#refreshOD").addEventListener("click",function(){null!=T&&(e(null),H.apply(this,T))});D&&g("#odBackBtn").addEventListener("click",D);z&&g("#odSubmitBtn").addEventListener("click",t);null!=I?(D=I.pop(),"sharepoint"==I[0].driveId&&L(g("#odSharepoint")),N=I,H(D.driveId,D.folderId,D.siteId,D.name)):H()};App=function(b,e,f){EditorUi.call(this,b,e,null!=f?f:"1"==urlParams.lightbox||"min"==uiTheme&&"0"!=urlParams.chrome);mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||(window.onunload=mxUtils.bind(this,function(){var c=this.getCurrentFile();if(null!=c&&c.isModified()){var k={category:"DISCARD-FILE-"+c.getHash(),action:(c.savingFile?"saving":"")+(c.savingFile&&null!=c.savingFileTime?"_"+Math.round((Date.now()-c.savingFileTime.getTime())/1E3):"")+(null!=c.saveLevel?"-sl_"+c.saveLevel:"")+"-age_"+(null!=
c.ageStart?Math.round((Date.now()-c.ageStart.getTime())/1E3):"x")+(this.editor.autosave?"":"-nosave")+(c.isAutosave()?"":"-noauto")+"-open_"+(null!=c.opened?Math.round((Date.now()-c.opened.getTime())/1E3):"x")+"-save_"+(null!=c.lastSaved?Math.round((Date.now()-c.lastSaved.getTime())/1E3):"x")+"-change_"+(null!=c.lastChanged?Math.round((Date.now()-c.lastChanged.getTime())/1E3):"x")+"-alive_"+Math.round((Date.now()-App.startTime.getTime())/1E3),label:null!=c.sync?"client_"+c.sync.clientId:"nosync"};
c.constructor==DriveFile&&null!=c.desc&&null!=this.drive&&(k.label+=(null!=this.drive.user?"-user_"+this.drive.user.id:"-nouser")+"-rev_"+c.desc.headRevisionId+"-mod_"+c.desc.modifiedDate+"-size_"+c.getSize()+"-mime_"+c.desc.mimeType);EditorUi.logEvent(k)}}));this.editor.addListener("autosaveChanged",mxUtils.bind(this,function(){var c=this.getCurrentFile();null!=c&&EditorUi.logEvent({category:(this.editor.autosave?"ON":"OFF")+"-AUTOSAVE-FILE-"+c.getHash(),action:"changed",label:"autosave_"+(this.editor.autosave? | 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)}))}else c({message:mxResources.get("accessDenied")});else D="&t="+(new Date).getTime(),d=this.baseUrl+"/projects/"+encodeURIComponent(z+"/"+M)+"/repository/files/"+encodeURIComponent(e)+"?ref="+I,y=new mxXmlRequest(d+D,null,"GET"),this.executeRequest(y,mxUtils.bind(this,function(g){try{f(this.createGitLabFile(z,M,I,JSON.parse(g.getText()),k,E))}catch(n){c(n)}}),c)}),c,x)};GitLabClient.prototype.getFileContent=function(e){var f=e.file_name,c=e.content;"base64"===e.encoding&&(/\.jpe?g$/i.test(f)?
c="data:image/jpeg;base64,"+c:/\.gif$/i.test(f)?c="data:image/gif;base64,"+c:/\.pdf$/i.test(f)?c="data:application/pdf;base64,"+c:/\.png$/i.test(f)?(e=this.ui.extractGraphModelFromPng(c),c=null!=e&&0<e.length?e:"data:image/png;base64,"+c):c=Base64.decode(c));return c};GitLabClient.prototype.createGitLabFile=function(e,f,c,k,l,x){var y=DRAWIO_GITLAB_URL+"/";e={org:e,repo:f,ref:c,name:k.file_name,path:k.file_path,html_url:y+e+"/"+f+"/blob/"+c+"/"+k.file_path,download_url:y+e+"/"+f+"/raw/"+c+"/"+k.file_path+ | 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.addMenuItems(p,["-","close"])})));f.prototype.execute=function(){var p=this.ui.editor.graph;this.customFonts=this.prevCustomFonts;this.prevCustomFonts=this.ui.menus.customFonts;this.ui.fireEvent(new mxEventObject("customFontsChanged","customFonts",this.customFonts));this.extFonts=this.previousExtFonts;for(var q=p.extFonts,C=0;null!=q&&C<q.length;C++){var J=document.getElementById("extFont_"+q[C].name);null!=J&&J.parentNode.removeChild(J)}p.extFonts=[];for(C=0;null!=this.previousExtFonts&&C<this.previousExtFonts.length;C++)this.ui.editor.graph.addExtFont(this.previousExtFonts[C].name,
this.previousExtFonts[C].url);this.previousExtFonts=q};this.put("fontFamily",new Menu(mxUtils.bind(this,function(p,q){for(var C=mxUtils.bind(this,function(K,R,U,W,Q){var V=c.editor.graph;W=this.styleChange(p,W||K,"1"!=urlParams["ext-fonts"]?[mxConstants.STYLE_FONTFAMILY,"fontSource","FType"]:[mxConstants.STYLE_FONTFAMILY],"1"!=urlParams["ext-fonts"]?[K,null!=R?encodeURIComponent(R):null,null]:[K],null,q,function(){"1"!=urlParams["ext-fonts"]?V.setFont(K,R):(document.execCommand("fontname",!1,K),V.addExtFont(K, | 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 |
window.console&&console.error(K,N,T)}}function k(N){if(b.shareCursorPosition&&!z.isMouseDown){var T=mxUtils.getOffset(z.container),m=z.view.translate,B=z.view.scale,K=null!=b.currentPage?b.currentPage.getId():null;c("cursor",{pageId:K,x:Math.round((N.getX()-T.x+z.container.scrollLeft)/B-m.x),y:Math.round((N.getY()-T.y+z.container.scrollTop)/B-m.y)})}}function l(N,T){var m=null!=b.currentPage?b.currentPage.getId():null;if(null!=N&&null!=N.cursor&&null!=N.lastCursor)if(null!=N.lastCursor.hide||!b.isShowRemoteCursors()|| | 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;W<Q.length;W++)Q[W].parentNode.removeChild(Q[W]);M(m);m.style.opacity="0.5"}else{Q=N(q).replies;for(W=0;W<Q.length;W++)v.removeChild(Q[W]);for(W=0;W<C.length;W++)if(C[W]==q){C.splice(W,1);break}A.style.display=0==v.getElementsByTagName("div").length?"block":"none"}},function(W){z(m);b.handleError(W,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))})})},q.isResolved));d||q.isLocked||0!=G||O(q.isResolved?mxResources.get("reopen"):mxResources.get("resolve"),function(W){function Q(){var V=
W.target;V.innerText="";q.isResolved=!q.isResolved;mxUtils.write(V,q.isResolved?mxResources.get("reopen"):mxResources.get("resolve"));for(var X=q.isResolved?"none":"",Y=N(q).replies,Z=Editor.isDarkMode()?"transparent":q.isResolved?"ghostWhite":"white",ca=0;ca<Y.length;ca++){Y[ca].style.backgroundColor=Z;for(var da=Y[ca].querySelectorAll(".geCommentAction"),ma=0;ma<da.length;ma++)da[ma]!=V.parentNode&&(da[ma].style.display=X);F||(Y[ca].style.display="none")}x()}q.isResolved?T(mxResources.get("reOpened")+ | 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.STYLE_STROKECOLOR,mxUtils.getValue(C,mxConstants.STYLE_STROKECOLOR,"#000"));"default"==C&&(C=b.shapeForegroundColor);return C};this.createStyle=function(C){var J=";fillColor=none;";v&&(J=";lineShape=1;");return mxConstants.STYLE_SHAPE+"="+C+J};this.stopDrawing=function(){if(0<k.length){if(v){for(var C=[],J=0;J<x.length;J++)null!=x[J]&&C.push([x[J].x,x[J].y]);C=PerfectFreehand.getStroke(C,u);x=[];for(J=0;J<C.length;J++)x.push({x:C[J][0],y:C[J][1]});x.push(null)}C=x[0].x;var G=x[0].x,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 |
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 |
"sketchStyle","rough")?this.createComicCanvas(W):this.createRoughCanvas(W)};var K=mxImageShape.prototype.paintVertexShape;mxImageShape.prototype.paintVertexShape=function(W,Q,V,X,Y){null!=W.handJiggle&&W.handJiggle.passThrough||K.apply(this,arguments)};var R=mxShape.prototype.paint;mxShape.prototype.paint=function(W){var Q=W.addTolerance,V=!0;null!=this.style&&(V="1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1"));if(null!=W.handJiggle&&W.handJiggle.constructor==m&&!this.outline){W.save();
var X=this.fill,Y=this.stroke;this.stroke=this.fill=null;var Z=this.configurePointerEvents,ca=W.setStrokeColor;W.setStrokeColor=function(){};var da=W.setFillColor;W.setFillColor=function(){};V||null==X||(this.configurePointerEvents=function(){});W.handJiggle.passThrough=!0;R.apply(this,arguments);W.handJiggle.passThrough=!1;W.setFillColor=da;W.setStrokeColor=ca;this.configurePointerEvents=Z;this.stroke=Y;this.fill=X;W.restore();V&&null!=X&&(W.addTolerance=function(){})}R.apply(this,arguments);W.addTolerance=
Q};var U=mxShape.prototype.paintGlassEffect;mxShape.prototype.paintGlassEffect=function(W,Q,V,X,Y,Z){null!=W.handJiggle&&W.handJiggle.constructor==m?(W.handJiggle.passThrough=!0,U.apply(this,arguments),W.handJiggle.passThrough=!1):U.apply(this,arguments)}})();Editor.fastCompress=function(m){return null==m||0==m.length||"undefined"===typeof pako?m:Graph.arrayBufferToString(pako.deflateRaw(m))};Editor.fastDecompress=function(m){return null==m||0==m.length||"undefined"===typeof pako?m:pako.inflateRaw(Graph.stringToArrayBuffer(atob(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 |
(this.graph.isCellSelected(K)?X=!0:K=this.graph.model.getParent(K));X||this.graph.isTableRow(K)&&this.graph.isCellSelected(K)||(K=this.graph.getCompositeParent(K));C.apply(this,arguments)};this.connectionHandler.createTargetVertex=function(K,U){U=this.graph.getCompositeParent(U);return mxConnectionHandler.prototype.createTargetVertex.apply(this,arguments)};this.connectionHandler.insertEdge=function(K,U,L,O,X,W){var J=mxConnectionHandler.prototype.insertEdge.apply(this,arguments);null!=O&&this.graph.applyNewEdgeStyle(O,
[J]);return J};var G=new mxRubberband(this);this.getRubberband=function(){return G};var D=(new Date).getTime(),F=0,N=this.connectionHandler.mouseMove;this.connectionHandler.mouseMove=function(){var K=this.currentState;N.apply(this,arguments);K!=this.currentState?(D=(new Date).getTime(),F=0):F=(new Date).getTime()-D};var R=this.connectionHandler.isOutlineConnectEvent;this.connectionHandler.isOutlineConnectEvent=function(K){return mxEvent.isShiftDown(K.getEvent())&&mxEvent.isAltDown(K.getEvent())?!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 |
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 |
n&&v.setAttribute("resource",n);var C=mxUtils.bind(this,function(J){J=(t?"":Graph.xmlDeclaration+"\n"+Graph.svgFileComment+"\n"+Graph.svgDoctype+"\n")+mxUtils.getXml(J);null!=u&&u(J);return J});g.mathEnabled&&this.editor.addMathCss(v);if(null!=u)this.embedFonts(v,mxUtils.bind(this,function(J){H?this.editor.convertImages(J,mxUtils.bind(this,function(G){C(G)})):C(J)}));else return C(v)};EditorUi.prototype.embedFonts=function(d,g){this.editor.loadFonts(mxUtils.bind(this,function(){try{null!=this.editor.resolvedFontCss&&
this.editor.addFontCss(d,this.editor.resolvedFontCss),this.editor.embedExtFonts(mxUtils.bind(this,function(n){try{null!=n&&this.editor.addFontCss(d,n),g(d)}catch(t){g(d)}}))}catch(n){g(d)}}))};EditorUi.prototype.exportImage=function(d,g,n,t,u,v,A,H,L,F,S,p,q){L=null!=L?L:"png";if(this.spinner.spin(document.body,mxResources.get("exporting"))){var C=this.editor.graph.isSelectionEmpty();n=null!=n?n:C;null==this.thumbImageCache&&(this.thumbImageCache={});try{this.editor.exportToCanvas(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 |
"4px");null!=Z&&ma.setAttribute("title",Z);null!=ca&&(V=function(){ca.isEnabled()?(ma.removeAttribute("disabled"),ma.style.cursor="pointer"):(ma.setAttribute("disabled","disabled"),ma.style.cursor="default")},ca.addListener("stateChanged",V),A.addListener("enabledChanged",V),V());return ma}function g(V,X,Y){Y=document.createElement("div");Y.className="geMenuItem";Y.style.display="inline-block";Y.style.verticalAlign="top";Y.style.marginRight="6px";Y.style.padding="0 4px 0 4px";Y.style.height="30px"; | 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!=b.currentPage&&null!=b.pages&&(E=mxUtils.indexOf(b.pages,b.currentPage));for(I=e.length-1;0<=I;I--){var Q=function(V){var X=new Date(V.modifiedDate),Y=null;if(0<=X.getTime()){var Z=function(da){d.stop();x.innerText="";var ma=mxUtils.parseXml(da),ea=b.editor.extractGraphModel(ma.documentElement,!0);if(null!=ea){var za=function(Ca){null!=Ca&&(Ca=Ba(Editor.parseDiagramNode(Ca)));return Ca},Ba=function(Ca){var ba=Ca.getAttribute("background");if(null==ba||""==ba||ba==mxConstants.NONE)ba=y.defaultPageBackgroundColor; | 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)this.editPlantUmlData(O,N,T);else if(T=this.graph.getAttributeForCell(O,"mermaidData"),null!=T)this.editMermaidData(O,N,T);else{var m=g.getCellStyle(O);"1"==mxUtils.getValue(m,"metaEdit","0")?d.showDataDialog(O):n.apply(this,arguments)}}catch(B){d.handleError(B)}};g.getLinkTitle=function(O){return d.getLinkTitle(O)};g.customLinkClicked=function(O){var N=!1;try{d.handleCustomLink(O),N=!0}catch(T){d.handleError(T)}return N};var t=g.parseBackgroundImage;g.parseBackgroundImage=function(O){var N=t.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 |
K=B.editor.graph;if(K.isEnabled()){var R=B.getCurrentFile();null!=R&&R.isAutosaveOptional()&&m.appendChild(this.createOption(mxResources.get("autosave"),function(){return B.editor.autosave},function(Q){B.editor.setAutosave(Q);B.editor.autosave&&R.isModified()&&R.fileChanged()},{install:function(Q){this.listener=function(){Q(B.editor.autosave)};B.editor.addListener("autosaveChanged",this.listener)},destroy:function(){B.editor.removeListener(this.listener)}}))}if(this.isMathOptionVisible()&&K.isEnabled()&& | 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)):(m.noP2PMapDel=!0,m.destroy(),EditorUi.debug("P2PCollab: p2p socket duplicate",N))});m.on("close",function(){m.noP2PMapDel||(EditorUi.debug("P2PCollab: p2p socket closed",N),D(u[N]),delete F[N])});m.on("data",x);return L[N]=m}}function E(N,T){D(T||u[N]);null!=N&&(delete u[N],v[N]=!1)}function D(N){var T=g[N];if(null!=T){var m=T.selection,B;for(B in m)null!=m[B]&&m[B].destroy();null!=T.cursor&&null!=T.cursor.parentNode&&T.cursor.parentNode.removeChild(T.cursor);clearTimeout(T.inactiveTO);delete g[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 |
encodeURIComponent(G.name);y="";v()})));z.appendChild(O)})(C[J],J);100==C.length&&(z.appendChild(t),u=function(){z.scrollTop>=z.scrollHeight-z.offsetHeight&&p()},mxEvent.addListener(z,"scroll",u))}}))}),n)});I.okButton.setAttribute("disabled","disabled");this.ui.spinner.spin(z,mxResources.get("loading"));var H=mxUtils.bind(this,function(L){var F=this.ui.spinner,S=0;this.ui.spinner.stop();var p=function(){F.spin(z,mxResources.get("loading"));S+=1},q=function(){--S;0===S&&F.stop()};null==L&&(z.innerText= | 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.update)};var z=Format.prototype.refresh;Format.prototype.refresh=function(){null!=this.editorUi.getCurrentFile()||"1"==urlParams.embed||this.editorUi.editor.chromeless?z.apply(this,arguments):this.clear()};DiagramFormatPanel.prototype.isMathOptionVisible=function(m){return"simple"==Editor.currentTheme||"sketch"==Editor.currentTheme||"min"==Editor.currentTheme};var M=DiagramFormatPanel.prototype.addOptions;DiagramFormatPanel.prototype.addOptions=function(m){m=M.apply(this,arguments);var B=this.editorUi, | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.