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 |
|---|---|---|---|---|---|---|---|
this.window.setClosable(!0);this.window.addListener("show",mxUtils.bind(this,function(){E.refresh();this.window.fit()}));b.installResizeHandler(this,!0)},AuthDialog=function(b,f,m,d){var u=document.createElement("div");u.style.textAlign="center";var v=document.createElement("p");v.style.fontSize="16pt";v.style.padding="0px";v.style.margin="0px";v.style.color="gray";mxUtils.write(v,mxResources.get("authorizationRequired"));var E="Unknown",F=document.createElement("img");F.setAttribute("border","0");
F.setAttribute("align","absmiddle");F.style.marginRight="10px";f==b.drive?(E=mxResources.get("googleDrive"),F.src=IMAGE_PATH+"/google-drive-logo-white.svg"):f==b.dropbox?(E=mxResources.get("dropbox"),F.src=IMAGE_PATH+"/dropbox-logo-white.svg"):f==b.oneDrive?(E=mxResources.get("oneDrive"),F.src=IMAGE_PATH+"/onedrive-logo-white.svg"):f==b.gitHub?(E=mxResources.get("github"),F.src=IMAGE_PATH+"/github-logo-white.svg"):f==b.gitLab?(E=mxResources.get("gitlab"),F.src=IMAGE_PATH+"/gitlab-logo.svg",F.style.width=
"32px"):f==b.trello&&(E=mxResources.get("trello"),F.src=IMAGE_PATH+"/trello-logo-white.svg");b=document.createElement("p");mxUtils.write(b,mxResources.get("authorizeThisAppIn",[E]));var L=document.createElement("input");L.setAttribute("type","checkbox");E=mxUtils.button(mxResources.get("authorize"),function(){d(L.checked)});E.insertBefore(F,E.firstChild);E.style.marginTop="6px";E.className="geBigButton";E.style.fontSize="18px";E.style.padding="14px";u.appendChild(v);u.appendChild(b);u.appendChild(E);
m&&(m=document.createElement("p"),m.style.marginTop="20px",m.appendChild(L),v=document.createElement("span"),mxUtils.write(v," "+mxResources.get("rememberMe")),m.appendChild(v),u.appendChild(m),L.checked=!0,L.defaultChecked=!0,mxEvent.addListener(v,"click",function(N){L.checked=!L.checked;mxEvent.consume(N)}));this.container=u},MoreShapesDialog=function(b,f,m){m=null!=m?m:b.sidebar.entries;var d=document.createElement("div"),u=[];if(null!=b.sidebar.customEntries)for(var v=0;v<b.sidebar.customEntries.length;v++){for(var E= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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.extractGraphModelFromXref(U));null!=G&&(G=decodeURIComponent(G.replace(/\\\(/g,"(").replace(/\\\)/g,")")));return G};Editor.extractGraphModelFromXref=function(k){var y=k.trailer,G=null;null!=y&&(y=/.* \/Info (\d+) (\d+) R/g.exec(y.join("\n")),null!=y&&0<y.length&&(y=k[y[1]],null!=y&&(y=/.* \/Subject (\d+) (\d+) R/g.exec(y.join("\n")),null!=y&&0<y.length&&(k=k[y[1]],null!=k&&(k=k.join("\n"),G=k.substring(1,k.length-1))))));return G};Editor.extractParserError=function(k,y){var G=null;k=null!= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
App.prototype.loadTemplate=function(b,f,m,d,u){var v=!1,E=b,F=null!=d?d:b,L=/(\.v(dx|sdx?))($|\?)/i.test(F)||/(\.vs(x|sx?))($|\?)/i.test(F);d=/\.png$/i.test(F)||/\.pdf$/i.test(F);this.editor.isCorsEnabledForUrl(E)||(v=d||L,E="t="+(new Date).getTime(),E=PROXY_URL+"?url="+encodeURIComponent(b)+"&"+E+(v?"&base64=1":""));this.editor.loadUrl(E,mxUtils.bind(this,function(N){try{var H=v?!window.atob||mxClient.IS_IE||mxClient.IS_IE11?Base64.decode(N):atob(N):N;if(L||this.isVisioData(H))L||(F=u?this.isRemoteVisioData(H)?
"raw.vss":"raw.vssx":this.isRemoteVisioData(H)?"raw.vsd":"raw.vsdx"),this.importVisio(this.base64ToBlob(N.substring(N.indexOf(",")+1)),function(R){f(R)},m,F);else if((new XMLHttpRequest).upload&&this.isRemoteFileFormat(H,F))this.isExternalDataComms()?this.parseFileData(H,mxUtils.bind(this,function(R){4==R.readyState&&200<=R.status&&299>=R.status&&"<mxGraphModel"==R.responseText.substring(0,13)&&f(R.responseText)}),b):this.showError(mxResources.get("error"),mxResources.get("notInOffline"),null,m);
else if(this.isLucidChartData(H))this.convertLucidChart(H,mxUtils.bind(this,function(R){f(R)}),mxUtils.bind(this,function(R){m(R)}));else{if(/(\.png)($|\?)/i.test(F)||Editor.isPngData(H))H=Editor.extractGraphModelFromPng(N);f(H)}}catch(R){m(R)}}),m,/(\.png)($|\?)/i.test(F)||/(\.v(dx|sdx?))($|\?)/i.test(F)||/(\.vs(x|sx?))($|\?)/i.test(F),null,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 |
e;p.onerror=g;for(var t=0;t<q.length;t++)p.objectStore(q[t]).delete(c[t])}),g)};EditorUi.prototype.getDatabaseItem=function(c,e,g,q){this.openDatabase(mxUtils.bind(this,function(p){try{q=q||"objects";var t=p.transaction([q],"readonly").objectStore(q).get(c);t.onsuccess=function(){e(t.result)};t.onerror=g}catch(x){null!=g&&g(x)}}),g)};EditorUi.prototype.getDatabaseItems=function(c,e,g){this.openDatabase(mxUtils.bind(this,function(q){try{g=g||"objects";var p=q.transaction([g],"readonly").objectStore(g).openCursor(IDBKeyRange.lowerBound(0)), | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
6)this.curveTo(ha[na],ha[na+1],ha[na+2],ha[na+3],ha[na+4],ha[na+5]);this.lastX=Z;this.lastY=ca}};k.prototype.rect=function(U,T,W,X){this.passThrough?this.originalRect.apply(this.canvas,arguments):(this.path=[],this.nextShape=this.rc.generator.rectangle(U,T,W,X,this.getStyle(!0,!0)))};k.prototype.ellipse=function(U,T,W,X){this.passThrough?this.originalEllipse.apply(this.canvas,arguments):(this.path=[],this.nextShape=this.rc.generator.ellipse(U+W/2,T+X/2,W,X,this.getStyle(!0,!0)))};k.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 |
try{p.labelChanged(x,c),Graph.isLink(c)&&p.setLinkForCell(x,c)}finally{p.model.endUpdate()}}p.setSelectionCell(x)}else t=p.getInsertPoint(),p.isMouseInsertPoint()&&(x=0,p.lastPasteXml==c&&0<p.pasteCounter&&p.pasteCounter--),t=this.insertTextAt(c,t.x+x,t.y+x,!0),p.setSelectionCells(t);p.isSelectionEmpty()||(p.scrollCellToVisible(p.getSelectionCell()),null!=this.hoverIcons&&this.hoverIcons.update(p.view.getState(p.getSelectionCell())));return t};EditorUi.prototype.pasteCells=function(c,e,g,q){if(!mxEvent.isConsumed(c)){var 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(c){var e=this.editor.graph;return{event:c,pageVisible:e.pageVisible,translate:e.view.translate,bounds:e.getGraphBounds(),currentPage:this.getSelectedPageIndex(),scale:e.view.scale,page:e.view.getBackgroundPageBounds()}};EditorUi.prototype.sendEmbeddedSvgExport=function(c){try{var e=this.editor.graph;e.isEditing()&&e.stopEditing(!e.isInvokesStopCellEditing());var g=window.opener||window.parent;if(this.editor.modified){var q=e.background;if(null==q||q==mxConstants.NONE)q=this.embedExportBackground; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
!0,"1"==urlParams.dev?mxscript("js/orgchart/bridge.min.js",function(){mxscript("js/orgchart/bridge.collections.min.js",function(){mxscript("js/orgchart/OrgChart.Layout.min.js",function(){mxscript("js/orgchart/mxOrgChartLayout.js",g,null,null,null,q)},null,null,null,q)},null,null,null,q)},null,null,null,q):mxscript(DRAWIO_BASE_URL+"/js/orgchart.min.js",g,null,null,null,q))}),onerror)};EditorUi.prototype.importCsv=function(c,e){this.loadOrgChartLayouts(mxUtils.bind(this,function(){this.doImportCsv(c,
e)}))};EditorUi.prototype.doImportCsv=function(c,e){try{var g=c.split("\n"),q=[],p=[],t=[],x={};if(0<g.length){var B={},I=this.editor.graph,A=null,S=null,l=null,n=null,z=null,C=null,D=null,M="whiteSpace=wrap;html=1;",K=null,O=null,V="",k="auto",y="auto",G=!1,P=null,Q=null,U=40,T=40,W=100,X=0,Y=mxUtils.bind(this,function(){null!=e?e(Ua):(I.setSelectionCells(Ua),I.scrollCellToVisible(I.getSelectionCell()));null!=this.chromelessResize&&window.setTimeout(mxUtils.bind(this,function(){this.chromelessResize(!0)}), | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
[];this.traverse(u,!0,mxUtils.bind(this,function(F,L){var N=null!=L&&this.isTreeEdge(L);N&&v.push(L);F==u||null!=L&&!N||v.push(F);return(null==L||N)&&(F==u||!this.model.isCollapsed(F))}));this.model.setCollapsed(u,d);for(var E=0;E<v.length;E++)this.model.setVisible(v[E],!d)}finally{this.model.endUpdate()}};Graph.prototype.isTreeEdge=function(d){return!this.isEdgeIgnored(d)};Graph.prototype.getTreeEdges=function(d,u,v,E,F,L){return this.model.filterCells(this.getEdges(d,u,v,E,F,L),mxUtils.bind(this,
function(N){return this.isTreeEdge(N)}))};Graph.prototype.getIncomingTreeEdges=function(d,u){return this.getTreeEdges(d,u,!0,!1,!1)};Graph.prototype.getOutgoingTreeEdges=function(d,u){return this.getTreeEdges(d,u,!1,!0,!1)};var f=EditorUi.prototype.init;EditorUi.prototype.init=function(){f.apply(this,arguments);this.editor.isChromelessView()&&!this.editor.editable||this.addTrees()};EditorUi.prototype.addTrees=function(){function d(D){return g.isVertex(D)&&v(D)}function u(D){var M=!1;null!=D&&(M="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 |
c:null)}catch(q){this.handleError(q)}};EditorUi.prototype.writeImageToClipboard=function(c,e,g,q){var p=this.base64ToBlob(c.substring(c.indexOf(",")+1),"image/png");c=new ClipboardItem({"image/png":p,"text/html":new Blob(['<img src="'+c+'" width="'+e+'" height="'+g+'">'],{type:"text/html"})});navigator.clipboard.write([c])["catch"](q)};EditorUi.prototype.copyCells=function(c,e){var g=this.editor.graph;if(g.isSelectionEmpty())c.innerText="";else{var q=mxUtils.sortCells(g.model.getTopmostCells(g.getSelectionCells())),
p=mxUtils.getXml(g.encodeCells(q));mxUtils.setTextContent(c,encodeURIComponent(p));e?(g.removeCells(q,!1),g.lastPasteXml=null):(g.lastPasteXml=p,g.pasteCounter=0);c.focus();document.execCommand("selectAll",!1,null)}};EditorUi.prototype.copyXml=function(){var c=null;if(Editor.enableNativeCipboard){var e=this.editor.graph;e.isSelectionEmpty()||(c=mxUtils.sortCells(e.getExportableCells(e.model.getTopmostCells(e.getSelectionCells()))),e=mxUtils.getXml(e.encodeCells(c)),navigator.clipboard.writeText(e))}return 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 |
x,null,null,null,t)):mxscript("js/extensions.min.js",x,null,null,null,t))};EditorUi.prototype.generatePlantUmlImage=function(c,e,g,q){function p(B,I,A){c1=B>>2;c2=(B&3)<<4|I>>4;c3=(I&15)<<2|A>>6;c4=A&63;r="";r+=t(c1&63);r+=t(c2&63);r+=t(c3&63);return r+=t(c4&63)}function t(B){if(10>B)return String.fromCharCode(48+B);B-=10;if(26>B)return String.fromCharCode(65+B);B-=26;if(26>B)return String.fromCharCode(97+B);B-=26;return 0==B?"-":1==B?"_":"?"}var x=new XMLHttpRequest;x.open("GET",("txt"==e?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 |
q.model.getChildAt(e,B))};EditorUi.prototype.updatePageLink=function(c,e){if(Graph.isPageLink(e)){var g=c[e.substring(e.indexOf(",")+1)];e=null!=g?"data:page/id,"+g:null}else if("data:action/json,"==e.substring(0,17))try{var q=JSON.parse(e.substring(17));if(null!=q.actions){for(var p=0;p<q.actions.length;p++){var t=q.actions[p];if(null!=t.open&&Graph.isPageLink(t.open)){var x=t.open.substring(t.open.indexOf(",")+1);g=c[x];null!=g?t.open="data:page/id,"+g:null==this.getPageById(x)&&delete t.open}}e=
"data:action/json,"+JSON.stringify(q)}}catch(B){}return e};EditorUi.prototype.isRemoteVisioFormat=function(c){return/(\.v(sd|dx))($|\?)/i.test(c)||/(\.vs(s|x))($|\?)/i.test(c)};EditorUi.prototype.importVisio=function(c,e,g,q,p){var t=mxUtils.bind(this,function(x){this.loadingExtensions=!1;null!=g?g(x):this.handleError(x)});this.createTimeout(null,mxUtils.bind(this,function(x){q=null!=q?q:c.name;var B=mxUtils.bind(this,function(A){x.clear()&&t(A)}),I=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 |
c=D;this.confirmImageResize(function(V){C=V;O()},I)}else O()};EditorUi.prototype.isBlankFile=function(){return null!=this.pages&&1==this.pages.length&&this.isDiagramEmpty()&&this.currentPage.getName()==mxResources.get("pageWithNumber",[1])};EditorUi.prototype.confirmImageResize=function(c,e){e=null!=e?e:!1;var g=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},q=isLocalStorage||mxClient.IS_CHROMEAPP?mxSettings.getResizeImages():null,p=function(t,x){if(t||e)mxSettings.setResizeImages(t?
x:null),mxSettings.save();g();c(x)};null==q||e?this.showDialog((new ConfirmDialog(this,mxResources.get("resizeLargeImages"),function(t){p(t,!0)},function(t){p(t,!1)},mxResources.get("resize"),mxResources.get("actualSize"),'<img style="margin-top:8px;" src="'+Editor.loResImage+'"/>','<img style="margin-top:8px;" src="'+Editor.hiResImage+'"/>',isLocalStorage||mxClient.IS_CHROMEAPP)).container,340,isLocalStorage||mxClient.IS_CHROMEAPP?220:200,!0,!0):p(!1,q)};EditorUi.prototype.parseFile=function(c,e, | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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,y){if("undefined"===typeof window.MathJax&&!mxClient.IS_IE&&!mxClient.IS_IE11){var G=function(){P=null;if(0<Editor.mathJaxQueue.length)Editor.doMathJaxRender(Editor.mathJaxQueue.shift());else Editor.onMathJaxDone()};k=null!=k?k:DRAW_MATH_URL+"/startup.js";Editor.mathJaxQueue=[];var P=null;Editor.doMathJaxRender=function(T){try{null==P?(MathJax.typesetClear([T]),MathJax.typeset([T]),G()):P!=T&&Editor.mathJaxQueue.push(T)}catch(W){MathJax.typesetClear([T]),null!=W.retry?(P=T,W.retry.then(function(){MathJax.typesetPromise([T]).then(G)["catch"](function(X){console.log("Error in MathJax.typesetPromise: "+ | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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[T];U.stroke!=mxConstants.NONE&&null!=U.stroke||delete this.nextShape.options.stroke;U.filled||delete this.nextShape.options.fill;this.passThrough=!0;this.rc.draw(this.nextShape);this.passThrough=!1}};k.prototype.stroke=function(){this.passThrough?this.originalStroke.apply(this.canvas,arguments):this.drawPath(this.getStyle(!0,!1))};k.prototype.fill=function(){this.passThrough?this.originalFill.apply(this.canvas,arguments):this.drawPath(this.getStyle(!1,!0))};k.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 |
!l){var K=function(){G.value=Math.max(1,Math.min(D,Math.max(parseInt(G.value),parseInt(k.value))));k.value=Math.max(1,Math.min(D,Math.min(parseInt(G.value),parseInt(k.value))))},O=d.addRadiobox(n,"pages",mxResources.get("allPages"),!0),V=d.addRadiobox(n,"pages",mxResources.get("pages")+":",!1,null,!0),k=document.createElement("input");k.style.cssText="margin:0 8px 0 8px;";k.setAttribute("value","1");k.setAttribute("type","number");k.setAttribute("min","1");k.style.width="50px";n.appendChild(k);var y= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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(t){return mxEvent.getSource(t)==g?!0:p.apply(this,arguments)}};EditorUi.prototype.setCurrentTheme=function(c,e){mxSettings.setUi(c);(e=this.doSetCurrentTheme(c)||e)||this.alert(mxResources.get("restartForChangeRequired"))};EditorUi.prototype.isDefaultTheme=function(c){return""==c||"dark"==c||"default"==c||"kennedy"==c||null==c};EditorUi.prototype.doSetCurrentTheme=function(c,e,g){function q(I){return"simple"==I||0==e&&"sketch"==I}e=null!=e?e:150;var p=Editor.currentTheme,t=q(p)&&this.isDefaultTheme(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 |
App.prototype.filterDrafts=function(b,f,m){function d(){m(u)}var u=[];try{this.getDatabaseItems(mxUtils.bind(this,function(v){EditorUi.debug("App.filterDrafts",[this],"items",v);for(var E=0;E<v.length;E++)try{var F=v[E].key;if(null!=F&&".draft_"==F.substring(0,7)){var L=JSON.parse(v[E].data);null!=L&&"draft"==L.type&&L.aliveCheck!=f&&(null==b&&null==L.fileObject||null!=L.fileObject&&L.fileObject.path==b)&&(L.key=F,u.push(L))}}catch(N){}d()}),d)}catch(v){d()}}; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
this.mathEnabled=!this.mathEnabled),null!=this.shadowVisible&&this.shadowVisible!=this.ui.editor.graph.shadowVisible&&(this.ui.editor.graph.setShadowVisible(this.shadowVisible),this.shadowVisible=!this.shadowVisible)};Editor.prototype.useCanvasForExport=!1;try{var O=document.createElement("canvas"),V=new Image;V.onload=function(){try{O.getContext("2d").drawImage(V,0,0);var k=O.toDataURL("image/png");Editor.prototype.useCanvasForExport=null!=k&&6<k.length}catch(y){}};V.src="data:image/svg+xml;base64,"+ | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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.editable&&(g.getHash=function(){return"G"+e},window.location.hash="#"+g.getHash());null!=d&&d()}));return!0}return!1});!c()&&this.spinner.spin(document.body,mxResources.get("loading"))&&this.addListener("clientLoaded",c);return!0});this.loadTemplate(H,mxUtils.bind(this,function(c){this.spinner.stop();if(null!=c&&0<c.length){var e=this.defaultFilename;if(null==urlParams.title&&"1"!=urlParams.notitle){var g=H,q=H.lastIndexOf("."),p=g.lastIndexOf("/");q>p&&0<p&&(g=g.substring(p+1,q),q=H.substring(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 |
x.appendChild(z);var C=document.createElement("div");C.style.marginTop="10px";if(v){var D=function(V,k,y,G,P){if(null==P||"1"!=P.html)return G=V.toLowerCase().indexOf(k,G),0>G?V:V.substr(0,G)+y+V.substr(G+k.length);var Q=V;k=mxUtils.htmlEntities(k);P=[];var U=-1;for(V=V.replace(/<br>/ig,"\n");-1<(U=V.indexOf("<",U+1));)P.push(U);U=V.match(/<[^>]*>/g);V=V.replace(/<[^>]*>/g,"");G=V.toLowerCase().indexOf(k,G);if(0>G)return Q;Q=G+k.length;y=mxUtils.htmlEntities(y);V=V.substr(0,G)+y+V.substr(Q);for(var T=
0,W=0;W<P.length;W++){if(P[W]-T<G)V=V.substr(0,P[W])+U[W]+V.substr(P[W]);else{var X=P[W]-T<Q?G+T:P[W]+(y.length-k.length);V=V.substr(0,X)+U[W]+V.substr(X)}T+=U[W].length}return V.replace(/\n/g,"<br>")},M=mxUtils.button(mxResources.get("replFind"),function(){try{if(null!=g&&null!=J){var V=J.cell,k=H.getLabel(V);H.isCellEditable(V)&&H.model.setValue(V,D(k,g,I.value,q-g.length,H.getCurrentCellStyle(V)));B.style.backgroundColor=L(!1,!0)?"":Editor.isDarkMode()?"#ff0000":"#ffcfcf"}}catch(y){b.handleError(y)}}); | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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.appendChild(v);this.pagesContainer=m;this.layersContainer=v;this.ui=b;m=document.createElement("div");m.style.marginTop="16px";m.style.textAlign="center";v=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog();null!=u&&u()});v.className="geBtn";b.editor.cancelFirst&&m.appendChild(v);var E=mxUtils.button(mxResources.get("ok"),mxUtils.bind(this,function(){b.hideDialog();d({pageId:this.selectedPage,layerIds:Object.keys(this.selectedLayers)})}));m.appendChild(E);E.className="geBtn gePrimaryBtn"; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
function(c,e,g,q,p,t,x){if(null!=c){p=null!=p?p:Error(c);p.stack=null!=p.stack?p.stack:"";t=null!=t?t:0>c.indexOf("NetworkError")&&0>c.indexOf("SecurityError")&&0>c.indexOf("NS_ERROR_FAILURE")&&0>c.indexOf("out of memory")?"SEVERE":"CONFIG";try{EditorUi.enableLogging&&"1"!=urlParams.dev&&c!=EditorUi.lastErrorMessage&&0>c.indexOf("extension:")&&0>p.stack.indexOf("extension:")&&0>p.stack.indexOf("<anonymous>:")&&(EditorUi.lastErrorMessage=c,(new Image).src=(null!=window.DRAWIO_LOG_URL?window.DRAWIO_LOG_URL:
"")+"/log?severity="+t+"&v="+encodeURIComponent(EditorUi.VERSION)+"&msg=clientError:"+encodeURIComponent(c)+":url:"+encodeURIComponent(window.location.href)+":lnum:"+encodeURIComponent(g)+(null!=q?":colno:"+encodeURIComponent(q):"")+(""!=p.stack?"&stack="+encodeURIComponent(p.stack):""))}catch(B){}try{x||null==window.console||console.error(t,c,e,g,q,p)}catch(B){}}};EditorUi.logEvent=function(c){if("1"==urlParams.dev)EditorUi.debug("logEvent",c);else if(EditorUi.enableLogging)try{var e=null!=window.DRAWIO_LOG_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 |
ColorDialog.resetRecentColors=function(){L.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()}}"undefined"!==typeof window.EditDataDialog&&(EditDataDialog.getDisplayIdForCell=function(k,y){var G=null;null!=k.editor.graph.getModel().getParent(y)?G=y.getId():null!=k.currentPage&&(G=k.currentPage.getId());return G});if(null!=window.StyleFormatPanel){var N=Format.prototype.init;Format.prototype.init=function(){N.apply(this,arguments);this.editorUi.editor.addListener("fileLoaded", | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
Graph.recentCustomFonts[P]=Q,y=document.getElementsByTagName("head")[0],null!=G&&("link"==Q.elt.nodeName.toLowerCase()?(Q.elt.onload=G,Q.elt.onerror=G):G()),null!=y&&y.appendChild(Q.elt)):null!=G&&G()}else null!=G&&G()}else null!=G&&G();return k};Graph.getFontUrl=function(k,y){k=Graph.customFontElements[k.toLowerCase()];null!=k&&(y=k.url);return y};Graph.processFontAttributes=function(k){k=k.getElementsByTagName("*");for(var y=0;y<k.length;y++){var G=k[y].getAttribute("data-font-src");if(null!=G){var P=
"FONT"==k[y].nodeName?k[y].getAttribute("face"):k[y].style.fontFamily;null!=P&&Graph.addFont(P,G)}}};Graph.processFontStyle=function(k){if(null!=k){var y=mxUtils.getValue(k,"fontSource",null);if(null!=y){var G=mxUtils.getValue(k,mxConstants.STYLE_FONTFAMILY,null);null!=G&&Graph.addFont(G,decodeURIComponent(y))}}return k};Graph.prototype.defaultThemeName="default-style2";Graph.prototype.lastPasteXml=null;Graph.prototype.pasteCounter=0;Graph.prototype.defaultScrollbars="0"!=urlParams.sb;Graph.prototype.defaultPageVisible= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
C.translate(Math.floor((1-n.x)/z),Math.floor((1-n.y)/z));C.scale(1/z);var M=0,K=C.save;C.save=function(){M++;K.apply(this,arguments)};var O=C.restore;C.restore=function(){M--;O.apply(this,arguments)};var V=l.drawShape;l.drawShape=function(k){mxLog.debug("entering shape",k,M);V.apply(this,arguments);mxLog.debug("leaving shape",k,M)};l.drawState(u.getView().getState(u.model.root),C);mxLog.show();mxLog.debug(mxUtils.getXml(D));mxLog.debug("stateCounter",M)}));d.actions.addAction("testShowConsole",function(){mxLog.isVisible()? | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
c?c.commentsSupported():!1};EditorUi.prototype.commentsRefreshNeeded=function(){var c=this.getCurrentFile();return null!=c?c.commentsRefreshNeeded():!0};EditorUi.prototype.commentsSaveNeeded=function(){var c=this.getCurrentFile();return null!=c?c.commentsSaveNeeded():!1};EditorUi.prototype.getComments=function(c,e){var g=this.getCurrentFile();null!=g?g.getComments(c,e):c([])};EditorUi.prototype.addComment=function(c,e,g){var q=this.getCurrentFile();null!=q?q.addComment(c,e,g):e(Date.now())};EditorUi.prototype.canReplyToReplies= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
ma.join(" ")}null!=ia?(P=ia,P.className+=" "+aa,Q=la,ka.className="geTempDlgCreateBtn"):(Q=P=null,ka.className="geTempDlgCreateBtn geTempDlgBtnDisabled")}function B(ia,aa){if(null!=Q){var la=function(sa){ja.isExternal?L(ja,function(ta){ma(ta,sa)},oa):ja.url?mxUtils.get(TEMPLATE_PATH+"/"+ja.url,mxUtils.bind(this,function(ta){200<=ta.getStatus()&&299>=ta.getStatus()?ma(ta.getText(),sa):oa()})):ma(b.emptyDiagramXml,sa)},ma=function(sa,ta){e||b.hideDialog(!0);f(sa,ta,ja,aa)},oa=function(){g(mxResources.get("cannotLoad")); | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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!=O&&null!=O.src&&Graph.isPageLink(O.src)&&(O={originalSrc:O.src});return O};var p=e.setBackgroundImage;e.setBackgroundImage=function(K){null!=K&&null!=K.originalSrc&&(K=c.createImageForPageLink(K.originalSrc,c.currentPage,this));p.apply(this,arguments)};this.editor.addListener("pageRenamed",mxUtils.bind(this,function(){e.refreshBackgroundImage()}));this.editor.addListener("pageMoved",mxUtils.bind(this,function(){e.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 |
DrawioFile.prototype.patch=function(b,f,m,d){if(null!=b){var u=this.ui.editor.undoManager,v=u.history.slice(),E=u.indexOfNextAdd,F=this.ui.editor.graph;F.container.style.visibility="hidden";var L=this.changeListenerEnabled;this.changeListenerEnabled=m;var N=F.foldingEnabled,H=F.mathEnabled,R=F.cellRenderer.redraw;F.cellRenderer.redraw=function(J){J.view.graph.isEditing(J.cell)&&(J.view.graph.scrollCellToVisible(J.cell),J.view.graph.cellEditor.resize());R.apply(this,arguments)};F.model.beginUpdate(); | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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.getWindows=function(){var c=[this.sidebarWindow,this.formatWindow,this.freehandWindow];null!=this.actions&&(c=c.concat([this.actions.outlineWindow,this.actions.layersWindow]));null!=this.menus&&(c=c.concat([this.menus.tagsWindow,this.menus.findWindow,this.menus.findReplaceWindow,this.menus.commentsWindow]));return c};EditorUi.prototype.fitWindows=function(){for(var c=this.getWindows(),e=0;e<c.length;e++)null!=c[e]&&c[e].window.fit()};EditorUi.prototype.hideWindows=function(){for(var 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 |
t(B)}));else if(/(\.*<graphml )/.test(c))this.importGraphML(c,mxUtils.bind(this,function(B){this.spinner.stop();t(B)}));else if(Graph.fileSupport&&(new XMLHttpRequest).upload&&this.isRemoteFileFormat(c,e))this.isOffline()?(this.spinner.stop(),this.showError(mxResources.get("error"),mxResources.get("notInOffline"))):this.parseFile(g,mxUtils.bind(this,function(B){4==B.readyState&&(this.spinner.stop(),200<=B.status&&299>=B.status?t(B.responseText):this.handleError({message:mxResources.get(413==B.status?
"drawingTooLarge":"invalidOrMissingFile")},mxResources.get("errorLoadingFile")))}));else if(this.isLucidChartData(c))/(\.json)$/i.test(e)&&(e=e.substring(0,e.length-5)+".drawio"),this.convertLucidChart(c,mxUtils.bind(this,function(B){this.spinner.stop();this.openLocalFile(B,e,q)}),mxUtils.bind(this,function(B){this.spinner.stop();this.handleError(B)}));else if("<mxlibrary"==c.substring(0,10)){this.spinner.stop();null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.openLocalFile(this.emptyDiagramXml, | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
function(){return"simple"!=Editor.currentTheme};this.menus.isShowArrangeItems=this.menus.isShowStyleItems;this.menus.isShowCellEditItems=this.menus.isShowStyleItems}c.actions.get("print").funct=function(){c.showDialog((new PrintDialog(c)).container,360,null!=c.pages&&1<c.pages.length?470:390,!0,!0)};this.defaultFilename=mxResources.get("untitledDiagram");var S=e.getExportVariables;e.getExportVariables=function(){var K=S.apply(this,arguments),O=c.getCurrentFile();null!=O&&(K.filename=O.getTitle()); | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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=[];p.onsuccess=function(x){null==x.target.result?c(t):(t.push(x.target.result.value),x.target.result.continue())};p.onerror=e}catch(x){null!=e&&e(x)}}),e)};EditorUi.prototype.getDatabaseItemKeys=function(c,e,g){this.openDatabase(mxUtils.bind(this,function(q){try{g=g||"objects";var p=q.transaction([g],"readonly").objectStore(g).getAllKeys();p.onsuccess=function(){c(p.result)};p.onerror=e}catch(t){null!=e&&e(t)}}),e)};EditorUi.prototype.commentsSupported=function(){var c=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 |
return P==M||0==G.length?H(D,M):Q==U?N(D):L(D,M!=mxConstants.DIRECTION_NORTH&&M!=mxConstants.DIRECTION_WEST)}return S.apply(this,arguments)};e.getSubtree=function(D){var M=[D];!u(D)&&!d(D)||E(D)||e.traverse(D,!0,function(K,O){var V=null!=O&&e.isTreeEdge(O);V&&0>mxUtils.indexOf(M,O)&&M.push(O);(null==O||V)&&0>mxUtils.indexOf(M,K)&&M.push(K);return null==O||V});return M};var l=mxVertexHandler.prototype.init;mxVertexHandler.prototype.init=function(){l.apply(this,arguments);(u(this.state.cell)||d(this.state.cell))&&
!E(this.state.cell)&&0<this.graph.getOutgoingTreeEdges(this.state.cell).length&&(this.moveHandle=mxUtils.createImage(Editor.moveImage),this.moveHandle.setAttribute("title","Move Subtree"),this.moveHandle.style.position="absolute",this.moveHandle.style.cursor="pointer",this.moveHandle.style.width="24px",this.moveHandle.style.height="24px",this.graph.container.appendChild(this.moveHandle),mxEvent.addGestureListeners(this.moveHandle,mxUtils.bind(this,function(D){this.graph.graphHandler.start(this.state.cell,
mxEvent.getClientX(D),mxEvent.getClientY(D),this.graph.getSubtree(this.state.cell));this.graph.graphHandler.cellWasClicked=!0;this.graph.isMouseTrigger=mxEvent.isMouseEvent(D);this.graph.isMouseDown=!0;c.hoverIcons.reset();mxEvent.consume(D)})))};var n=mxVertexHandler.prototype.redrawHandles;mxVertexHandler.prototype.redrawHandles=function(){n.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= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
O.y||0<O.height)&&mxUtils.intersects(K,new mxRectangle(U.x,U.y+(O.y-O.height-1)*W+(0==O.y?U.height:0),U.width,1))&&(X="row-resize")),U=this.view.getState(this.model.getParent(U.cell))}null!=X&&L.setCursor(X)}}}),mouseUp:mxUtils.bind(this,function(K,U){m=h=n=t=null})})}this.cellRenderer.minSvgStrokeWidth=.1;this.cellRenderer.getLabelValue=function(K){var U=mxCellRenderer.prototype.getLabelValue.apply(this,arguments);K.view.graph.isHtmlLabel(K.cell)&&(1!=K.style.html?U=mxUtils.htmlEntities(U,!1):K.lastLabelValue!=
U&&(K.lastLabelValue=U,U=Graph.sanitizeHtml(U)));return U};if("undefined"!==typeof mxVertexHandler){this.setConnectable(!0);this.setDropEnabled(!0);this.setPanning(!0);this.setTooltips(!0);this.setAllowLoops(!0);this.allowAutoPanning=!0;this.constrainChildren=this.resetEdgesOnConnect=!1;this.constrainRelativeChildren=!0;this.graphHandler.scrollOnMove=!1;this.graphHandler.scaleGrid=!0;this.connectionHandler.setCreateTarget(!1);this.connectionHandler.insertBeforeSource=!0;this.connectionHandler.isValidSource= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
(c.innerHTML="Error loading page. <a>Please try refreshing.</a>",c.getElementsByTagName("a")[0].onclick=function(){mxLanguage="en";d(mxResources.getDefaultBundle(RESOURCE_BASE,mxLanguage)||mxResources.getSpecialBundle(RESOURCE_BASE,mxLanguage))})})};if(!App.isMainCalled)if(App.isMainCalled=!0,window.onerror=function(J,c,e,g,q){EditorUi.logError("Global: "+(null!=J?J:""),c,e,g,q,null,!0);null==window.console||EditorUi.isElectronApp?(mxLog.show(),mxLog.debug("Message:",J,"\nURL:",c,"\nLine:",e,"\nColumn:",
g,"\nError:",q)):console.error("Message:",J,"\nURL:",c,"\nLine:",e,"\nColumn:",g,"\nError:",q);window.setTimeout(function(){alert("Error: "+(null!=J?J:""))},100)},window.top!=window.self||"import.diagrams.net"!==window.location.hostname&&"ac.draw.io"!==window.location.hostname&&"aj.draw.io"!==window.location.hostname){if("1"==urlParams.embed||"1"==urlParams.lightbox){var u=document.getElementById("geInfo");null!=u&&u.parentNode.removeChild(u)}null!=document.referrer&&"aws3"==urlParams.libs&&"https://aws.amazon.com/architecture/icons/"== | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
k?k.getElementsByTagName("parsererror"):null;null!=k&&0<k.length&&(G=y||mxResources.get("invalidChars"),y=k[0].getElementsByTagName("div"),0<y.length&&(G=mxUtils.getTextContent(y[0])));return null!=G?mxUtils.trim(G):G};Editor.addRetryToError=function(k,y){null!=k&&(k=null!=k.error?k.error:k,null==k.retry&&(k.retry=y))};Editor.mermaidToDrawio=function(k,y,G){if("function"===typeof mxMermaidToDrawio)return mxMermaidToDrawio(k,y,G)};Editor.configure=function(k){if(null!=k){Editor.config=k;Editor.configVersion= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
return Editor.updateCRC(c,e,g,q)};EditorUi.prototype.crc32=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: crc32");return Editor.crc32(c)};EditorUi.prototype.writeGraphModelToPng=function(c,e,g,q,p){EditorUi.logEvent("SHOULD NOT BE CALLED: writeGraphModelToPng");return Editor.writeGraphModelToPng(c,e,g,q,p)};EditorUi.prototype.getLocalStorageFileNames=function(){if("1"==localStorage.getItem(".localStorageMigrated")&&"1"!=urlParams.forceMigration)return null;for(var c=[],e=0;e<localStorage.length;e++){var g= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
1024*t,B=Math.min(x+1024,g),I=Array(B-x),A=0;x<B;++A,++x)I[A]=c[x].charCodeAt(0);p[t]=new Uint8Array(I)}return new Blob(p,{type:e})};EditorUi.prototype.saveLocalFile=function(c,e,g,q,p,t,x,B){t=null!=t?t:!1;x=null!=x?x:"vsdx"!=p&&(!mxClient.IS_IOS||!navigator.standalone);p=this.getServiceCount(t);isLocalStorage&&p++;var I=4>=p?2:6<p?4:3;e=new CreateDialog(this,e,mxUtils.bind(this,function(A,S){try{if("_blank"==S)if(null!=g&&"image/"==g.substring(0,6))this.openInNewWindow(c,g,q);else if(null!=g&&"text/html"==
g.substring(0,9)){var l=new EmbedDialog(this,c);this.showDialog(l.container,450,240,!0,!0);l.init()}else{var n=window.open("about:blank");null==n?mxUtils.popup(c,!0):(n.document.write("<pre>"+mxUtils.htmlEntities(c,!1)+"</pre>"),n.document.close())}else S==App.MODE_DEVICE||"download"==S?this.doSaveLocalFile(c,A,g,q,null,B):null!=A&&0<A.length&&this.pickFolder(S,mxUtils.bind(this,function(z){try{this.exportFile(c,A,g,q,S,z)}catch(C){this.handleError(C)}}))}catch(z){this.handleError(z)}}),mxUtils.bind(this,
function(){this.hideDialog()}),mxResources.get("saveAs"),mxResources.get("download"),!1,t,x,null,1<p,I,c,g,q);t=this.isServices(p)?p>I?390:280:160;this.showDialog(e.container,420,t,!0,!0);e.init()};EditorUi.prototype.openInNewWindow=function(c,e,g){var q=window.open("about:blank");null==q||null==q.document?mxUtils.popup(c,!0):("image/svg+xml"!=e||mxClient.IS_SVG?"image/svg+xml"!=e||g?(c=g?c:btoa(unescape(encodeURIComponent(c))),q.document.write('<html><img style="max-width:100%;" src="data:'+e+";base64,"+ | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
sa.innerText=ja;fa.appendChild(sa);qa.appendChild(fa);mxEvent.addListener(fa,"click",function(){function La(){var ya=Ga.querySelector(".geTemplateDrawioCatLink");null!=ya?ya.click():setTimeout(La,200)}ha=!0;var Ga=O.querySelector(".geTemplatesList");Ga.style.display="block";Ba.style.width="";xa.style.display="";xa.value="";Z=null;La()});na.style.display=ia.length<=la?"none":""}function l(ia,aa,la){function ma(Ka,Xa){Ka=mxResources.get(Ka,null,Ka.substring(0,1).toUpperCase()+Ka.substring(1));var Pa= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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.diffCell=function(b,f){function m(E){return null!=E&&"object"===typeof E&&"number"===typeof E.nodeType&&"string"===typeof E.nodeName&&"function"===typeof E.getAttribute}var d={};b.vertex!=f.vertex&&(d.vertex=f.vertex?1:0);b.edge!=f.edge&&(d.edge=f.edge?1:0);b.connectable!=f.connectable&&(d.connectable=f.connectable?1:0);if((null!=b.parent?null==f.parent:null!=f.parent)||null!=b.parent&&null!=f.parent&&b.parent.getId()!=f.parent.getId())d.parent=null!=f.parent?f.parent.getId():""; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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(U,T,W,X,Y,Z){this.passThrough?this.originalRoundrect.apply(this.canvas,arguments):(this.begin(),this.moveTo(U+Y,T),this.lineTo(U+W-Y,T),this.quadTo(U+W,T,U+W,T+Z),this.lineTo(U+W,T+X-Z),this.quadTo(U+W,T+X,U+W-Y,T+X),this.lineTo(U+Y,T+X),this.quadTo(U,T+X,U,T+X-Z),this.lineTo(U,T+Z),this.quadTo(U,T,U+Y,T))};k.prototype.drawPath=function(U){if(0<this.path.length){this.passThrough=!0;try{this.rc.path(this.path.join(" "),U)}catch(W){}this.passThrough=!1}else if(null!=this.nextShape){for(var T in U)this.nextShape.options[T]=
U[T];U.stroke!=mxConstants.NONE&&null!=U.stroke||delete this.nextShape.options.stroke;U.filled||delete this.nextShape.options.fill;this.passThrough=!0;this.rc.draw(this.nextShape);this.passThrough=!1}};k.prototype.stroke=function(){this.passThrough?this.originalStroke.apply(this.canvas,arguments):this.drawPath(this.getStyle(!0,!1))};k.prototype.fill=function(){this.passThrough?this.originalFill.apply(this.canvas,arguments):this.drawPath(this.getStyle(!1,!0))};k.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 |
(ja?"geTempDlgRadioBtnLarge":"geTempDlgRadioBtnSmall");O.querySelector("."+aa).src="/images/"+la+"-sel.svg";O.querySelector("."+oa).src="/images/"+fa+".svg";return!0}function t(ia,aa,la,ma){function oa(ta,La){null==ja?(ta=/^https?:\/\//.test(ta)&&!b.editor.isCorsEnabledForUrl(ta)?PROXY_URL+"?url="+encodeURIComponent(ta):TEMPLATE_PATH+"/"+ta,mxUtils.get(ta,mxUtils.bind(this,function(Ga){200<=Ga.getStatus()&&299>=Ga.getStatus()&&(ja=Ga.getText());La(ja)}))):La(ja)}function fa(ta,La,Ga){if(null!=ta&&
mxUtils.isAncestorNode(document.body,aa)&&(ta=mxUtils.parseXml(ta),ta=Editor.extractGraphModel(ta.documentElement,!0),null!=ta)){"mxfile"==ta.nodeName&&(ta=Editor.parseDiagramNode(ta.getElementsByTagName("diagram")[0]));var ya=new mxCodec(ta.ownerDocument),Ja=new mxGraphModel;ya.decode(ta,Ja);ta=Ja.root.getChildAt(0).children||[];b.sidebar.createTooltip(aa,ta,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!=ia.title?mxResources.get(ia.title,null,ia.title):null,!0,new mxPoint(La,Ga),!0,null,!0);var Ma=document.createElement("div");Ma.className="geTempDlgDialogMask";O.appendChild(Ma);var ra=b.sidebar.hideTooltip;b.sidebar.hideTooltip=function(){Ma&&(O.removeChild(Ma),Ma=null,ra.apply(this,arguments),b.sidebar.hideTooltip=ra)};mxEvent.addListener(Ma,"click",function(){b.sidebar.hideTooltip()})}}var ja=null;if(pa||b.sidebar.currentElt==aa)b.sidebar.hideTooltip();
else{var sa=function(ta){pa&&b.sidebar.currentElt==aa&&fa(ta,mxEvent.getClientX(ma),mxEvent.getClientY(ma));pa=!1;la.src="/images/icon-search.svg"};b.sidebar.hideTooltip();b.sidebar.currentElt=aa;pa=!0;la.src="/images/aui-wait.gif";ia.isExt?L(ia,sa,function(){g(mxResources.get("cantLoadPrev"));pa=!1;la.src="/images/icon-search.svg"}):oa(ia.url,sa)}}function x(ia,aa,la){if(null!=P){for(var ma=P.className.split(" "),oa=0;oa<ma.length;oa++)if(-1<ma[oa].indexOf("Active")){ma.splice(oa,1);break}P.className= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
return P};Editor.getDiagramNodeXml=function(k){var y=mxUtils.getTextContent(k),G=null;0<y.length?G=Graph.decompress(y):null!=k.firstChild&&(G=mxUtils.getXml(k.firstChild));return G};Editor.extractGraphModelFromPdf=function(k){k=k.substring(k.indexOf(",")+1);k=window.atob&&!mxClient.IS_SF?atob(k):Base64.decode(k,!0);if("%PDF-1.7"==k.substring(0,8)){var y=k.indexOf("EmbeddedFile");if(-1<y){var G=k.indexOf("stream",y)+9;if(0<k.substring(y,G).indexOf("application#2Fvnd.jgraph.mxfile"))return y=k.indexOf("endstream",
G-1),pako.inflateRaw(Graph.stringToArrayBuffer(k.substring(G,y)),{to:"string"})}return null}G=null;y="";for(var P=0,Q=0,U=[],T=null;Q<k.length;){var W=k.charCodeAt(Q);Q+=1;10!=W&&(y+=String.fromCharCode(W));W=="/Subject (%3Cmxfile".charCodeAt(P)?P++:P=0;if(19==P){var X=k.indexOf("%3C%2Fmxfile%3E)",Q)+15;Q-=9;if(X>Q){G=k.substring(Q,X);break}}10==W&&("endobj"==y?T=null:"obj"==y.substring(y.length-3,y.length)||"xref"==y||"trailer"==y?(T=[],U[y.split(" ")[0]]=T):null!=T&&T.push(y),y="")}null==G&&(G=
Editor.extractGraphModelFromXref(U));null!=G&&(G=decodeURIComponent(G.replace(/\\\(/g,"(").replace(/\\\)/g,")")));return G};Editor.extractGraphModelFromXref=function(k){var y=k.trailer,G=null;null!=y&&(y=/.* \/Info (\d+) (\d+) R/g.exec(y.join("\n")),null!=y&&0<y.length&&(y=k[y[1]],null!=y&&(y=/.* \/Subject (\d+) (\d+) R/g.exec(y.join("\n")),null!=y&&0<y.length&&(k=k[y[1]],null!=k&&(k=k.join("\n"),G=k.substring(1,k.length-1))))));return G};Editor.extractParserError=function(k,y){var G=null;k=null!= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
"keys",Da,"values",Ta,"cells",ca.getSelectionCells()))}finally{ca.getModel().endUpdate()}}function Q(pa,ua,va){var Ea=mxUtils.getOffset(k,!0),Da=mxUtils.getOffset(pa,!0);ua.style.position="absolute";ua.style.left=Da.x-Ea.x+"px";ua.style.top=Da.y-Ea.y+"px";ua.style.width=pa.offsetWidth+"px";ua.style.height=pa.offsetHeight-(va?4:0)+"px";ua.style.zIndex=5}function U(pa,ua,va){var Ea=document.createElement("div");Ea.style.width="32px";Ea.style.height="4px";Ea.style.margin="2px";Ea.style.border="1px solid black"; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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?(M=e.getOutgoingTreeEdges(D),null!=M&&0<M.length&&e.setSelectionCell(e.model.getTerminal(M[0],!1))):(K=e.getIncomingTreeEdges(D),null!=K&&0<K.length&&(O=R(e.model.getTerminal(K[0],!0),O,D),D=e.view.getState(D),null!=D&&(D=mxUtils.indexOf(O,D),0<=D&&(D+=M==mxConstants.DIRECTION_NORTH||M==mxConstants.DIRECTION_WEST?-1:1,0<=D&&D<=O.length-1&&e.setSelectionCell(O[D].cell)))))}var c=this,e=c.editor.graph,g=e.getModel(),q=c.menus.createPopupMenu;c.menus.createPopupMenu=function(D,M,K){q.apply(this,arguments);
if(1==e.getSelectionCount()){M=e.getSelectionCell();var O=e.getOutgoingTreeEdges(M);D.addSeparator();0<O.length&&(d(e.getSelectionCell())&&this.addMenuItems(D,["selectChildren"],null,K),this.addMenuItems(D,["selectDescendants"],null,K));d(e.getSelectionCell())?(D.addSeparator(),0<e.getIncomingTreeEdges(M).length&&this.addMenuItems(D,["selectSiblings","selectParent"],null,K)):0<e.model.getEdgeCount(M)&&this.addMenuItems(D,["selectConnections"],null,K)}};c.actions.addAction("selectChildren",function(D){if(e.isEnabled()&& | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
function mxDualRuler(b,f){var m=new mxPoint(mxRuler.prototype.RULER_THICKNESS,mxRuler.prototype.RULER_THICKNESS);this.editorUiGetDiagContOffset=b.getDiagramContainerOffset;b.getDiagramContainerOffset=function(){return m};this.editorUiRefresh=b.refresh;this.ui=b;this.origGuideMove=mxGuide.prototype.move;this.origGuideDestroy=mxGuide.prototype.destroy;this.vRuler=new mxRuler(b,f,!0);this.hRuler=new mxRuler(b,f,!1,!0);f=mxUtils.bind(this,function(d){var u=!1;mxEvent.addGestureListeners(d,mxUtils.bind(this,
function(v){u=null!=b.currentMenu;mxEvent.consume(v)}),null,mxUtils.bind(this,function(v){if(b.editor.graph.isEnabled()&&!b.editor.graph.isMouseDown&&(mxEvent.isTouchEvent(v)||mxEvent.isPopupTrigger(v))){b.editor.graph.popupMenuHandler.hideMenu();b.hideCurrentMenu();if(!mxEvent.isTouchEvent(v)||!u){var E=new mxPopupMenu(mxUtils.bind(this,function(N,H){b.menus.addMenuItems(N,["points","inches","millimeters","meters"],H)}));E.div.className+=" geMenubarMenu";E.smartSeparators=!0;E.showDisabled=!0;E.autoExpand=
!0;E.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(E,arguments);b.resetCurrentMenu();E.destroy()});var F=mxEvent.getClientX(v),L=mxEvent.getClientY(v);E.popup(F,L,null,v);b.setCurrentMenu(E,d)}mxEvent.consume(v)}}))});f(this.hRuler.container);f(this.vRuler.container);this.vRuler.drawRuler();this.hRuler.drawRuler()}mxDualRuler.prototype.updateStyle=function(){this.vRuler.updateStyle();this.hRuler.updateStyle();this.vRuler.drawRuler();this.hRuler.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 |
function(c){var e=this.editor.graph.view.scale,g=this.editor.graph.view.translate,q=mxUtils.getOffset(this.diagramContainer);this.diagramContainer.scrollLeft=c.x+q.x+(g.x-c.tx)*e;this.diagramContainer.scrollTop=c.y+q.y+(g.y-c.ty)*e};EditorUi.prototype.setInlineFullscreen=function(c){Editor.inlineFullscreen!=c&&(this.diagramContainer.setAttribute("data-scrollState",JSON.stringify(this.saveScrollState())),(window.opener||window.parent).postMessage(JSON.stringify({event:"resize",fullscreen:c,rect:this.diagramContainer.getBoundingClientRect()}), | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
!navigator.onLine||!c&&("1"==urlParams.stealth||"1"==urlParams.lockdown)};EditorUi.prototype.isExternalDataComms=function(){return"1"!=urlParams.offline&&!this.isOffline()&&!this.isOfflineApp()};EditorUi.prototype.createSpinner=function(c,e,g){var q=null==c||null==e;g=null!=g?g:24;var p=new Spinner({lines:12,length:g,width:Math.round(g/3),radius:Math.round(g/2),rotate:0,color:Editor.isDarkMode()?"#c0c0c0":"#000",speed:1.5,trail:60,shadow:!1,hwaccel:!1,zIndex:2E9}),t=p.spin;p.spin=function(B,I){var A=
!1;this.active||(t.call(this,B),this.active=!0,null!=I&&(q&&(e=Math.max(document.body.clientHeight||0,document.documentElement.clientHeight||0)/2,c=document.body.clientWidth/2-2),A=document.createElement("div"),A.style.position="absolute",A.style.whiteSpace="nowrap",A.style.background="#4B4243",A.style.color="white",A.style.fontFamily=Editor.defaultHtmlFont,A.style.fontSize="9pt",A.style.padding="6px",A.style.paddingLeft="10px",A.style.paddingRight="10px",A.style.zIndex=2E9,A.style.left=Math.max(0,
c)+"px",A.style.top=Math.max(0,e+70)+"px",mxUtils.setPrefixedStyle(A.style,"borderRadius","6px"),mxUtils.setPrefixedStyle(A.style,"transform","translate(-50%,-50%)"),Editor.isDarkMode()||mxUtils.setPrefixedStyle(A.style,"boxShadow","2px 2px 3px 0px #ddd"),"..."!=I.substring(I.length-3,I.length)&&"!"!=I.charAt(I.length-1)&&(I+="..."),A.innerHTML=I,B.appendChild(A),p.status=A),this.pause=mxUtils.bind(this,function(){var S=function(){};this.active&&(S=mxUtils.bind(this,function(){this.spin(B,I)}));this.stop();
return S}),A=!0);return A};var x=p.stop;p.stop=function(){x.call(this);this.active=!1;null!=p.status&&null!=p.status.parentNode&&p.status.parentNode.removeChild(p.status);p.status=null};p.pause=function(){return function(){}};return p};EditorUi.prototype.isCompatibleString=function(c){try{var e=mxUtils.parseXml(c),g=this.editor.extractGraphModel(e.documentElement,!0);return null!=g&&0==g.getElementsByTagName("parsererror").length}catch(q){}return!1};EditorUi.prototype.isVisioData=function(c){return 8< | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
if(null!=y&&(null!=y&&"<"!=y.charAt(0)&&"%"!=y.charAt(0)&&(y=unescape(window.atob?atob(y):Base64.decode(cont,y))),null!=y&&"%"==y.charAt(0)&&(y=decodeURIComponent(y)),null!=y&&0<y.length)){var G=mxUtils.parseXml(y).documentElement;return"mxfile"==G.nodeName||"mxGraphModel"==G.nodeName}}catch(P){}return!1};Editor.prototype.extractGraphModel=function(k,y,G){return Editor.extractGraphModel.apply(this,arguments)};var m=Editor.prototype.resetGraph;Editor.prototype.resetGraph=function(){this.graph.mathEnabled=
"1"==urlParams.math;this.graph.view.x0=null;this.graph.view.y0=null;this.graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&this.graph.isCssTransformsSupported();this.graph.updateCssTransform();m.apply(this,arguments)};var d=Editor.prototype.updateGraphComponents;Editor.prototype.updateGraphComponents=function(){d.apply(this,arguments);this.graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&this.graph.isCssTransformsSupported();this.graph.updateCssTransform()};Editor.initMath= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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,G,P){for(var Q=0;Q<P;Q++)k=Editor.crcTable[(k^y.charCodeAt(G+Q))&255]^k>>>8;return k};Editor.crc32=function(k){for(var y=-1,G=0;G<k.length;G++)y=y>>>8^Editor.crcTable[(y^k.charCodeAt(G))&255];return(y^-1)>>>0};Editor.writeGraphModelToPng=function(k,y,G,P,Q){function U(Z,ca){var ha=X;X+=ca;return Z.substring(ha,X)}function T(Z){Z=U(Z,4);return Z.charCodeAt(3)+(Z.charCodeAt(2)<<8)+(Z.charCodeAt(1)<<16)+(Z.charCodeAt(0)<<24)}function W(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:Ta,isDeletable:!0,flipBkg:Ia}));btn=mxUtils.button("+",mxUtils.bind(Z,function(Sa){for(var Ha=Ta,Va=0;null!=Ha.nextSibling;)if(Ha.nextSibling.getAttribute("data-pName")==pa)Ha=Ha.nextSibling,Va++;else break;var Ua={type:va,parentRow:Ta,index:Va,isDeletable:!0,defVal:Ea,countProperty:Da};Va=Y(pa,"",Ua,0==Va%2,Ia);P(pa,Ea,Ua);Ha.parentNode.insertBefore(Va,Ha.nextSibling);mxEvent.consume(Sa)}));btn.style.height="16px";btn.style.width="25px";btn.className="geColorBtn";return btn}function W(pa,
ua,va,Ea,Da,Ta,Ia){if(0<Da){var Sa=Array(Da);ua=null!=ua?ua.split(","):[];for(var Ha=0;Ha<Da;Ha++)Sa[Ha]=null!=ua[Ha]?ua[Ha]:null!=Ea?Ea:"";ha.push({name:pa,values:Sa,type:va,defVal:Ea,parentRow:Ta,flipBkg:Ia,size:Da})}return document.createElement("div")}function X(pa,ua,va){var Ea=document.createElement("input");Ea.type="checkbox";Ea.checked="1"==ua;mxEvent.addListener(Ea,"change",function(){P(pa,Ea.checked?"1":"0",va)});return Ea}function Y(pa,ua,va,Ea,Da){var Ta=va.dispName,Ia=va.type,Sa=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 |
function(){return this.openLink("mailto:"+mxUtils.htmlEntities(I.ownerEmail))}));this.showError(e,x,A,g,S,null,null,t,n,null,null,null,q?g:null)}else null!=g&&g()};EditorUi.prototype.alert=function(c,e,g){c=new ErrorDialog(this,null,c,mxResources.get("ok"),e);this.showDialog(c.container,g||340,100,!0,!1);c.init()};EditorUi.prototype.confirm=function(c,e,g,q,p,t){c=null!=c?c:"";var x=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},B=Math.min(220,28*Math.ceil(Math.max(1, | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
mxUtils.bind(this,function(){this.window.fit()}));this.window.addListener("hide",mxUtils.bind(this,function(){E.freehand.isDrawing()&&E.freehand.stopDrawing()}));b.installResizeHandler(this,!1)},TagsWindow=function(b,f,m,d,u){var v=b.editor.graph,E=b.editor.graph.createTagsDialog(mxUtils.bind(this,function(){return this.window.isVisible()}),null,function(L,N){if(v.isEnabled()){var H=new FilenameDialog(b,"",mxResources.get("add"),function(R){b.hideDialog();if(null!=R&&0<R.length){R=R.split(" ");for(var J=
[],c=0;c<R.length;c++){var e=mxUtils.trim(R[c]);""!=e&&0>mxUtils.indexOf(L,e)&&J.push(e)}0<J.length&&(v.isSelectionEmpty()?N(L.concat(J)):v.addTagsForCells(v.getSelectionCells(),J))}},mxResources.get("enterValue")+" ("+mxResources.get("tags")+")");b.showDialog(H.container,300,80,!0,!0);H.init()}}),F=E.div;this.window=new mxWindow(mxResources.get("tags"),F,f,m,d,u,!0,!0);this.window.minimumSize=new mxRectangle(0,0,212,120);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);
this.window.setClosable(!0);this.window.addListener("show",mxUtils.bind(this,function(){E.refresh();this.window.fit()}));b.installResizeHandler(this,!0)},AuthDialog=function(b,f,m,d){var u=document.createElement("div");u.style.textAlign="center";var v=document.createElement("p");v.style.fontSize="16pt";v.style.padding="0px";v.style.margin="0px";v.style.color="gray";mxUtils.write(v,mxResources.get("authorizationRequired"));var E="Unknown",F=document.createElement("img");F.setAttribute("border","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 |
parentChildSpacing:parseInt(G.value),siblingSpacing:parseInt(P.value)}}];d.hideDialog();d.showCustomLayoutDialog(JSON.stringify(Q,null,2))});O.className="geBtn";K=new CustomDialog(d,K,function(){null==z&&(z=2);d.loadOrgChartLayouts(M)},null,null,null,O);d.showDialog(K.container,355,140,!0,!0)},n,null,v());l.addSeparator(n);l.addItem(mxResources.get("parallels"),null,mxUtils.bind(this,function(){d.tryAndHandle(mxUtils.bind(this,function(){var z=new mxParallelEdgeLayout(u);z.checkOverlap=!0;d.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 |
mxUtils.bind(this,function(Na){P=b.sidebar.currentElt==ra}),null,null),mxEvent.addListener(fa,"click",mxUtils.bind(this,function(Na){P||Ma(Na,null!=ma?ma:oa);mxEvent.consume(Na)})));da.appendChild(ra);return ra}function l(){function aa(ra,Fa){ra=mxResources.get(ra,null,ra.substring(0,1).toUpperCase()+ra.substring(1));18<ra.length&&(ra=ra.substring(0,18)+"…");return ra+(null!=Fa?" ("+Fa.length+")":"")}function la(ra,Fa,Ka){mxEvent.addListener(Fa,"click",function(){Ia!=Fa&&(Ia.style.backgroundColor=
"",Ia=Fa,Ia.style.backgroundColor=E,da.scrollTop=0,da.innerText="",K=0,null!=ua[ra].content?(da.appendChild(ua[ra].content),na=ba,Ha=null,null!=ua[ra].content.init&&ua[ra].content.init()):(Ha=Ka?va[ra][Ka]:ua[ra],U=null,t(!1)))});null!=urlParams["smart-template"]&&"smartTemplate"==ra&&Fa.click()}Ta&&(Ta=!1,mxEvent.addListener(da,"scroll",function(ra){da.scrollTop+da.clientHeight>=da.scrollHeight&&(t(),mxEvent.consume(ra))}));if(0<Da){var ma=document.createElement("div");ma.style.cssText="font-weight: bold;background: #f9f9f9;padding: 5px 0 5px 0;text-align: center;"; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
this.editor.addFontCss(c,this.editor.resolvedFontCss),this.editor.embedExtFonts(mxUtils.bind(this,function(g){try{null!=g&&this.editor.addFontCss(c,g),e(c)}catch(q){e(c)}}))}catch(g){e(c)}}))};EditorUi.prototype.exportImage=function(c,e,g,q,p,t,x,B,I,A,S,l,n){I=null!=I?I:"png";if(this.spinner.spin(document.body,mxResources.get("exporting"))){var z=this.editor.graph.isSelectionEmpty();g=null!=g?g:z;null==this.thumbImageCache&&(this.thumbImageCache={});try{this.editor.exportToCanvas(mxUtils.bind(this,
function(C){this.spinner.stop();try{this.saveCanvas(C,p?this.getFileData(!0,null,null,null,g,B):null,I,null==this.pages||0==this.pages.length,S)}catch(D){this.handleError(D)}}),null,this.thumbImageCache,null,mxUtils.bind(this,function(C){this.spinner.stop();this.handleError(C)}),null,g,c||1,e,q,null,null,t,x,A,l,n)}catch(C){this.spinner.stop(),this.handleError(C)}}};EditorUi.prototype.isCorsEnabledForUrl=function(c){return this.editor.isCorsEnabledForUrl(c)};EditorUi.prototype.importXml=function(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 |
EditorUi.prototype.diffPage=function(b,f){var m=[],d=[],u={};this.updatePageRoot(b);this.updatePageRoot(f);f=this.createCellLookup(f.root);var v=this.diffCellRecursive(b.root,null,f,v,d),E;for(E in f)b=f[E],m.push(this.getJsonForCell(b.cell,b.prev));mxUtils.isEmptyObject(v)||(u[EditorUi.DIFF_UPDATE]=v);0<d.length&&(u[EditorUi.DIFF_REMOVE]=d);0<m.length&&(u[EditorUi.DIFF_INSERT]=m);return 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 |
mxUtils.bind(this,function(){function l(K){return null==K||null==K.boundingBox||!isNaN(K.boundingBox.x)&&!isNaN(K.boundingBox.y)&&!isNaN(K.boundingBox.width)&&!isNaN(K.boundingBox.height)}var n=u.getGraphBounds(),z=u.view.translate,C=u.view.scale;u.insertVertex(u.getDefaultParent(),null,"",n.x/C-z.x,n.y/C-z.y,n.width/C,n.height/C,"fillColor=none;strokeColor=red;");var D=0,M=0;u.view.states.visit(function(K,O){K=!0;l(O.shape)||(console.log("invalid shape",O.cell.id,O.shape),K=!1);l(O.text)||(console.log("invalid text", | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
null,x,mxResources.get("cancel"),mxResources.get("discardChanges")):x()})));else throw Error(mxResources.get("notADiagramFile"));};EditorUi.prototype.getBasenames=function(){var c={};if(null!=this.pages)for(var e=0;e<this.pages.length;e++)this.updatePageRoot(this.pages[e]),this.addBasenamesForCell(this.pages[e].root,c);else this.addBasenamesForCell(this.editor.graph.model.getRoot(),c);e=[];for(var g in c)e.push(g);return e};EditorUi.prototype.addBasenamesForCell=function(c,e){function g(x){if(null!=
x){var B=x.lastIndexOf(".");0<B&&(x=x.substring(B+1,x.length));null==e[x]&&(e[x]=!0)}}var q=this.editor.graph,p=q.getCellStyle(c);g(mxStencilRegistry.getBasenameForStencil(p[mxConstants.STYLE_SHAPE]));q.model.isEdge(c)&&(g(mxMarker.getPackageForType(p[mxConstants.STYLE_STARTARROW])),g(mxMarker.getPackageForType(p[mxConstants.STYLE_ENDARROW])));p=q.model.getChildCount(c);for(var t=0;t<p;t++)this.addBasenamesForCell(q.model.getChildAt(c,t),e)};EditorUi.prototype.setGraphEnabled=function(c){this.diagramContainer.style.visibility= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
Graph.customFontElements={};Graph.recentCustomFonts={};Graph.isGoogleFontUrl=function(k){return k.substring(0,Editor.GOOGLE_FONTS.length)==Editor.GOOGLE_FONTS};Graph.isCssFontUrl=function(k){return Graph.isGoogleFontUrl(k)};Graph.createFontElement=function(k,y){var G=Graph.fontMapping[y];null==G&&Graph.isCssFontUrl(y)?(k=document.createElement("link"),k.setAttribute("rel","stylesheet"),k.setAttribute("type","text/css"),k.setAttribute("charset","UTF-8"),k.setAttribute("href",y)):(null==G&&(G='@font-face {\nfont-family: "'+ | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
"").replace(/ (NS xml|\S*):space="preserve"/g,' xml:space="preserve"');var A=mxUtils.parseXml(I).getElementsByTagName("svg");if(0<A.length&&"error"!=A[0].getAttribute("aria-roledescription")){var S=parseFloat(A[0].getAttribute("width")),l=parseFloat(A[0].getAttribute("height"));if(isNaN(S)||isNaN(l))try{var n=A[0].getAttribute("viewBox").split(/\s+/);S=parseFloat(n[2]);l=parseFloat(n[3])}catch(z){S=S||100,l=l||100}g(this.convertDataUri(Editor.createSvgDataUri(I)),S,l)}else null!=p?p():q({message:mxResources.get("invalidInput")})}catch(z){q(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 |
!1,!1),d.pdfPageExport||mxEvent.addListener(P,"change",C);C=!mxClient.IS_CHROMEAPP&&!EditorUi.isElectronApp&&"draw.io"==d.getServiceName();var T=null,W=null;if(EditorUi.isElectronApp||C)W=d.addCheckbox(n,mxResources.get("includeCopyOfMyDiagram"),Editor.defaultIncludeDiagram),z+=30;C&&(T=d.addCheckbox(n,mxResources.get("transparentBackground"),!1),z+=30);n=new CustomDialog(d,n,mxUtils.bind(this,function(){var X=null;if(!l){X=parseInt(k.value);var Y=parseInt(G.value);X=O.checked||X==M&&Y==M?null:{from:Math.max(0,
Math.min(D-1,X-1)),to:Math.max(0,Math.min(D-1,Y-1))}}d.downloadFile("pdf",null,null,!P.checked,l?!0:!O.checked&&null==X,!Q.checked,null!=T&&T.checked,null,null,U.checked,null!=W&&W.checked,X)}),null,mxResources.get("export"));d.showDialog(n.container,300,z,!0,!0)}else d.showDialog((new PrintDialog(d,mxResources.get("formatPdf"))).container,360,null!=d.pages&&1<d.pages.length&&(d.editor.editable||"1"!=urlParams["hide-pages"])?470:390,!0,!0)}));d.actions.addAction("open...",function(){d.pickFile()}); | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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.getWindows=function(){var c=[this.sidebarWindow,this.formatWindow,this.freehandWindow];null!=this.actions&&(c=c.concat([this.actions.outlineWindow,this.actions.layersWindow]));null!=this.menus&&(c=c.concat([this.menus.tagsWindow,this.menus.findWindow,this.menus.findReplaceWindow,this.menus.commentsWindow]));return c};EditorUi.prototype.fitWindows=function(){for(var c=this.getWindows(),e=0;e<c.length;e++)null!=c[e]&&c[e].window.fit()};EditorUi.prototype.hideWindows=function(){for(var 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.div.style.left=Math.max(0,parseInt(this.div.style.left)-c+140)+"px");this.fit()};mxEvent.addListener(this.formatWindow.window.title,"dblclick",mxUtils.bind(this,function(e){mxEvent.getSource(e)==this.formatWindow.window.title&&this.formatWindow.window.toggleMinimized()}))}};var R=EditorUi.prototype.init;EditorUi.prototype.init=function(){function J(W,X,Y){var Z=t.menus.get(W),ca=A.addMenu(mxResources.get(W),mxUtils.bind(this,function(){Z.funct.apply(this,arguments)}),I);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(W));t.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 c(W,X,Y,Z,ca,ha){var na=document.createElement("a");na.className="geMenuItem";na.style.display="inline-block";na.style.boxSizing="border-box";na.style.height="30px";na.style.padding="6px";na.style.position="relative";na.style.verticalAlign="top";na.style.top="0px";null!=t.statusContainer?B.insertBefore(na, | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
function(c,e,g,q,p){this.openDatabase(mxUtils.bind(this,function(t){try{p=p||"objects";Array.isArray(p)||(p=[p],c=[c],e=[e]);var x=t.transaction(p,"readwrite");x.oncomplete=g;x.onerror=q;for(t=0;t<p.length;t++)x.objectStore(p[t]).put(null!=c&&null!=c[t]?{key:c[t],data:e[t]}:e[t])}catch(B){null!=q&&q(B)}}),q)};EditorUi.prototype.removeDatabaseItem=function(c,e,g,q){this.openDatabase(mxUtils.bind(this,function(p){q=q||"objects";Array.isArray(q)||(q=[q],c=[c]);p=p.transaction(q,"readwrite");p.oncomplete=
e;p.onerror=g;for(var t=0;t<q.length;t++)p.objectStore(q[t]).delete(c[t])}),g)};EditorUi.prototype.getDatabaseItem=function(c,e,g,q){this.openDatabase(mxUtils.bind(this,function(p){try{q=q||"objects";var t=p.transaction([q],"readonly").objectStore(q).get(c);t.onsuccess=function(){e(t.result)};t.onerror=g}catch(x){null!=g&&g(x)}}),g)};EditorUi.prototype.getDatabaseItems=function(c,e,g){this.openDatabase(mxUtils.bind(this,function(q){try{g=g||"objects";var p=q.transaction([g],"readonly").objectStore(g).openCursor(IDBKeyRange.lowerBound(0)), | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
e)};EditorUi.prototype.embedExtFonts=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: embedExtFonts");return this.editor.embedExtFonts(c)};EditorUi.prototype.exportToCanvas=function(c,e,g,q,p,t,x,B,I,A,S,l,n,z,C,D){EditorUi.logEvent("SHOULD NOT BE CALLED: exportToCanvas");return this.editor.exportToCanvas(c,e,g,q,p,t,x,B,I,A,S,l,n,z,C,D)};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 |
function(c,e){var g=this.getCurrentFile();null!=g&&g.getRevisions?g.getRevisions(c,e):e({message:mxResources.get("unknownError")})};EditorUi.prototype.isRevisionHistoryEnabled=function(){var c=this.getCurrentFile();return null!=c&&(c.constructor==DriveFile&&c.isEditable()||c.constructor==DropboxFile)};EditorUi.prototype.getServiceName=function(){return"draw.io"};EditorUi.prototype.addRemoteServiceSecurityCheck=function(c){c.setRequestHeader("Content-Language","da, mi, en, de-DE")};EditorUi.prototype.loadUrl= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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(U,T,W,X,Y,Z){this.passThrough?this.originalRoundrect.apply(this.canvas,arguments):(this.begin(),this.moveTo(U+Y,T),this.lineTo(U+W-Y,T),this.quadTo(U+W,T,U+W,T+Z),this.lineTo(U+W,T+X-Z),this.quadTo(U+W,T+X,U+W-Y,T+X),this.lineTo(U+Y,T+X),this.quadTo(U,T+X,U,T+X-Z),this.lineTo(U,T+Z),this.quadTo(U,T,U+Y,T))};k.prototype.drawPath=function(U){if(0<this.path.length){this.passThrough=!0;try{this.rc.path(this.path.join(" "),U)}catch(W){}this.passThrough=!1}else if(null!=this.nextShape){for(var T in U)this.nextShape.options[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 |
App.prototype.start=function(){try{var b=this;null!=this.bg&&null!=this.bg.parentNode&&this.bg.parentNode.removeChild(this.bg);this.restoreLibraries();this.spinner.stop();window.onerror=function(v,E,F,L,N){"ResizeObserver loop limit exceeded"!=v&&(EditorUi.logError("Uncaught: "+(null!=v?v:""),E,F,L,N,null,!0),b.handleError({message:v},mxResources.get("unknownError"),null,null,null,null,!0))};if("1"!=urlParams.client&&"1"!=urlParams.embed){try{isLocalStorage&&window.addEventListener("storage",mxUtils.bind(this, | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
mxscript("https://apis.google.com/js/api.js?onload=DrawGapiClientCallback",null,null,null,mxClient.IS_SVG):"undefined"===typeof window.gapi&&(window.DriveClient=null)}"0"!=urlParams.math&&Editor.initMath();if("1"==urlParams.configure){var N=window.opener||window.parent,H=function(J){if(J.source==N)try{var c=JSON.parse(J.data);null!=c&&"configure"==c.action&&(mxEvent.removeListener(window,"message",H),Editor.configure(c.config),mxSettings.load(),c.colorSchemeMeta&&mxmeta("color-scheme","dark light"),
m())}catch(e){null!=window.console&&console.log("Error in configure message: "+e,J.data)}};mxEvent.addListener(window,"message",H);N.postMessage(JSON.stringify({event:"configure"}),"*")}else{if(null==Editor.config){if(null!=window.DRAWIO_CONFIG)try{EditorUi.debug("Using global configuration",window.DRAWIO_CONFIG),Editor.configure(window.DRAWIO_CONFIG),mxSettings.load()}catch(J){null==window.console||EditorUi.isElectronApp?(mxLog.show(),mxLog.debug(J.stack)):console.error(J)}if(isLocalStorage&&null!= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
0;ja<ta.length;ja++)oa=ta[ja],0==fa==(null==la[oa.url])&&(Ga[oa.url]=!0,La.push(oa));la=Ga;fa++}0==La.length?za.innerText=mxResources.get("noResultsFor",[ia]):A(La,!0)}}function D(ia){if(Z!=ia||T!=ca)q(),Ba.scrollTop=0,ea.innerText="",za.innerText=mxResources.get("searchResults")+' "'+ia+'"',Ua=null,ha?C(ia):F&&(ia?(Qa.spin(ea),k=!1,V=!0,F(ia,Va,function(){g(mxResources.get("searchFailed"));Va([])},T?null:v)):z(T)),Z=ia,ca=T}function M(ia){null!=Ua&&clearTimeout(Ua);13==ia.keyCode?D(xa.value):Ua=
setTimeout(function(){D(xa.value)},1E3)}var K='<div class="geTempDlgHeader"><img src="/images/draw.io-logo.svg" class="geTempDlgHeaderLogo"><input type="search" class="geTempDlgSearchBox" '+(F?"":'style="display: none"')+' placeholder="'+mxResources.get("search")+'"></div><div class="geTemplatesList" style="display: none"><div class="geTempDlgBack">< '+mxResources.get("back")+'</div><div class="geTempDlgHLine"></div><div class="geTemplatesLbl">'+mxResources.get("templates")+'</div></div><div class="geTempDlgContent" style="width: 100%"><div class="geTempDlgNewDiagramCat"><div class="geTempDlgNewDiagramCatLbl">'+ | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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(t){return mxEvent.getSource(t)==g?!0:p.apply(this,arguments)}};EditorUi.prototype.setCurrentTheme=function(c,e){mxSettings.setUi(c);(e=this.doSetCurrentTheme(c)||e)||this.alert(mxResources.get("restartForChangeRequired"))};EditorUi.prototype.isDefaultTheme=function(c){return""==c||"dark"==c||"default"==c||"kennedy"==c||null==c};EditorUi.prototype.doSetCurrentTheme=function(c,e,g){function q(I){return"simple"==I||0==e&&"sketch"==I}e=null!=e?e:150;var p=Editor.currentTheme,t=q(p)&&this.isDefaultTheme(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 |
!1;v.connectionHandler.createEdgeState=function(g){g=v.createEdge(null,null,null,null,null,E);return new mxCellState(this.graph.view,g,this.graph.getCellStyle(g))};var F=v.getDefaultParent(),L=mxUtils.bind(this,function(g){var q=new mxCellOverlay(this.connectImage,"Add outgoing");q.cursor="hand";q.addListener(mxEvent.CLICK,function(p,t){v.connectionHandler.reset();v.clearSelection();var x=v.getCellGeometry(g),B;R(function(){B=v.insertVertex(F,null,"Entry",x.x,x.y,80,30,"rounded=1;");L(B);v.view.refresh(B); | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
function(){b.spinner.stop();if(null==b.linkPicker){var x=b.drive.createLinkPicker();b.linkPicker=x.setCallback(function(B){LinkDialog.filePicked(B)}).build()}b.linkPicker.setVisible(!0)}))});"undefined"!=typeof Dropbox&&"undefined"!=typeof Dropbox.choose&&F(IMAGE_PATH+"/dropbox-logo.svg",mxResources.get("dropbox"),function(){Dropbox.choose({linkType:"direct",cancel:function(){},success:function(x){H.value=x[0].link;H.focus()}})});null!=b.oneDrive&&F(IMAGE_PATH+"/onedrive-logo.svg",mxResources.get("oneDrive"), | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
F=document.createElement("div");F.style.height="300px";F.style.width="300px";F.style.display="inline-flex";F.style.justifyContent="center";F.style.alignItems="center";F.style.position="absolute";var L=document.createElement("img");L.onload=function(){function A(){H.model.setStyle(c,e+u())}H=new Graph(N);H.autoExtend=!1;H.autoScroll=!1;H.setGridEnabled(!1);H.setEnabled(!0);H.setPanning(!1);H.setConnectable(!1);H.getRubberband().setEnabled(!1);H.graphHandler.allowLivePreview=!1;var S=H.createVertexHandler;
H.createVertexHandler=function(){var Q=S.apply(this,arguments);Q.livePreview=!1;return Q};if(null!=m)try{if("inset"==m.substring(0,5)){var l=c.geometry,n=L.width,z=L.height,C=(300-n)/2,D=(300-z)/2,M=m.match(/\(([^)]+)\)/)[1].split(/[ ,]+/),K=parseFloat(M[0]),O=parseFloat(M[1]),V=parseFloat(M[2]),k=parseFloat(M[3]);isFinite(K)&&isFinite(O)&&isFinite(V)&&isFinite(k)?(l.x=k/100*n+C,l.y=K/100*z+D,l.width=(100-O)/100*n+C-l.x,l.height=(100-V)/100*z+D-l.y,"round"==M[4]?"50%"==M[5]?p.setAttribute("checked",
"checked"):(J=parseInt(M[5]),x.value=J,q.setAttribute("checked","checked"),t.style.visibility="visible"):g.setAttribute("checked","checked")):m=null}else m=null}catch(Q){}c.style=e+(m?m:u());c.vertex=!0;H.addCell(c,null,null,null,null);H.selectAll();H.addListener(mxEvent.CELLS_MOVED,A);H.addListener(mxEvent.CELLS_RESIZED,A);var y=H.graphHandler.mouseUp,G=H.graphHandler.mouseDown;H.graphHandler.mouseUp=function(){y.apply(this,arguments);N.style.backgroundColor="#fff9"};H.graphHandler.mouseDown=function(){G.apply(this,
arguments);N.style.backgroundColor=""};H.dblClick=function(){};var P=H.getSelectionModel().changeSelection;H.getSelectionModel().changeSelection=function(){P.call(this,[c],[c])}};L.onerror=function(){L.onload=null;L.src=Editor.errorImage};L.setAttribute("src",f);L.style.maxWidth="300px";L.style.maxHeight="300px";F.appendChild(L);E.appendChild(F);var N=document.createElement("div");N.style.width="300px";N.style.height="300px";N.style.overflow="hidden";N.style.backgroundColor="#fff9";E.appendChild(N); | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
window.location.hash=null!=e?e.getHash():""}))});b=decodeURIComponent(b.substring(1));StorageFile.getFileContent(this,b,mxUtils.bind(this,function(c){null!=c?(this.fileLoaded(new StorageFile(this,c,b)),null!=d&&d()):L({message:mxResources.get("fileNotFound")})}),L)}else this.handleError({message:mxResources.get("serviceUnavailableOrBlocked")},mxResources.get("errorLoadingFile"),mxUtils.bind(this,function(){var c=this.getCurrentFile();window.location.hash=null!=c?c.getHash():""}));else if(null!=m)this.spinner.stop(), | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
"120px",H.style.backgroundImage="url('"+IMAGE_PATH+"/droptarget.png')",H.style.backgroundPosition="center 65%",H.style.backgroundRepeat="no-repeat",E=document.createElement("div"),E.style.position="absolute",E.style.width="420px",E.style.top="58%",E.style.textAlign="center",E.style.fontSize="18px",E.style.color="#a0c3ff",mxUtils.write(E,mxResources.get("dragImagesHere")),H.appendChild(E));H.appendChild(F);this.container=H},LinkDialog=function(b,f,m,d,u,v,E){function F(x,B,I){I=mxUtils.button("",I);
I.className="geBtn";I.setAttribute("title",B);B=document.createElement("img");B.style.height="26px";B.style.width="26px";B.setAttribute("src",x);I.style.minWidth="42px";I.style.verticalAlign="middle";I.appendChild(B);t.appendChild(I)}var L=document.createElement("div");L.style.height="100%";mxUtils.write(L,mxResources.get("editLink")+":");var N=document.createElement("div");N.className="geTitle";N.style.backgroundColor="transparent";N.style.borderColor="transparent";N.style.whiteSpace="nowrap";N.style.textOverflow= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
this.cellEditor.textarea.getElementsByTagName("font");y=Graph.getFontUrl(k,y);for(var P=0;P<G.length;P++)G[P].getAttribute("face")==k&&G[P].getAttribute("data-font-src")!=y&&G[P].setAttribute("data-font-src",y)}};var t=Graph.prototype.isFastZoomEnabled;Graph.prototype.isFastZoomEnabled=function(){return t.apply(this,arguments)&&(!this.shadowVisible||!mxClient.IS_SF)};Graph.prototype.updateGlobalUrlVariables=function(){this.globalVars=Editor.globalVars;if(null!=urlParams.vars)try{this.globalVars=null!=
this.globalVars?mxUtils.clone(this.globalVars):{};var k=JSON.parse(decodeURIComponent(urlParams.vars));if(null!=k)for(var y in k)this.globalVars[y]=k[y]}catch(G){null!=window.console&&console.log("Error in vars URL parameter: "+G)}};Graph.prototype.getExportVariables=function(){return null!=this.globalVars?mxUtils.clone(this.globalVars):{}};var x=Graph.prototype.getGlobalVariable;Graph.prototype.getGlobalVariable=function(k){var y=x.apply(this,arguments);null==y&&null!=this.globalVars&&(y=this.globalVars[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 |
c+";"))}}),mxUtils.bind(this,function(){var n=null;I.getModel().beginUpdate();try{n=I.insertVertex(I.getDefaultParent(),null,c,I.snap(e),I.snap(g),1,1,"text;"+(q?"html=1;":"")),I.updateCellSize(n),I.fireEvent(new mxEventObject("textInserted","cells",[n]))}finally{I.getModel().endUpdate()}I.setSelectionCell(n)}))}else{c=Graph.zapGremlins(mxUtils.trim(c));if(this.isCompatibleString(c))return this.importXml(c,e,g,t,null,B);if(0<c.length)if(this.isLucidChartData(c))this.convertLucidChart(c,mxUtils.bind(this, | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
function(){return this.openLink("mailto:"+mxUtils.htmlEntities(I.ownerEmail))}));this.showError(e,x,A,g,S,null,null,t,n,null,null,null,q?g:null)}else null!=g&&g()};EditorUi.prototype.alert=function(c,e,g){c=new ErrorDialog(this,null,c,mxResources.get("ok"),e);this.showDialog(c.container,g||340,100,!0,!1);c.init()};EditorUi.prototype.confirm=function(c,e,g,q,p,t){c=null!=c?c:"";var x=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},B=Math.min(220,28*Math.ceil(Math.max(1, | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
EditorUi.prototype.chromelessWindowResize=function(){};var N=Menus.prototype.init;Menus.prototype.init=function(){N.apply(this,arguments);var J=this.editorUi;EditorUi.enablePlantUml&&!J.isOffline()&&J.actions.put("plantUml",new Action(mxResources.get("plantUml")+"...",function(){var g=new ParseDialog(J,mxResources.get("plantUml")+"...","plantUml");J.showDialog(g.container,620,420,!0,!1);g.init()}));J.actions.put("mermaid",new Action(mxResources.get("mermaid")+"...",function(){var g=new ParseDialog(J,
mxResources.get("mermaid")+"...","mermaid");J.showDialog(g.container,620,420,!0,!1);g.init()}));var c="horizontalFlow verticalFlow - horizontalTree verticalTree radialTree - organic circle".split(" "),e=function(g,q,p,t){g.addItem(p,null,mxUtils.bind(this,function(){var x=new CreateGraphDialog(J,p,t);J.showDialog(x.container,620,420,!0,!1);x.init()}),q)};this.put("insertLayout",new Menu(mxUtils.bind(this,function(g,q){for(var p=0;p<c.length;p++)"-"==c[p]?g.addSeparator(q):e(g,q,mxResources.get(c[p])+
"...",c[p])})))};EditorUi.prototype.installFormatToolbar=function(J){var c=this.editor.graph,e=document.createElement("div");e.style.cssText="position:absolute;top:10px;z-index:1;border-radius:4px;box-shadow:0px 0px 3px 1px #d1d1d1;padding:6px;white-space:nowrap;background-color:#fff;transform:translate(-50%, 0);left:50%;";c.getSelectionModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(g,q){0<c.getSelectionCount()?(J.appendChild(e),e.innerHTML="Selected: "+c.getSelectionCount()):null!= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
var CommentsWindow=function(b,f,m,d,u,v){function E(){for(var n=t.getElementsByTagName("div"),z=0,C=0;C<n.length;C++)"none"!=n[C].style.display&&n[C].parentNode==t&&z++;x.style.display=0==z?"block":"none"}function F(n,z,C,D){function M(){z.removeChild(V);z.removeChild(k);O.style.display="block";K.style.display="block"}g={div:z,comment:n,saveCallback:C,deleteOnCancel:D};var K=z.querySelector(".geCommentTxt"),O=z.querySelector(".geCommentActionsList"),V=document.createElement("textarea");V.className=
"geCommentEditTxtArea";V.style.minHeight=K.offsetHeight+"px";V.value=n.content;z.insertBefore(V,K);var k=document.createElement("div");k.className="geCommentEditBtns";var y=mxUtils.button(mxResources.get("cancel"),function(){D?(z.parentNode.removeChild(z),E()):M();g=null});y.className="geCommentEditBtn";k.appendChild(y);var G=mxUtils.button(mxResources.get("save"),function(){K.innerText="";n.content=V.value;mxUtils.write(K,n.content);M();C(n);g=null});mxEvent.addListener(V,"keydown",mxUtils.bind(this,
function(P){mxEvent.isConsumed(P)||((mxEvent.isControlDown(P)||mxClient.IS_MAC&&mxEvent.isMetaDown(P))&&13==P.keyCode?(G.click(),mxEvent.consume(P)):27==P.keyCode&&(y.click(),mxEvent.consume(P)))}));G.focus();G.className="geCommentEditBtn gePrimaryBtn";k.appendChild(G);z.insertBefore(k,K);O.style.display="none";K.style.display="none";V.focus()}function L(n,z){z.innerText="";n=new Date(n.modifiedDate);var C=b.timeSince(n);null==C&&(C=mxResources.get("lessThanAMinute"));mxUtils.write(z,mxResources.get("timeAgo", | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
function(c){var e=f.apply(this,arguments);if(null==e)try{var g=c.indexOf("<mxfile ");if(0<=g){var q=c.lastIndexOf("</mxfile>");q>g&&(e=c.substring(g,q+15).replace(/>/g,">").replace(/</g,"<").replace(/\\"/g,'"').replace(/\n/g,""))}else{var p=mxUtils.parseXml(c),t=this.editor.extractGraphModel(p.documentElement,null!=this.pages||"hidden"==this.diagramContainer.style.visibility);e=null!=t?mxUtils.getXml(t):""}}catch(x){}return e};EditorUi.prototype.validateFileData=function(c){if(null!= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
function(){this.setGraphEnabled(!1);if((window.opener||window.parent)!=window&&("1"!=urlParams.spin||this.spinner.spin(document.body,mxResources.get("loading")))){var c=!1;this.installMessageHandler(mxUtils.bind(this,function(e,g,q,p){c||(c=!0,this.spinner.stop(),this.addEmbedButtons(),this.setGraphEnabled(!0));if(null==e||0==e.length)e=this.emptyDiagramXml;this.setCurrentFile(new EmbedFile(this,e,{}));this.mode=App.MODE_EMBED;this.setFileData(e);if(p)try{var t=this.editor.graph;t.setGridEnabled(!1);
t.pageVisible=!1;var x=t.model.cells,B;for(B in x){var I=x[B];null!=I&&null!=I.style&&(I.style+=";sketch=1;"+(-1==I.style.indexOf("fontFamily=")||-1<I.style.indexOf("fontFamily=Helvetica;")?"fontFamily=Architects Daughter;fontSource=https%3A%2F%2Ffonts.googleapis.com%2Fcss%3Ffamily%3DArchitects%2BDaughter;":""))}}catch(A){console.log(A)}this.editor.isChromelessView()?this.editor.graph.isLightboxView()&&this.lightboxFit():this.showLayersDialog();this.chromelessResize&&this.chromelessResize();this.editor.undoManager.clear();
this.editor.modified=null!=q?q:!1;this.updateUi();window.self!==window.top&&window.focus();null!=this.format&&this.format.refresh()}))}};EditorUi.prototype.showLayersDialog=function(){1<this.editor.graph.getModel().getChildCount(this.editor.graph.getModel().getRoot())&&(null==this.actions.layersWindow?this.actions.get("layers").funct():this.actions.layersWindow.window.setVisible(!0))};EditorUi.prototype.getPublicUrl=function(c,e){null!=c?c.getPublicUrl(e):e(null)};EditorUi.prototype.createLoadMessage= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
(D.setAttribute("disabled","disabled"),z.setAttribute("disabled","disabled"));z.checked&&l.checked?n.getEditSelect().removeAttribute("disabled"):n.getEditSelect().setAttribute("disabled","disabled")});e=new CustomDialog(this,t,mxUtils.bind(this,function(){c(I.checked,A.checked,S.checked,l.checked,n.getLink(),D.checked)}),null,mxResources.get("embed"),p);this.showDialog(e.container,280,300,!0,!0)};EditorUi.prototype.createEmbedImage=function(c,e,g,q,p,t,x,B){function I(z){var C=" ",D="";q&&(C=" 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:"")+(p?"&edit=_blank":"")+(t?"&layers=1":"")+"');}})(this);\"",D+="cursor:pointer;");c&&(D+="max-width:100%;");var M="";g&&(M=' width="'+Math.round(A.width)+'" height="'+Math.round(A.height)+'"');x('<img src="'+z+'"'+M+(""!=D?' style="'+D+'"':"")+C+"/>")}var A=this.editor.graph.getGraphBounds(),S=this.getSelectedPageIndex();if(this.isExportToCanvas())this.editor.exportToCanvas(mxUtils.bind(this,function(z){var C=q?this.getFileData(!0):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 |
this.editor.graph.mathEnabled&&this.editor.addMathCss(M);var V=mxUtils.bind(this,function(k){t?(null==this.thumbImageCache&&(this.thumbImageCache={}),this.editor.convertImages(k,O,this.thumbImageCache)):O(k)});n?this.embedFonts(M,V):(this.editor.addFontCss(M),V(M))}catch(k){this.handleError(k)}};EditorUi.prototype.addRadiobox=function(c,e,g,q,p,t,x){return this.addCheckbox(c,g,q,p,t,x,!0,e)};EditorUi.prototype.addCheckbox=function(c,e,g,q,p,t,x,B){t=null!=t?t:!0;var I=document.createElement("input");
I.style.marginRight="8px";I.style.marginTop="16px";I.setAttribute("type",x?"radio":"checkbox");x="geCheckbox-"+Editor.guid();I.id=x;null!=B&&I.setAttribute("name",B);g&&(I.setAttribute("checked","checked"),I.defaultChecked=!0);q&&I.setAttribute("disabled","disabled");t&&(c.appendChild(I),g=document.createElement("label"),mxUtils.write(g,e),g.setAttribute("for",x),c.appendChild(g),p||mxUtils.br(c));return I};EditorUi.prototype.addEditButton=function(c,e){var g=this.addCheckbox(c,mxResources.get("edit")+ | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
"simple"==Editor.currentTheme&&this.addMenuItems(K,["zoomIn","zoomOut","-"],null,V);I.apply(this,arguments);e.isSelectionEmpty()||null==c.addSelectionToScratchpad||this.addMenuItems(K,["-","addToScratchpad"],null,V);e.isSelectionEmpty()&&"simple"==Editor.currentTheme&&this.addMenuItems(K,["-","exitGroup","home"],null,V)};var A=Menus.prototype.addPopupMenuEditItems;this.menus.addPopupMenuEditItems=function(K,O,V){if(c.editor.graph.isSelectionEmpty())A.apply(this,arguments),c.menus.addMenuItems(K,["copyAsImage"],
null,V);else if(this.isShowCellEditItems()?this.addPopupDeleteItem(K,O,V):this.addPopupMenuArrangeItems(K,O,V),this.addMenuItems(K,"- cut copy copyAsImage duplicate -".split(" "),null,V),this.isShowCellEditItems()||this.addPopupDeleteItem(K,O,V),this.addMenuItems(K,["lockUnlock","-"],null,V),!this.isShowStyleItems()){if(1==e.getSelectionCount()&&!e.isCellLocked(O)&&e.isCellEditable(O)&&(this.addSubmenu("editCell",K,null,mxResources.get("edit")),K.addSeparator(),e.getModel().isEdge(O))){this.addSubmenu("line",
K);var k=e.getModel().getGeometry(O);null!=k&&null!=k.points&&0<k.points.length&&this.addMenuItems(K,["clearWaypoints"],null,V)}1==e.getSelectionCount()&&this.addMenuItems(K,["enterGroup"],null,V);k=c.getSelectionState();null!=k.mergeCell?this.addMenuItem(K,"mergeCells"):(1<k.style.colspan||1<k.style.rowspan)&&this.addMenuItem(K,"unmergeCells")}};this.menus.isShowStyleItems=function(){return"simple"!=Editor.currentTheme&&"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme};this.menus.isShowHistoryItems= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
x);ImageDialog.filePicked=function(D){D.action==google.picker.Action.PICKED&&null!=D.docs[0].thumbnails&&(D=D.docs[0].thumbnails[D.docs[0].thumbnails.length-1],null!=D&&(J.value=D.url,x()));J.focus()};F.appendChild(R);F.appendChild(c);mxUtils.br(F);mxUtils.br(F);N?(R.setAttribute("checked","checked"),R.checked=!0):(H.setAttribute("checked","checked"),H.checked=!0);!L&&R.checked&&(mxUtils.write(q,mxResources.get("pageNotFound")),q.setAttribute("disabled","disabled"),q.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 |
k.ownerSVGElement))}};var n=Graph.prototype.refresh;Graph.prototype.refresh=function(){n.apply(this,arguments);this.refreshBackgroundImage()};Graph.prototype.refreshBackgroundImage=function(){null!=this.backgroundImage&&null!=this.backgroundImage.originalSrc&&(this.setBackgroundImage(this.backgroundImage),this.view.validateBackgroundImage())};var z=Graph.prototype.loadStylesheet;Graph.prototype.loadStylesheet=function(){z.apply(this,arguments);this.currentStyle="default-style2"};Graph.prototype.handleCustomLink= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
c?c:"",extras:JSON.stringify(p),scale:x,border:B,w:l&&isFinite(l)?l:null,h:n&&isFinite(n)?n:null}};EditorUi.prototype.setMode=function(c,e){this.mode=c};EditorUi.prototype.getDiagramId=function(){var c=window.location.hash;null!=c&&0<c.length&&(c=c.substring(1));if(null!=c&&1<c.length){var e=c.indexOf("#");0<=e&&(c=c.substring(0,e))}return c};EditorUi.prototype.getHashObject=function(){var c=window.location.hash,e={};if(null!=c&&0<c.length){var g=c.lastIndexOf("#");if(0<g){c=decodeURIComponent(c.substring(g+ | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
this.loadImage(Y.target.result,mxUtils.bind(this,function(da){this.resizeImage(da,Y.target.result,mxUtils.bind(this,function(qa,ka,Aa){Q(T,mxUtils.bind(this,function(){if(null!=qa&&qa.length<A){var xa=C&&this.isResampleImageSize(W.size,S)?Math.min(1,Math.min(q/ka,q/Aa)):1;return p(qa,W.type,e+T*k,g+T*k,Math.round(ka*xa),Math.round(Aa*xa),W.name)}this.handleError({message:mxResources.get("imageTooBig")});return null}))}),C,q,S,W.size)}),mxUtils.bind(this,function(){this.handleError({message:mxResources.get("invalidOrMissingFile")})})))}else Z= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
function(y,G){if(null==G){var P=mxEvent.getSource(y);"a"==P.nodeName.toLowerCase()&&(G=P.getAttribute("href"))}null!=G&&e.isCustomLink(G)&&(mxEvent.isTouchEvent(y)||!mxEvent.isPopupTrigger(y))&&e.customLinkClicked(G)&&mxEvent.consume(y);null!=k&&k(y,G)};B.call(this,K,O,V)};v.apply(this,arguments);mxClient.IS_SVG&&this.editor.graph.addSvgShadow(e.view.canvas.ownerSVGElement,null,!0);if(null!=this.menus){var I=Menus.prototype.addPopupMenuItems;this.menus.addPopupMenuItems=function(K,O,V){e.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 |
document.createElement("canvas");C.width=S;C.height=l;var D=C.toDataURL();z!==D&&(e=z,B=S,I=l)}}}catch(M){}g(e,B,I)};EditorUi.prototype.extractGraphModelFromPng=function(c){return Editor.extractGraphModelFromPng(c)};EditorUi.prototype.loadImage=function(c,e,g){try{var q=new Image;q.onload=function(){q.width=0<q.width?q.width:120;q.height=0<q.height?q.height:120;e(q)};null!=g&&(q.onerror=g);q.src=c}catch(p){if(null!=g)g(p);else throw p;}};EditorUi.prototype.getDefaultSketchMode=function(){var c="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 |
this.editor.graph.getSelectionModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(K,O){0<this.editor.graph.getSelectionCount()?(K=this.editor.graph.getSelectionCell(),K=this.editor.graph.getModel().getStyle(K),this.styleInput.value=K||"",this.styleInput.style.visibility="visible"):this.styleInput.style.visibility="hidden"})));var D=this.isSelectionAllowed;this.isSelectionAllowed=function(K){return mxEvent.getSource(K)==this.styleInput?!0:D.apply(this,arguments)}}C=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 |
za.className="gePropHeaderCell";var Ca=document.createElement("img");Ca.src=Sidebar.prototype.expandedImage;Ca.style.verticalAlign="middle";za.appendChild(Ca);mxUtils.write(za,mxResources.get("property"));ea.style.cursor="pointer";var Ba=function(){var pa=na.querySelectorAll(".gePropNonHeaderRow");if(Z.editorUi.propertiesCollapsed){Ca.src=Sidebar.prototype.collapsedImage;var ua="none";for(var va=k.childNodes.length-1;0<=va;va--)try{var Ea=k.childNodes[va],Da=Ea.nodeName.toUpperCase();"INPUT"!=Da&&
"SELECT"!=Da||k.removeChild(Ea)}catch(Ta){}}else Ca.src=Sidebar.prototype.expandedImage,ua="";for(va=0;va<pa.length;va++)pa[va].style.display=ua};mxEvent.addListener(ea,"click",function(){Z.editorUi.propertiesCollapsed=!Z.editorUi.propertiesCollapsed;Ba()});ea.appendChild(za);za=document.createElement("th");za.className="gePropHeaderCell";za.innerHTML=mxResources.get("value");ea.appendChild(za);na.appendChild(ea);var ba=!1,da=!1;ea=null;1==G.vertices.length&&0==G.edges.length?ea=G.vertices[0].id: | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
function(k,y){for(var G=0;G<y.length;G++){var P=y[G],Q;for(Q in P)this.updateCustomLinkAction(k,P[Q],"cells"),this.updateCustomLinkAction(k,P[Q],"excludeCells")}};Graph.prototype.updateCustomLinkAction=function(k,y,G){if(null!=y&&null!=y[G]){for(var P=[],Q=0;Q<y[G].length;Q++)if("*"==y[G][Q])P.push(y[G][Q]);else{var U=k[y[G][Q]];null!=U?""!=U&&P.push(U):P.push(y[G][Q])}y[G]=P}};Graph.prototype.getCellsForAction=function(k,y){y=this.getCellsById(k.cells).concat(this.getCellsForTags(k.tags,null,y)); | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
mxStencilRegistry.getStencil(Z)}return D.apply(this,arguments)};var M=mxStencil.prototype.drawShape;mxStencil.prototype.drawShape=function(k,y,G,P,Q,U){"1"==mxUtils.getValue(y.style,"lineShape",null)&&k.setFillColor(mxUtils.getValue(y.style,mxConstants.STYLE_STROKECOLOR,this.stroke));return M.apply(this,arguments)};PrintDialog.prototype.create=function(k,y){function G(){ha.value=Math.max(1,Math.min(W,Math.max(parseInt(ha.value),parseInt(ca.value))));ca.value=Math.max(1,Math.min(W,Math.min(parseInt(ha.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 |
t.setAttribute("disabled","disabled")}));mxUtils.br(c);return{getLink:function(){return g.checked?"blank"===t.value?"_blank":p:null},getEditInput:function(){return g},getEditSelect:function(){return t}}};EditorUi.prototype.addLinkSection=function(c,e){function g(){var B=document.createElement("div");B.style.width="100%";B.style.height="100%";B.style.boxSizing="border-box";null!=t&&t!=mxConstants.NONE?(B.style.border="1px solid black",B.style.backgroundColor=t):(B.style.backgroundPosition="center center", | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.