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 |
|---|---|---|---|---|---|---|---|
(H=new mxCodec(mxUtils.createXmlDocument()),H=H.encode(new mxGraphModel(v.root)),this.editor.graph.saveViewState(v.viewState,H,null,t),A=A.cloneNode(!1),mxUtils.setTextContent(A,Graph.compressNode(H))));d(A)}return u};EditorUi.prototype.anonymizeString=function(d,g){for(var n=[],t=0;t<d.length;t++){var u=d.charAt(t);0<=EditorUi.ignoredAnonymizedChars.indexOf(u)?n.push(u):isNaN(parseInt(u))?u.toLowerCase()!=u?n.push(String.fromCharCode(65+Math.round(25*Math.random()))):u.toUpperCase()!=u?n.push(String.fromCharCode(97+
Math.round(25*Math.random()))):/\s/.test(u)?n.push(" "):n.push("?"):n.push(g?"0":Math.round(9*Math.random()))}return n.join("")};EditorUi.prototype.anonymizePatch=function(d){if(null!=d[EditorUi.DIFF_INSERT])for(var g=0;g<d[EditorUi.DIFF_INSERT].length;g++)try{var n=mxUtils.parseXml(d[EditorUi.DIFF_INSERT][g].data).documentElement.cloneNode(!1);null!=n.getAttribute("name")&&n.setAttribute("name",this.anonymizeString(n.getAttribute("name")));d[EditorUi.DIFF_INSERT][g].data=mxUtils.getXml(n)}catch(v){d[EditorUi.DIFF_INSERT][g].data= | 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[S].apply(this,arguments);null!=p&&F.push(p)}b.sidebar.showEntries(0<F.length?F.join(";"):"",t.checked);b.hideDialog()});E.className="geBtn gePrimaryBtn";f=document.createElement("div");f.style.marginTop="26px";f.style.textAlign="right"}b.editor.cancelFirst?(f.appendChild(l),f.appendChild(E)):(f.appendChild(E),f.appendChild(l));c.appendChild(f);this.container=c},PluginsDialog=function(b,e,f,c){function k(){E=!0;if(0==y.length)x.innerText=mxResources.get("noPlugins");else{x.innerText="";for(var g=
0;g<y.length;g++){var n=document.createElement("span");n.style.whiteSpace="nowrap";var t=document.createElement("span");t.className="geSprite geSprite-delete";t.style.position="relative";t.style.cursor="pointer";t.style.top="5px";t.style.marginRight="4px";t.style.display="inline-block";n.appendChild(t);mxUtils.write(n,y[g]);x.appendChild(n);mxUtils.br(x);mxEvent.addListener(t,"click",function(u){return function(){b.confirm(mxResources.get("delete")+' "'+y[u]+'"?',function(){null!=f&&f(y[u]);y.splice(u,
1);k()})}}(g))}}}var l=document.createElement("div"),x=document.createElement("div");x.style.height="180px";x.style.overflow="auto";var y=mxSettings.getPlugins().slice(),E=!1;l.appendChild(x);k();E=!1;var D=mxUtils.button(mxResources.get("add"),null!=e?function(){e(function(g){g&&0>mxUtils.indexOf(y,g)&&y.push(g);k()})}:function(){var g=document.createElement("div"),n=document.createElement("span");n.style.marginTop="6px";mxUtils.write(n,mxResources.get("builtinPlugins")+": ");g.appendChild(n);var t= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
arguments);D.style.backgroundColor=""};z.dblClick=function(){};var R=z.getSelectionModel().changeSelection;z.getSelectionModel().changeSelection=function(){R.call(this,[d],[d])}};E.onerror=function(){E.onload=null;E.src=Editor.errorImage};E.setAttribute("src",e);E.style.maxWidth="300px";E.style.maxHeight="300px";y.appendChild(E);x.appendChild(y);var D=document.createElement("div");D.style.width="300px";D.style.height="300px";D.style.overflow="hidden";D.style.backgroundColor="#fff9";x.appendChild(D); | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
Y&&Math.abs(this.scrollTop-a.container.scrollTop)<Y&&Math.abs(this.startX-J.getGraphX())<Y&&Math.abs(this.startY-J.getGraphY())<Y&&(0<parseFloat(e.chromelessToolbar.style.opacity||0)?D():F(30))}})}this.editor.editable||this.addChromelessClickHandler()}else if(this.editor.extendCanvas){var V=a.view.validate,aa=new mxPoint,ba=null;a.view.validate=function(){if(null!=a.container&&mxUtils.hasScrollbars(a.container)){if(null!=e.currentPage&&ba!=e.currentPage){ba=e.currentPage;var W=a.getPageLayout(a.getBoundingBoxFromGeometry(a.model.getCells(),
!0),aa,1),J=a.getDefaultTranslate(W);this.x0=W.x;this.y0=W.y;a.setScrollbarPositions(e.currentPage.viewState,J.x,J.y);if(J.x!=this.translate.x||J.y!=this.translate.y){this.setTranslate(J.x,J.y);return}}W=a.getPagePadding();J=a.getPageSize();this.translate.x=W.x-(this.x0||0)*J.width;this.translate.y=W.y-(this.y0||0)*J.height}V.apply(this,arguments)};if(!a.isViewer()){var da=a.sizeDidChange;a.sizeDidChange=function(){if(null!=this.container&&mxUtils.hasScrollbars(this.container)){this.updateMinimumSize(); | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
function(d,g,n,t,u,v,A,H){EditorUi.logEvent("SHOULD NOT BE CALLED: loadUrl");return this.editor.loadUrl(d,g,n,t,u,v,A,H)};EditorUi.prototype.loadFonts=function(d){EditorUi.logEvent("SHOULD NOT BE CALLED: loadFonts");return this.editor.loadFonts(d)};EditorUi.prototype.createSvgDataUri=function(d){EditorUi.logEvent("SHOULD NOT BE CALLED: createSvgDataUri");return Editor.createSvgDataUri(d)};EditorUi.prototype.embedCssFonts=function(d,g){EditorUi.logEvent("SHOULD NOT BE CALLED: embedCssFonts");return this.editor.embedCssFonts(d, | 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.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('"+
EditorUi.lightboxHost+"/?client=1"+(null!=S?"&page="+S:"")+(u?"&edit=_blank":"")+(v?"&layers=1":"")+"');}})(this);\"",G+="cursor:pointer;");d&&(G+="max-width:100%;");var P="";n&&(P=' width="'+Math.round(F.width)+'" height="'+Math.round(F.height)+'"');A('<img src="'+C+'"'+P+(""!=G?' style="'+G+'"':"")+J+"/>")}var F=this.editor.graph.getGraphBounds(),S=this.getSelectedPageIndex();if(this.isExportToCanvas())this.editor.exportToCanvas(mxUtils.bind(this,function(C){var J=t?this.getFileData(!0):null;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 |
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 |
v=[];u.onsuccess=function(A){null==A.target.result?d(v):(v.push(A.target.result.value),A.target.result.continue())};u.onerror=g}catch(A){null!=g&&g(A)}}),g)};EditorUi.prototype.getDatabaseItemKeys=function(d,g,n){this.openDatabase(mxUtils.bind(this,function(t){try{n=n||"objects";var u=t.transaction([n],"readonly").objectStore(n).getAllKeys();u.onsuccess=function(){d(u.result)};u.onerror=g}catch(v){null!=g&&g(v)}}),g)};EditorUi.prototype.commentsSupported=function(){var d=this.getCurrentFile();return null!= | 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)), | 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&&null!=d.shape&&null!=d.shape.stencil)};var I=EditorUi.prototype.destroy;EditorUi.prototype.destroy=function(){null!=this.exportDialog&&(this.exportDialog.parentNode.removeChild(this.exportDialog),this.exportDialog=null);I.apply(this,arguments)};null!=window.ExportDialog&&(ExportDialog.showXmlOption=!1,ExportDialog.showGifOption=!1,ExportDialog.exportFile=function(d,g,n,t,u,v,A,H){var L=d.editor.graph;if("xml"==n)d.hideDialog(),d.saveData(g,"xml",mxUtils.getXml(d.editor.getGraphXml()),"text/xml"); | 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 |
1));try{g=JSON.parse(d)}catch(t){}}}return g};EditorUi.prototype.updateHashObject=function(){if(null!=this.currentFile&&""!=this.currentFile.getHash()&&null!=this.currentPage&&0<this.getSelectedPageIndex()){var d=this.getHashObject();d.pageId=this.currentPage.getId();this.setHashObject(d)}else this.setHashObject(null)};EditorUi.prototype.setHashObject=function(d){if(Editor.enableHashObjects){var g=window.location.hash;if(null==g||""==g)g="#";var n=g.lastIndexOf("#");0<n&&(g=g.substring(0,n));try{null==
d||mxUtils.isEmptyObject(d)||(g=g+"#"+encodeURIComponent(JSON.stringify(d)))}catch(t){}window.location.hash=g}};EditorUi.prototype.loadDescriptor=function(d,g,n){var t=window.location.hash,u=mxUtils.bind(this,function(A){var H=null!=d.data?d.data:"";null!=A&&0<A.length&&(0<H.length&&(H+="\n"),H+=A);A=new LocalFile(this,"csv"!=d.format&&0<H.length?H:this.emptyDiagramXml,null!=urlParams.title?decodeURIComponent(urlParams.title):this.defaultFilename,!0);A.getHash=function(){return t};this.fileLoaded(A); | 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!=f&&f();b.openLink(e,null,!0)});y.className="geBtn gePrimaryBtn";y.style.width=x.style.width;l.appendChild(y);mxUtils.br(l);mxUtils.br(l);mxUtils.write(l,mxResources.get("allowPopups"));this.container=l},ImageDialog=function(b,e,f,c,k,l,x,y){function E(){0<M.value.length?v.removeAttribute("disabled"):v.setAttribute("disabled","disabled")}l=null!=l?l:!0;var D=b.editor.graph,z=document.createElement("div");mxUtils.write(z,e);e=document.createElement("div");e.className="geTitle";e.style.backgroundColor= | 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;
l.style.backgroundColor=ba;(new mxCodec(Ca.ownerDocument)).decode(Ca,y.getModel());y.maxFitScale=1;y.fit(8);y.center();return Ca};N.style.display="none";N.innerText="";A=ma;H=da;D=parseSelectFunction=null;z=0;if("mxfile"==ea.nodeName){ma=ea.getElementsByTagName("diagram");D=[];for(da=0;da<ma.length;da++)D.push(ma[da]);z=Math.min(E,D.length-1);0<D.length&&za(D[z]);if(1<D.length)for(N.removeAttribute("disabled"),N.style.display="",da=0;da<D.length;da++)ma=document.createElement("option"),ea=D[da].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 |
if(null!=v.hoverIcons){var C=v.hoverIcons.update;v.hoverIcons.update=function(){A.freehand.isDrawing()||C.apply(this,arguments)}}if(null!=A.freehand){var J=A.freehand.createStyle;A.freehand.createStyle=function(V){return J.apply(this,arguments)+"sketch=0;"}}v.editor.addListener("statusChanged",mxUtils.bind(this,function(){v.setStatusText(v.editor.getStatus())}));v.setStatusText(v.editor.getStatus());var G=v.menus.get("viewZoom");if(null!=G){var P=function(V){if(mxEvent.isAltDown(V))v.hideCurrentMenu(),
v.actions.get("customZoom").funct(),mxEvent.consume(V);else if("geMenuItem"==mxEvent.getSource(V).className||mxEvent.isShiftDown(V))v.hideCurrentMenu(),v.actions.get("smartFit").funct(),mxEvent.consume(V)},O=v.actions.get("zoomIn"),N=v.actions.get("zoomOut"),T=v.actions.get("resetView"),m=v.actions.get("undo"),B=v.actions.get("redo"),K=d("",m.funct,null,mxResources.get("undo")+" ("+m.shortcut+")",m,Editor.undoImage),R=d("",B.funct,null,mxResources.get("redo")+" ("+B.shortcut+")",B,Editor.redoImage), | 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.createMenu=function(d,g,n,t){n=null!=n?n:"geToolbarButton";var u=this.menus.get(d);t=this.menubar.addMenu(mxResources.get(d),u.funct,null,t);t.className=n;t.style.display="inline-block";t.style.cursor="pointer";t.style.height="24px";t.setAttribute("title",mxResources.get(d));this.menus.menuCreated(u,t,n);null!=g&&(t.style.backgroundImage="url("+g+")",t.style.backgroundPosition="center center",t.style.backgroundRepeat="no-repeat",t.style.backgroundSize="100% 100%",t.style.width=
"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, | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
arguments);null!=N&&null!=N.src&&Graph.isPageLink(N.src)&&(N={originalSrc:N.src});return N};var u=g.setBackgroundImage;g.setBackgroundImage=function(O){null!=O&&null!=O.originalSrc&&(O=d.createImageForPageLink(O.originalSrc,d.currentPage,this));u.apply(this,arguments)};this.editor.addListener("pageRenamed",mxUtils.bind(this,function(){g.refreshBackgroundImage()}));this.editor.addListener("pageMoved",mxUtils.bind(this,function(){g.refreshBackgroundImage()}));this.editor.addListener("pagesPatched", | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))},X,Y)}function ca(){y(ma,ea,function(za){Z()},!0)}var da=N().pdiv,ma=b.newComment(W,b.getCurrentUser());ma.pCommentId=q.id;null==q.replies&&(q.replies=[]);var ea=I(ma,q.replies,da,G+1);Q?ca():Z()}if(P||!q.isResolved){A.style.display="none";var m=document.createElement("div");m.className="geCommentContainer";m.setAttribute("data-commentId",q.id);m.style.marginLeft=20*G+5+"px";q.isResolved&&!Editor.isDarkMode()&&(m.style.backgroundColor= | 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){k(T)},300),mouseUp:function(N,T){k(T)}};z.addMouseListener(this.mouseListeners);this.shareCursorPositionListener=function(){b.isShareCursorPosition()||c("cursor",{hide:!0})};b.addListener("shareCursorPositionChanged",this.shareCursorPositionListener);this.selectionChangeListener=function(N,T){N=function(K){return null!=K?K.id:null};var m=null!=b.currentPage?b.currentPage.getId():null,B=T.getProperty("added");T=T.getProperty("removed");c("selectionChange",{pageId:m,removed:B?B.map(N):[],added:T? | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
"6px"):mxClient.IS_FF&&(A.style.paddingTop="0px",A.style.marginTop="-2px");if(null!=n)for(M=0;M<n.length;M++)mxUtils.br(A),mxUtils.write(A,n[M]);if(null!=g&&null==b[g]){H.style.visibility="hidden";mxUtils.setOpacity(A,10);var L=new Spinner({lines:12,length:12,width:5,radius:10,rotate:0,color:Editor.isDarkMode()?"#c0c0c0":"#000",speed:1.5,trail:60,shadow:!1,hwaccel:!1,top:"40%",zIndex:2E9});L.spin(v);var F=window.setTimeout(function(){null==b[g]&&(L.stop(),v.style.display="none")},3E4);b.addListener("clientLoaded",
mxUtils.bind(this,function(S,p){null!=b[g]&&p.getProperty("client")==b[g]&&(window.clearTimeout(F),mxUtils.setOpacity(A,100),H.style.visibility="",L.stop(),u(),"drive"==g&&null!=D.parentNode&&D.parentNode.removeChild(D))}))}else u();E.appendChild(v)}f=null!=f?f:2;var k=document.createElement("div");k.style.textAlign="center";k.style.whiteSpace="nowrap";k.style.paddingTop="0px";k.style.paddingBottom="20px";var l=document.createElement("div");l.style.border="1px solid #d3d3d3";l.style.borderWidth="1px 0px 1px 0px"; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
(t<<5)-t+this.hashValue(d.childNodes[u],g,n)<<0}else if(null!=d&&"function"!==typeof d){d=String(d);g=0;null!=n&&(n.byteCount+=d.length);for(u=0;u<d.length;u++)g=(g<<5)-g+d.charCodeAt(u)<<0;t^=g}return t};EditorUi.prototype.descriptorChanged=function(){};EditorUi.prototype.restoreLibraries=function(){};EditorUi.prototype.saveLibrary=function(d,g,n,t,u,v,A){};EditorUi.prototype.isScratchpadEnabled=function(){return isLocalStorage||mxClient.IS_CHROMEAPP};EditorUi.prototype.toggleScratchpad=function(){this.isScratchpadEnabled()&& | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
"geCommentActionLnk";mxUtils.write(Y,W);X.appendChild(Y);mxEvent.addListener(Y,"click",function(Z){Q(Z,q);Z.preventDefault();mxEvent.consume(Z)});U.appendChild(X);V&&(X.style.display="none")}function N(){function W(X){Q.push(V);if(null!=X.replies)for(var Y=0;Y<X.replies.length;Y++)V=V.nextSibling,W(X.replies[Y])}var Q=[],V=m;W(q);return{pdiv:V,replies:Q}}function T(W,Q,V,X,Y){function Z(){D(ea);q.addReply(ma,function(za){ma.id=za;q.replies.push(ma);M(ea);V&&V()},function(za){ca();z(ea);b.handleError(za, | 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, | 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 |
"geCommentActionLnk";mxUtils.write(Y,W);X.appendChild(Y);mxEvent.addListener(Y,"click",function(Z){Q(Z,q);Z.preventDefault();mxEvent.consume(Z)});U.appendChild(X);V&&(X.style.display="none")}function N(){function W(X){Q.push(V);if(null!=X.replies)for(var Y=0;Y<X.replies.length;Y++)V=V.nextSibling,W(X.replies[Y])}var Q=[],V=m;W(q);return{pdiv:V,replies:Q}}function T(W,Q,V,X,Y){function Z(){D(ea);q.addReply(ma,function(za){ma.id=za;q.replies.push(ma);M(ea);V&&V()},function(za){ca();z(ea);b.handleError(za,
null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))},X,Y)}function ca(){y(ma,ea,function(za){Z()},!0)}var da=N().pdiv,ma=b.newComment(W,b.getCurrentUser());ma.pCommentId=q.id;null==q.replies&&(q.replies=[]);var ea=I(ma,q.replies,da,G+1);Q?ca():Z()}if(P||!q.isResolved){A.style.display="none";var m=document.createElement("div");m.className="geCommentContainer";m.setAttribute("data-commentId",q.id);m.style.marginLeft=20*G+5+"px";q.isResolved&&!Editor.isDarkMode()&&(m.style.backgroundColor= | 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.sketch;return"0"!=(null!=urlParams.rough?urlParams.rough:d)};var k=EditorUi.prototype.createUi;EditorUi.prototype.createUi=function(){Editor.isSettingsEnabled()&&(this.doSetSketchMode(null!=mxSettings.settings.sketchMode&&null==urlParams.rough&&null==urlParams.sketch?mxSettings.settings.sketchMode:this.getDefaultSketchMode()),null!=mxSettings.settings.sidebarTitles&&(Sidebar.prototype.sidebarTitles=mxSettings.settings.sidebarTitles),this.formatWidth=mxSettings.getFormatWidth());k.apply(this,
arguments)};var l=EditorUi.prototype.init;EditorUi.prototype.init=function(){mxStencilRegistry.allowEval=mxStencilRegistry.allowEval&&!this.isOfflineApp();var d=this,g=this.editor.graph;Graph.touchStyle&&(g.panningHandler.isPanningTrigger=function(O){var N=O.getEvent();return null==O.getState()&&!mxEvent.isMouseEvent(N)&&!g.freehand.isDrawing()||mxEvent.isPopupTrigger(N)&&(null==O.getState()||mxEvent.isControlDown(N)||mxEvent.isShiftDown(N))});g.cellEditor.editPlantUmlData=function(O,N,T){var m=JSON.parse(T); | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
"https://github.com/apps/diagrams-net-app-test":"https://github.com/apps/draw-io-app")}),mxResources.get("cancel"),f,480,null,!1)};GitHubClient.prototype.executeRequest=function(e,f,c,k,l){var x=mxUtils.bind(this,function(E){var D=!0,z=window.setTimeout(mxUtils.bind(this,function(){D=!1;c({code:App.ERROR_TIMEOUT,retry:y})}),this.ui.timeout),M=this.authToken+" "+b;e.setRequestHeaders=function(I,d){I.setRequestHeader("Authorization",M)};e.send(mxUtils.bind(this,function(){window.clearTimeout(z);var 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 |
y=document.createElement("div");y.style.height="300px";y.style.width="300px";y.style.display="inline-flex";y.style.justifyContent="center";y.style.alignItems="center";y.style.position="absolute";var E=document.createElement("img");E.onload=function(){function F(){z.model.setStyle(d,g+k())}z=new Graph(D);z.autoExtend=!1;z.autoScroll=!1;z.setGridEnabled(!1);z.setEnabled(!0);z.setPanning(!1);z.setConnectable(!1);z.getRubberband().setEnabled(!1);z.graphHandler.allowLivePreview=!1;var S=z.createVertexHandler; | 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 |
Z+"')";break;default:null==V?N=[{driveId:Q}]:N.push({name:Y,driveId:Q,folderId:V}),qa=(Q?"/drives/"+Q:"/me/drive")+(V?"/items/"+V:"/root")+"/children"}ea||(qa+=(0<qa.indexOf("?")?"&":"?")+"select=id,name,description,parentReference,file,createdBy,lastModifiedBy,lastModifiedDateTime,size,folder,remoteItem,@microsoft.graph.downloadUrl");var ia=[];da()}}function L(Q){U.className=U.className.replace("odCatSelected","");U=Q;U.className+=" odCatSelected"}function F(Q){O||(W=null,H("search",null,null,null,
Q))}var S="";null==e&&(e=u,S='<div style="text-align: center;" class="odPreview"></div>');null==k&&(k=function(){var Q=null;try{Q=JSON.parse(localStorage.getItem("mxODPickerRecentList"))}catch(V){}return Q});null==l&&(l=function(Q){if(null!=Q){var V=k()||{};delete Q["@microsoft.graph.downloadUrl"];V[Q.id]=Q;localStorage.setItem("mxODPickerRecentList",JSON.stringify(V))}});S='<div class="odCatsList"><div class="odCatsListLbl">OneDrive</div><div id="odFiles" class="odCatListTitle odCatSelected">'+mxUtils.htmlEntities(mxResources.get("files"))+ | 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!=
d&&0<d.length){var g=d.indexOf('<meta charset="utf-8">');0<=g&&(d=d.slice(0,g)+'<meta charset="utf-8"/>'+d.slice(g+23-1,d.length));d=Graph.zapGremlins(d)}return d};EditorUi.prototype.replaceFileData=function(d){d=this.validateFileData(d);d=null!=d&&0<d.length?mxUtils.parseXml(d).documentElement:null;var g=null!=d?this.editor.extractGraphModel(d,!0):null;null!=g&&(d=g);if(null!=d){g=this.editor.graph;g.model.beginUpdate();try{var n=null!=this.pages?this.pages.slice():null,t=d.getElementsByTagName("diagram"); | 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(){null!=v&&(v(),v=null);b.showImageDialog(mxResources.get("addImageUrl"),"",function(S,p,q){H=!1;if(null!=S){if("data:image/"==S.substring(0,11)){var C=S.indexOf(",");0<C&&(S=S.substring(0,C)+";base64,"+S.substring(C+1))}y(S,null,0,0,p,q);d.scrollTop=d.scrollHeight}})});e.setAttribute("id","btnAddImageUrl");e.className="geBtn";c.appendChild(e);this.saveBtnClickHandler=function(S,p,q,C){b.saveLibrary(S,p,q,C)};e=mxUtils.button(mxResources.get("save"),mxUtils.bind(this,function(){null!=v&& | 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.ui.getEmbeddedPng(mxUtils.bind(this,function(d){z(e.meta.last_commit_id,d)}),c,this.ui.getCurrentFile()!=e?e.getData():null,I.scale,I.border)}else z(e.meta.last_commit_id,Base64.encode(e.getData()))});k?this.getFile(x+"/"+y+"/"+E+"/"+D,mxUtils.bind(this,function(I){e.meta.last_commit_id=I.meta.last_commit_id;M()}),c):M()};GitLabClient.prototype.pickFolder=function(e){this.showGitLabDialog(!1,e,!0)};GitLabClient.prototype.pickFile=function(e){e=null!=e?e:mxUtils.bind(this,function(f){this.ui.loadFile("A"+ | 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.parentNode&&g.parentNode.removeChild(g)}))};var z=!1;EditorUi.prototype.initFormatWindow=function(){if(!z&&null!=this.formatWindow){z=!0;var I=this.formatWindow.window.toggleMinimized,d=240;this.formatWindow.window.toggleMinimized=function(){I.apply(this,arguments);this.minimized?(d=parseInt(this.div.style.width),this.div.style.width="140px",this.table.style.width="140px",this.div.style.left=parseInt(this.div.style.left)+d-140+"px"):(this.div.style.width=d+"px",this.table.style.width=this.div.style.width,
this.div.style.left=Math.max(0,parseInt(this.div.style.left)-d+140)+"px");this.fit()};mxEvent.addListener(this.formatWindow.window.title,"dblclick",mxUtils.bind(this,function(g){mxEvent.getSource(g)==this.formatWindow.window.title&&this.formatWindow.window.toggleMinimized()}))}};var M=EditorUi.prototype.init;EditorUi.prototype.init=function(){function I(V,X,Y){var Z=v.menus.get(V),ca=F.addMenu(mxResources.get(V),mxUtils.bind(this,function(){Z.funct.apply(this,arguments)}),L);ca.className="geMenuItem"; | 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(K){if(!this.isEnabled()||this.isCellLocked(K)){if(null!=this.getClickableLinkForCell(K))return"pointer";if(this.isCellLocked(K))return"default"}return ba.apply(this,arguments)};this.selectRegion=function(K,U){var L=mxEvent.isAltDown(U)?K:null;K=this.getCells(K.x,K.y,K.width,K.height,null,null,L,null,!0);if(this.isToggleEvent(U))for(L=0;L<K.length;L++)this.selectCellForEvent(K[L],U);else this.selectCellsForEvent(K,U);return K};var da=this.graphHandler.shouldRemoveCellsFromParent;this.graphHandler.shouldRemoveCellsFromParent= | 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 |
ea&&1==Va.length){L.view.validate();var wa=new mxHierarchicalLayout(L,"horizontalflow"==ea?mxConstants.DIRECTION_WEST:mxConstants.DIRECTION_NORTH);wa.intraCellSpacing=Q;wa.parallelEdgeSpacing=W;wa.interRankCellSpacing=V;wa.disableEdgeStyle=!1;this.executeLayout(function(){wa.execute(L.getDefaultParent(),Ua);L.moveCells(Ua,ca,da)},!0,Y);Y=null}else if("orgchart"==ea){L.view.validate();var Ma=new mxOrgChartLayout(L,2,V,Q),Ia=Ma.isVertexIgnored;Ma.isVertexIgnored=function(Na){return Ia.apply(this,arguments)||
0>mxUtils.indexOf(v,Na)};this.executeLayout(function(){Ma.execute(L.getDefaultParent());na()},!0,Y);Y=null}else if("organic"==ea||"auto"==ea&&Ua.length>v.length){L.view.validate();var Aa=new mxFastOrganicLayout(L);Aa.forceConstant=3*Q;Aa.disableEdgeStyle=!1;Aa.resetEdges=!1;var Ja=Aa.isVertexIgnored;Aa.isVertexIgnored=function(Na){return Ja.apply(this,arguments)||0>mxUtils.indexOf(v,Na)};this.executeLayout(function(){Aa.execute(L.getDefaultParent());na()},!0,Y);Y=null}}this.hideDialog()}finally{L.model.endUpdate()}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 |
[];this.traverse(k,!0,mxUtils.bind(this,function(y,E){var D=null!=E&&this.isTreeEdge(E);D&&l.push(E);y==k||null!=E&&!D||l.push(y);return(null==E||D)&&(y==k||!this.model.isCollapsed(y))}));this.model.setCollapsed(k,c);for(var x=0;x<l.length;x++)this.model.setVisible(l[x],!c)}finally{this.model.endUpdate()}};Graph.prototype.isTreeEdge=function(c){return!this.isEdgeIgnored(c)};Graph.prototype.getTreeEdges=function(c,k,l,x,y,E){return this.model.filterCells(this.getEdges(c,k,l,x,y,E),mxUtils.bind(this,
function(D){return this.isTreeEdge(D)}))};Graph.prototype.getIncomingTreeEdges=function(c,k){return this.getTreeEdges(c,k,!0,!1,!1)};Graph.prototype.getOutgoingTreeEdges=function(c,k){return this.getTreeEdges(c,k,!1,!0,!1)};var e=EditorUi.prototype.init;EditorUi.prototype.init=function(){e.apply(this,arguments);this.editor.isChromelessView()&&!this.editor.editable||this.addTrees()};EditorUi.prototype.addTrees=function(){function c(G){return n.isVertex(G)&&l(G)}function k(G){var P=!1;null!=G&&(P="1"== | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
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 |
A);ImageDialog.filePicked=function(G){G.action==google.picker.Action.PICKED&&null!=G.docs[0].thumbnails&&(G=G.docs[0].thumbnails[G.docs[0].thumbnails.length-1],null!=G&&(I.value=G.url,A()));I.focus()};y.appendChild(M);y.appendChild(d);mxUtils.br(y);mxUtils.br(y);D?(M.setAttribute("checked","checked"),M.checked=!0):(z.setAttribute("checked","checked"),z.checked=!0);!E&&M.checked&&(mxUtils.write(t,mxResources.get("pageNotFound")),t.setAttribute("disabled","disabled"),t.setAttribute("selected","selected"), | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
f&&f();this.ui.fileLoaded(I)}),mxUtils.bind(this,function(){this.savingFile=!1;null!=c&&c()}),!1,M,E)}))});null!=x?y(x):this.peer.showCommitDialog(this.meta.name,null==this.getDescriptorEtag(this.meta)||this.meta.isNew,mxUtils.bind(this,function(E){y(E)}),c)}else null!=f&&f()};GitHubLibrary=function(b,e,f){GitHubFile.call(this,b,e,f)};mxUtils.extend(GitHubLibrary,GitHubFile);GitHubLibrary.prototype.doSave=function(b,e,f){this.saveFile(b,!1,e,f)};GitHubLibrary.prototype.open=function(){};(function(){var b=null;window.GitHubClient=function(e,f){DrawioClient.call(this,e,f||"ghauth")};mxUtils.extend(GitHubClient,DrawioClient);GitHubClient.prototype.clientId="test.draw.io"==window.location.hostname?"Iv1.1218f5567fbc258a":window.DRAWIO_GITHUB_ID;GitHubClient.prototype.extension=".drawio";GitHubClient.prototype.baseUrl=DRAWIO_GITHUB_API_URL;GitHubClient.prototype.baseHostUrl=DRAWIO_GITHUB_URL;GitHubClient.prototype.redirectUri=window.location.protocol+"//"+window.location.host+"/github2"; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
function(m,B){if("undefined"===typeof window.MathJax&&!mxClient.IS_IE&&!mxClient.IS_IE11){var K=function(){R=null;if(0<Editor.mathJaxQueue.length)Editor.doMathJaxRender(Editor.mathJaxQueue.shift());else Editor.onMathJaxDone()};m=null!=m?m:DRAW_MATH_URL+"/startup.js";Editor.mathJaxQueue=[];var R=null;Editor.doMathJaxRender=function(Q){try{null==R?(MathJax.typesetClear([Q]),MathJax.typeset([Q]),K()):R!=Q&&Editor.mathJaxQueue.push(Q)}catch(V){MathJax.typesetClear([Q]),null!=V.retry?(R=Q,V.retry.then(function(){MathJax.typesetPromise([Q]).then(K)["catch"](function(X){console.log("Error in MathJax.typesetPromise: "+
X.toString());K()})})["catch"](function(X){console.log("Error in MathJax.retry: "+X.toString());K()})):null!=window.console&&console.log("Error in MathJax.typeset: "+V.toString())}};window.MathJax=null!=B?B:{options:{skipHtmlTags:{"[+]":["text"]}},loader:{load:["html"==urlParams["math-output"]?"output/chtml":"output/svg","input/tex","input/asciimath","ui/safe"]},startup:{pageReady:function(){for(var Q=0;Q<Editor.mathJaxQueue.length;Q++)Editor.doMathJaxRender(Editor.mathJaxQueue[Q])}}};Editor.MathJaxRender= | 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 |
"data:action/json,"+JSON.stringify(t)}}catch(H){}return g};EditorUi.prototype.isRemoteVisioFormat=function(d){return/(\.v(sd|dx))($|\?)/i.test(d)||/(\.vs(s|x))($|\?)/i.test(d)};EditorUi.prototype.importVisio=function(d,g,n,t,u){var v=mxUtils.bind(this,function(A){this.loadingExtensions=!1;null!=n?n(A):this.handleError(A)});this.createTimeout(null,mxUtils.bind(this,function(A){t=null!=t?t:d.name;var H=mxUtils.bind(this,function(F){A.clear()&&v(F)}),L=mxUtils.bind(this,function(){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 |
e.prev.getId():"";null!=e.page.getName()&&b[E].getName()!=e.page.getName()&&(M.name=e.page.getName());mxUtils.isEmptyObject(M)||(x[D]=M)}delete l[b[E].getId()];y=b[E]}for(D in l)e=l[D],f.push({data:mxUtils.getXml(e.page.node),previous:null!=e.prev?e.prev.getId():""});mxUtils.isEmptyObject(x)||(k[EditorUi.DIFF_UPDATE]=x);0<c.length&&(k[EditorUi.DIFF_REMOVE]=c);0<f.length&&(k[EditorUi.DIFF_INSERT]=f)}return 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 |
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 |
GitHubFile.prototype.saveFile=function(b,e,f,c,k,l,x){if(this.isEditable())if(this.savingFile)null!=c&&c({code:App.ERROR_BUSY});else{var y=mxUtils.bind(this,function(E){if(this.getTitle()==b)try{this.savingFileTime=new Date;this.setShadowModified(!1);this.savingFile=!0;var D=this.getCurrentEtag(),z=this.data;this.peer.saveFile(this,mxUtils.bind(this,function(M){this.setModified(this.getShadowModified());this.savingFile=!1;this.setDescriptorEtag(this.meta,M);this.fileSaved(z,D,mxUtils.bind(this,function(){this.contentChanged();
null!=f&&f()}),c)}),mxUtils.bind(this,function(M){this.savingFile=!1;this.isConflict(M)?(this.inConflictState=!0,null!=c&&c({commitMessage:E})):null!=c&&c(M)}),l,E)}catch(M){if(this.savingFile=!1,null!=c)c(M);else throw M;}else this.savingFileTime=new Date,this.setShadowModified(!1),this.savingFile=!0,this.ui.pickFolder(this.getMode(),mxUtils.bind(this,function(M){this.peer.insertFile(b,this.getData(),mxUtils.bind(this,function(I){this.setModified(this.getShadowModified());this.savingFile=!1;null!=
f&&f();this.ui.fileLoaded(I)}),mxUtils.bind(this,function(){this.savingFile=!1;null!=c&&c()}),!1,M,E)}))});null!=x?y(x):this.peer.showCommitDialog(this.meta.name,null==this.getDescriptorEtag(this.meta)||this.meta.isNew,mxUtils.bind(this,function(E){y(E)}),c)}else null!=f&&f()};GitHubLibrary=function(b,e,f){GitHubFile.call(this,b,e,f)};mxUtils.extend(GitHubLibrary,GitHubFile);GitHubLibrary.prototype.doSave=function(b,e,f){this.saveFile(b,!1,e,f)};GitHubLibrary.prototype.open=function(){};(function(){var b=null;window.GitHubClient=function(e,f){DrawioClient.call(this,e,f||"ghauth")};mxUtils.extend(GitHubClient,DrawioClient);GitHubClient.prototype.clientId="test.draw.io"==window.location.hostname?"Iv1.1218f5567fbc258a":window.DRAWIO_GITHUB_ID;GitHubClient.prototype.extension=".drawio";GitHubClient.prototype.baseUrl=DRAWIO_GITHUB_API_URL;GitHubClient.prototype.baseHostUrl=DRAWIO_GITHUB_URL;GitHubClient.prototype.redirectUri=window.location.protocol+"//"+window.location.host+"/github2"; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
this.ui.showDialog(A.container,300,80,!0,!1);A.init()}))),mxUtils.br(y));for(var v=0;v<u.length;v++)mxUtils.bind(this,function(A){y.appendChild(E(A.name,mxUtils.bind(this,function(){b?(f=A.id,z()):(this.ui.hideDialog(),e(A.id))})))})(u[v]);100==u.length&&(y.appendChild(M),I=function(){y.scrollTop>=y.scrollHeight-y.offsetHeight&&n()},mxEvent.addListener(y,"scroll",I))}}),mxUtils.bind(this,function(u){401==u.status?this.authenticate(t,D,!0):null!=D&&D({message:u.responseText})}))});t()});d()}; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
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;
Z&&(ca="data:image/png;base64,"+Editor.base64Encode(ca),ca=Editor.extractGraphModelFromPng(ca));var da=mxUtils.parseXml(ca),ma="mxlibrary"==da.documentElement.nodeName?da.documentElement:Editor.extractGraphModel(da.documentElement);if(null!=ma){V(ma.ownerDocument);return}}catch(ea){}X()}};Z&&Y.overrideMimeType&&Y.overrideMimeType("text/plain; charset=x-user-defined");Y.send()}function t(){M&&null!=J?C.exportToCanvas(function(Q){Q=EditorUi.prototype.createImageDataUri(Q,null,"png");x(G,Q);l(G)},400, | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
mxEvent.getClientX(G),mxEvent.getClientY(G),this.graph.getSubtree(this.state.cell));this.graph.graphHandler.cellWasClicked=!0;this.graph.isMouseTrigger=mxEvent.isMouseEvent(G);this.graph.isMouseDown=!0;d.hoverIcons.reset();mxEvent.consume(G)})))};var q=mxVertexHandler.prototype.redrawHandles;mxVertexHandler.prototype.redrawHandles=function(){q.apply(this,arguments);null!=this.moveHandle&&(this.moveHandle.style.left=this.state.x+this.state.width+(40>this.state.width?10:0)+2+"px",this.moveHandle.style.top=
this.state.y+this.state.height+(40>this.state.height?10:0)+2+"px")};var C=mxVertexHandler.prototype.setHandlesVisible;mxVertexHandler.prototype.setHandlesVisible=function(G){C.apply(this,arguments);null!=this.moveHandle&&(this.moveHandle.style.display=G?"":"none")};var J=mxVertexHandler.prototype.destroy;mxVertexHandler.prototype.destroy=function(G,P){J.apply(this,arguments);null!=this.moveHandle&&(this.moveHandle.parentNode.removeChild(this.moveHandle),this.moveHandle=null)}};if("undefined"!==typeof Sidebar){var f= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
Ea.style.background=sa&&"none"!=sa?sa:"url('"+Dialog.prototype.noColorImage+"')";btn=mxUtils.button("",mxUtils.bind(Z,function(Da){this.editorUi.pickColor(sa,function(Qa){Ea.style.background="none"==Qa?"url('"+Dialog.prototype.noColorImage+"')":Qa;R(oa,Qa,va)});mxEvent.consume(Da)}));btn.style.height="12px";btn.style.width="40px";btn.className="geColorBtn";btn.appendChild(Ea);return btn}function Q(oa,sa,va,Ea,Da,Qa,Fa){null!=sa&&(sa=sa.split(","),da.push({name:oa,values:sa,type:va,defVal:Ea,countProperty:Da,
parentRow:Qa,isDeletable:!0,flipBkg:Fa}));btn=mxUtils.button("+",mxUtils.bind(Z,function(Ra){for(var Ga=Qa,Va=0;null!=Ga.nextSibling;)if(Ga.nextSibling.getAttribute("data-pName")==oa)Ga=Ga.nextSibling,Va++;else break;var Ua={type:va,parentRow:Qa,index:Va,isDeletable:!0,defVal:Ea,countProperty:Da};Va=Y(oa,"",Ua,0==Va%2,Fa);R(oa,Ea,Ua);Ga.parentNode.insertBefore(Va,Ga.nextSibling);mxEvent.consume(Ra)}));btn.style.height="16px";btn.style.width="25px";btn.className="geColorBtn";return btn}function V(oa, | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
u?4E3:3E4);F=!0}return F};EditorUi.prototype.setCurrentFile=function(d){null!=d&&(d.opened=new Date);this.currentFile=d};EditorUi.prototype.getCurrentFile=function(){return this.currentFile};EditorUi.prototype.isExportToCanvas=function(){return this.editor.isExportToCanvas()};EditorUi.prototype.createImageDataUri=function(d,g,n,t){d=d.toDataURL("image/"+n);if(null!=d&&6<d.length)null!=g&&(d=Editor.writeGraphModelToPng(d,"tEXt","mxfile",encodeURIComponent(g))),0<t&&(d=Editor.writeGraphModelToPng(d, | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
arguments);k()};k();var I=document.createElement("canvas");I.width=M.offsetWidth;I.height=M.offsetHeight;M.style.overflow="hidden";I.style.position="relative";M.appendChild(I);var d=I.getContext("2d");this.ui=b;var g=b.editor.graph;this.graph=g;this.container=M;this.canvas=I;var n=function(A,H,L,F,S){A=Math.round(A);H=Math.round(H);L=Math.round(L);F=Math.round(F);d.beginPath();d.moveTo(A+.5,H+.5);d.lineTo(L+.5,F+.5);d.stroke();S&&(f?(d.save(),d.translate(A,H),d.rotate(-Math.PI/2),d.fillText(S,0,0),
d.restore()):d.fillText(S,A,H))},t=function(){d.clearRect(0,0,I.width,I.height);d.beginPath();d.lineWidth=.7;d.strokeStyle=z.strokeClr;d.setLineDash([]);d.font="9px Arial";d.textAlign="center";var A=g.view.scale,H=g.view.getBackgroundPageBounds(),L=g.view.translate,F=g.pageVisible;L=F?E+(f?H.y-g.container.scrollTop:H.x-g.container.scrollLeft):E+(f?L.y*A-g.container.scrollTop:L.x*A-g.container.scrollLeft);var S=0;F&&(S=g.getPageLayout(),S=f?S.y*g.pageFormat.height:S.x*g.pageFormat.width);var p;switch(D.unit){case mxConstants.POINTS:var q= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
parseFloat(B[3])+6,m.setAttribute("viewBox",B[0]+" "+B[1]+" "+w+" "+h))))));return W};Graph.prototype.setShadowVisible=function(m,B){mxClient.IS_SVG&&!mxClient.IS_SF&&(B=null!=B?B:!0,(this.shadowVisible=m)?this.view.getDrawPane().setAttribute("filter","url(#"+this.shadowId+")"):this.view.getDrawPane().removeAttribute("filter"),B&&this.fireEvent(new mxEventObject("shadowVisibleChanged")))};Graph.prototype.selectUnlockedLayer=function(){if(null==this.defaultParent){var m=this.model.getChildCount(this.model.root),
B=0;do var K=this.model.getChildAt(this.model.root,B);while(B++<m&&"1"==mxUtils.getValue(this.getCellStyle(K),"locked","0"));null!=K&&this.setDefaultParent(K)}};mxStencilRegistry.libraries.mockup=[SHAPES_PATH+"/mockup/mxMockupButtons.js"];mxStencilRegistry.libraries.arrows2=[SHAPES_PATH+"/mxArrows.js"];mxStencilRegistry.libraries.atlassian=[STENCIL_PATH+"/atlassian.xml",SHAPES_PATH+"/mxAtlassian.js"];mxStencilRegistry.libraries.bpmn=[SHAPES_PATH+"/mxBasic.js",STENCIL_PATH+"/bpmn.xml",SHAPES_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 |
A,null,null,null,v)):mxscript("js/extensions.min.js",A,null,null,null,v))};EditorUi.prototype.generatePlantUmlImage=function(d,g,n,t){function u(H,L,F){c1=H>>2;c2=(H&3)<<4|L>>4;c3=(L&15)<<2|F>>6;c4=F&63;r="";r+=v(c1&63);r+=v(c2&63);r+=v(c3&63);return r+=v(c4&63)}function v(H){if(10>H)return String.fromCharCode(48+H);H-=10;if(26>H)return String.fromCharCode(65+H);H-=26;if(26>H)return String.fromCharCode(97+H);H-=26;return 0==H?"-":1==H?"_":"?"}var A=new XMLHttpRequest;A.open("GET",("txt"==g?PLANT_URL+ | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
function q(G){null!=G&&(G=p(Editor.parseDiagramNode(G)));return G}mxEvent.addListener(S,"change",function(G){H=parseInt(S.value);q(L[H]);mxEvent.consume(G)});if("mxfile"==A.nodeName){var C=A.getElementsByTagName("diagram");L=[];for(var J=0;J<C.length;J++)L.push(C[J]);0<L.length&&q(L[H]);S.innerText="";if(1<L.length)for(S.style.display="",J=0;J<L.length;J++)C=document.createElement("option"),mxUtils.write(C,L[J].getAttribute("name")||mxResources.get("pageWithNumber",[J+1])),C.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 |
mxUtils.getTextContent(Z[Y]);W=b.stringToCells(Graph.decompress(B));var ca=b.editor.graph.getBoundingBoxFromGeometry(W);y(null,null,0,0,0,0,{xml:B,w:ca.width,h:ca.height})}J=!0}}catch(da){null!=window.console&&console.log("Error in library dialog: "+da)}J||(b.spinner.stop(),b.handleError({message:mxResources.get("errorLoadingFile")}))}}catch(da){null!=window.console&&console.log("Error in library dialog: "+da)}return null}function E(S){S.dataTransfer.dropEffect=null!=t?"move":"copy";S.stopPropagation();
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)|| | 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 |
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 |
d?d:"",extras:JSON.stringify(u),scale:A,border:H,w:p&&isFinite(p)?p:null,h:q&&isFinite(q)?q:null}};EditorUi.prototype.setMode=function(d,g){this.mode=d};EditorUi.prototype.getDiagramId=function(){var d=window.location.hash;null!=d&&0<d.length&&(d=d.substring(1));if(null!=d&&1<d.length){var g=d.indexOf("#");0<=g&&(d=d.substring(0,g))}return d};EditorUi.prototype.getHashObject=function(){var d=window.location.hash,g={};if(null!=d&&0<d.length){var n=d.lastIndexOf("#");if(0<n){d=decodeURIComponent(d.substring(n+
1));try{g=JSON.parse(d)}catch(t){}}}return g};EditorUi.prototype.updateHashObject=function(){if(null!=this.currentFile&&""!=this.currentFile.getHash()&&null!=this.currentPage&&0<this.getSelectedPageIndex()){var d=this.getHashObject();d.pageId=this.currentPage.getId();this.setHashObject(d)}else this.setHashObject(null)};EditorUi.prototype.setHashObject=function(d){if(Editor.enableHashObjects){var g=window.location.hash;if(null==g||""==g)g="#";var n=g.lastIndexOf("#");0<n&&(g=g.substring(0,n));try{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 |
this.div.style.left=Math.max(0,parseInt(this.div.style.left)-d+140)+"px");this.fit()};mxEvent.addListener(this.formatWindow.window.title,"dblclick",mxUtils.bind(this,function(g){mxEvent.getSource(g)==this.formatWindow.window.title&&this.formatWindow.window.toggleMinimized()}))}};var M=EditorUi.prototype.init;EditorUi.prototype.init=function(){function I(V,X,Y){var Z=v.menus.get(V),ca=F.addMenu(mxResources.get(V),mxUtils.bind(this,function(){Z.funct.apply(this,arguments)}),L);ca.className="geMenuItem";
ca.style.display="inline-block";ca.style.boxSizing="border-box";ca.style.top="6px";ca.style.marginRight="6px";ca.style.height="30px";ca.style.paddingTop="6px";ca.style.paddingBottom="6px";ca.style.cursor="pointer";ca.setAttribute("title",mxResources.get(V));v.menus.menuCreated(Z,ca,"geMenuItem");null!=Y?(ca.style.backgroundImage="url("+Y+")",ca.style.backgroundPosition="center center",ca.style.backgroundRepeat="no-repeat",ca.style.backgroundSize="24px 24px",ca.style.width="34px",ca.innerText=""):
X||(ca.style.backgroundImage="url("+mxWindow.prototype.normalizeImage+")",ca.style.backgroundPosition="right 6px center",ca.style.backgroundRepeat="no-repeat",ca.style.paddingRight="22px");return ca}function d(V,X,Y,Z,ca,da){var ma=document.createElement("a");ma.className="geMenuItem";ma.style.display="inline-block";ma.style.boxSizing="border-box";ma.style.height="30px";ma.style.padding="6px";ma.style.position="relative";ma.style.verticalAlign="top";ma.style.top="0px";null!=v.statusContainer?H.insertBefore(ma, | 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(K){if(!this.isEnabled()||this.isCellLocked(K)){if(null!=this.getClickableLinkForCell(K))return"pointer";if(this.isCellLocked(K))return"default"}return ba.apply(this,arguments)};this.selectRegion=function(K,U){var L=mxEvent.isAltDown(U)?K:null;K=this.getCells(K.x,K.y,K.width,K.height,null,null,L,null,!0);if(this.isToggleEvent(U))for(L=0;L<K.length;L++)this.selectCellForEvent(K[L],U);else this.selectCellsForEvent(K,U);return K};var da=this.graphHandler.shouldRemoveCellsFromParent;this.graphHandler.shouldRemoveCellsFromParent= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
y.getGlobalVariable=function(V){return"page"==V&&null!=D&&null!=D[z]?D[z].getAttribute("name"):"pagenumber"==V?z+1:"pagecount"==V?null!=D?D.length:1:M.apply(this,arguments)};y.getLinkForCell=function(){return null};Editor.MathJaxRender&&y.model.addListener(mxEvent.CHANGE,mxUtils.bind(this,function(V,X){b.editor.graph.mathEnabled&&Editor.MathJaxRender(y.container)}));var I={lines:11,length:15,width:6,radius:10,corners:1,rotate:0,direction:1,color:Editor.isDarkMode()?"#c0c0c0":"#000",speed:1.4,trail:60, | 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.sketchWrapperElt.appendChild(this.sketchPickerMenuElt));mxClient.IS_POINTER&&(this.sketchPickerMenuElt.style.touchAction="none")}};EditorUi.prototype.getNetworkStatus=function(){var d=null;if(this.isOffline(!0))d=mxResources.get("offline");else{var g=this.getCurrentFile();null!=g&&(g.invalidChecksum?d=mxResources.get("error")+": "+mxResources.get("checksum"):null==g.sync||g.sync.enabled&&g.sync.isRealtimeActive()?null==g.sync||g.sync.isConnected()?g.isRealtimeEnabled()&&g.isRealtimeSupported()&&
1<g.getRealtimeState()&&(d=g.getRealtimeError(),d=mxResources.get("realtimeCollaboration")+": "+(null!=d&&null!=d.message?d.message:mxResources.get("error"))):d=mxResources.get("notConnected"):d=mxResources.get("realtimeCollaboration")+": "+mxResources.get("disabled"))}return d};EditorUi.prototype.createMenubarForTheme=function(d){if("simple"==d||"sketch"==d){if(null==this.sketchMenubarElt){this.sketchMenubarElt=document.createElement("div");this.sketchMenubarElt.className="geToolbarContainer";if("simple"== | 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 |
"#000000")),ta=mxUtils.setStyle(ta,mxConstants.STYLE_GRADIENTCOLOR,mxUtils.getValue(oa,mxConstants.STYLE_GRADIENTCOLOR,null)),R.getModel().isVertex(ya[xa])&&(ta=mxUtils.setStyle(ta,mxConstants.STYLE_FONTCOLOR,mxUtils.getValue(oa,mxConstants.STYLE_FONTCOLOR,null))));R.getModel().setStyle(ya[xa],ta)}}finally{R.getModel().endUpdate()}}));ba.className="geStyleButton";ba.style.width="36px";ba.style.height=10>=this.defaultColorSchemes.length?"24px":"30px";ba.style.margin="0px 6px 6px 0px";if(null!=Ca){var fa= | 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 |
App.prototype.loadTemplate=function(b,e,f,c,k){var l=!1,x=b,y=null!=c?c:b,E=/(\.v(dx|sdx?))($|\?)/i.test(y)||/(\.vs(x|sx?))($|\?)/i.test(y);c=/\.png$/i.test(y)||/\.pdf$/i.test(y);this.editor.isCorsEnabledForUrl(x)||(l=c||E,x="t="+(new Date).getTime(),x=PROXY_URL+"?url="+encodeURIComponent(b)+"&"+x+(l?"&base64=1":""));this.editor.loadUrl(x,mxUtils.bind(this,function(D){try{var z=l?!window.atob||mxClient.IS_IE||mxClient.IS_IE11?Base64.decode(D):atob(D):D;if(E||this.isVisioData(z))E||(y=k?this.isRemoteVisioData(z)?
"raw.vss":"raw.vssx":this.isRemoteVisioData(z)?"raw.vsd":"raw.vsdx"),this.importVisio(this.base64ToBlob(D.substring(D.indexOf(",")+1)),function(M){e(M)},f,y);else if((new XMLHttpRequest).upload&&this.isRemoteFileFormat(z,y))this.isExternalDataComms()?this.parseFileData(z,mxUtils.bind(this,function(M){4==M.readyState&&200<=M.status&&299>=M.status&&"<mxGraphModel"==M.responseText.substring(0,13)&&e(M.responseText)}),b):this.showError(mxResources.get("error"),mxResources.get("notInOffline"),null,f);
else if(this.isLucidChartData(z))this.convertLucidChart(z,mxUtils.bind(this,function(M){e(M)}),mxUtils.bind(this,function(M){f(M)}));else{if(/(\.png)($|\?)/i.test(y)||Editor.isPngData(z))z=Editor.extractGraphModelFromPng(D);e(z)}}catch(M){f(M)}}),f,/(\.png)($|\?)/i.test(y)||/(\.v(dx|sdx?))($|\?)/i.test(y)||/(\.vs(x|sx?))($|\?)/i.test(y),null,null,l)}; | 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 |
e.file.fireEvent(new mxEventObject("realtimeStateChanged"))}));e.file.fireEvent(new mxEventObject("realtimeStateChanged"))}catch(B){P=B,e.file.fireEvent(new mxEventObject("realtimeStateChanged"))}};this.destroy=function(){if(!q){EditorUi.debug("P2PCollab: destroyed");q=!0;for(sessionId in g)D(sessionId);null!=this.mouseListeners&&z.removeMouseListener(this.mouseListeners);null!=this.selectionChangeListener&&z.getSelectionModel().removeListener(this.selectionChangeListener);null!=this.shareCursorPositionListener&&
b.removeListener(this.shareCursorPositionListener);null!=this.cursorHandler&&(mxEvent.removeListener(z.container,"scroll",this.cursorHandler),z.getView().removeListener(mxEvent.SCALE,this.cursorHandler),z.getView().removeListener(mxEvent.TRANSLATE,this.cursorHandler),z.getView().removeListener(mxEvent.SCALE_AND_TRANSLATE,this.cursorHandler),b.editor.removeListener("pageSelected",this.cursorHandler),b.removeListener(this.cursorHandler));null!=I&&1<=I.readyState&&(I.close(1E3),I=null);for(var N in F)null!=
F[N]&&F[N].destroy();e.file.fireEvent(new mxEventObject("realtimeStateChanged"))}}}; | 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 |
"geCommentActionLnk";mxUtils.write(Y,W);X.appendChild(Y);mxEvent.addListener(Y,"click",function(Z){Q(Z,q);Z.preventDefault();mxEvent.consume(Z)});U.appendChild(X);V&&(X.style.display="none")}function N(){function W(X){Q.push(V);if(null!=X.replies)for(var Y=0;Y<X.replies.length;Y++)V=V.nextSibling,W(X.replies[Y])}var Q=[],V=m;W(q);return{pdiv:V,replies:Q}}function T(W,Q,V,X,Y){function Z(){D(ea);q.addReply(ma,function(za){ma.id=za;q.replies.push(ma);M(ea);V&&V()},function(za){ca();z(ea);b.handleError(za,
null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))},X,Y)}function ca(){y(ma,ea,function(za){Z()},!0)}var da=N().pdiv,ma=b.newComment(W,b.getCurrentUser());ma.pCommentId=q.id;null==q.replies&&(q.replies=[]);var ea=I(ma,q.replies,da,G+1);Q?ca():Z()}if(P||!q.isResolved){A.style.display="none";var m=document.createElement("div");m.className="geCommentContainer";m.setAttribute("data-commentId",q.id);m.style.marginLeft=20*G+5+"px";q.isResolved&&!Editor.isDarkMode()&&(m.style.backgroundColor= | 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(){var A=D.origGuideDestroy.apply(this,arguments);if(null!=D.guidePart)try{d.putImageData(D.guidePart.imgData1,D.guidePart.x1,D.guidePart.y1),d.putImageData(D.guidePart.imgData2,D.guidePart.x2,D.guidePart.y2),d.putImageData(D.guidePart.imgData3,D.guidePart.x3,D.guidePart.y3),D.guidePart=null}catch(H){}return A}}mxRuler.prototype.RULER_THICKNESS=14;mxRuler.prototype.unit=mxConstants.POINTS;mxRuler.prototype.setUnit=function(b){this.unit=b;this.drawRuler()}; | 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 |
"/pid/misc.xml"];mxStencilRegistry.libraries.pid2valves=[SHAPES_PATH+"/pid2/mxPidValves.js"];mxStencilRegistry.libraries.pidFlowSensors=[STENCIL_PATH+"/pid/flow_sensors.xml"];mxMarker.getPackageForType=function(m){var B=null;null!=m&&0<m.length&&("ER"==m.substring(0,2)?B="mxgraph.er":"sysML"==m.substring(0,5)&&(B="mxgraph.sysml"));return B};var G=mxMarker.createMarker;mxMarker.createMarker=function(m,B,K,R,U,W,Q,V,X,Y){if(null!=K&&null==mxMarker.markers[K]){var Z=this.getPackageForType(K);null!=Z&& | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
(t<<5)-t+this.hashValue(d.childNodes[u],g,n)<<0}else if(null!=d&&"function"!==typeof d){d=String(d);g=0;null!=n&&(n.byteCount+=d.length);for(u=0;u<d.length;u++)g=(g<<5)-g+d.charCodeAt(u)<<0;t^=g}return t};EditorUi.prototype.descriptorChanged=function(){};EditorUi.prototype.restoreLibraries=function(){};EditorUi.prototype.saveLibrary=function(d,g,n,t,u,v,A){};EditorUi.prototype.isScratchpadEnabled=function(){return isLocalStorage||mxClient.IS_CHROMEAPP};EditorUi.prototype.toggleScratchpad=function(){this.isScratchpadEnabled()&& | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
function(){function W(){y(q,m,function(){D(m);q.editComment(q.content,function(){M(m)},function(Q){z(m);W();b.handleError(Q,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))})})}W()},q.isResolved),O(mxResources.get("delete"),function(){b.confirm(mxResources.get("areYouSure"),function(){D(m);q.deleteComment(function(W){if(!0===W){W=m.querySelector(".geCommentTxt");W.innerText="";mxUtils.write(W,mxResources.get("msgDeleted"));var Q=m.querySelectorAll(".geCommentAction");for(W= | 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 |
parentChildSpacing:parseInt(K.value),siblingSpacing:parseInt(R.value)}}];c.hideDialog();c.showCustomLayoutDialog(JSON.stringify(U,null,2))});N.className="geBtn";O=new CustomDialog(c,O,function(){null==C&&(C=2);c.loadOrgChartLayouts(P)},null,null,null,N);c.showDialog(O.container,355,140,!0,!0)},q,null,l());p.addSeparator(q);p.addItem(mxResources.get("parallels"),null,mxUtils.bind(this,function(){c.tryAndHandle(mxUtils.bind(this,function(){var C=new mxParallelEdgeLayout(k);C.checkOverlap=!0;c.prompt(mxResources.get("spacing"), | 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(){try{null!=this.resolvedFontCss&&this.addFontCss(fa,this.resolvedFontCss),qa.src=Editor.createSvgDataUri(mxUtils.getXml(fa))}catch(ya){null!=U&&U(ya)}});this.embedExtFonts(mxUtils.bind(this,function(ya){try{null!=ya&&this.addFontCss(fa,ya),this.loadFonts(ia)}catch(xa){null!=U&&U(xa)}}))}catch(ya){null!=U&&U(ya)}}),K,Z)}catch(fa){null!=U&&U(fa)}};Editor.crcTable=[];for(var k=0;256>k;k++)for(var l=k,x=0;8>x;x++)l=1==(l&1)?3988292384^l>>>1:l>>>1,Editor.crcTable[k]=l;Editor.updateCRC=function(m,
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 |
parentRow:Qa,isDeletable:!0,flipBkg:Fa}));btn=mxUtils.button("+",mxUtils.bind(Z,function(Ra){for(var Ga=Qa,Va=0;null!=Ga.nextSibling;)if(Ga.nextSibling.getAttribute("data-pName")==oa)Ga=Ga.nextSibling,Va++;else break;var Ua={type:va,parentRow:Qa,index:Va,isDeletable:!0,defVal:Ea,countProperty:Da};Va=Y(oa,"",Ua,0==Va%2,Fa);R(oa,Ea,Ua);Ga.parentNode.insertBefore(Va,Ga.nextSibling);mxEvent.consume(Ra)}));btn.style.height="16px";btn.style.width="25px";btn.className="geColorBtn";return btn}function V(oa,
sa,va,Ea,Da,Qa,Fa){if(0<Da){var Ra=Array(Da);sa=null!=sa?sa.split(","):[];for(var Ga=0;Ga<Da;Ga++)Ra[Ga]=null!=sa[Ga]?sa[Ga]:null!=Ea?Ea:"";da.push({name:oa,values:Ra,type:va,defVal:Ea,parentRow:Qa,flipBkg:Fa,size:Da})}return document.createElement("div")}function X(oa,sa,va){var Ea=document.createElement("input");Ea.type="checkbox";Ea.checked="1"==sa;mxEvent.addListener(Ea,"change",function(){R(oa,Ea.checked?"1":"0",va)});return Ea}function Y(oa,sa,va,Ea,Da){var Qa=va.dispName,Fa=va.type,Ra=document.createElement("tr"); | 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.editor.graph.getSelectionModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(O,N){0<this.editor.graph.getSelectionCount()?(O=this.editor.graph.getSelectionCell(),O=this.editor.graph.getModel().getStyle(O),this.styleInput.value=O||"",this.styleInput.style.visibility="visible"):this.styleInput.style.visibility="hidden"})));var G=this.isSelectionAllowed;this.isSelectionAllowed=function(O){return mxEvent.getSource(O)==this.styleInput?!0:G.apply(this,arguments)}}J=document.getElementById("geInfo"); | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
g)};EditorUi.prototype.embedExtFonts=function(d){EditorUi.logEvent("SHOULD NOT BE CALLED: embedExtFonts");return this.editor.embedExtFonts(d)};EditorUi.prototype.exportToCanvas=function(d,g,n,t,u,v,A,H,L,F,S,p,q,C,J,G){EditorUi.logEvent("SHOULD NOT BE CALLED: exportToCanvas");return this.editor.exportToCanvas(d,g,n,t,u,v,A,H,L,F,S,p,q,C,J,G)};EditorUi.prototype.createImageUrlConverter=function(){EditorUi.logEvent("SHOULD NOT BE CALLED: createImageUrlConverter");return this.editor.createImageUrlConverter()}; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
m[1].geometry.width)/2:(U.x+U.width)/Q-W.x+-B.x+10,m[1].geometry.y-=m[1].geometry.height+B.y+40):(m[1].geometry.x=T==mxConstants.DIRECTION_WEST?m[1].geometry.x-(m[1].geometry.width+B.x+40):m[1].geometry.x+(m[1].geometry.width-B.x+40),m[1].geometry.y=null==U?G.geometry.y+(G.geometry.height-m[1].geometry.height)/2:(U.y+U.height)/Q-W.y+-B.y+10);return g.addCells(m,O)}finally{g.model.endUpdate()}}function M(G,P,O){G=g.getOutgoingTreeEdges(G);O=g.view.getState(O);var N=[];if(null!=O&&null!=G){for(var T=
0;T<G.length;T++){var m=g.view.getState(g.model.getTerminal(G[T],!1));null!=m&&(!P&&Math.min(m.x+m.width,O.x+O.width)>=Math.max(m.x,O.x)||P&&Math.min(m.y+m.height,O.y+O.height)>=Math.max(m.y,O.y))&&N.push(m)}N.sort(function(B,K){return P?B.x+B.width-K.x-K.width:B.y+B.height-K.y-K.height})}return N}function I(G,P){var O=y(G),N=P==mxConstants.DIRECTION_EAST||P==mxConstants.DIRECTION_WEST;(O==mxConstants.DIRECTION_EAST||O==mxConstants.DIRECTION_WEST)==N&&O!=P?d.actions.get("selectParent").funct():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 |
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 |
mxEvent.consume(W)}));mxEvent.addListener(this.chromelessToolbar,"mouseleave",mxUtils.bind(this,function(W){mxEvent.isTouchEvent(W)||F(30)}));var Y=a.getTolerance();a.addMouseListener({startX:0,startY:0,scrollLeft:0,scrollTop:0,mouseDown:function(W,J){this.startX=J.getGraphX();this.startY=J.getGraphY();this.scrollLeft=a.container.scrollLeft;this.scrollTop=a.container.scrollTop},mouseMove:function(W,J){},mouseUp:function(W,J){mxEvent.isTouchEvent(J.getEvent())&&Math.abs(this.scrollLeft-a.container.scrollLeft)< | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
(EditDataDialog.placeholderHelpLink="https://www.drawio.com/doc/faq/predefined-placeholders");if(/viewer\.diagrams\.net$/.test(window.location.hostname)||/embed\.diagrams\.net$/.test(window.location.hostname))this.editor.editBlankUrl="https://app.diagrams.net/";var A=d.editor.getEditBlankUrl;this.editor.getEditBlankUrl=function(O){O=null!=O?O:"";"1"==urlParams.dev&&(O+=(0<O.length?"&":"?")+"dev=1");return A.apply(this,arguments)};var H=g.addClickHandler;g.addClickHandler=function(O,N,T){var m=N;N=
function(B,K){if(null==K){var R=mxEvent.getSource(B);"a"==R.nodeName.toLowerCase()&&(K=R.getAttribute("href"))}null!=K&&g.isCustomLink(K)&&(mxEvent.isTouchEvent(B)||!mxEvent.isPopupTrigger(B))&&g.customLinkClicked(K)&&mxEvent.consume(B);null!=m&&m(B,K)};H.call(this,O,N,T)};l.apply(this,arguments);mxClient.IS_SVG&&this.editor.graph.addSvgShadow(g.view.canvas.ownerSVGElement,null,!0);if(null!=this.menus){var L=Menus.prototype.addPopupMenuItems;this.menus.addPopupMenuItems=function(O,N,T){g.isSelectionEmpty()&& | 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&&"function"===typeof F.substring&&(new XMLHttpRequest).upload&&this.isRemoteFileFormat(F,"")?this.isOffline()?this.showError(mxResources.get("error"),mxResources.get("notInOffline")):this.parseFileData(F,mxUtils.bind(this,function(ba){4==ba.readyState&&(200<=ba.status&&299>=ba.status&&"<mxGraphModel"==ba.responseText.substring(0,13)?Ca(ba.responseText,L):this.handleError({message:413==ba.status?mxResources.get("diagramTooLarge"):mxResources.get("unknownError")}))}),""):null!=F&&"function"===typeof F.substring&&
this.isLucidChartData(F)?this.convertLucidChart(F,mxUtils.bind(this,function(ba){Ca(ba)}),mxUtils.bind(this,function(ba){this.handleError(ba)})):null==F||"object"!==typeof F||null==F.format||null==F.data&&null==F.url?(F=p(F),Ca(F,L)):this.loadDescriptor(F,mxUtils.bind(this,function(ba){Ca(Ba(),L)}),mxUtils.bind(this,function(ba){this.handleError(ba,mxResources.get("errorLoadingFile"))}))}}));var A=window.opener||window.parent;v="json"==urlParams.proto?JSON.stringify({event:"init"}):urlParams.ready|| | 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 q=new Spinner({left:"50%",lines:12,length:8,width:3,radius:5,rotate:0,color:"#000",speed:1,trail:60,shadow:!1,hwaccel:!1,className:"spinner",zIndex:2E9}),C=new Editor,J=null,G=null,P=null,O=!1,N=[],T=null,m=null;this.getSelectedItem=function(){null!=G&&l(G);return G};if(null==g("#mxODPickerCss")){var B=document.head||document.getElementsByTagName("head")[0],K=document.createElement("style");B.appendChild(K);K.type="text/css";K.id="mxODPickerCss";K.appendChild(document.createTextNode(p))}b.innerHTML= | 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 |
for(var Na=0;Na<v.length;Na++){var ra=L.getCellGeometry(v[Na]);ra.x=Math.round(L.snap(ra.x));ra.y=Math.round(L.snap(ra.y));"auto"==m&&(ra.width=Math.round(L.snap(ra.width)));"auto"==B&&(ra.height=Math.round(L.snap(ra.height)))}};if("["==ea.charAt(0)){var pa=Y;L.view.validate();this.executeLayouts(L.createLayouts(JSON.parse(ea)),function(){na();pa()});Y=null}else if("circle"==ea){var ha=new mxCircleLayout(L);ha.disableEdgeStyle=!1;ha.resetEdges=!1;var ka=ha.isVertexIgnored;ha.isVertexIgnored=function(Na){return ka.apply(this,
arguments)||0>mxUtils.indexOf(v,Na)};this.executeLayout(function(){ha.execute(L.getDefaultParent());na()},!0,Y);Y=null}else if("horizontaltree"==ea||"verticaltree"==ea||"auto"==ea&&Ua.length==2*v.length-1&&1==Va.length){L.view.validate();var ua=new mxCompactTreeLayout(L,"horizontaltree"==ea);ua.levelDistance=Q;ua.edgeRouting=!1;ua.resetEdges=!1;this.executeLayout(function(){ua.execute(L.getDefaultParent(),0<Va.length?Va[0]:null)},!0,Y);Y=null}else if("horizontalflow"==ea||"verticalflow"==ea||"auto"== | 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.addListener("darkModeChanged",J);this.addListener("sketchModeChanged",J);this.addListener("currentThemeChanged",mxUtils.bind(this,function(){null!=this.sidebar&&this.sidebar.updateEntries();this.updateButtonContainer();this.updateDocumentTitle();this.refresh()}));g.addListener("enabledChanged",mxUtils.bind(this,function(){g.isEnabled()||this.hideShapePicker()}));d=this;mxWindow.prototype.fit=function(){if(Editor.inlineFullscreen||null==d.embedViewport)mxUtils.fit(this.div);else{var O=parseInt(this.div.offsetLeft),
N=parseInt(this.div.offsetWidth),T=d.embedViewport.x+d.embedViewport.width,m=parseInt(this.div.offsetTop),B=parseInt(this.div.offsetHeight),K=d.embedViewport.y+d.embedViewport.height;this.div.style.left=Math.max(d.embedViewport.x,Math.min(O,T-N))+"px";this.div.style.top=Math.max(d.embedViewport.y,Math.min(m,K-B))+"px";this.div.style.height=Math.min(d.embedViewport.height,parseInt(this.div.style.height))+"px";this.div.style.width=Math.min(d.embedViewport.width,parseInt(this.div.style.width))+"px"}}; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
f?z=new mxHierarchicalLayout(l,mxConstants.DIRECTION_WEST):"circle"==f?z=new mxCircleLayout(l):(z=new mxFastOrganicLayout(l,!1),z.forceConstant=80);if(null!=z){var M=function(n,t){l.getModel().beginUpdate();try{null!=n&&n(),z.execute(l.getDefaultParent(),D)}catch(u){throw u;}finally{n=new mxMorphing(l),n.addListener(mxEvent.DONE,mxUtils.bind(this,function(){l.getModel().endUpdate();null!=t&&t()})),n.startAnimation()}},I=mxEdgeHandler.prototype.connect;mxEdgeHandler.prototype.connect=function(n,t,
u,v,A){I.apply(this,arguments);M()};l.resizeCell=function(){mxGraph.prototype.resizeCell.apply(this,arguments);M()};l.connectionHandler.addListener(mxEvent.CONNECT,function(){M()})}var d=mxUtils.button(mxResources.get("close"),function(){b.confirm(mxResources.get("areYouSure"),function(){null!=k.parentNode&&(l.destroy(),k.parentNode.removeChild(k));b.hideDialog()})});d.className="geBtn";b.editor.cancelFirst&&c.appendChild(d);var g=mxUtils.button(mxResources.get("insert"),function(n){l.clearCellOverlays(); | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
"checked"):(I=parseInt(P[5]),A.value=I,t.setAttribute("checked","checked"),v.style.visibility="visible"):n.setAttribute("checked","checked")):f=null}else f=null}catch(U){}d.style=g+(f?f:k());d.vertex=!0;z.addCell(d,null,null,null,null);z.selectAll();z.addListener(mxEvent.CELLS_MOVED,F);z.addListener(mxEvent.CELLS_RESIZED,F);var B=z.graphHandler.mouseUp,K=z.graphHandler.mouseDown;z.graphHandler.mouseUp=function(){B.apply(this,arguments);D.style.backgroundColor="#fff9"};z.graphHandler.mouseDown=function(){K.apply(this, | 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 |
W[Q];W.stroke!=mxConstants.NONE&&null!=W.stroke||delete this.nextShape.options.stroke;W.filled||delete this.nextShape.options.fill;this.passThrough=!0;this.rc.draw(this.nextShape);this.passThrough=!1}};m.prototype.stroke=function(){this.passThrough?this.originalStroke.apply(this.canvas,arguments):this.drawPath(this.getStyle(!0,!1))};m.prototype.fill=function(){this.passThrough?this.originalFill.apply(this.canvas,arguments):this.drawPath(this.getStyle(!1,!0))};m.prototype.fillAndStroke=function(){this.passThrough? | 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;
Z&&(ca="data:image/png;base64,"+Editor.base64Encode(ca),ca=Editor.extractGraphModelFromPng(ca));var da=mxUtils.parseXml(ca),ma="mxlibrary"==da.documentElement.nodeName?da.documentElement:Editor.extractGraphModel(da.documentElement);if(null!=ma){V(ma.ownerDocument);return}}catch(ea){}X()}};Z&&Y.overrideMimeType&&Y.overrideMimeType("text/plain; charset=x-user-defined");Y.send()}function t(){M&&null!=J?C.exportToCanvas(function(Q){Q=EditorUi.prototype.createImageDataUri(Q,null,"png");x(G,Q);l(G)},400, | 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 |
Editor.isSettingsEnabled=function(){return"undefined"!==typeof window.mxSettings&&(isLocalStorage||mxClient.IS_CHROMEAPP)};Editor.configureFontCss=function(m){if(null!=m){Editor.prototype.fontCss=m;var B=document.getElementsByTagName("script")[0];if(null!=B&&null!=B.parentNode){var K=document.createElement("style");K.setAttribute("type","text/css");K.appendChild(document.createTextNode(m));B.parentNode.insertBefore(K,B);m=m.split("url(");for(K=1;K<m.length;K++){var R=m[K].indexOf(")");R=Editor.trimCssUrl(m[K].substring(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 |
new Image;S.onload=function(){try{var p=S.width,q=S.height;if(0==p&&0==q){var C=L.result,J=C.indexOf(","),G=decodeURIComponent(escape(atob(C.substring(J+1)))),P=mxUtils.parseXml(G).getElementsByTagName("svg");0<P.length&&(p=parseFloat(P[0].getAttribute("width")),q=parseFloat(P[0].getAttribute("height")))}n(L.result,p,q)}catch(O){t(O)}};S.src=L.result};L.onerror=function(F){t(F)}}else t(H)};A.onerror=function(H){t(H)};A.send()};EditorUi.prototype.insertAsPreText=function(d,g,n){var t=this.editor.graph, | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
v=[];u.onsuccess=function(A){null==A.target.result?d(v):(v.push(A.target.result.value),A.target.result.continue())};u.onerror=g}catch(A){null!=g&&g(A)}}),g)};EditorUi.prototype.getDatabaseItemKeys=function(d,g,n){this.openDatabase(mxUtils.bind(this,function(t){try{n=n||"objects";var u=t.transaction([n],"readonly").objectStore(n).getAllKeys();u.onsuccess=function(){d(u.result)};u.onerror=g}catch(v){null!=g&&g(v)}}),g)};EditorUi.prototype.commentsSupported=function(){var d=this.getCurrentFile();return null!= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
v=[];u.onsuccess=function(A){null==A.target.result?d(v):(v.push(A.target.result.value),A.target.result.continue())};u.onerror=g}catch(A){null!=g&&g(A)}}),g)};EditorUi.prototype.getDatabaseItemKeys=function(d,g,n){this.openDatabase(mxUtils.bind(this,function(t){try{n=n||"objects";var u=t.transaction([n],"readonly").objectStore(n).getAllKeys();u.onsuccess=function(){d(u.result)};u.onerror=g}catch(v){null!=g&&g(v)}}),g)};EditorUi.prototype.commentsSupported=function(){var d=this.getCurrentFile();return null!= | 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,
B=N.childNodes;N={};for(var K={},R=null,U={},W=0;W<B.length;W++){var Q=B[W];if(null!=Q.id&&0<Q.id.length)if(null==N[Q.id]){N[Q.id]=Q.id;var V=Q.getAttribute("parent");null==V?null!=R?mxLog.debug(m+": Multiple roots: "+Q.id):R=Q.id:(null==K[V]&&(K[V]=[]),K[V].push(Q.id))}else U[Q.id]=Q.id}B=Object.keys(U);0<B.length?(B=m+": "+B.length+" Duplicates: "+B.join(", "),mxLog.debug(B+" (see console)")):mxLog.debug(m+": Checked");var X={};null==R?mxLog.debug(m+": No root"):(T(R),Object.keys(X).length!=Object.keys(N).length&&
(mxLog.debug(m+": Invalid tree: (see console)"),console.log(m+": Invalid tree",K)))};"<"!=q.charAt(0)&&(q=Graph.decompress(q),mxLog.debug("See console for uncompressed XML"),console.log("xml",q));var J=mxUtils.parseXml(q),G=c.getPagesForNode(J.documentElement,"mxGraphModel");if(null!=G&&0<G.length)try{var P=c.getHashValueForPages(G);mxLog.debug("Checksum: ",P)}catch(N){mxLog.debug("Error: ",N.message)}else mxLog.debug("No pages found for checksum");var O=J.getElementsByTagName("root");for(q=0;q<O.length;q++)C(O[q]); | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
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 |
""),mxUtils.bind(this,function(g){window.clearTimeout(d);I&&(200<=g.getStatus()&&299>=g.getStatus()?null!=f&&f():c({message:mxResources.get("realtimeCollaboration")+(0!=g.getStatus()?": "+g.getStatus():"")}))}));EditorUi.debug("DrawioFileSync.fileSaved",[this],"diff",D,M.length,"bytes","from",y,"to",E,"etag",this.file.getCurrentEtag(),"checksum",z)}}this.file.setShadowPages(b);this.scheduleCleanup()}; | 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"==
urlParams.sketch;return"0"!=(null!=urlParams.rough?urlParams.rough:d)};var k=EditorUi.prototype.createUi;EditorUi.prototype.createUi=function(){Editor.isSettingsEnabled()&&(this.doSetSketchMode(null!=mxSettings.settings.sketchMode&&null==urlParams.rough&&null==urlParams.sketch?mxSettings.settings.sketchMode:this.getDefaultSketchMode()),null!=mxSettings.settings.sidebarTitles&&(Sidebar.prototype.sidebarTitles=mxSettings.settings.sidebarTitles),this.formatWidth=mxSettings.getFormatWidth());k.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 |
function(G){if(g.isEnabled()&&1==g.getSelectionCount()){var P=g.getSelectionCell(),O=mxEvent.isControlDown(G)?null:g.getIncomingTreeEdges(P);G=[];if(null!=O&&0<O.length&&(O=g.getOutgoingTreeEdges(g.model.getTerminal(O[0],!0)),null!=O))for(var N=0;N<O.length;N++)G.push(g.model.getTerminal(O[N],!1));0==G.length&&(G=g.model.getChildren(g.model.getParent(P)));g.setSelectionCells(G)}},null,null,"Alt+Shift+S");var u=g.removeCells;g.removeCells=function(G,P){P=null!=P?P:!0;null==G&&(G=this.getDeletableCells(this.getSelectionCells()));
P&&(G=this.getDeletableCells(this.addAllEdges(G)));for(var O=[],N=0;N<G.length;N++){var T=G[N];n.isEdge(T)&&l(T)&&(O.push(T),T=n.getTerminal(T,!1));if(c(T)){var m=[];g.traverse(T,!0,function(B,K){var R=null!=K&&g.isTreeEdge(K);R&&m.push(K);(null==K||R)&&m.push(B);return null==K||R});0<m.length&&(O=O.concat(m),T=g.getIncomingTreeEdges(G[N]),G=G.concat(T))}else null!=T&&O.push(G[N])}G=O;return u.apply(this,arguments)};d.hoverIcons.getStateAt=function(G,P,O){return c(G.cell)?null:this.graph.view.getState(this.graph.getCellAt(P, | 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(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 |
mxUtils.bind(this,function(O,N){O=null!=g.backgroundImage?g.backgroundImage.originalSrc:null;if(null!=O){var T=O.indexOf(",");if(0<T)for(O=O.substring(T+1),N=N.getProperty("patches"),T=0;T<N.length;T++)if(null!=N[T][EditorUi.DIFF_UPDATE]&&null!=N[T][EditorUi.DIFF_UPDATE][O]||null!=N[T][EditorUi.DIFF_REMOVE]&&0<=mxUtils.indexOf(N[T][EditorUi.DIFF_REMOVE],O)){g.refreshBackgroundImage();break}}}));var v=g.getBackgroundImageObject;g.getBackgroundImageObject=function(O,N){var T=v.apply(this,arguments);
if(null!=T&&null!=T.originalSrc)if(!N)T={src:T.originalSrc};else if(N&&null!=this.themes&&"darkTheme"==this.defaultThemeName){var m=this.stylesheet,B=this.shapeForegroundColor,K=this.shapeBackgroundColor;this.stylesheet=this.getDefaultStylesheet();this.shapeBackgroundColor="#ffffff";this.shapeForegroundColor="#000000";T=d.createImageForPageLink(T.originalSrc);this.shapeBackgroundColor=K;this.shapeForegroundColor=B;this.stylesheet=m}return T};this.isOffline()||"undefined"===typeof window.EditDataDialog|| | 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", | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
(ka?"geTempDlgRadioBtnLarge":"geTempDlgRadioBtnSmall");N.querySelector("."+aa).src="/images/"+la+"-sel.svg";N.querySelector("."+pa).src="/images/"+ha+".svg";return!0}function v(ja,aa,la,na){function pa(wa,Ma){null==ka?(wa=/^https?:\/\//.test(wa)&&!b.editor.isCorsEnabledForUrl(wa)?PROXY_URL+"?url="+encodeURIComponent(wa):TEMPLATE_PATH+"/"+wa,mxUtils.get(wa,mxUtils.bind(this,function(Ia){200<=Ia.getStatus()&&299>=Ia.getStatus()&&(ka=Ia.getText());Ma(ka)}))):Ma(ka)}function ha(wa,Ma,Ia){if(null!=wa&&
mxUtils.isAncestorNode(document.body,aa)&&(wa=mxUtils.parseXml(wa),wa=Editor.extractGraphModel(wa.documentElement,!0),null!=wa)){"mxfile"==wa.nodeName&&(wa=Editor.parseDiagramNode(wa.getElementsByTagName("diagram")[0]));var Aa=new mxCodec(wa.ownerDocument),Ja=new mxGraphModel;Aa.decode(wa,Ja);wa=Ja.root.getChildAt(0).children||[];b.sidebar.createTooltip(aa,wa,Math.min((window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)-80,1E3),Math.min((window.innerHeight||document.documentElement.clientHeight||
document.body.clientHeight)-80,800),null!=ja.title?mxResources.get(ja.title,null,ja.title):null,!0,new mxPoint(Ma,Ia),!0,null,!0);var Na=document.createElement("div");Na.className="geTempDlgDialogMask";N.appendChild(Na);var ra=b.sidebar.hideTooltip;b.sidebar.hideTooltip=function(){Na&&(N.removeChild(Na),Na=null,ra.apply(this,arguments),b.sidebar.hideTooltip=ra)};mxEvent.addListener(Na,"click",function(){b.sidebar.hideTooltip()})}}var ka=null;if(oa||b.sidebar.currentElt==aa)b.sidebar.hideTooltip(); | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
this.cellEditor.textarea.getElementsByTagName("font");B=Graph.getFontUrl(m,B);for(var R=0;R<K.length;R++)K[R].getAttribute("face")==m&&K[R].getAttribute("data-font-src")!=B&&K[R].setAttribute("data-font-src",B)}};var v=Graph.prototype.isFastZoomEnabled;Graph.prototype.isFastZoomEnabled=function(){return v.apply(this,arguments)&&(!this.shadowVisible||!mxClient.IS_SF)};Graph.prototype.updateGlobalUrlVariables=function(){this.globalVars=Editor.globalVars;if(null!=urlParams.vars)try{this.globalVars=null!= | 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.