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 |
|---|---|---|---|---|---|---|---|
""),mxUtils.bind(this,function(e){window.clearTimeout(c);J&&(200<=e.getStatus()&&299>=e.getStatus()?null!=m&&m():d({message:mxResources.get("realtimeCollaboration")+(0!=e.getStatus()?": "+e.getStatus():"")}))}));EditorUi.debug("DrawioFileSync.fileSaved",[this],"diff",N,R.length,"bytes","from",F,"to",L,"etag",this.file.getCurrentEtag(),"checksum",H)}}this.file.setShadowPages(b);this.scheduleCleanup()}; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
(this.buttonContainer.appendChild(c),this.editor.fireEvent(new mxEventObject("statusChanged")))};EditorUi.prototype.showImportCsvDialog=function(){null==this.importCsvDialog&&(this.importCsvDialog=new TextareaDialog(this,mxResources.get("csv")+":",Editor.defaultCsvValue,mxUtils.bind(this,function(c){this.importCsv(c)}),null,null,620,430,null,!0,!0,mxResources.get("import"),this.isOffline()?null:"https://drawio-app.com/import-from-csv-to-drawio/"));this.showDialog(this.importCsvDialog.container,640,
520,!0,!0,null,null,null,null,!0);this.importCsvDialog.init()};EditorUi.prototype.showCustomLayoutDialog=function(c){this.loadOrgChartLayouts(mxUtils.bind(this,function(){var e=new TextareaDialog(this,mxResources.get("layout"),c,mxUtils.bind(this,function(g){if(0<g.length)try{var q=JSON.parse(g);this.executeLayouts(this.editor.graph.createLayouts(q));this.customLayoutConfig=q;this.hideDialog()}catch(p){this.handleError(p)}}),null,null,null,null,mxUtils.bind(this,function(g,q){var p=mxUtils.button(mxResources.get("copy"), | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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.isOffline()&&!d.printPdfExport){var l=null==d.pages||1>=d.pages.length,n=document.createElement("div");n.style.whiteSpace="nowrap";var z=document.createElement("h3");mxUtils.write(z,mxResources.get("formatPdf"));z.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:4px";n.appendChild(z);var C=function(){O!=this&&this.checked?(Q.removeAttribute("disabled"),Q.checked=!u.pageVisible):(Q.setAttribute("disabled","disabled"),Q.checked=!1)};z=200;var D=1,M=null;if(d.pdfPageExport&& | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
161==c.charCodeAt(4)&&177==c.charCodeAt(5)&&26==c.charCodeAt(6)&&225==c.charCodeAt(7)||60==c.charCodeAt(0)&&63==c.charCodeAt(1)&&120==c.charCodeAt(2)&&109==c.charCodeAt(3)&&108==c.charCodeAt(3))};var b=EditorUi.prototype.createKeyHandler;EditorUi.prototype.createKeyHandler=function(c){var e=b.apply(this,arguments);if(!this.editor.chromeless||this.editor.editable){var g=e.getFunction,q=this.editor.graph,p=this;e.getFunction=function(t){if(q.isSelectionEmpty()&&null!=p.pages&&0<p.pages.length){var x=
p.getSelectedPageIndex();if(mxEvent.isShiftDown(t)){if(37==t.keyCode)return function(){0<x&&p.movePage(x,x-1)};if(38==t.keyCode)return function(){0<x&&p.movePage(x,0)};if(39==t.keyCode)return function(){x<p.pages.length-1&&p.movePage(x,x+1)};if(40==t.keyCode)return function(){x<p.pages.length-1&&p.movePage(x,p.pages.length-1)}}else if(mxEvent.isControlDown(t)||mxClient.IS_MAC&&mxEvent.isMetaDown(t)){if(37==t.keyCode)return function(){0<x&&p.selectNextPage(!1)};if(38==t.keyCode)return function(){0<
x&&p.selectPage(p.pages[0])};if(39==t.keyCode)return function(){x<p.pages.length-1&&p.selectNextPage(!0)};if(40==t.keyCode)return function(){x<p.pages.length-1&&p.selectPage(p.pages[p.pages.length-1])}}}return!(65<=t.keyCode&&90>=t.keyCode)||q.isSelectionEmpty()||mxEvent.isAltDown(t)||mxEvent.isShiftDown(t)||mxEvent.isControlDown(t)||mxClient.IS_MAC&&mxEvent.isMetaDown(t)?g.apply(this,arguments):null}}return e};var f=EditorUi.prototype.extractGraphModelFromHtml;EditorUi.prototype.extractGraphModelFromHtml= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
0==G%2,ea.flipBkg),y.parentNode.insertBefore(qa,y.nextSibling),y=qa;k.appendChild(na);Ba();return k};StyleFormatPanel.prototype.addStyles=function(k){if(null!=this.defaultColorSchemes){var y=function(ea){mxEvent.addListener(ea,"mouseenter",function(){ea.style.opacity="1"});mxEvent.addListener(ea,"mouseleave",function(){ea.style.opacity="0.5"})},G=this.editorUi,P=G.editor.graph,Q=document.createElement("div");Q.style.whiteSpace="nowrap";Q.style.paddingLeft="24px";Q.style.paddingRight="20px";k.style.paddingLeft= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
na[ea])&&ha.push(na[ea]);this.setHiddenTags(ha);this.refresh()}0<ca.length&&(P++,this.executeAnimations(ca,W,Y?1:Z.steps,Y?0:Z.delay));0==P?X():T()}else this.stoppingCustomActions=this.executingCustomActions=!1,T(),null!=y&&y()});X()}};Graph.prototype.doUpdateCustomLinksForCell=function(k,y){var G=this.getLinkForCell(y);null!=G&&"data:action/json,"==G.substring(0,17)&&this.setLinkForCell(y,this.updateCustomLink(k,G));if(this.isHtmlLabel(y)){var P=document.createElement("div");P.innerHTML=Graph.sanitizeHtml(this.getLabel(y));
for(var Q=P.getElementsByTagName("a"),U=!1,T=0;T<Q.length;T++)G=Q[T].getAttribute("href"),null!=G&&"data:action/json,"==G.substring(0,17)&&(Q[T].setAttribute("href",this.updateCustomLink(k,G)),U=!0);U&&this.labelChanged(y,P.innerHTML)}};Graph.prototype.updateCustomLink=function(k,y){if("data:action/json,"==y.substring(0,17))try{var G=JSON.parse(y.substring(17));null!=G.actions&&(this.updateCustomLinkActions(k,G.actions),y="data:action/json,"+JSON.stringify(G))}catch(P){}return y};Graph.prototype.updateCustomLinkActions= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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){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 |
"10px";H.style.resize="none";H.style.height="150px";H.style.width="440px";H.style.border="1px solid gray";H.value=mxResources.get("updatingDocument");d.appendChild(H);mxUtils.br(d);this.init=function(){window.setTimeout(function(){5E5>f.length?(H.value=f,H.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?H.select():document.execCommand("selectAll",!1,null)):(H.setAttribute("readonly","true"),H.value=mxResources.get("tooLargeUseDownload"))},0)};v=document.createElement("div");v.style.position= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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<<5)-q+this.hashValue(c.childNodes[p],e,g)<<0}else if(null!=c&&"function"!==typeof c){c=String(c);e=0;null!=g&&(g.byteCount+=c.length);for(p=0;p<c.length;p++)e=(e<<5)-e+c.charCodeAt(p)<<0;q^=e}return q};EditorUi.prototype.descriptorChanged=function(){};EditorUi.prototype.restoreLibraries=function(){};EditorUi.prototype.saveLibrary=function(c,e,g,q,p,t,x){};EditorUi.prototype.isScratchpadEnabled=function(){return isLocalStorage||mxClient.IS_CHROMEAPP};EditorUi.prototype.toggleScratchpad=function(){this.isScratchpadEnabled()&& | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
Editor.isDarkMode()?{outBkgClr:Editor.darkColor,cornerClr:Editor.darkColor,strokeClr:"#505759",fontClr:"#BBBBBB",guideClr:"#0088cf"}:{outBkgClr:"#e8e9ed",cornerClr:"#fbfbfb",strokeClr:"#dadce0",fontClr:"#BBBBBB",guideClr:"#0000BB"};R.style[m?"borderRight":"borderBottom"]="0.5px solid "+H.strokeClr;R.style.borderLeft="0.5px solid "+H.strokeClr});this.updateStyle();b.diagramContainer.appendChild(R);mxEvent.disableContextMenu(R);this.editorUiRefresh=b.refresh;b.refresh=function(x){N.editorUiRefresh.apply(b,
arguments);u()};u();var J=document.createElement("canvas");J.width=R.offsetWidth;J.height=R.offsetHeight;R.style.overflow="hidden";J.style.position="relative";R.appendChild(J);var c=J.getContext("2d");this.ui=b;var e=b.editor.graph;this.graph=e;this.container=R;this.canvas=J;var g=function(x,B,I,A,S){x=Math.round(x);B=Math.round(B);I=Math.round(I);A=Math.round(A);c.beginPath();c.moveTo(x+.5,B+.5);c.lineTo(I+.5,A+.5);c.stroke();S&&(m?(c.save(),c.translate(x,B),c.rotate(-Math.PI/2),c.fillText(S,0,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.location.href.substring(0,8)!=c.substring(0,8)&&(e.close(),b.handleError({message:mxResources.get("drawingTooLarge")}))}catch(q){}}),m||500)}catch(q){b.handleError({message:q.message||mxResources.get("drawingTooLarge")})}else{var g=window.open();g=null!=g?g.document:null;null!=g?(g.writeln("<html><head><title>"+encodeURIComponent(mxResources.get("preview"))+'</title><meta charset="utf-8"></head><body>'+f+"</body></html>"),g.close()):b.handleError({message:mxResources.get("errorUpdatingPreview")})}}), | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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",
B.style.backgroundRepeat="no-repeat",B.style.backgroundImage="url('"+Dialog.prototype.closeImage+"')");x.innerText="";x.appendChild(B)}mxUtils.write(c,mxResources.get("links")+":");var q=document.createElement("select");q.style.width="100px";q.style.padding="0px";q.style.marginLeft="8px";q.style.marginRight="10px";q.className="geBtn";var p=document.createElement("option");p.setAttribute("value","auto");mxUtils.write(p,mxResources.get("automatic"));q.appendChild(p);p=document.createElement("option");
p.setAttribute("value","blank");mxUtils.write(p,mxResources.get("openInNewWindow"));q.appendChild(p);p=document.createElement("option");p.setAttribute("value","self");mxUtils.write(p,mxResources.get("openInThisWindow"));q.appendChild(p);e&&(e=document.createElement("option"),e.setAttribute("value","frame"),mxUtils.write(e,mxResources.get("openInThisWindow")+" ("+mxResources.get("iframe")+")"),q.appendChild(e));c.appendChild(q);mxUtils.write(c,mxResources.get("borderColor")+":");var t="#0000ff",x=
null;x=mxUtils.button("",mxUtils.bind(this,function(B){this.pickColor(t||"none",function(I){t=I;g()});mxEvent.consume(B)}));g();x.style.padding=mxClient.IS_FF?"4px 2px 4px 2px":"4px";x.style.marginLeft="4px";x.style.height="22px";x.style.width="22px";x.style.position="relative";x.style.top=mxClient.IS_IE||mxClient.IS_IE11||mxClient.IS_EDGE?"6px":"1px";x.className="geColorBtn";c.appendChild(x);mxUtils.br(c);return{getColor:function(){return t},getTarget:function(){return q.value},focus:function(){q.focus()}}}; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
function(){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());
K.pagecount=null!=c.pages?c.pages.length:1;K.page=null!=c.currentPage?c.currentPage.getName():"";K.pagenumber=null!=c.pages&&null!=c.currentPage?mxUtils.indexOf(c.pages,c.currentPage)+1:1;return K};var l=e.getGlobalVariable;e.getGlobalVariable=function(K){var O=c.getCurrentFile();return"filename"==K&&null!=O?O.getTitle():"page"==K&&null!=c.currentPage?c.currentPage.getName():"pagenumber"==K?null!=c.currentPage&&null!=c.pages?mxUtils.indexOf(c.pages,c.currentPage)+1:1:"pagecount"==K?null!=c.pages? | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
"ready";x.postMessage(t,"*");if("json"==urlParams.proto){var B=this.editor.graph.openLink;this.editor.graph.openLink=function(I,A,S){B.apply(this,arguments);x.postMessage(JSON.stringify({event:"openLink",href:I,target:A,allowOpener:S}),"*")}}};EditorUi.prototype.createEmbedButton=function(c,e,g,q){var p="simple"==Editor.currentTheme||"sketch"==Editor.currentTheme||"min"==Editor.currentTheme,t=document.createElement("button");t.setAttribute("title",c+(null!=g?" ("+g+")":""));t.style.marginLeft="6px"; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
"checked"):(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 |
}finally{e.getModel().endUpdate()}t&&(e.setSelectionCell(g),e.scrollCellToVisible(g))}};m=mxUtils.button(mxResources.get("preview"),function(){c(H,R,!1)});m.className="geBtn";L.appendChild(m);m=mxUtils.button(mxResources.get("apply"),function(){c(b.editor.graph,f,!0)});m.className="geBtn gePrimaryBtn";L.appendChild(m);b.editor.cancelFirst||L.appendChild(u);F.appendChild(L);E.appendChild(F);v.appendChild(E);this.container=v},CustomDialog=function(b,f,m,d,u,v,E,F,L,N,H,R){var J=document.createElement("div"); | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
mxGraphView.prototype.stateValidated=function(k){null!=k.shape&&this.redrawEnumerationState(k);return S.apply(this,arguments)};mxGraphView.prototype.createEnumerationValue=function(k){k=decodeURIComponent(mxUtils.getValue(k.style,"enumerateValue",""));""==k&&(k=++this.enumerationState);return'<div style="padding:2px;border:1px solid gray;background:yellow;border-radius:2px;">'+mxUtils.htmlEntities(k)+"</div>"};mxGraphView.prototype.redrawEnumerationState=function(k){var y="1"==mxUtils.getValue(k.style, | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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.DRAWIO_LOG_URL:"";(new Image).src=e+"/images/1x1.png?v="+encodeURIComponent(EditorUi.VERSION)+(null!=c?"&data="+encodeURIComponent(JSON.stringify(c)):"")}catch(g){}};EditorUi.sendReport=function(c,e){if("1"==urlParams.dev)EditorUi.debug("sendReport",c);else if(EditorUi.enableLogging)try{e=null!=e?e:5E4,c.length>e&&(c=c.substring(0,e)+"\n...[SHORTENED]"),mxUtils.post("/email","version="+encodeURIComponent(EditorUi.VERSION)+"&url="+encodeURIComponent(window.location.href)+"&data="+encodeURIComponent(c))}catch(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 |
DrawioFile.prototype.save=function(b,f,m,d,u,v){try{if(EditorUi.debug("DrawioFile.save",[this],"revision",b,"unloading",d,"overwrite",u,"manual",v,"saving",this.savingFile,"editable",this.isEditable(),"invalidChecksum",this.invalidChecksum),this.isEditable())if(!u&&this.invalidChecksum)if(null!=m)m({message:mxResources.get("checksum")});else throw Error(mxResources.get("checksum"));else this.updateFileData(),this.clearAutosave(),null!=f&&f();else if(null!=m)m({message:mxResources.get("readOnly")});
else throw Error(mxResources.get("readOnly"));}catch(E){if(null!=m)m(E);else throw E;}};DrawioFile.prototype.createData=function(){var b=this.ui.pages;if(this.isRealtime()&&(this.ui.pages=this.ownPages,null!=this.ui.currentPage)){var f=this.ui.getPageById(this.ui.currentPage.getId(),this.ownPages);null!=f&&(f.viewState=this.ui.editor.graph.getViewState(),f.needsUpdate=!0)}f=this.ui.getFileData(null,null,null,null,null,null,null,null,this,!this.isCompressed());this.ui.pages=b;return f}; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
b.container.style.cursor=z?"crosshair":"";b.fireEvent(new mxEventObject("freehandStateChanged"))};this.startDrawing=function(){x(!0)};this.isDrawing=function(){return e};var B=mxUtils.bind(this,function(z){if(d){var C=F.length,D=g&&0<E.length&&null!=F&&2>F.length;D||E.push.apply(E,F);F=[];E.push(null);u.push(d);d=null;(D||H)&&this.stopDrawing();H&&(!D||2<=C)&&this.startDrawing();mxEvent.consume(z)}}),I=new mxCell;I.edge=!0;var A=function(){var z=b.getCurrentCellStyle(I);z=mxUtils.getValue(b.currentVertexStyle, | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
mxEvent.consume(W)}));mxEvent.addListener(this.chromelessToolbar,"mouseleave",mxUtils.bind(this,function(W){mxEvent.isTouchEvent(W)||F(30)}));var Y=a.getTolerance();a.addMouseListener({startX:0,startY:0,scrollLeft:0,scrollTop:0,mouseDown:function(W,J){this.startX=J.getGraphX();this.startY=J.getGraphY();this.scrollLeft=a.container.scrollLeft;this.scrollTop=a.container.scrollTop},mouseMove:function(W,J){},mouseUp:function(W,J){mxEvent.isTouchEvent(J.getEvent())&&Math.abs(this.scrollLeft-a.container.scrollLeft)< | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
D){return new mxXmlRequest(EXPORT_URL,"format="+g+"&base64="+(D||"0")+(null!=C?"&filename="+encodeURIComponent(C):"")+"&extras="+encodeURIComponent(JSON.stringify(z))+(0<x?"&dpi="+x:"")+"&bg="+(null!=q?q:"none")+"&w="+l+"&h="+n+"&border="+t+"&xml="+encodeURIComponent(A))})}else"png"==g?c.exportImage(p,null==q||"none"==q,!0,!1,!1,t,!0,!1,null,B,x):c.exportImage(p,!1,!0,!1,!1,t,!0,!1,"jpeg",B);else mxUtils.alert(mxResources.get("drawingTooLarge"))}});EditorUi.prototype.getDiagramTextContent=function(){this.editor.graph.setEnabled(!1);
var c=this.editor.graph,e="";if(null!=this.pages)for(var g=0;g<this.pages.length;g++){var q=c;this.currentPage!=this.pages[g]&&(q=this.createTemporaryGraph(c.getStylesheet()),this.updatePageRoot(this.pages[g]),q.model.setRoot(this.pages[g].root));e+=this.pages[g].getName()+" "+q.getIndexableText()+" "}else e=c.getIndexableText();this.editor.graph.setEnabled(!0);return e};EditorUi.prototype.showRemotelyStoredLibrary=function(c){var e={},g=document.createElement("div");g.style.whiteSpace="nowrap";var q= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
if(null!=t.hoverIcons){var z=t.hoverIcons.update;t.hoverIcons.update=function(){x.freehand.isDrawing()||z.apply(this,arguments)}}if(null!=x.freehand){var C=x.freehand.createStyle;x.freehand.createStyle=function(W){return C.apply(this,arguments)+"sketch=0;"}}t.editor.addListener("statusChanged",mxUtils.bind(this,function(){t.setStatusText(t.editor.getStatus())}));t.setStatusText(t.editor.getStatus());var D=t.menus.get("viewZoom");if(null!=D){var M=function(W){if(mxEvent.isAltDown(W))t.hideCurrentMenu(), | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
mxResources.get("reconnecting"))?window.location.search=this.getSearch(["url"]):null!=q?this.fileLoaded(q)||t():t()});e?c():this.handleError(B,mxResources.get("errorLoadingFile"),c,!0,null,null,!0)}else t();return p};EditorUi.prototype.getHashValueForPages=function(c,e){var g=0,q=new mxGraphModel,p=new mxCodec;null!=e&&(e.byteCount=0,e.attrCount=0,e.eltCount=0,e.nodeCount=0);for(var t=0;t<c.length;t++){this.updatePageRoot(c[t]);var x=c[t].node.cloneNode(!1);x.removeAttribute("name");q.root=c[t].root;
var B=p.encode(q);this.editor.graph.saveViewState(c[t].viewState,B,!0);B.removeAttribute("pageWidth");B.removeAttribute("pageHeight");x.appendChild(B);null!=e&&(e.eltCount+=x.getElementsByTagName("*").length,e.nodeCount+=x.getElementsByTagName("mxCell").length);g=(g<<5)-g+this.hashValue(x,function(I,A,S,l){return!l||"mxGeometry"!=I.nodeName&&"mxPoint"!=I.nodeName||"x"!=A&&"y"!=A&&"width"!=A&&"height"!=A?l&&"mxCell"==I.nodeName&&"previous"==A?null:S:Math.round(S)},e)<<0}return g};EditorUi.prototype.hashValue= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
mxDualRuler.prototype.setUnit=function(b){this.vRuler.setUnit(b);this.hRuler.setUnit(b)};mxDualRuler.prototype.setStyle=function(b){this.vRuler.setStyle(b);this.hRuler.setStyle(b)};mxDualRuler.prototype.destroy=function(){this.vRuler.destroy();this.hRuler.destroy();this.ui.refresh=this.editorUiRefresh;mxGuide.prototype.move=this.origGuideMove;mxGuide.prototype.destroy=this.origGuideDestroy;this.ui.getDiagramContainerOffset=this.editorUiGetDiagContOffset};function mxFreehand(b){var f=null!=b.view&&null!=b.view.canvas?b.view.canvas.ownerSVGElement:null;if(null!=b.container&&null!=f){b.addListener(mxEvent.ESCAPE,mxUtils.bind(this,function(){this.stopDrawing()}));var m=mxFreehand.prototype.NORMAL_SMOOTHING,d=null,u=[],v,E=[],F,L=!1,N=!0,H=!0,R=!0,J=!0,c=[],e=!1,g=!1,q=!1,p={size:5,thinning:.5,smoothing:.5,streamline:.5,start:{taper:0,cap:!0},end:{taper:0,cap:!0}},t=!0;this.setClosedPath=function(z){L=z};this.setAutoClose=function(z){N=z};this.setAutoInsert= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
function(k){this.model.beginUpdate();try{for(var y=0;y<k.length;y++)this.model.setVisible(k[y],!this.model.isVisible(k[y]))}finally{this.model.endUpdate()}};Graph.prototype.setCellsVisible=function(k,y){this.model.beginUpdate();try{for(var G=0;G<k.length;G++)this.model.setVisible(k[G],y)}finally{this.model.endUpdate()}};Graph.prototype.highlightCells=function(k,y,G,P){for(var Q=0;Q<k.length;Q++)this.highlightCell(k[Q],y,G,P)};Graph.prototype.highlightCell=function(k,y,G,P,Q){y=null!=y?y:mxConstants.DEFAULT_VALID_COLOR;
G=null!=G?G:1E3;k=this.view.getState(k);var U=null;null!=k&&(Q=null!=Q?Q:4,Q=Math.max(Q+1,mxUtils.getValue(k.style,mxConstants.STYLE_STROKEWIDTH,1)+Q),U=new mxCellHighlight(this,y,Q,!1),null!=P&&(U.opacity=P),U.highlight(k),window.setTimeout(function(){null!=U.shape&&(mxUtils.setPrefixedStyle(U.shape.node.style,"transition","all 1200ms ease-in-out"),U.shape.node.style.opacity=0);window.setTimeout(function(){U.destroy()},1200)},G));return U};Graph.prototype.addSvgShadow=function(k,y,G,P){G=null!=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 |
g=document.createElement("div");g.style.whiteSpace="nowrap";g.style.height="30px";z.appendChild(g);n=mxUtils.button(mxResources.get("Templates",null,"Templates"),function(){wa.style.display="";qa.style.display="";da.style.left="160px";X(0);da.scrollTop=0;da.innerText="";K=0;U!=Ha&&(Ha=U,ua=T,Da=W,wa.innerText="",l(),U=null)});Q.push(n);g.appendChild(n);var Y=function(aa){wa.style.display="none";qa.style.display="none";da.style.left="30px";X(aa?-1:1);null==U&&(U=Ha);da.scrollTop=0;da.innerText="";
O.spin(da);var la=function(ma,oa,fa){K=0;O.stop();Ha=ma;fa=fa||{};var ja=0,sa;for(sa in fa)ja+=fa[sa].length;if(oa)da.innerText=oa;else if(0==ma.length&&0==ja)da.innerText=mxResources.get("noDiagrams",null,"No Diagrams Found");else if(da.innerText="",0<ja){wa.style.display="";da.style.left="160px";wa.innerText="";Da=0;ua={"draw.io":ma};for(sa in fa)ua[sa]=fa[sa];l()}else t(!0)};aa?J(Z.value,la):R(la)};R&&(n=mxUtils.button(mxResources.get("Recent",null,"Recent"),function(){Y()}),g.appendChild(n),Q.push(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 |
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!=
c&&0<c.length){var e=c.indexOf('<meta charset="utf-8">');0<=e&&(c=c.slice(0,e)+'<meta charset="utf-8"/>'+c.slice(e+23-1,c.length));c=Graph.zapGremlins(c)}return c};EditorUi.prototype.replaceFileData=function(c){c=this.validateFileData(c);c=null!=c&&0<c.length?mxUtils.parseXml(c).documentElement:null;var e=null!=c?this.editor.extractGraphModel(c,!0):null;null!=e&&(c=e);if(null!=c){e=this.editor.graph;e.model.beginUpdate();try{var g=null!=this.pages?this.pages.slice():null,q=c.getElementsByTagName("diagram"); | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
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", | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
n.init()}else{var z=function(C){return{id:C.id,isExt:!0,url:C.downloadUrl,title:C.title,imgUrl:C.thumbnailLink,changedBy:C.lastModifyingUserName,lastModifiedOn:C.modifiedDate}};l=new TemplatesDialog(d,function(C,D,M){var K=M.libs,O=M.clibs;d.pickFolder(d.mode,function(V){d.createFile(D,C,null!=K&&0<K.length?K:null,null,function(){d.hideDialog()},null,V,null,null!=O&&0<O.length?O:null)},null==d.stateArg||null==d.stateArg.folderId)},null,null,null,"user",function(C,D,M){var K=new Date;K.setDate(K.getDate()- | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
arguments))};var q=mxSvgCanvas2D.prototype.updateTextNodes;mxSvgCanvas2D.prototype.updateTextNodes=function(k,y,G,P,Q,U,T,W,X,Y,Z){q.apply(this,arguments);Graph.processFontAttributes(Z)};var p=mxText.prototype.redraw;mxText.prototype.redraw=function(){p.apply(this,arguments);null!=this.node&&"DIV"==this.node.nodeName&&Graph.processFontAttributes(this.node)};Graph.prototype.createTagsDialog=function(k,y,G){function P(){for(var ea=T.getSelectionCells(),za=[],Ca=0;Ca<ea.length;Ca++)T.isCellVisible(ea[Ca])&&
za.push(ea[Ca]);T.setSelectionCells(za)}function Q(ea){T.setHiddenTags(ea?[]:W.slice());P();T.refresh()}function U(ea,za){Y.innerText="";if(0<ea.length){var Ca=document.createElement("table");Ca.setAttribute("cellpadding","2");Ca.style.boxSizing="border-box";Ca.style.tableLayout="fixed";Ca.style.width="100%";var Ba=document.createElement("tbody");if(null!=ea&&0<ea.length)for(var ba=0;ba<ea.length;ba++)(function(da){function qa(){var pa=T.getCellsForTags([da],null,null,!0);T.isEnabled()?T.setSelectionCells(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.createParentLookup=function(b,f){function m(N){var H=d[N];null==H&&(H={inserted:[],moved:{}},d[N]=H);return H}var d={};if(null!=f[EditorUi.DIFF_INSERT])for(var u=0;u<f[EditorUi.DIFF_INSERT].length;u++){var v=f[EditorUi.DIFF_INSERT][u],E=null!=v.parent?v.parent:"",F=null!=v.previous?v.previous:"";m(E).inserted[F]=v}if(null!=f[EditorUi.DIFF_UPDATE])for(var L in f[EditorUi.DIFF_UPDATE])v=f[EditorUi.DIFF_UPDATE][L],null!=v.previous&&(E=v.parent,null==E&&(u=b.getCell(L),null!=u&&(u=
b.getParent(u),null!=u&&(E=u.getId()))),null!=E&&(m(E).moved[v.previous]=L));return d}; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
function(c,e,g){var q=0;if(null!=c&&"object"===typeof c&&"number"===typeof c.nodeType&&"string"===typeof c.nodeName&&"function"===typeof c.getAttribute){null!=c.nodeName&&(q^=this.hashValue(c.nodeName,e,g));if(null!=c.attributes){null!=g&&(g.attrCount+=c.attributes.length);for(var p=0;p<c.attributes.length;p++){var t=c.attributes[p].name,x=null!=e?e(c,t,c.attributes[p].value,!0):c.attributes[p].value;null!=x&&(q^=this.hashValue(t,e,g)+this.hashValue(x,e,g))}}if(null!=c.childNodes)for(p=0;p<c.childNodes.length;p++)q=
(q<<5)-q+this.hashValue(c.childNodes[p],e,g)<<0}else if(null!=c&&"function"!==typeof c){c=String(c);e=0;null!=g&&(g.byteCount+=c.length);for(p=0;p<c.length;p++)e=(e<<5)-e+c.charCodeAt(p)<<0;q^=e}return q};EditorUi.prototype.descriptorChanged=function(){};EditorUi.prototype.restoreLibraries=function(){};EditorUi.prototype.saveLibrary=function(c,e,g,q,p,t,x){};EditorUi.prototype.isScratchpadEnabled=function(){return isLocalStorage||mxClient.IS_CHROMEAPP};EditorUi.prototype.toggleScratchpad=function(){this.isScratchpadEnabled()&& | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
g)}}catch(q){}};EditorUi.prototype.updatePageLinksForCell=function(c,e){var g=document.createElement("div"),q=this.editor.graph,p=q.getLinkForCell(e);null!=p&&q.setLinkForCell(e,this.updatePageLink(c,p));if(q.isHtmlLabel(e)){g.innerHTML=Graph.sanitizeHtml(q.getLabel(e));for(var t=g.getElementsByTagName("a"),x=!1,B=0;B<t.length;B++)p=t[B].getAttribute("href"),null!=p&&(t[B].setAttribute("href",this.updatePageLink(c,p)),x=!0);x&&q.labelChanged(e,g.innerHTML)}for(B=0;B<q.model.getChildCount(e);B++)this.updatePageLinksForCell(c,
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= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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 |
"0"!=urlParams.pv;Graph.prototype.shadowId="dropShadow";Graph.prototype.svgShadowColor="#3D4574";Graph.prototype.svgShadowOpacity="0.4";Graph.prototype.svgShadowBlur="1.7";Graph.prototype.svgShadowSize="3";Graph.prototype.hiddenTags=[];Graph.prototype.defaultMathEnabled=!1;var e=Graph.prototype.init;Graph.prototype.init=function(){function k(Q){y=Q}e.apply(this,arguments);this.hiddenTags=[];window.mxFreehand&&(this.freehand=new mxFreehand(this));var y=null;mxEvent.addListener(this.container,"mouseenter",
k);mxEvent.addListener(this.container,"mousemove",k);mxEvent.addListener(this.container,"mouseleave",function(Q){y=null});this.isMouseInsertPoint=function(){return null!=y};var G=this.getInsertPoint;this.getInsertPoint=function(){return null!=y?this.getPointForEvent(y):G.apply(this,arguments)};var P=this.layoutManager.getLayout;this.layoutManager.getLayout=function(Q){var U=this.graph.getCellStyle(Q);if(null!=U&&"rack"==U.childLayout){var T=new mxStackLayout(this.graph,!1);T.gridSize=null!=U.rackUnitSize?
parseFloat(U.rackUnitSize):"undefined"!==typeof mxRackContainer?mxRackContainer.unitSize:20;T.marginLeft=U.marginLeft||0;T.marginRight=U.marginRight||0;T.marginTop=U.marginTop||0;T.marginBottom=U.marginBottom||0;T.allowGaps=U.allowGaps||0;T.horizontal="1"==mxUtils.getValue(U,"horizontalRack","0");T.resizeParent=!1;T.fill=!0;return T}return P.apply(this,arguments)};this.updateGlobalUrlVariables()};var g=Graph.prototype.postProcessCellStyle;Graph.prototype.postProcessCellStyle=function(k,y){return Graph.processFontStyle(g.apply(this, | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
document.body.clientHeight,(1200>(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)||708>c)&&this.formatWindow.window.toggleMinimized()):this.formatWindow.window.setVisible(!1)}};var F=EditorUi.prototype.toggleFormatPanel;EditorUi.prototype.toggleFormatPanel=function(c){var e=this.formatWindow;null!=e?e.window.setVisible(null!=c?c:!this.isFormatPanelVisible()):F.apply(this,arguments)};EditorUi.prototype.toggleShapesPanel=function(c){var e=EditorUi.prototype.hsplitPosition; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
function(g){E.value=g.target.result};e.readAsText(c)}},!1));f.appendChild(F);mxEvent.addListener(F,"change",function(){var c=u();if(0==E.value.length||E.value==J)J=c,E.value=J});b.isOffline()||"mermaid"!=m&&"plantUml"!=m||(L=mxUtils.button(mxResources.get("help"),function(){b.openLink("mermaid"==m?"https://mermaid-js.github.io/mermaid/#/":"https://plantuml.com/")}),L.className="geBtn",f.appendChild(L));L=mxUtils.button(mxResources.get("close"),function(){E.value==J?b.hideDialog():b.confirm(mxResources.get("areYouSure"), | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
"data:action/json,"+JSON.stringify(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?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 |
(null==this.scratchpad?StorageFile.getFileContent(this,".scratchpad",mxUtils.bind(this,function(c){null==c&&(c=this.emptyLibraryXml);this.loadLibrary(new StorageLibrary(this,c,".scratchpad"))})):this.closeLibrary(this.scratchpad))};EditorUi.prototype.createLibraryDataFromImages=function(c){if(!Editor.defaultCompressed)for(var e=0;e<c.length;e++)null!=c[e].xml&&"<"!=c[e].xml.charAt(0)&&(c[e].xml=mxUtils.trim(Graph.decompress(c[e].xml)));e=mxUtils.createXmlDocument();var g=e.createElement("mxlibrary");
mxUtils.setTextContent(g,JSON.stringify(c,null,2));e.appendChild(g);return mxUtils.getXml(e,"\n")};EditorUi.prototype.closeLibrary=function(c){null!=c&&(this.removeLibrarySidebar(c.getHash()),c.constructor!=LocalLibrary&&mxSettings.removeCustomLibrary(c.getHash()),".scratchpad"==c.title&&(this.scratchpad=null))};EditorUi.prototype.removeLibrarySidebar=function(c){var e=this.sidebar.palettes[c];if(null!=e){for(var g=0;g<e.length;g++)e[g].parentNode.removeChild(e[g]);delete this.sidebar.palettes[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.exportFile=function(b,f,m,d,u,v){u==App.MODE_DROPBOX?null!=this.dropbox&&this.spinner.spin(document.body,mxResources.get("saving"))&&this.dropbox.insertFile(f,d?this.base64ToBlob(b,m):b,mxUtils.bind(this,function(){this.spinner.stop()}),mxUtils.bind(this,function(E){this.spinner.stop();this.handleError(E)})):u==App.MODE_GOOGLE?null!=this.drive&&this.spinner.spin(document.body,mxResources.get("saving"))&&this.drive.insertFile(f,b,v,mxUtils.bind(this,function(E){this.spinner.stop()}),
mxUtils.bind(this,function(E){this.spinner.stop();this.handleError(E)}),m,d):u==App.MODE_ONEDRIVE?null!=this.oneDrive&&this.spinner.spin(document.body,mxResources.get("saving"))&&this.oneDrive.insertFile(f,d?this.base64ToBlob(b,m):b,mxUtils.bind(this,function(){this.spinner.stop()}),mxUtils.bind(this,function(E){this.spinner.stop();this.handleError(E)}),!1,v):u==App.MODE_GITHUB?null!=this.gitHub&&this.spinner.spin(document.body,mxResources.get("saving"))&&this.gitHub.insertFile(f,b,mxUtils.bind(this,
function(){this.spinner.stop()}),mxUtils.bind(this,function(E){this.spinner.stop();this.handleError(E)}),!0,v,d):u==App.MODE_GITLAB?null!=this.gitHub&&this.spinner.spin(document.body,mxResources.get("saving"))&&this.gitLab.insertFile(f,b,mxUtils.bind(this,function(){this.spinner.stop()}),mxUtils.bind(this,function(E){this.spinner.stop();this.handleError(E)}),!0,v,d):u==App.MODE_TRELLO?null!=this.trello&&this.spinner.spin(document.body,mxResources.get("saving"))&&this.trello.insertFile(f,d?this.base64ToBlob(b,
m):b,mxUtils.bind(this,function(){this.spinner.stop()}),mxUtils.bind(this,function(E){this.spinner.stop();this.handleError(E)}),!1,v):u==App.MODE_BROWSER&&(m=mxUtils.bind(this,function(){localStorage.setItem(f,b)}),null==localStorage.getItem(f)?m():this.confirm(mxResources.get("replaceIt",[f]),m))}; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
var GoogleSitesDialog=function(b,f){function m(){var S=null!=A&&null!=A.getTitle()?A.getTitle():this.defaultFilename;if(B.checked&&""!=J.value){var l="https://www.draw.io/gadget.xml?type=4&diagram="+encodeURIComponent(mxUtils.htmlEntities(J.value));null!=S&&(l+="&title="+encodeURIComponent(S));0<I.length&&(l+="&s="+I);""!=c.value&&"0"!=c.value&&(l+="&border="+c.value);""!=R.value&&(l+="&height="+R.value);l+="&pan="+(e.checked?"1":"0");l+="&zoom="+(g.checked?"1":"0");l+="&fit="+(x.checked?"1":"0");
l+="&resize="+(t.checked?"1":"0");l+="&x0="+Number(H.value);l+="&y0="+L;u.mathEnabled&&(l+="&math=1");p.checked?l+="&edit=_blank":q.checked&&(l+="&edit="+encodeURIComponent(mxUtils.htmlEntities(window.location.href)));N.value=l}else A.constructor==DriveFile||A.constructor==DropboxFile?(l="https://www.draw.io/gadget.xml?embed=0&diagram=",""!=J.value?l+=encodeURIComponent(mxUtils.htmlEntities(J.value))+"&type=3":(l+=A.getHash().substring(1),l=A.constructor==DropboxFile?l+"&type=2":l+"&type=1"),null!=
S&&(l+="&title="+encodeURIComponent(S)),""!=R.value&&(S=parseInt(R.value)+parseInt(H.value),l+="&height="+S),N.value=l):N.value=""}var d=document.createElement("div"),u=b.editor.graph,v=u.getGraphBounds(),E=u.view.scale,F=Math.floor(v.x/E-u.view.translate.x),L=Math.floor(v.y/E-u.view.translate.y);mxUtils.write(d,mxResources.get("googleGadget")+":");mxUtils.br(d);var N=document.createElement("input");N.setAttribute("type","text");N.style.marginBottom="8px";N.style.marginTop="2px";N.style.width="410px"; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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);mxEvent.addListener(this.container,"mousemove",k);mxEvent.addListener(this.container,"mouseleave",function(Q){y=null});this.isMouseInsertPoint=function(){return null!=y};var G=this.getInsertPoint;this.getInsertPoint=function(){return null!=y?this.getPointForEvent(y):G.apply(this,arguments)};var P=this.layoutManager.getLayout;this.layoutManager.getLayout=function(Q){var U=this.graph.getCellStyle(Q);if(null!=U&&"rack"==U.childLayout){var T=new mxStackLayout(this.graph,!1);T.gridSize=null!=U.rackUnitSize? | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
"/pid/misc.xml"];mxStencilRegistry.libraries.pid2valves=[SHAPES_PATH+"/pid2/mxPidValves.js"];mxStencilRegistry.libraries.pidFlowSensors=[STENCIL_PATH+"/pid/flow_sensors.xml"];mxMarker.getPackageForType=function(k){var y=null;null!=k&&0<k.length&&("ER"==k.substring(0,2)?y="mxgraph.er":"sysML"==k.substring(0,5)&&(y="mxgraph.sysml"));return y};var D=mxMarker.createMarker;mxMarker.createMarker=function(k,y,G,P,Q,U,T,W,X,Y){if(null!=G&&null==mxMarker.markers[G]){var Z=this.getPackageForType(G);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 |
c,e,g,q,p);this.showDialog(c.container,640,440,!0,!1,mxUtils.bind(this,function(t){t&&null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.showSplash()}));c.init()};var m=EditorUi.prototype.createFormat;EditorUi.prototype.createFormat=function(c){var e=m.apply(this,arguments);this.editor.graph.addListener("viewStateChanged",mxUtils.bind(this,function(g){this.editor.graph.isSelectionEmpty()&&e.refresh()}));return e};EditorUi.prototype.handleError=function(c,e,g,q,p,t,x){var B=null!=this.spinner&& | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
v&&(this.lastAutosaveRevision=(new Date).getTime());this.save(v,mxUtils.bind(this,function(E){this.autosaveCompleted();null!=m&&m(E)}),mxUtils.bind(this,function(E){null!=d&&d(E)}))}else this.isModified()||this.ui.editor.setStatus(""),null!=m&&m(null)}catch(E){null!=d&&d(E)}}),b);EditorUi.debug("DrawioFile.autosave",[this],"thread",u,"delay",b,"saving",this.savingFile);this.autosaveThread=u};DrawioFile.prototype.isAutosaveNow=function(){return!0};DrawioFile.prototype.autosaveCompleted=function(){}; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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){"undefined"!==typeof MathJax&&"function"===typeof MathJax.typeset?Editor.doMathJaxRender(T):Editor.mathJaxQueue.push(T)};Editor.onMathJaxDone=function(){};var Q=Editor.prototype.init;Editor.prototype.init=function(){Q.apply(this,arguments);var T=mxUtils.bind(this,function(W,X){null!=this.graph.container&&this.graph.mathEnabled&&Editor.MathJaxRender(this.graph.container)});this.graph.model.addListener(mxEvent.CHANGE,T);this.graph.addListener(mxEvent.REFRESH,T)};y=document.getElementsByTagName("script"); | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
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 |
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!=
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 |
this.useCanvasForExport||".png"!=q||(q=".drawio"),".svg"===q||".xml"===q||".html"===q||".png"===q||".drawio"===q)&&(e=g+q)}c=new LocalFile(this,c,null!=urlParams.title?decodeURIComponent(urlParams.title):e,!0);c.getHash=function(){return b};this.fileLoaded(c,!0)?null!=d&&d():R()||this.handleError({message:mxResources.get("fileNotFound")},mxResources.get("errorLoadingFile"))}else R()||this.handleError({message:mxResources.get("fileNotFound")},mxResources.get("errorLoadingFile"))}),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 |
EditorUi.prototype.selectPage=function(b,f,m){try{if(b!=this.currentPage){var d=this.editor.graph;d.isEditing()&&d.stopEditing(!1);f=null!=f?f:!1;d.isMouseDown=!1;d.reset();var u=d.model.createUndoableEdit();u.ignoreEdit=!0;var v=new SelectPage(this,b,m);v.execute();u.add(v);u.notify();d.tooltipHandler.hide();null!=b.viewState&&null==b.viewState.scrollTop&&(d.selectUnlockedLayer(),this.resetScrollbars(),d.isLightboxView()&&this.lightboxFit(),null!=this.chromelessResize&&(d.container.scrollleft=0,
d.container.scrollTop=0,this.chromelessResize()));f||d.model.fireEvent(new mxEventObject(mxEvent.UNDO,"edit",u))}}catch(E){this.handleError(E)}};EditorUi.prototype.selectNextPage=function(b){var f=this.currentPage;null!=f&&null!=this.pages&&(f=mxUtils.indexOf(this.pages,f),b?this.selectPage(this.pages[mxUtils.mod(f+1,this.pages.length)]):b||this.selectPage(this.pages[mxUtils.mod(f-1,this.pages.length)]))}; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
preview:aa.getAttribute("preview"),clibs:fa,tags:aa.getAttribute("tags")};ja.push(fa);null!=ma&&(ja=va[oa],null==ja&&(ja={},va[oa]=ja),oa=ja[ma],null==oa&&(oa=[],ja[ma]=oa),oa.push(fa))}aa=aa.nextSibling}O.stop();l()}})};z.appendChild(qa);z.appendChild(wa);z.appendChild(da);var Ua=!1,ia=H;/^https?:\/\//.test(ia)&&!b.editor.isCorsEnabledForUrl(ia)&&(ia=PROXY_URL+"?url="+encodeURIComponent(ia));O.spin(da);null!=q?q(function(aa,la){Ea=aa;W=Da=la;Va()},Va):Va();T=ua}mxEvent.addListener(M,"keypress",function(aa){b.dialog.container.firstChild== | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
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,
g){g=null!=g?g:c.name;var q=new FileReader;q.onload=mxUtils.bind(this,function(){this.parseFileData(q.result,e,g)});q.readAsText(c)};EditorUi.prototype.parseFileData=function(c,e,g){var q=new XMLHttpRequest;q.open("POST",OPEN_URL);q.setRequestHeader("Content-Type","application/x-www-form-urlencoded");q.onreadystatechange=function(){e(q)};q.send("format=xml&filename="+encodeURIComponent(g)+"&data="+encodeURIComponent(c));try{EditorUi.logEvent({category:"GLIFFY-IMPORT-FILE",action:"size_"+file.size})}catch(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 |
EditorUi.debug=function(){try{if(null!=window.console&&"1"==urlParams.test){for(var c=[(new Date).toISOString()],e=0;e<arguments.length;e++)c.push(arguments[e]);console.log.apply(console,c)}}catch(g){}};EditorUi.removeChildNodes=function(c){for(;null!=c.firstChild;)c.removeChild(c.firstChild)};EditorUi.prototype.emptyDiagramXml='<mxGraphModel><root><mxCell id="0"/><mxCell id="1" parent="0"/></root></mxGraphModel>';EditorUi.prototype.emptyLibraryXml="<mxlibrary>[]</mxlibrary>";EditorUi.prototype.mode= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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 |
m.setCellStyles(mxConstants.STYLE_ROTATION,Number(p.value),[f[x]])}}finally{m.getModel().endUpdate()}});t.className="geBtn gePrimaryBtn";mxEvent.addListener(u,"keypress",function(x){13==x.keyCode&&t.click()});v=document.createElement("div");v.style.marginTop="20px";v.style.textAlign="right";b.editor.cancelFirst?(v.appendChild(d),v.appendChild(t)):(v.appendChild(t),v.appendChild(d));u.appendChild(v);this.container=u},LibraryDialog=function(b,f,m,d,u,v){function E(S){for(S=document.elementFromPoint(S.clientX, | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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.readAsText(C)}else this.doImportVisio(C,e,B,q)}catch(M){B(M)}else try{""==z.responseType||"text"==z.responseType?B({message:z.responseText}):(D=new FileReader,D.onload=function(){try{B({message:JSON.parse(D.result).Message})}catch(M){B(M)}},D.readAsText(z.response))}catch(M){B({})}});z.send(A)}else if(x.clear())try{this.doImportVisio(c,e,B,q)}catch(C){B(C)}}else B({message:mxResources.get("serviceUnavailableOrBlocked")})});this.doImportVisio||this.loadingExtensions||this.isOffline(!0)?I():(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: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())), | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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))};var q=mxSvgCanvas2D.prototype.updateTextNodes;mxSvgCanvas2D.prototype.updateTextNodes=function(k,y,G,P,Q,U,T,W,X,Y,Z){q.apply(this,arguments);Graph.processFontAttributes(Z)};var p=mxText.prototype.redraw;mxText.prototype.redraw=function(){p.apply(this,arguments);null!=this.node&&"DIV"==this.node.nodeName&&Graph.processFontAttributes(this.node)};Graph.prototype.createTagsDialog=function(k,y,G){function P(){for(var ea=T.getSelectionCells(),za=[],Ca=0;Ca<ea.length;Ca++)T.isCellVisible(ea[Ca])&& | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
StorageFile.listFiles=function(b,f,m,d){b.getDatabaseItems(function(u){var v=[];if(null!=u)for(var E=0;E<u.length;E++)"."==u[E].title.charAt(0)||null!=f&&u[E].type!=f||v.push(u[E]);m(v)},function(){null==b.database?m(StorageFile.listLocalStorageFiles(f)):null!=d&&d()},"filesInfo")};StorageFile.deleteFile=function(b,f,m,d){b.removeDatabaseItem([f,f],m,function(){null==b.database?(localStorage.removeItem(f),m()):null!=d&&d()},["files","filesInfo"])};StorageLibrary=function(b,f,m){StorageFile.call(this,b,f,m)};mxUtils.extend(StorageLibrary,StorageFile);StorageLibrary.prototype.type="L";StorageLibrary.prototype.isAutosave=function(){return!0};StorageLibrary.prototype.saveAs=function(b,f,m){this.saveFile(b,!1,f,m)};StorageLibrary.prototype.getHash=function(){return"L"+encodeURIComponent(this.title)};StorageLibrary.prototype.getTitle=function(){return".scratchpad"==this.title?mxResources.get("scratchpad"):this.title}; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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"); | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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?
this.originalFillAndStroke.apply(this.canvas,arguments):this.drawPath(this.getStyle(!0,!0))};k.prototype.destroy=function(){this.canvas.lineTo=this.originalLineTo;this.canvas.moveTo=this.originalMoveTo;this.canvas.close=this.originalClose;this.canvas.quadTo=this.originalQuadTo;this.canvas.curveTo=this.originalCurveTo;this.canvas.arcTo=this.originalArcTo;this.canvas.close=this.originalClose;this.canvas.fill=this.originalFill;this.canvas.stroke=this.originalStroke;this.canvas.fillAndStroke=this.originalFillAndStroke; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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(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 |
StorageFile.listFiles=function(b,f,m,d){b.getDatabaseItems(function(u){var v=[];if(null!=u)for(var E=0;E<u.length;E++)"."==u[E].title.charAt(0)||null!=f&&u[E].type!=f||v.push(u[E]);m(v)},function(){null==b.database?m(StorageFile.listLocalStorageFiles(f)):null!=d&&d()},"filesInfo")};StorageFile.deleteFile=function(b,f,m,d){b.removeDatabaseItem([f,f],m,function(){null==b.database?(localStorage.removeItem(f),m()):null!=d&&d()},["files","filesInfo"])};StorageLibrary=function(b,f,m){StorageFile.call(this,b,f,m)};mxUtils.extend(StorageLibrary,StorageFile);StorageLibrary.prototype.type="L";StorageLibrary.prototype.isAutosave=function(){return!0};StorageLibrary.prototype.saveAs=function(b,f,m){this.saveFile(b,!1,f,m)};StorageLibrary.prototype.getHash=function(){return"L"+encodeURIComponent(this.title)};StorageLibrary.prototype.getTitle=function(){return".scratchpad"==this.title?mxResources.get("scratchpad"):this.title}; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
va,Ha=Ia+(Ta.x-Ia)/va-ha,Va=Sa+(Ta.y-Sa)/va-ha,Ua=new Image;Ua.onload=function(){try{for(var ia=-Math.round(Da-mxUtils.mod((Ia-Ha)*W,Da)),aa=-Math.round(Da-mxUtils.mod((Sa-Va)*W,Da));ia<wa;ia+=Da)for(var la=aa;la<Qa;la+=Da)pa.drawImage(Ua,ia/W,la/W);Aa()}catch(ma){null!=Q&&Q(ma)}};Ua.onerror=function(ia){null!=Q&&Q(ia)};Ua.src=Ea}else Aa()}catch(ia){null!=Q&&Q(ia)}});qa.onerror=function(Aa){null!=Q&&Q(Aa)};Y&&this.graph.addSvgShadow(da);this.graph.mathEnabled&&this.addMathCss(da);var ka=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 |
null!=c)m||b.hideDialog(),c(za,Ba,M.value);else if(d)m||b.hideDialog(),d(na,M.value,Ca,ca);else{var aa=M.value;null!=aa&&0<aa.length&&b.pickFolder(b.mode,function(la){b.createFile(aa,na,null!=ca&&0<ca.length?ca:null,null,function(){b.hideDialog()},null,la,null,null!=ha&&0<ha.length?ha:null)},b.mode!=App.MODE_GOOGLE||null==b.stateArg||null==b.stateArg.folderId)}}function A(aa,la,ma,oa,fa,ja,sa){null!=ea&&(ea.style.backgroundColor="transparent",ea.style.border="1px solid transparent");V.removeAttribute("disabled");
na=la;ca=ma;ha=ja;ea=aa;za=oa;Ca=sa;Ba=fa;ea.style.backgroundColor=F;ea.style.border=L}function S(aa,la,ma,oa,fa,ja,sa,ta,La,Ga,ya){function Ja(Na,Ya){null==Fa?(Ka=Na,Ka=/^https?:\/\//.test(Ka)&&!b.editor.isCorsEnabledForUrl(Ka)?PROXY_URL+"?url="+encodeURIComponent(Ka):TEMPLATE_PATH+"/"+Ka,mxUtils.get(Ka,mxUtils.bind(this,function(Wa){200<=Wa.getStatus()&&299>=Wa.getStatus()&&(Fa=Wa.getText());Ya(Fa,Ka)}))):Ya(Fa,Ka)}function Ma(Na,Ya){if(null==aa||y||b.sidebar.currentElt==ra)b.sidebar.hideTooltip(); | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
if(null!=t.hoverIcons){var z=t.hoverIcons.update;t.hoverIcons.update=function(){x.freehand.isDrawing()||z.apply(this,arguments)}}if(null!=x.freehand){var C=x.freehand.createStyle;x.freehand.createStyle=function(W){return C.apply(this,arguments)+"sketch=0;"}}t.editor.addListener("statusChanged",mxUtils.bind(this,function(){t.setStatusText(t.editor.getStatus())}));t.setStatusText(t.editor.getStatus());var D=t.menus.get("viewZoom");if(null!=D){var M=function(W){if(mxEvent.isAltDown(W))t.hideCurrentMenu(), | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
return y};Graph.prototype.getDefaultStylesheet=function(){if(null==this.defaultStylesheet){var k=this.themes["default-style2"];this.defaultStylesheet=(new mxCodec(k.ownerDocument)).decode(k)}return this.defaultStylesheet};Graph.prototype.isViewer=function(){return urlParams.viewer};var B=Graph.prototype.getSvg;Graph.prototype.getSvg=function(k,y,G,P,Q,U,T,W,X,Y,Z,ca,ha,na){var ea=null,za=null,Ca=null;ca||null==this.themes||"darkTheme"!=this.defaultThemeName||(ea=this.stylesheet,za=this.shapeForegroundColor, | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
this.loadImage(Y.target.result,mxUtils.bind(this,function(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(K,U,L){return this.graph.isCellSelected(K)?!1:da.apply(this,arguments)};var ja=this.updateMouseEvent;this.updateMouseEvent=function(K){K=ja.apply(this,arguments);null!=K.state&&this.isCellLocked(this.getLayerForCell(K.getCell()))&&(K.state=null);return K};var ia=this.isCellSelectable;this.isCellSelectable=function(K){return ia.apply(this,arguments)&&!this.isCellLocked(this.getLayerForCell(K))};this.isCellLocked=function(K){for(;null!=K;){if("1"==mxUtils.getValue(this.getCurrentCellStyle(K), | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
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=
c?"":"hidden";this.formatContainer.style.visibility=c?"":"hidden";this.sidebarContainer.style.display=c?"":"none";this.hsplit.style.display=c&&"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme?"":"none";this.editor.graph.setEnabled(c);null!=this.tabContainer&&(this.tabContainer.style.visibility=c?"":"hidden");null!=this.ruler&&(this.ruler.hRuler.container.style.visibility=c?"":"hidden",this.ruler.vRuler.container.style.visibility=c?"":"hidden");c||this.hideWindows()};EditorUi.prototype.initializeEmbedMode= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
va,Ha=Ia+(Ta.x-Ia)/va-ha,Va=Sa+(Ta.y-Sa)/va-ha,Ua=new Image;Ua.onload=function(){try{for(var ia=-Math.round(Da-mxUtils.mod((Ia-Ha)*W,Da)),aa=-Math.round(Da-mxUtils.mod((Sa-Va)*W,Da));ia<wa;ia+=Da)for(var la=aa;la<Qa;la+=Da)pa.drawImage(Ua,ia/W,la/W);Aa()}catch(ma){null!=Q&&Q(ma)}};Ua.onerror=function(ia){null!=Q&&Q(ia)};Ua.src=Ea}else Aa()}catch(ia){null!=Q&&Q(ia)}});qa.onerror=function(Aa){null!=Q&&Q(Aa)};Y&&this.graph.addSvgShadow(da);this.graph.mathEnabled&&this.addMathCss(da);var ka=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 |
S(la.url,la.libs,la.title,la.tooltip?la.tooltip:la.title,la.select,la.imgUrl,la.info,la.onClick,la.preview,la.noImg,la.clibs);aa&&la.click();aa=!1}}function x(aa,la,ma,oa,fa,ja){if(null!=aa&&mxUtils.isAncestorNode(document.body,oa)){aa=mxUtils.parseXml(aa);aa=Editor.parseDiagramNode(aa.documentElement);var sa=new mxCodec(aa.ownerDocument),ta=new mxGraphModel;sa.decode(aa,ta);aa=ta.root.getChildAt(0).children;b.sidebar.createTooltip(oa,aa,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!=fa?mxResources.get(fa):null,!0,new mxPoint(la,ma),!0,function(){P=null!=b.sidebar.tooltip&&"none"!=b.sidebar.tooltip.style.display;null!=ja&&A(oa,null,null,ja,infoObj,clibs)},!0,!1)}}function B(){var aa=document.createElement("div");aa.style.position="absolute";aa.style.overflow="visible";aa.style.left="8px";aa.style.right="8px";aa.style.bottom="8px";aa.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 |
T[X[Z]]&&Y++;Y=Y==U}Y&&(1!=P||this.isCellVisible(y[W]))&&Q.push(y[W])}}return Q};Graph.prototype.getAllTags=function(){return this.getTagsForCells(this.model.getDescendants(this.model.getRoot()))};Graph.prototype.getCommonTagsForCells=function(k){for(var y=null,G=[],P=0;P<k.length;P++){var Q=this.getTagsForCell(k[P]);G=[];if(0<Q.length){Q=Q.split(" ");for(var U={},T=0;T<Q.length;T++)if(null==y||null!=y[Q[T]])U[Q[T]]=!0,G.push(Q[T]);y=U}else return[]}return G};Graph.prototype.getTagsForCells=function(k){for(var y=
[],G={},P=0;P<k.length;P++){var Q=this.getTagsForCell(k[P]);if(0<Q.length){Q=Q.split(" ");for(var U=0;U<Q.length;U++)null==G[Q[U]]&&(G[Q[U]]=!0,y.push(Q[U]))}}return y};Graph.prototype.getTagsForCell=function(k){return this.getAttributeForCell(k,"tags","")};Graph.prototype.addTagsForCells=function(k,y){if(0<k.length&&0<y.length){this.model.beginUpdate();try{for(var G=0;G<k.length;G++){for(var P=this.getTagsForCell(k[G]),Q=P.split(" "),U=!1,T=0;T<y.length;T++){var W=mxUtils.trim(y[T]);""!=W&&0>mxUtils.indexOf(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 |
EditorUi.prototype.patchPage=function(b,f,m,d){var u=b==this.currentPage?this.editor.graph.model:new mxGraphModel(b.root),v=this.createParentLookup(u,f);u.beginUpdate();try{var E=u.updateEdgeParent,F=new mxDictionary,L=[];u.updateEdgeParent=function(q,p){!F.get(q)&&d&&(F.put(q,!0),L.push(q))};var N=v[""],H=null!=N&&null!=N.inserted?N.inserted[""]:null,R=null;null!=H&&(R=this.getCellForJson(H));if(null==R){var J=null!=N&&null!=N.moved?N.moved[""]:null;null!=J&&(R=u.getCell(J))}null!=R&&(u.setRoot(R), | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
"geCommentActionLnk";mxUtils.write(Y,U);X.appendChild(Y);mxEvent.addListener(Y,"click",function(Z){T(Z,n);Z.preventDefault();mxEvent.consume(Z)});Q.appendChild(X);W&&(X.style.display="none")}function O(){function U(X){T.push(W);if(null!=X.replies)for(var Y=0;Y<X.replies.length;Y++)W=W.nextSibling,U(X.replies[Y])}var T=[],W=k;U(n);return{pdiv:W,replies:T}}function V(U,T,W,X,Y){function Z(){N(ea);n.addReply(na,function(za){na.id=za;n.replies.push(na);R(ea);W&&W()},function(za){ca();H(ea);b.handleError(za, | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
v)for(E=0;E<v.length;E++)v[E].node.style.visibility=d?"visible":"hidden"};var m=mxGuide.prototype.destroy;mxGuide.prototype.destroy=function(){m.call(this);var d=this.guidesArrVer,u=this.guidesArrHor;if(null!=d){for(var v=0;v<d.length;v++)d[v].destroy();this.guidesArrVer=null}if(null!=u){for(v=0;v<u.length;v++)u[v].destroy();this.guidesArrHor=null}}})();function mxRuler(b,f,m,d){function u(){var x=b.diagramContainer;R.style.top=x.offsetTop-L+"px";R.style.left=x.offsetLeft-L+"px";R.style.width=(m?0:x.offsetWidth)+L+"px";R.style.height=(m?x.offsetHeight:0)+L+"px"}function v(x,B,I){if(null!=E)return x;var A;return function(){var S=this,l=arguments,n=I&&!A;clearTimeout(A);A=setTimeout(function(){A=null;I||x.apply(S,l)},B);n&&x.apply(S,l)}}var E=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame, | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
(new mxXmlRequest(SAVE_URL,"format="+R+"&xml="+encodeURIComponent(N)+"&filename="+encodeURIComponent(b)+(v?"&binary=1":""))).simulate(document,"_blank")}else this.ui.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(N)}));F()}});v?(f=this.ui.getPngFileProperties(this.ui.fileNode),this.ui.getEmbeddedPng(mxUtils.bind(this,function(N){L(N)}),d,this.ui.getCurrentFile()!=this?E:null,f.scale,f.border)):L(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 |
DrawioFile.prototype.handleConflictError=function(b,f){var m=mxUtils.bind(this,function(){this.handleFileSuccess(!0)}),d=mxUtils.bind(this,function(E){this.handleFileError(E,!0)}),u=mxUtils.bind(this,function(){this.ui.spinner.spin(document.body,mxResources.get(this.savingSpinnerKey))&&(this.ui.editor.setStatus(""),this.save(!0,m,d,null,!0,this.constructor!=GitHubFile&&this.constructor!=GitLabFile||null==b?null:b.commitMessage))}),v=mxUtils.bind(this,function(){this.ui.spinner.spin(document.body,mxResources.get("updatingDocument"))&&
this.synchronizeFile(mxUtils.bind(this,function(){this.ui.spinner.stop();this.ui.spinner.spin(document.body,mxResources.get(this.savingSpinnerKey))&&this.save(!0,m,d,null,null,this.constructor!=GitHubFile&&this.constructor!=GitLabFile||null==b?null:b.commitMessage)}),d)});"none"==DrawioFile.SYNC?this.showCopyDialog(m,d,u):this.invalidChecksum?this.showRefreshDialog(m,d,this.getErrorMessage(b)):f?this.showConflictDialog(u,v):this.addConflictStatus(this.getErrorMessage(b),mxUtils.bind(this,function(){this.ui.editor.setStatus(mxUtils.htmlEntities(mxResources.get("updatingDocument")));
this.synchronizeFile(m,d)}))};DrawioFile.prototype.getErrorMessage=function(b){var f=null!=b?null!=b.error?b.error.message:b.message:null;null==f&&null!=b&&b.code==App.ERROR_TIMEOUT?f=mxResources.get("timeout"):"0"==f&&(f=mxResources.get("noResponse"));return f};DrawioFile.prototype.isOverdue=function(){return null!=this.ageStart&&Date.now()-this.ageStart.getTime()>=this.ui.warnInterval}; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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.prev.getId():"";null!=f.page.getName()&&b[L].getName()!=f.page.getName()&&(R.name=f.page.getName());mxUtils.isEmptyObject(R)||(E[N]=R)}delete v[b[L].getId()];F=b[L]}for(N in v)f=v[N],m.push({data:mxUtils.getXml(f.page.node),previous:null!=f.prev?f.prev.getId():""});mxUtils.isEmptyObject(E)||(u[EditorUi.DIFF_UPDATE]=E);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 |
StorageFile.prototype.saveFile=function(b,f,m,d){if(this.isEditable()){var u=mxUtils.bind(this,function(){this.isRenamable()&&(this.title=b);try{var v=mxUtils.bind(this,function(){this.setModified(this.getShadowModified());this.contentChanged();null!=m&&m()});this.setShadowModified(!1);var E=this.getData();this.ui.setDatabaseItem(null,[{title:this.title,size:E.length,lastModified:Date.now(),type:this.type},{title:this.title,data:E}],v,mxUtils.bind(this,function(){if(null==this.ui.database)try{this.ui.setLocalData(this.title,
E,v)}catch(F){null!=d&&d(F)}else null!=d&&d()}),["filesInfo","files"])}catch(F){null!=d&&d(F)}});this.isRenamable()&&"."==b.charAt(0)&&null!=d?d({message:mxResources.get("invalidName")}):StorageFile.getFileInfo(this.ui,b,mxUtils.bind(this,function(v){this.isRenamable()&&this.getTitle()!=b&&null!=v?this.ui.confirm(mxResources.get("replaceIt",[b]),u,d):u()}),d)}else null!=m&&m()}; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
for(var Ma=0;Ma<t.length;Ma++){var ra=I.getCellGeometry(t[Ma]);ra.x=Math.round(I.snap(ra.x));ra.y=Math.round(I.snap(ra.y));"auto"==k&&(ra.width=Math.round(I.snap(ra.width)));"auto"==y&&(ra.height=Math.round(I.snap(ra.height)))}};if("["==ea.charAt(0)){var oa=Y;I.view.validate();this.executeLayouts(I.createLayouts(JSON.parse(ea)),function(){ma();oa()});Y=null}else if("circle"==ea){var fa=new mxCircleLayout(I);fa.disableEdgeStyle=!1;fa.resetEdges=!1;var ja=fa.isVertexIgnored;fa.isVertexIgnored=function(Ma){return ja.apply(this,
arguments)||0>mxUtils.indexOf(t,Ma)};this.executeLayout(function(){fa.execute(I.getDefaultParent());ma()},!0,Y);Y=null}else if("horizontaltree"==ea||"verticaltree"==ea||"auto"==ea&&Ua.length==2*t.length-1&&1==Va.length){I.view.validate();var sa=new mxCompactTreeLayout(I,"horizontaltree"==ea);sa.levelDistance=T;sa.edgeRouting=!1;sa.resetEdges=!1;this.executeLayout(function(){sa.execute(I.getDefaultParent(),0<Va.length?Va[0]:null)},!0,Y);Y=null}else if("horizontalflow"==ea||"verticalflow"==ea||"auto"== | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
this.update)};var H=Format.prototype.refresh;Format.prototype.refresh=function(){null!=this.editorUi.getCurrentFile()||"1"==urlParams.embed||this.editorUi.editor.chromeless?H.apply(this,arguments):this.clear()};DiagramFormatPanel.prototype.isMathOptionVisible=function(k){return"simple"==Editor.currentTheme||"sketch"==Editor.currentTheme||"min"==Editor.currentTheme};var R=DiagramFormatPanel.prototype.addOptions;DiagramFormatPanel.prototype.addOptions=function(k){k=R.apply(this,arguments);var y=this.editorUi,
G=y.editor.graph;if(G.isEnabled()){var P=y.getCurrentFile();null!=P&&P.isAutosaveOptional()&&k.appendChild(this.createOption(mxResources.get("autosave"),function(){return y.editor.autosave},function(T){y.editor.setAutosave(T);y.editor.autosave&&P.isModified()&&P.fileChanged()},{install:function(T){this.listener=function(){T(y.editor.autosave)};y.editor.addListener("autosaveChanged",this.listener)},destroy:function(){y.editor.removeListener(this.listener)}}))}if(this.isMathOptionVisible()&&G.isEnabled()&&
"undefined"!==typeof MathJax){var Q=this.createOption(mxResources.get("mathematicalTypesetting"),function(){return G.mathEnabled},function(T){y.actions.get("mathematicalTypesetting").funct()},{install:function(T){this.listener=function(){T(G.mathEnabled)};y.addListener("mathEnabledChanged",this.listener)},destroy:function(){y.removeListener(this.listener)}});k.appendChild(Q);var U=y.menus.createHelpLink("https://www.drawio.com/doc/faq/math-typesetting");U.style.position="relative";U.style.marginLeft=
"6px";Q.appendChild(U)}return k};mxCellRenderer.prototype.defaultVertexShape.prototype.customProperties=[{name:"arcSize",dispName:"Arc Size",type:"float",min:0,defVal:mxConstants.LINE_ARCSIZE},{name:"absoluteArcSize",dispName:"Abs. Arc Size",type:"bool",defVal:!1}];mxCellRenderer.defaultShapes.link.prototype.customProperties=[{name:"width",dispName:"Width",type:"float",min:0,defVal:4}];mxCellRenderer.defaultShapes.flexArrow.prototype.customProperties=[{name:"width",dispName:"Width",type:"float",min: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 |
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 |
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 |
mxUtils.bind(this,function(U){window.clearTimeout(P);G&&y(Editor.createSvgDataUri(U.getText()))}),function(){window.clearTimeout(P);G&&y(Editor.svgBrokenImage.src)});else{var Q=new Image;this.crossOriginImages&&(Q.crossOrigin="anonymous");Q.onload=function(){window.clearTimeout(P);if(G)try{var U=document.createElement("canvas"),T=U.getContext("2d");U.height=Q.height;U.width=Q.width;T.drawImage(Q,0,0);y(U.toDataURL())}catch(W){y(Editor.svgBrokenImage.src)}};Q.onerror=function(){window.clearTimeout(P); | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
this.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]);
return y};Graph.prototype.getDefaultStylesheet=function(){if(null==this.defaultStylesheet){var k=this.themes["default-style2"];this.defaultStylesheet=(new mxCodec(k.ownerDocument)).decode(k)}return this.defaultStylesheet};Graph.prototype.isViewer=function(){return urlParams.viewer};var B=Graph.prototype.getSvg;Graph.prototype.getSvg=function(k,y,G,P,Q,U,T,W,X,Y,Z,ca,ha,na){var ea=null,za=null,Ca=null;ca||null==this.themes||"darkTheme"!=this.defaultThemeName||(ea=this.stylesheet,za=this.shapeForegroundColor, | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
AspectDialog.prototype.createPageItem=function(b,f,m){var d=document.createElement("div");d.className="geAspectDlgListItem";d.setAttribute("data-page-id",b);d.innerHTML='<div style="max-width: 100%; max-height: 100%;"></div><div class="geAspectDlgListItemText">'+mxUtils.htmlEntities(f)+"</div>";this.pagesContainer.appendChild(d);var u=this.createViewer(d.childNodes[0],m);f=mxUtils.bind(this,function(){null!=this.selectedItem&&(this.selectedItem.className="geAspectDlgListItem");this.selectedItem=d;
this.selectedPage=b;d.className+=" geAspectDlgListItemSelected";this.layersContainer.innerText="";this.selectedLayers={};this.okBtn.setAttribute("disabled","disabled");var v=u.model;v=v.getChildCells(v.getRoot());for(var E=0;E<v.length;E++)this.createLayerItem(v[E],b,u,m)});mxEvent.addListener(d,"click",f);this.aspect.pageId==b&&f()}; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
"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, | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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.parentNode.removeChild(x)}catch(I){}}else this.createEchoRequest(c,e,g,q,p).simulate(document,"_blank")}};EditorUi.prototype.createEchoRequest=function(c,e,g,q,p,t){c="xml="+encodeURIComponent(c);return new mxXmlRequest(SAVE_URL,c+(null!=g?"&mime="+g:"")+(null!=p?"&format="+p:"")+(null!=t?"&base64="+t:"")+(null!=e?"&filename="+encodeURIComponent(e):"")+(q?"&binary=1":""))};EditorUi.prototype.base64ToBlob=function(c,e){e=e||"";c=atob(c);for(var g=c.length,q=Math.ceil(g/1024),p=Array(q),t=0;t<q;++t){for(var x= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
if(null!=y&&0<y.length){var U=document.createElement("script");U.setAttribute("type","text/javascript");U.setAttribute("src",k);y[0].parentNode.appendChild(U)}}};Editor.prototype.csvToArray=function(k){if(0<k.length){var y="",G=[""],P=0,Q=!0,U;k=$jscomp.makeIterator(k);for(U=k.next();!U.done;U=k.next())U=U.value,'"'===U?(Q&&U===y&&(G[P]+=U),Q=!Q):","===U&&Q?U=G[++P]="":G[P]+=U,y=U;return G}return[]};Editor.prototype.getProxiedUrl=function(k){if((/test\.draw\.io$/.test(window.location.hostname)||/app\.diagrams\.net$/.test(window.location.hostname))&&
!this.isCorsEnabledForUrl(k)){var y=/(\.v(dx|sdx?))($|\?)/i.test(k)||/(\.vs(x|sx?))($|\?)/i.test(k);y=/\.png$/i.test(k)||/\.pdf$/i.test(k)||y;var G="t="+(new Date).getTime();k=PROXY_URL+"?url="+encodeURIComponent(k)+"&"+G+(y?"&base64=1":"")}return k};Editor.prototype.isCorsEnabledForUrl=function(k){if(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||k.substring(0,window.location.origin.length)==window.location.origin)return!0;null!=urlParams.cors&&null==this.corsRegExp&&(this.corsRegExp=new RegExp(decodeURIComponent(urlParams.cors))); | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
z&&0<z.length)return!0;d.showError(mxResources.get("error"),mxResources.get("invalidName"),mxResources.get("ok"));return!1},null,null,null,null,d.editor.fileExtensions);this.editorUi.showDialog(n.container,340,96,!0,!0);n.init()}}));H.isEnabled=function(){return this.enabled&&v.apply(this,arguments)};H.visible="1"!=urlParams.embed;d.actions.addAction("makeCopy...",mxUtils.bind(this,function(){var l=d.getCurrentFile();if(null!=l){var n=d.getCopyFilename(l);l.constructor==DriveFile?(n=new CreateDialog(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.customFonts)))}finally{G.getModel().endUpdate()}}}));this.editorUi.showDialog(Q.container,380,Editor.enableWebFonts?250:180,!0,!0);Q.init()}),n,null,!0)})))}})();function DiagramPage(b,f){this.node=b;null!=f?this.node.setAttribute("id",f):null==this.getId()&&this.node.setAttribute("id",Editor.guid())}DiagramPage.prototype.node=null;DiagramPage.prototype.root=null;DiagramPage.prototype.viewState=null;DiagramPage.prototype.getId=function(){return this.node.getAttribute("id")};DiagramPage.prototype.getName=function(){return this.node.getAttribute("name")}; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
f},ConnectionPointsDialog=function(b,f){function m(){null!=u&&u.destroy()}var d=document.createElement("div");d.style.userSelect="none";var u=null;this.init=function(){function v(C,D,M){C=new mxCell("",new mxGeometry(C,D,6,6),"shape=mxgraph.basic.x;fillColor=#29b6f2;strokeColor=#29b6f2;points=[];rotatable=0;resizable=0;connectable=0;editable=0;");C.vertex=!0;C.cp=!0;C.constObj=M;return R.addCell(C)}function E(C){C=R.getSelectionCells();R.deleteCells(C)}function F(){var C=parseInt(S.value)||0;C=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 |
EditorUi.prototype.loadOrgChartLayouts=function(c){this.createTimeout(null,mxUtils.bind(this,function(e){var g=mxUtils.bind(this,function(){this.loadingOrgChart=!1;e.clear()&&(Graph.layoutNames.push("mxOrgChartLayout"),this.spinner.stop(),c())}),q=mxUtils.bind(this,function(p){this.loadingOrgChart=!1;e.clear()&&this.handleError(p)});"undefined"!==typeof mxOrgChartLayout||this.loadingOrgChart||this.isOffline(!0)?g():this.spinner.spin(document.body,mxResources.get("loading"))&&(this.loadingOrgChart=
!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, | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
"geCommentActionLnk";mxUtils.write(Y,U);X.appendChild(Y);mxEvent.addListener(Y,"click",function(Z){T(Z,n);Z.preventDefault();mxEvent.consume(Z)});Q.appendChild(X);W&&(X.style.display="none")}function O(){function U(X){T.push(W);if(null!=X.replies)for(var Y=0;Y<X.replies.length;Y++)W=W.nextSibling,U(X.replies[Y])}var T=[],W=k;U(n);return{pdiv:W,replies:T}}function V(U,T,W,X,Y){function Z(){N(ea);n.addReply(na,function(za){na.id=za;n.replies.push(na);R(ea);W&&W()},function(za){ca();H(ea);b.handleError(za,
null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))},X,Y)}function ca(){F(na,ea,function(za){Z()},!0)}var ha=O().pdiv,na=b.newComment(U,b.getCurrentUser());na.pCommentId=n.id;null==n.replies&&(n.replies=[]);var ea=J(na,n.replies,ha,D+1);T?ca():Z()}if(M||!n.isResolved){x.style.display="none";var k=document.createElement("div");k.className="geCommentContainer";k.setAttribute("data-commentId",n.id);k.style.marginLeft=20*D+5+"px";n.isResolved&&!Editor.isDarkMode()&&(k.style.backgroundColor= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
G,0,G.length);Q+=W(G.length)+y+G+W(P^4294967295);Q+=k.substring(X-8,k.length);break}Q+=k.substring(X-8,X-4+Y);U(k,Y);U(k,4)}while(Y);return"data:image/png;base64,"+(window.btoa?btoa(Q):Base64.encode(Q,!0))}};if(window.ColorDialog){FilenameDialog.filenameHelpLink="https://www.drawio.com/doc/faq/save-file-formats";var F=ColorDialog.addRecentColor;ColorDialog.addRecentColor=function(k,y){F.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()};var L=ColorDialog.resetRecentColors; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
J.formatElt.style.width)}function f(J,c){function e(p,t){var x=J.menus.get(p);p=g.addMenu(t,mxUtils.bind(this,function(){x.funct.apply(this,arguments)}));p.style.cssText="position:absolute;border-width:1px;cusor:pointer;border-style:none;height:24px;bottom:0px;text-align:center;padding:8px 6px 0 6px;border-top-style:solid;width:50%;height:32px;box-sizing:border-box;font-size:11px;";p.className="geTitle";c.appendChild(p);return p}var g=new Menubar(J,c);if(Editor.enableCustomLibraries&&("1"!=urlParams.embed||
"1"==urlParams.libraries))if(null!=J.actions.get("newLibrary")){var q=document.createElement("div");q.style.cssText="position:absolute;border-width:1px;cusor:pointer;border-style:none;height:24px;bottom:0px;text-align:center;padding:8px 6px 0 6px;border-top-style:solid;width:50%;height:32px;box-sizing:border-box;font-size:11px;";q.className="geTitle";mxUtils.write(q,mxResources.get("newLibrary"));c.appendChild(q);mxEvent.addListener(q,"click",this.actions.get("newLibrary").funct);q=q.cloneNode(!1);
q.style.left="50%";q.style.borderLeftStyle="solid";mxUtils.write(q,mxResources.get("openLibrary"));c.appendChild(q);mxEvent.addListener(q,"click",this.actions.get("openLibrary").funct)}else q=e("newLibrary",mxResources.get("newLibrary")),q.style.fontSize="11px",q.style.left="0",q=e("openLibraryFrom",mxResources.get("openLibraryFrom")),q.style.borderLeftStyle="solid",q.style.fontSize="11px",q.style.left="50%";c.appendChild(J.sidebar.container);c.style.overflow="hidden"}function m(J,c){if(EditorUi.windowed){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 |
t.defaultLibraryName=mxResources.get("untitledLibrary");var B=document.createElement("div");B.className="geMenubarContainer";var I=null,A=new Menubar(t,B);t.statusContainer=t.createStatusContainer();t.statusContainer.style.position="relative";t.statusContainer.style.maxWidth="";t.statusContainer.style.color="gray";t.statusContainer.style.cursor="default";var S=t.hideCurrentMenu;t.hideCurrentMenu=function(){S.apply(this,arguments);this.editor.graph.popupMenuHandler.hideMenu()};var l=t.descriptorChanged; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.