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 |
---|---|---|---|---|---|---|---|
"4px");null!=Z&&ma.setAttribute("title",Z);null!=da&&(V=function(){da.isEnabled()?(ma.removeAttribute("disabled"),ma.style.cursor="pointer"):(ma.setAttribute("disabled","disabled"),ma.style.cursor="default")},da.addListener("stateChanged",V),B.addListener("enabledChanged",V),V());return ma}function g(V,X,Y){Y=document.createElement("div");Y.className="geMenuItem";Y.style.display="inline-block";Y.style.verticalAlign="top";Y.style.marginRight="6px";Y.style.padding="0 4px 0 4px";Y.style.height="30px";
Y.style.position="relative";Y.style.top="0px";for(var Z=0;Z<V.length;Z++)null!=V[Z]&&(V[Z].style.margin="0px",V[Z].style.boxShadow="none",Y.appendChild(V[Z]));null!=X&&mxUtils.setOpacity(Y,X);null!=v.statusContainer?H.insertBefore(Y,v.statusContainer):H.appendChild(Y);return Y}function n(){for(var V=H.firstChild;null!=V;){var X=V.nextSibling;"geMenuItem"!=V.className&&"geItem"!=V.className||V.parentNode.removeChild(V);V=X}L=H.firstChild;c=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
return null!=this.corsRegExp&&this.corsRegExp.test(m)||"https://raw.githubusercontent.com/"===m.substring(0,34)||"https://fonts.googleapis.com/"===m.substring(0,29)||"https://fonts.gstatic.com/"===m.substring(0,26)};Editor.prototype.createImageUrlConverter=function(){var m=new mxUrlConverter;m.updateBaseUrl();var A=m.convert,M=this;m.convert=function(Q){if(null!=Q){var U="http://"==Q.substring(0,7)||"https://"==Q.substring(0,8);U&&!navigator.onLine?Q=Editor.svgBrokenImage.src:!U||Q.substring(0,m.baseUrl.length)==
m.baseUrl||M.crossOriginImages&&M.isCorsEnabledForUrl(Q)?"chrome-extension://"==Q.substring(0,19)||mxClient.IS_CHROMEAPP||(Q=A.apply(this,arguments)):Q=PROXY_URL+"?url="+encodeURIComponent(Q)}return Q};return m};Editor.createSvgDataUri=function(m){return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(m)))};Editor.prototype.convertImageToDataUri=function(m,A){try{var M=!0,Q=window.setTimeout(mxUtils.bind(this,function(){M=!1;A(Editor.svgBrokenImage.src)}),this.timeout);if(/(\.svg)$/i.test(m))mxUtils.get(m,
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
"FONT"==m[A].nodeName?m[A].getAttribute("face"):m[A].style.fontFamily;null!=Q&&Graph.addFont(Q,M)}}};Graph.processFontStyle=function(m){if(null!=m){var A=mxUtils.getValue(m,"fontSource",null);if(null!=A){var M=mxUtils.getValue(m,mxConstants.STYLE_FONTFAMILY,null);null!=M&&Graph.addFont(M,decodeURIComponent(A))}}return m};Graph.prototype.defaultThemeName="default-style2";Graph.prototype.lastPasteXml=null;Graph.prototype.pasteCounter=0;Graph.prototype.defaultScrollbars="0"!=urlParams.sb;Graph.prototype.defaultPageVisible=
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
B);ImageDialog.filePicked=function(F){F.action==google.picker.Action.PICKED&&null!=F.docs[0].thumbnails&&(F=F.docs[0].thumbnails[F.docs[0].thumbnails.length-1],null!=F&&(I.value=F.url,B()));I.focus()};y.appendChild(N);y.appendChild(d);mxUtils.br(y);mxUtils.br(y);D?(N.setAttribute("checked","checked"),N.checked=!0):(z.setAttribute("checked","checked"),z.checked=!0);!E&&N.checked&&(mxUtils.write(t,mxResources.get("pageNotFound")),t.setAttribute("disabled","disabled"),t.setAttribute("selected","selected"),
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
f,c,k,l){this.insertFile(e,f,c,k,!0,l,!1)};GitHubClient.prototype.insertFile=function(e,f,c,k,l,x,y){l=null!=l?l:!1;x=x.split("/");var E=x[0],D=x[1],z=x[2],N=x.slice(3,x.length).join("/");0<N.length&&(N+="/");N+=e;this.checkExists(E+"/"+D+"/"+z+"/"+N,!0,mxUtils.bind(this,function(I,d){I?l?(y||(f=Base64.encode(f)),this.showCommitDialog(e,!0,mxUtils.bind(this,function(g){this.writeFile(E,D,z,N,g,f,d,mxUtils.bind(this,function(n){try{var t=JSON.parse(n.getText());c(this.createGitHubFile(E,D,z,t.content,
l))}catch(u){k(u)}}),k)}),k)):c(new GitHubFile(this.ui,f,{org:E,repo:D,ref:z,name:e,path:N,sha:d,isNew:!0})):k()}))};GitHubClient.prototype.showCommitDialog=function(e,f,c,k){var l=this.ui.spinner.pause();e=new FilenameDialog(this.ui,mxResources.get(f?"addedFile":"updateFile",[e]),mxResources.get("ok"),mxUtils.bind(this,function(x){l();c(x)}),mxResources.get("commitMessage"),null,null,null,null,mxUtils.bind(this,function(){k()}),null,280);this.ui.showDialog(e.container,400,80,!0,!1);e.init()};GitHubClient.prototype.writeFile=
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
this.ui.getEmbeddedPng(mxUtils.bind(this,function(d){z(e.meta.last_commit_id,d)}),c,this.ui.getCurrentFile()!=e?e.getData():null,I.scale,I.border)}else z(e.meta.last_commit_id,Base64.encode(e.getData()))});k?this.getFile(x+"/"+y+"/"+E+"/"+D,mxUtils.bind(this,function(I){e.meta.last_commit_id=I.meta.last_commit_id;N()}),c):N()};GitLabClient.prototype.pickFolder=function(e){this.showGitLabDialog(!1,e,!0)};GitLabClient.prototype.pickFile=function(e){e=null!=e?e:mxUtils.bind(this,function(f){this.ui.loadFile("A"+
encodeURIComponent(f))});this.showGitLabDialog(!0,e)};GitLabClient.prototype.showGitLabDialog=function(e,f,c){var k=null,l=null,x=null,y=null,E=document.createElement("div");E.style.whiteSpace="nowrap";E.style.overflow="hidden";E.style.height="304px";var D=document.createElement("h3");mxUtils.write(D,mxResources.get(e?"selectFile":"selectFolder"));D.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:12px";E.appendChild(D);var z=document.createElement("div");z.style.whiteSpace=
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
K)):(m.noP2PMapDel=!0,m.destroy(),EditorUi.debug("P2PCollab: p2p socket duplicate",K))});m.on("close",function(){m.noP2PMapDel||(EditorUi.debug("P2PCollab: p2p socket closed",K),D(u[K]),delete G[K])});m.on("data",x);return L[K]=m}}function E(K,R){D(R||u[K]);null!=K&&(delete u[K],v[K]=!1)}function D(K){var R=g[K];if(null!=R){var m=R.selection,A;for(A in m)null!=m[A]&&m[A].destroy();null!=R.cursor&&null!=R.cursor.parentNode&&R.cursor.parentNode.removeChild(R.cursor);clearTimeout(R.inactiveTO);delete g[K]}}
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
var CreateDialog=function(b,e,f,c,k,l,x,y,E,D,z,N,I,d,g,n,t){function u(q,C,J,F){function O(){mxEvent.addListener(S,"click",function(){var M=J;if(x){var Q=H.value,U=Q.lastIndexOf(".");if(0>e.lastIndexOf(".")&&0>U){M=null!=M?M:p.value;var W="";M==App.MODE_GOOGLE?W=b.drive.extension:M==App.MODE_GITHUB?W=b.gitHub.extension:M==App.MODE_GITLAB?W=b.gitLab.extension:M==App.MODE_TRELLO?W=b.trello.extension:M==App.MODE_DROPBOX?W=b.dropbox.extension:M==App.MODE_ONEDRIVE?W=b.oneDrive.extension:M==App.MODE_DEVICE&&
(W=".drawio");0<=U&&(Q=Q.substring(0,U));H.value=Q+W}}v(J)})}var S=document.createElement("a");S.style.overflow="hidden";var K=document.createElement("img");K.src=q;K.setAttribute("border","0");K.setAttribute("align","absmiddle");K.style.width="60px";K.style.height="60px";K.style.paddingBottom="6px";S.style.display="inline-block";S.className="geBaseButton";S.style.position="relative";S.style.margin="4px";S.style.padding="8px 8px 10px 8px";S.style.whiteSpace="nowrap";S.appendChild(K);S.style.color=
"gray";S.style.fontSize="11px";var R=document.createElement("div");S.appendChild(R);mxUtils.write(R,C);if(null!=F&&null==b[F]){K.style.visibility="hidden";mxUtils.setOpacity(R,10);var m=new Spinner({lines:12,length:12,width:5,radius:10,rotate:0,color:"#000",speed:1.5,trail:60,shadow:!1,hwaccel:!1,top:"40%",zIndex:2E9});m.spin(S);var A=window.setTimeout(function(){null==b[F]&&(m.stop(),S.style.display="none")},3E4);b.addListener("clientLoaded",mxUtils.bind(this,function(){null!=b[F]&&(window.clearTimeout(A),
mxUtils.setOpacity(R,100),K.style.visibility="",m.stop(),O())}))}else O();G.appendChild(S);++T==N&&(mxUtils.br(G),T=0)}function v(q){var C=H.value;if(null==q||null!=C&&0<C.length)t&&b.hideDialog(),f(C,q,H)}z="1"==urlParams.noDevice?!1:z;x=null!=x?x:!0;y=null!=y?y:!0;N=null!=N?N:4;t=null!=t?t:!0;l=document.createElement("div");l.style.whiteSpace="nowrap";null==c&&b.addLanguageMenu(l);var B=document.createElement("h2");mxUtils.write(B,k||mxResources.get("create"));B.style.marginTop="0px";B.style.marginBottom=
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
W,(J.y*L+O.y)*W,X*W,L*W));for(ha=1;ha<J.height;ha++)U.push(new mxRectangle((J.x*X+O.x)*W,((J.y+ha)*L+O.y)*W,X*W,L*W));K=U.concat(K)}return K};mxDragSource.prototype.dragElementZIndex=mxPopupMenu.prototype.zIndex;mxGuide.prototype.getGuideColor=function(K,U){return null==K.cell?"#ffa500":mxConstants.GUIDE_COLOR};this.graphHandler.createPreviewShape=function(K){this.previewColor="#000000"==this.graph.background?"#ffffff":mxGraphHandler.prototype.previewColor;return mxGraphHandler.prototype.createPreviewShape.apply(this,
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
e},ConnectionPointsDialog=function(b,e){function f(){null!=k&&k.destroy()}var c=document.createElement("div");c.style.userSelect="none";var k=null;this.init=function(){function l(J,F,O){J=new mxCell("",new mxGeometry(J,F,6,6),"shape=mxgraph.basic.x;fillColor=#29b6f2;strokeColor=#29b6f2;points=[];rotatable=0;resizable=0;connectable=0;editable=0;");J.vertex=!0;J.cp=!0;J.constObj=O;return N.addCell(J)}function x(J){J=N.getSelectionCells();N.deleteCells(J)}function y(){var J=parseInt(T.value)||0;J=0>
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
mxUtils.bind(this,function(Oa){Q=b.sidebar.currentElt==ra}),null,null),mxEvent.addListener(ha,"click",mxUtils.bind(this,function(Oa){Q||Na(Oa,null!=na?na:pa);mxEvent.consume(Oa)})));fa.appendChild(ra);return ra}function p(){function aa(ra,Ha){ra=mxResources.get(ra,null,ra.substring(0,1).toUpperCase()+ra.substring(1));18<ra.length&&(ra=ra.substring(0,18)+"…");return ra+(null!=Ha?" ("+Ha.length+")":"")}function la(ra,Ha,La){mxEvent.addListener(Ha,"click",function(){Fa!=Ha&&(Fa.style.backgroundColor=
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
libs:ja.getAttribute("libs"),clibs:ja.getAttribute("clibs"),title:ja.getAttribute("title")}),ja=ja.nextSibling;T(Fa)}});var Va=function(ja,aa,la){Ba.style.display="";Ka.stop();R=!1;if(m)m=!1;else if(aa)ea.innerText=aa;else{la=la||{};aa=0;for(var na in la)aa+=la[na].length;0==ja.length&&0==aa?ea.innerText=mxResources.get("noDiagrams"):G(ja,!1,V,0==aa?null:la)}};C(P);var Ua=null;mxEvent.addListener(xa,"keyup",O);mxEvent.addListener(xa,"search",O);mxEvent.addListener(xa,"input",O);mxEvent.addListener(ia,
"click",function(ja){H(!1,!1)});N&&mxEvent.addListener(ya,"click",function(ja){H(!1,!0)});I&&mxEvent.addListener(K.querySelector(".geTempDlgLinkToDiagramBtn"),"click",function(ja){H(!0)});mxEvent.addListener(K.querySelector(".geTempDlgCancelBtn"),"click",function(){null!=f&&f();g||b.hideDialog(!0)})};TemplatesDialog.tagsList={};
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
return T}),G=!0);return G};var B=u.stop;u.stop=function(){B.call(this);this.active=!1;null!=u.status&&null!=u.status.parentNode&&u.status.parentNode.removeChild(u.status);u.status=null};u.pause=function(){return function(){}};return u};EditorUi.prototype.isCompatibleString=function(d){try{var g=mxUtils.parseXml(d),n=this.editor.extractGraphModel(g.documentElement,!0);return null!=n&&0==n.getElementsByTagName("parsererror").length}catch(t){}return!1};EditorUi.prototype.isVisioData=function(d){return 8<
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
G=new mxAsyncCanvas(this.thumbImageCache);L.images=this.thumbImageCache.images;var T=new mxImageExport;T.drawShape=function(p,q){p.shape instanceof mxShape&&p.shape.checkBounds()&&(q.save(),q.translate(.5,.5),p.shape.paint(q),q.translate(-.5,-.5),q.restore())};T.drawText=function(p,q){};T.drawState(x.getView().getState(x.model.root),G);G.finish(mxUtils.bind(this,function(){try{T.drawState(x.getView().getState(x.model.root),L),x!=this.editor.graph&&null!=x.container.parentNode&&x.container.parentNode.removeChild(x.container)}catch(p){N=
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
f.setCellStyles(mxConstants.STYLE_ROTATION,Number(u.value),[e[B]])}}finally{f.getModel().endUpdate()}});v.className="geBtn gePrimaryBtn";mxEvent.addListener(k,"keypress",function(B){13==B.keyCode&&v.click()});l=document.createElement("div");l.style.marginTop="20px";l.style.textAlign="right";b.editor.cancelFirst?(l.appendChild(c),l.appendChild(v)):(l.appendChild(v),l.appendChild(c));k.appendChild(l);this.container=k},LibraryDialog=function(b,e,f,c,k,l){function x(T){for(T=document.elementFromPoint(T.clientX,
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
this.editor.graph.isEnabled()};var z=EditorUi.prototype.createSidebar;EditorUi.prototype.createSidebar=function(d){var g=z.apply(this,arguments);this.addListener("darkModeChanged",mxUtils.bind(this,function(){g.refresh()}));this.addListener("sketchModeChanged",mxUtils.bind(this,function(){g.refresh()}));return g};var N=EditorUi.prototype.updateActionStates;EditorUi.prototype.updateActionStates=function(){N.apply(this,arguments);var d=this.editor.graph,g=this.getCurrentFile(),n=this.getSelectionState(),
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
"/sites?search=";K=[{name:mxResources.get("sharepointSites",null,"Sharepoint Sites"),driveId:P}];ea=1;break;case "site":K.push({name:Y,driveId:P,folderId:V,siteId:X});qa="/sites/"+X+"/drives";ea=2;break;case "subsite":K.push({name:Y,driveId:P,folderId:V,siteId:X});qa="/drives/"+X+(V?"/items/"+V:"/root")+"/children";break;case "search":P=O;K=[{driveId:P,name:mxResources.get("back",null,"Back")}];Z=encodeURIComponent(Z.replace(/'/g,"\\'"));qa=P?"/drives/"+P+"/root/search(q='"+Z+"')":"/me/drive/root/search(q='"+
Z+"')";break;default:null==V?K=[{driveId:P}]:K.push({name:Y,driveId:P,folderId:V}),qa=(P?"/drives/"+P:"/me/drive")+(V?"/items/"+V:"/root")+"/children"}ea||(qa+=(0<qa.indexOf("?")?"&":"?")+"select=id,name,description,parentReference,file,createdBy,lastModifiedBy,lastModifiedDateTime,size,folder,remoteItem,@microsoft.graph.downloadUrl");var ia=[];ba()}}function L(P){U.className=U.className.replace("odCatSelected","");U=P;U.className+=" odCatSelected"}function G(P){S||(W=null,H("search",null,null,null,
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
!c.isOffline()&&!c.printPdfExport){var p=null==c.pages||1>=c.pages.length,q=document.createElement("div");q.style.whiteSpace="nowrap";var C=document.createElement("h3");mxUtils.write(C,mxResources.get("formatPdf"));C.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:4px";q.appendChild(C);var J=function(){K!=this&&this.checked?(U.removeAttribute("disabled"),U.checked=!k.pageVisible):(U.setAttribute("disabled","disabled"),U.checked=!1)};C=200;var F=1,O=null;if(c.pdfPageExport&&
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
I.formatElt.style.width)}function e(I,d){function g(u,v){var B=I.menus.get(u);u=n.addMenu(v,mxUtils.bind(this,function(){B.funct.apply(this,arguments)}));u.style.cssText="position:absolute;border-width:1px;cusor:pointer;border-style:none;height:24px;bottom:0px;text-align:center;padding:8px 6px 0 6px;border-top-style:solid;width:50%;height:32px;box-sizing:border-box;font-size:11px;";u.className="geTitle";d.appendChild(u);return u}var n=new Menubar(I,d);if(Editor.enableCustomLibraries&&("1"!=urlParams.embed||
"1"==urlParams.libraries))if(null!=I.actions.get("newLibrary")){var t=document.createElement("div");t.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;";t.className="geTitle";mxUtils.write(t,mxResources.get("newLibrary"));d.appendChild(t);mxEvent.addListener(t,"click",this.actions.get("newLibrary").funct);t=t.cloneNode(!1);
t.style.left="50%";t.style.borderLeftStyle="solid";mxUtils.write(t,mxResources.get("openLibrary"));d.appendChild(t);mxEvent.addListener(t,"click",this.actions.get("openLibrary").funct)}else t=g("newLibrary",mxResources.get("newLibrary")),t.style.fontSize="11px",t.style.left="0",t=g("openLibraryFrom",mxResources.get("openLibraryFrom")),t.style.borderLeftStyle="solid",t.style.fontSize="11px",t.style.left="50%";d.appendChild(I.sidebar.container);d.style.overflow="hidden"}function f(I,d){if(EditorUi.windowed){var g=
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
Graph.prototype.setHiddenTags=function(m){this.hiddenTags=m;this.fireEvent(new mxEventObject("hiddenTagsChanged"))};Graph.prototype.toggleHiddenTag=function(m){var A=mxUtils.indexOf(this.hiddenTags,m);0>A?this.hiddenTags.push(m):0<=A&&this.hiddenTags.splice(A,1);this.fireEvent(new mxEventObject("hiddenTagsChanged"))};Graph.prototype.isAllTagsHidden=function(m){if(null==m||0==m.length||0==this.hiddenTags.length)return!1;m=m.split(" ");if(m.length>this.hiddenTags.length)return!1;for(var A=0;A<m.length;A++)if(0>
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
"#000000")),ta=mxUtils.setStyle(ta,mxConstants.STYLE_GRADIENTCOLOR,mxUtils.getValue(oa,mxConstants.STYLE_GRADIENTCOLOR,null)),Q.getModel().isVertex(ya[xa])&&(ta=mxUtils.setStyle(ta,mxConstants.STYLE_FONTCOLOR,mxUtils.getValue(oa,mxConstants.STYLE_FONTCOLOR,null))));Q.getModel().setStyle(ya[xa],ta)}}finally{Q.getModel().endUpdate()}}));ca.className="geStyleButton";ca.style.width="36px";ca.style.height=10>=this.defaultColorSchemes.length?"24px":"30px";ca.style.margin="0px 6px 6px 0px";if(null!=Ca){var fa=
Editor.isDarkMode()?"2px solid":"1px solid";null!=Ca.border&&(fa=Ca.border);null!=Ca.gradient?mxClient.IS_IE&&10>document.documentMode?ca.style.filter="progid:DXImageTransform.Microsoft.Gradient(StartColorStr='"+Ca.fill+"', EndColorStr='"+Ca.gradient+"', GradientType=0)":ca.style.backgroundImage="linear-gradient("+Ca.fill+" 0px,"+Ca.gradient+" 100%)":Ca.fill==mxConstants.NONE?ca.style.background="url('"+Dialog.prototype.noColorImage+"')":ca.style.backgroundColor=""==Ca.fill?mxUtils.getValue(Q.defaultVertexStyle,
mxConstants.STYLE_FILLCOLOR,Editor.isDarkMode()?Editor.darkColor:"#ffffff"):Ca.fill||mxUtils.getValue(Q.defaultVertexStyle,mxConstants.STYLE_FILLCOLOR,Editor.isDarkMode()?Editor.darkColor:"#ffffff");ca.style.border=Ca.stroke==mxConstants.NONE?fa+" transparent":""==Ca.stroke?fa+" "+mxUtils.getValue(Q.defaultVertexStyle,mxConstants.STYLE_STROKECOLOR,Editor.isDarkMode()?"#ffffff":Editor.darkColor):fa+" "+(Ca.stroke||mxUtils.getValue(Q.defaultVertexStyle,mxConstants.STYLE_STROKECOLOR,Editor.isDarkMode()?
"#ffffff":Editor.darkColor));null!=Ca.title&&ca.setAttribute("title",Ca.title)}else{fa=mxUtils.getValue(Q.defaultVertexStyle,mxConstants.STYLE_FILLCOLOR,"#ffffff");var qa=mxUtils.getValue(Q.defaultVertexStyle,mxConstants.STYLE_STROKECOLOR,"#000000");ca.style.backgroundColor=fa;ca.style.border="1px solid "+qa}ca.style.borderRadius="0";U.appendChild(ca)});U.innerText="";for(var Ba=0;Ba<ea.length;Ba++)0<Ba&&0==mxUtils.mod(Ba,4)&&mxUtils.br(U),za(ea[Ba])});null==this.format.currentScheme?Z(Math.min(V.length-
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
d=F;this.confirmImageResize(function(R){J=R;K()},L)}else K()};EditorUi.prototype.isBlankFile=function(){return null!=this.pages&&1==this.pages.length&&this.isDiagramEmpty()&&this.currentPage.getName()==mxResources.get("pageWithNumber",[1])};EditorUi.prototype.confirmImageResize=function(d,g){g=null!=g?g:!1;var n=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},t=isLocalStorage||mxClient.IS_CHROMEAPP?mxSettings.getResizeImages():null,u=function(v,B){if(v||g)mxSettings.setResizeImages(v?
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
function(C){z=C};this.setAutoScroll=function(C){N=C};this.setOpenFill=function(C){I=C};this.setStopClickEnabled=function(C){n=C};this.setSelectInserted=function(C){t=C};this.setSmoothing=function(C){f=C};this.setPerfectFreehandMode=function(C){v=C};this.isPerfectFreehandMode=function(){return v};this.setBrushSize=function(C){u.size=C};this.getBrushSize=function(){return u.size};var B=function(C){g=C;b.getRubberband().setEnabled(!C);b.graphHandler.setSelectEnabled(!C);b.graphHandler.setMoveEnabled(!C);
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
d||null==d};EditorUi.prototype.doSetCurrentTheme=function(d,g,n){function t(L){return"simple"==L||0==g&&"sketch"==L}g=null!=g?g:150;var u=Editor.currentTheme,v=t(u)&&this.isDefaultTheme(d)||this.isDefaultTheme(u)&&t(d),B=v&&"sketch"!=d&&"sketch"!=u;if(v&&!this.themeSwitching){Editor.currentTheme=d;this.themeSwitching=!0;var H=this.saveScrollState();mxUtils.setPrefixedStyle(this.container.style,"transition","all "+g+"ms ease-in-out");0==g&&(this.container.style.opacity="0");window.setTimeout(mxUtils.bind(this,
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
!S)if("sharepoint"==O)H("site",null,F.id,F.displayName);else if("site"==O)H("subsite",null,F.id,F.name);else{var P=F.folder;F=F.remoteItem?F.remoteItem:F;var V=(F.parentReference?F.parentReference.driveId:null)||O,X=F.id;P?H(V,X,null,F.name):t()}}function H(P,V,X,Y,Z){function da(ya){q.stop();var xa=document.createElement("table");xa.className="odFileListGrid";for(var ta=null,Ka=0,oa=0;null!=ya&&oa<ya.length;oa++){var sa=ya[oa];if(1!=ea||!sa.webUrl||0<sa.webUrl.indexOf("sharepoint.com/sites/")||0>
sa.webUrl.indexOf("sharepoint.com/")){var va=sa.displayName||sa.name,Ea=mxUtils.htmlEntities(sa.description||va);ea&&(sa.folder=2==ea?{isRoot:!0}:!0);var Da=null!=sa.folder;if(!E||Da){var Qa=document.createElement("tr");Qa.className=Ka++%2?"odOddRow":"odEvenRow";var Fa=document.createElement("td");Fa.style.width="36px";var Ra=document.createElement("img");Ra.src="/images/"+(Da?"folder.png":"file.png");Ra.className="odFileImg";Fa.appendChild(Ra);Qa.appendChild(Fa);Fa=document.createElement("td");Da=
document.createElement("div");Da.className="odFileTitle";Da.innerHTML=mxUtils.htmlEntities(va);Da.setAttribute("title",Ea);Fa.appendChild(Da);Qa.appendChild(Fa);xa.appendChild(Qa);null==ta&&(ta=Qa,ta.className+=" odRowSelected",F=sa,O=P,d||e(F));(function(Ga,Va){Qa.addEventListener("dblclick",B);Qa.addEventListener("click",function(){ta!=Va&&(ta.className=ta.className.replace("odRowSelected",""),ta=Va,ta.className+=" odRowSelected",F=Ga,O=P,d||e(F))})})(sa,Qa)}}}0==Ka?(ya=document.createElement("div"),
ya.className="odEmptyFolder",ya.innerHTML=mxUtils.htmlEntities(mxResources.get("folderEmpty",null,"Folder is empty!")),Ba.appendChild(ya)):Ba.appendChild(xa);v();S=!1}function ba(ya){f(ya?ya:qa,function(xa){if(ma){var ta=xa.value||[];if(d||ea)Array.prototype.push.apply(ia,ta);else for(var Ka=0;Ka<ta.length;Ka++){var oa=ta[Ka],sa=oa.file?oa.file.mimeType:null;(oa.folder||"text/html"==sa||"text/xml"==sa||"application/xml"==sa||"image/png"==sa||/\.svg$/.test(oa.name)||/\.html$/.test(oa.name)||/\.xml$/.test(oa.name)||
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
za,this.stylesheet=ea,this.refresh());return Ca};var L=mxCellRenderer.prototype.destroy;mxCellRenderer.prototype.destroy=function(m){L.apply(this,arguments);null!=m.secondLabel&&(m.secondLabel.destroy(),m.secondLabel=null)};mxCellRenderer.prototype.getShapesForState=function(m){return[m.shape,m.text,m.secondLabel,m.control]};var G=mxGraphView.prototype.resetValidationState;mxGraphView.prototype.resetValidationState=function(){G.apply(this,arguments);this.enumerationState=0};var T=mxGraphView.prototype.stateValidated;
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
161==d.charCodeAt(4)&&177==d.charCodeAt(5)&&26==d.charCodeAt(6)&&225==d.charCodeAt(7)||60==d.charCodeAt(0)&&63==d.charCodeAt(1)&&120==d.charCodeAt(2)&&109==d.charCodeAt(3)&&108==d.charCodeAt(3))};var b=EditorUi.prototype.createKeyHandler;EditorUi.prototype.createKeyHandler=function(d){var g=b.apply(this,arguments);if(!this.editor.chromeless||this.editor.editable){var n=g.getFunction,t=this.editor.graph,u=this;g.getFunction=function(v){if(t.isSelectionEmpty()&&null!=u.pages&&0<u.pages.length){var B=
u.getSelectedPageIndex();if(mxEvent.isShiftDown(v)){if(37==v.keyCode)return function(){0<B&&u.movePage(B,B-1)};if(38==v.keyCode)return function(){0<B&&u.movePage(B,0)};if(39==v.keyCode)return function(){B<u.pages.length-1&&u.movePage(B,B+1)};if(40==v.keyCode)return function(){B<u.pages.length-1&&u.movePage(B,u.pages.length-1)}}else if(mxEvent.isControlDown(v)||mxClient.IS_MAC&&mxEvent.isMetaDown(v)){if(37==v.keyCode)return function(){0<B&&u.selectNextPage(!1)};if(38==v.keyCode)return function(){0<
B&&u.selectPage(u.pages[0])};if(39==v.keyCode)return function(){B<u.pages.length-1&&u.selectNextPage(!0)};if(40==v.keyCode)return function(){B<u.pages.length-1&&u.selectPage(u.pages[u.pages.length-1])}}}return!(65<=v.keyCode&&90>=v.keyCode)||t.isSelectionEmpty()||mxEvent.isAltDown(v)||mxEvent.isShiftDown(v)||mxEvent.isControlDown(v)||mxClient.IS_MAC&&mxEvent.isMetaDown(v)?n.apply(this,arguments):null}}return g};var e=EditorUi.prototype.extractGraphModelFromHtml;EditorUi.prototype.extractGraphModelFromHtml=
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
B,null,null,null,v)):mxscript("js/extensions.min.js",B,null,null,null,v))};EditorUi.prototype.generatePlantUmlImage=function(d,g,n,t){function u(H,L,G){c1=H>>2;c2=(H&3)<<4|L>>4;c3=(L&15)<<2|G>>6;c4=G&63;r="";r+=v(c1&63);r+=v(c2&63);r+=v(c3&63);return r+=v(c4&63)}function v(H){if(10>H)return String.fromCharCode(48+H);H-=10;if(26>H)return String.fromCharCode(65+H);H-=26;if(26>H)return String.fromCharCode(97+H);H-=26;return 0==H?"-":1==H?"_":"?"}var B=new XMLHttpRequest;B.open("GET",("txt"==g?PLANT_URL+
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
e+"?ref="+D;var z={Authorization:"token "+b};x=e.split("/");this.ui.convertFile(l,0<x.length?x[x.length-1]:e,null,this.extension,f,c,null,z)}else c({message:mxResources.get("accessDenied")});else x="&t="+(new Date).getTime(),e=new mxXmlRequest(this.baseUrl+"/repos/"+y+"/"+E+"/contents/"+e+"?ref="+D+x,null,"GET"),this.executeRequest(e,mxUtils.bind(this,function(N){try{f(this.createGitHubFile(y,E,D,JSON.parse(N.getText()),k))}catch(I){c(I)}}),c)};GitHubClient.prototype.createGitHubFile=function(e,f,
c,k,l){e={org:e,repo:f,ref:c,name:k.name,path:k.path,sha:k.sha,html_url:k.html_url,download_url:k.download_url};f=k.content;"base64"===k.encoding&&(/\.jpe?g$/i.test(k.name)?f="data:image/jpeg;base64,"+f:/\.gif$/i.test(k.name)?f="data:image/gif;base64,"+f:/\.png$/i.test(k.name)?(k=this.ui.extractGraphModelFromPng(f),f=null!=k&&0<k.length?k:"data:image/png;base64,"+f):f=Base64.decode(f));return l?new GitHubLibrary(this.ui,f,e):new GitHubFile(this.ui,f,e)};GitHubClient.prototype.insertLibrary=function(e,
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
y=document.createElement("div");y.style.height="300px";y.style.width="300px";y.style.display="inline-flex";y.style.justifyContent="center";y.style.alignItems="center";y.style.position="absolute";var E=document.createElement("img");E.onload=function(){function G(){z.model.setStyle(d,g+k())}z=new Graph(D);z.autoExtend=!1;z.autoScroll=!1;z.setGridEnabled(!1);z.setEnabled(!0);z.setPanning(!1);z.setConnectable(!1);z.getRubberband().setEnabled(!1);z.graphHandler.allowLivePreview=!1;var T=z.createVertexHandler;
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
va,Ga=Fa+(Qa.x-Fa)/va-ba,Va=Ra+(Qa.y-Ra)/va-ba,Ua=new Image;Ua.onload=function(){try{for(var ja=-Math.round(Da-mxUtils.mod((Fa-Ga)*V,Da)),aa=-Math.round(Da-mxUtils.mod((Ra-Va)*V,Da));ja<ta;ja+=Da)for(var la=aa;la<Ka;la+=Da)oa.drawImage(Ua,ja/V,la/V);ya()}catch(na){null!=U&&U(na)}};Ua.onerror=function(ja){null!=U&&U(ja)};Ua.src=Ea}else ya()}catch(ja){null!=U&&U(ja)}});qa.onerror=function(ya){null!=U&&U(ya)};Y&&this.graph.addSvgShadow(fa);this.graph.mathEnabled&&this.addMathCss(fa);var ia=mxUtils.bind(this,
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
"geCommentActionLnk";mxUtils.write(Y,W);X.appendChild(Y);mxEvent.addListener(Y,"click",function(Z){P(Z,q);Z.preventDefault();mxEvent.consume(Z)});U.appendChild(X);V&&(X.style.display="none")}function K(){function W(X){P.push(V);if(null!=X.replies)for(var Y=0;Y<X.replies.length;Y++)V=V.nextSibling,W(X.replies[Y])}var P=[],V=m;W(q);return{pdiv:V,replies:P}}function R(W,P,V,X,Y){function Z(){D(ea);q.addReply(ma,function(za){ma.id=za;q.replies.push(ma);N(ea);V&&V()},function(za){da();z(ea);b.handleError(za,
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
m+'";\nsrc: url("'+A+'");\n}'),m=document.createElement("style"),mxUtils.write(m,M));return m};Graph.addFont=function(m,A,M){if(null!=m&&0<m.length&&null!=A&&0<A.length){var Q=m.toLowerCase();if("helvetica"!=Q&&"arial"!=m&&"sans-serif"!=Q){var U=Graph.customFontElements[Q];null!=U&&U.url!=A&&(U.elt.parentNode.removeChild(U.elt),U=null);null==U?(U=A,"http:"==A.substring(0,5)&&(U=PROXY_URL+"?url="+encodeURIComponent(A)),U={name:m,url:A,elt:Graph.createFontElement(m,U)},Graph.customFontElements[Q]=U,
Graph.recentCustomFonts[Q]=U,A=document.getElementsByTagName("head")[0],null!=M&&("link"==U.elt.nodeName.toLowerCase()?(U.elt.onload=M,U.elt.onerror=M):M()),null!=A&&A.appendChild(U.elt)):null!=M&&M()}else null!=M&&M()}else null!=M&&M();return m};Graph.getFontUrl=function(m,A){m=Graph.customFontElements[m.toLowerCase()];null!=m&&(A=m.url);return A};Graph.processFontAttributes=function(m){m=m.getElementsByTagName("*");for(var A=0;A<m.length;A++){var M=m[A].getAttribute("data-font-src");if(null!=M){var Q=
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
if(null!=m.excludeCells){for(var M=[],Q=0;Q<A.length;Q++)0>m.excludeCells.indexOf(A[Q].id)&&M.push(A[Q]);A=M}return A};Graph.prototype.getCellsById=function(m){var A=[];if(null!=m)for(var M=0;M<m.length;M++)if("*"==m[M]){var Q=this.model.getRoot();A=A.concat(this.model.filterDescendants(function(W){return W!=Q},Q))}else{var U=this.model.getCell(m[M]);null!=U&&A.push(U)}return A};var J=Graph.prototype.isCellVisible;Graph.prototype.isCellVisible=function(m){return J.apply(this,arguments)&&!this.isAllTagsHidden(this.getTagsForCell(m))};
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
ColorDialog.resetRecentColors=function(){E.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()}}"undefined"!==typeof window.EditDataDialog&&(EditDataDialog.getDisplayIdForCell=function(m,A){var M=null;null!=m.editor.graph.getModel().getParent(A)?M=A.getId():null!=m.currentPage&&(M=m.currentPage.getId());return M});if(null!=window.StyleFormatPanel){var D=Format.prototype.init;Format.prototype.init=function(){D.apply(this,arguments);this.editorUi.editor.addListener("fileLoaded",
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
Math.round(25*Math.random()))):/\s/.test(u)?n.push(" "):n.push("?"):n.push(g?"0":Math.round(9*Math.random()))}return n.join("")};EditorUi.prototype.anonymizePatch=function(d){if(null!=d[EditorUi.DIFF_INSERT])for(var g=0;g<d[EditorUi.DIFF_INSERT].length;g++)try{var n=mxUtils.parseXml(d[EditorUi.DIFF_INSERT][g].data).documentElement.cloneNode(!1);null!=n.getAttribute("name")&&n.setAttribute("name",this.anonymizeString(n.getAttribute("name")));d[EditorUi.DIFF_INSERT][g].data=mxUtils.getXml(n)}catch(v){d[EditorUi.DIFF_INSERT][g].data=
v.message}if(null!=d[EditorUi.DIFF_UPDATE]){for(var t in d[EditorUi.DIFF_UPDATE]){var u=d[EditorUi.DIFF_UPDATE][t];null!=u.name&&(u.name=this.anonymizeString(u.name));null!=u.cells&&(g=mxUtils.bind(this,function(v){var B=u.cells[v];if(null!=B){for(var H in B)null!=B[H].value&&(B[H].value="["+B[H].value.length+"]"),null!=B[H].xmlValue&&(B[H].xmlValue="["+B[H].xmlValue.length+"]"),null!=B[H].style&&(B[H].style="["+B[H].style.length+"]"),mxUtils.isEmptyObject(B[H])&&delete B[H];mxUtils.isEmptyObject(B)&&
delete u.cells[v]}}),g(EditorUi.DIFF_INSERT),g(EditorUi.DIFF_UPDATE),mxUtils.isEmptyObject(u.cells)&&delete u.cells);mxUtils.isEmptyObject(u)&&delete d[EditorUi.DIFF_UPDATE][t]}mxUtils.isEmptyObject(d[EditorUi.DIFF_UPDATE])&&delete d[EditorUi.DIFF_UPDATE]}return d};EditorUi.prototype.anonymizeAttributes=function(d,g){if(null!=d.attributes)for(var n=0;n<d.attributes.length;n++)"as"!=d.attributes[n].name&&d.setAttribute(d.attributes[n].name,this.anonymizeString(d.attributes[n].value,g));if(null!=d.childNodes)for(n=
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
D)}};GitLabClient.prototype.saveFile=function(e,f,c,k,l){var x=e.meta.org,y=e.meta.repo,E=e.meta.ref,D=e.meta.path,z=mxUtils.bind(this,function(I,d){this.writeFile(x,y,E,D,l,d,I,mxUtils.bind(this,function(g){delete e.meta.isNew;this.getFile(x+"/"+y+"/"+E+"/"+D,mxUtils.bind(this,function(n){n.getData()==e.getData()?f(n.getCurrentEtag()):f({content:e.getCurrentEtag()})}),c,null,null,e.meta.refPos)}),c)}),N=mxUtils.bind(this,function(){if(this.ui.useCanvasForExport&&/(\.png)$/i.test(D)){var I=this.ui.getPngFileProperties(this.ui.fileNode);
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
function(u){try{var v=t.result;1>u.oldVersion&&v.createObjectStore("objects",{keyPath:"key"});2>u.oldVersion&&(v.createObjectStore("files",{keyPath:"title"}),v.createObjectStore("filesInfo",{keyPath:"title"}),EditorUi.migrateStorageFiles=isLocalStorage)}catch(B){null!=g&&g(B)}};t.onsuccess=mxUtils.bind(this,function(u){try{var v=t.result;this.database=v;EditorUi.migrateStorageFiles&&(StorageFile.migrate(v),EditorUi.migrateStorageFiles=!1);"app.diagrams.net"!=location.host||this.drawioMigrationStarted||
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
c,k,l){e={org:e,repo:f,ref:c,name:k.name,path:k.path,sha:k.sha,html_url:k.html_url,download_url:k.download_url};f=k.content;"base64"===k.encoding&&(/\.jpe?g$/i.test(k.name)?f="data:image/jpeg;base64,"+f:/\.gif$/i.test(k.name)?f="data:image/gif;base64,"+f:/\.png$/i.test(k.name)?(k=this.ui.extractGraphModelFromPng(f),f=null!=k&&0<k.length?k:"data:image/png;base64,"+f):f=Base64.decode(f));return l?new GitHubLibrary(this.ui,f,e):new GitHubFile(this.ui,f,e)};GitHubClient.prototype.insertLibrary=function(e,
f,c,k,l){this.insertFile(e,f,c,k,!0,l,!1)};GitHubClient.prototype.insertFile=function(e,f,c,k,l,x,y){l=null!=l?l:!1;x=x.split("/");var E=x[0],D=x[1],z=x[2],N=x.slice(3,x.length).join("/");0<N.length&&(N+="/");N+=e;this.checkExists(E+"/"+D+"/"+z+"/"+N,!0,mxUtils.bind(this,function(I,d){I?l?(y||(f=Base64.encode(f)),this.showCommitDialog(e,!0,mxUtils.bind(this,function(g){this.writeFile(E,D,z,N,g,f,d,mxUtils.bind(this,function(n){try{var t=JSON.parse(n.getText());c(this.createGitHubFile(E,D,z,t.content,
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
parseInt(da.value))))}function Q(Qa){function Fa(Aa,Ja,Na,ra){var Ha=Aa.useCssTransforms,La=Aa.currentTranslate,Xa=Aa.currentScale,Sa=Aa.view.translate,Ta=Aa.view.scale;Aa.useCssTransforms&&(Aa.useCssTransforms=!1,Aa.currentTranslate=new mxPoint(0,0),Aa.currentScale=1,Aa.view.translate=new mxPoint(0,0),Aa.view.scale=1);var Pa=Aa.getGraphBounds(),Oa=0,Ya=0,Wa=Ea.get(),ab=1/Aa.pageScale,$a=Ca.checked;if($a){ab=parseInt(sa.value);var gb=parseInt(va.value);ab=Math.min(Wa.height*gb/(Pa.height/Aa.view.scale),
Wa.width*ab/(Pa.width/Aa.view.scale))}else ab=parseInt(Ba.value)/(100*Aa.pageScale),isNaN(ab)&&(Ra=1/Aa.pageScale,Ba.value="100 %");Wa=mxRectangle.fromRectangle(Wa);Wa.width=Math.ceil(Wa.width*Ra);Wa.height=Math.ceil(Wa.height*Ra);ab*=Ra;!$a&&Aa.pageVisible?(Pa=Aa.getPageLayout(),Oa-=Pa.x*Wa.width,Ya-=Pa.y*Wa.height):$a=!0;ra=null!=ra?"page/id,"+ra:null;if(null==Ja){Ja=PrintDialog.createPrintPreview(Aa,ab,Wa,0,Oa,Ya,$a);Ja.pageSelector=!1;Ja.mathEnabled=!1;ma.checked&&(Ja.isCellVisible=function(Za){return Aa.isCellSelected(Za)});
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
M+8,U=(A.y+K.lastCursor.y)*M-12,W=K.cursor.getElementsByTagName("img")[0];R?(mxUtils.setPrefixedStyle(K.cursor.style,"transition","all 900ms ease-out"),mxUtils.setPrefixedStyle(W.style,"transition","all 900ms ease-out"),window.setTimeout(m,0)):(mxUtils.setPrefixedStyle(K.cursor.style,"transition",null),mxUtils.setPrefixedStyle(W.style,"transition",null),m())}}function x(K,R){try{var m=function(){if(null==g[M]){var Z=B[M];null==Z&&(Z=N%d.length,B[M]=Z,N++);var da=d[Z];Z=11<Z?"black":"white";g[M]={cursor:document.createElement("div"),
color:da,selection:{}};u[R]=M;Q=g[M].cursor;Q.style.pointerEvents="none";Q.style.position="absolute";Q.style.display="none";Q.style.opacity="0.9";var ba=document.createElement("img");mxUtils.setPrefixedStyle(ba.style,"transform","rotate(-45deg)translateX(-14px)");ba.setAttribute("src",Graph.createSvgImage(8,12,'<path d="M 4 0 L 8 12 L 4 10 L 0 12 Z" stroke="'+da+'" fill="'+da+'"/>').src);ba.style.width="10px";Q.appendChild(ba);ba=document.createElement("div");ba.style.backgroundColor=da;ba.style.color=
Z;ba.style.fontSize="9pt";ba.style.padding="3px 7px";ba.style.marginTop="8px";ba.style.borderRadius="10px";ba.style.maxWidth="100px";ba.style.overflow="hidden";ba.style.textOverflow="ellipsis";ba.style.whiteSpace="nowrap";mxUtils.write(ba,A);Q.appendChild(ba);b.diagramContainer.appendChild(Q)}else Q=g[M].cursor;U=g[M].selection};if(!q){K=JSON.parse(K);null!=K.bytes&&(K=e.stringToObject(K.bytes));C&&"cursor"!=K.type&&EditorUi.debug("P2PCollab: msg received",[K]);if(null!=R){if(K.from==H||t[K.from]>=
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
this.sidebarContainer.style.bottom=g?"32px":"0px";this.sidebarContainer.style.width="100%"}null!=this.format&&(d=this.isDefaultTheme(d)||"atlas"==d,this.format.showCloseButton!=d&&(this.format.showCloseButton=d,this.format.refresh()))};EditorUi.prototype.getWindows=function(){var d=[this.sidebarWindow,this.formatWindow,this.freehandWindow];null!=this.actions&&(d=d.concat([this.actions.outlineWindow,this.actions.layersWindow]));null!=this.menus&&(d=d.concat([this.menus.tagsWindow,this.menus.findWindow,
this.menus.findReplaceWindow,this.menus.commentsWindow]));return d};EditorUi.prototype.fitWindows=function(){for(var d=this.getWindows(),g=0;g<d.length;g++)null!=d[g]&&d[g].window.fit()};EditorUi.prototype.hideWindows=function(){for(var d=this.getWindows(),g=0;g<d.length;g++)null!=d[g]&&d[g].window.setVisible(!1)};EditorUi.prototype.destroyWindows=function(){null!=this.sidebarWindow&&(this.sidebarWindow.destroy(),this.sidebarWindow=null);null!=this.formatWindow&&(this.formatWindow.destroy(),this.formatWindow=
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
g.addListener(mxEvent.SIZE,e);g.container.addEventListener("scroll",c);g.view.addListener("unitChanged",this.unitListener);b.addListener("pageViewChanged",this.pageListener);b.addListener("pageScaleChanged",this.pageListener);b.addListener("pageFormatChanged",this.pageListener);this.setStyle=function(B){z=B;N.style.background=z.bkgClr;t()};this.origGuideMove=mxGuide.prototype.move;mxGuide.prototype.move=function(B,H,L,G){if(f&&4<B.height||!f&&4<B.width){if(null!=D.guidePart)try{d.putImageData(D.guidePart.imgData1,
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
function(){return"simple"!=Editor.currentTheme};this.menus.isShowArrangeItems=this.menus.isShowStyleItems;this.menus.isShowCellEditItems=this.menus.isShowStyleItems}d.actions.get("print").funct=function(){d.showDialog((new PrintDialog(d)).container,360,null!=d.pages&&1<d.pages.length?470:390,!0,!0)};this.defaultFilename=mxResources.get("untitledDiagram");var T=g.getExportVariables;g.getExportVariables=function(){var K=T.apply(this,arguments),R=d.getCurrentFile();null!=R&&(K.filename=R.getTitle());
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
return Q==O||0==M.length?z(F,O):U==W?D(F):E(F,O!=mxConstants.DIRECTION_NORTH&&O!=mxConstants.DIRECTION_WEST)}return T.apply(this,arguments)};g.getSubtree=function(F){var O=[F];!k(F)&&!c(F)||x(F)||g.traverse(F,!0,function(S,K){var R=null!=K&&g.isTreeEdge(K);R&&0>mxUtils.indexOf(O,K)&&O.push(K);(null==K||R)&&0>mxUtils.indexOf(O,S)&&O.push(S);return null==K||R});return O};var p=mxVertexHandler.prototype.init;mxVertexHandler.prototype.init=function(){p.apply(this,arguments);(k(this.state.cell)||c(this.state.cell))&&
!x(this.state.cell)&&0<this.graph.getOutgoingTreeEdges(this.state.cell).length&&(this.moveHandle=mxUtils.createImage(Editor.moveImage),this.moveHandle.setAttribute("title","Move Subtree"),this.moveHandle.style.position="absolute",this.moveHandle.style.cursor="pointer",this.moveHandle.style.width="24px",this.moveHandle.style.height="24px",this.graph.container.appendChild(this.moveHandle),mxEvent.addGestureListeners(this.moveHandle,mxUtils.bind(this,function(F){this.graph.graphHandler.start(this.state.cell,
mxEvent.getClientX(F),mxEvent.getClientY(F),this.graph.getSubtree(this.state.cell));this.graph.graphHandler.cellWasClicked=!0;this.graph.isMouseTrigger=mxEvent.isMouseEvent(F);this.graph.isMouseDown=!0;d.hoverIcons.reset();mxEvent.consume(F)})))};var q=mxVertexHandler.prototype.redrawHandles;mxVertexHandler.prototype.redrawHandles=function(){q.apply(this,arguments);null!=this.moveHandle&&(this.moveHandle.style.left=this.state.x+this.state.width+(40>this.state.width?10:0)+2+"px",this.moveHandle.style.top=
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
O.y||0<O.height)&&mxUtils.intersects(K,new mxRectangle(U.x,U.y+(O.y-O.height-1)*W+(0==O.y?U.height:0),U.width,1))&&(X="row-resize")),U=this.view.getState(this.model.getParent(U.cell))}null!=X&&L.setCursor(X)}}}),mouseUp:mxUtils.bind(this,function(K,U){m=h=n=t=null})})}this.cellRenderer.minSvgStrokeWidth=.1;this.cellRenderer.getLabelValue=function(K){var U=mxCellRenderer.prototype.getLabelValue.apply(this,arguments);K.view.graph.isHtmlLabel(K.cell)&&(1!=K.style.html?U=mxUtils.htmlEntities(U,!1):(K.lastLabelValue!=
U&&(K.lastLabelValue=U,K.lastSanitizedLabelValue=Graph.sanitizeHtml(U)),U=K.lastSanitizedLabelValue));return U};if("undefined"!==typeof mxVertexHandler){this.setConnectable(!0);this.setDropEnabled(!0);this.setPanning(!0);this.setTooltips(!0);this.setAllowLoops(!0);this.allowAutoPanning=!0;this.constrainChildren=this.resetEdgesOnConnect=!1;this.constrainRelativeChildren=!0;this.graphHandler.scrollOnMove=!1;this.graphHandler.scaleGrid=!0;this.connectionHandler.setCreateTarget(!1);this.connectionHandler.insertBeforeSource=
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
}finally{g.getModel().endUpdate()}v&&(g.setSelectionCell(n),g.scrollCellToVisible(n))}};f=mxUtils.button(mxResources.get("preview"),function(){d(z,N,!1)});f.className="geBtn";E.appendChild(f);f=mxUtils.button(mxResources.get("apply"),function(){d(b.editor.graph,e,!0)});f.className="geBtn gePrimaryBtn";E.appendChild(f);b.editor.cancelFirst||E.appendChild(k);y.appendChild(E);x.appendChild(y);l.appendChild(x);this.container=l},CustomDialog=function(b,e,f,c,k,l,x,y,E,D,z,N){var I=document.createElement("div");
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
B.parentNode.removeChild(B)}catch(L){}}else this.createEchoRequest(d,g,n,t,u).simulate(document,"_blank")}};EditorUi.prototype.createEchoRequest=function(d,g,n,t,u,v){d="xml="+encodeURIComponent(d);return new mxXmlRequest(SAVE_URL,d+(null!=n?"&mime="+n:"")+(null!=u?"&format="+u:"")+(null!=v?"&base64="+v:"")+(null!=g?"&filename="+encodeURIComponent(g):"")+(t?"&binary=1":""))};EditorUi.prototype.base64ToBlob=function(d,g){g=g||"";d=atob(d);for(var n=d.length,t=Math.ceil(n/1024),u=Array(t),v=0;v<t;++v){for(var B=
1024*v,H=Math.min(B+1024,n),L=Array(H-B),G=0;B<H;++G,++B)L[G]=d[B].charCodeAt(0);u[v]=new Uint8Array(L)}return new Blob(u,{type:g})};EditorUi.prototype.saveLocalFile=function(d,g,n,t,u,v,B,H){v=null!=v?v:!1;B=null!=B?B:"vsdx"!=u&&(!mxClient.IS_IOS||!navigator.standalone);u=this.getServiceCount(v);isLocalStorage&&u++;var L=4>=u?2:6<u?4:3;g=new CreateDialog(this,g,mxUtils.bind(this,function(G,T){try{if("_blank"==T)if(null!=n&&"image/"==n.substring(0,6))this.openInNewWindow(d,n,t);else if(null!=n&&"text/html"==
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
Graph.customFontElements={};Graph.recentCustomFonts={};Graph.isGoogleFontUrl=function(m){return m.substring(0,Editor.GOOGLE_FONTS.length)==Editor.GOOGLE_FONTS};Graph.isCssFontUrl=function(m){return Graph.isGoogleFontUrl(m)};Graph.createFontElement=function(m,A){var M=Graph.fontMapping[A];null==M&&Graph.isCssFontUrl(A)?(m=document.createElement("link"),m.setAttribute("rel","stylesheet"),m.setAttribute("type","text/css"),m.setAttribute("charset","UTF-8"),m.setAttribute("href",A)):(null==M&&(M='@font-face {\nfont-family: "'+
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
if(null!=A&&(null!=A&&"<"!=A.charAt(0)&&"%"!=A.charAt(0)&&(A=unescape(window.atob?atob(A):Base64.decode(cont,A))),null!=A&&"%"==A.charAt(0)&&(A=decodeURIComponent(A)),null!=A&&0<A.length)){var M=mxUtils.parseXml(A).documentElement;return"mxfile"==M.nodeName||"mxGraphModel"==M.nodeName}}catch(Q){}return!1};Editor.prototype.extractGraphModel=function(m,A,M){return Editor.extractGraphModel.apply(this,arguments)};var f=Editor.prototype.resetGraph;Editor.prototype.resetGraph=function(){this.graph.mathEnabled=
"1"==urlParams.math;this.graph.view.x0=null;this.graph.view.y0=null;this.graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&this.graph.isCssTransformsSupported();this.graph.updateCssTransform();f.apply(this,arguments)};var c=Editor.prototype.updateGraphComponents;Editor.prototype.updateGraphComponents=function(){c.apply(this,arguments);this.graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&this.graph.isCssTransformsSupported();this.graph.updateCssTransform()};Editor.initMath=
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
Q));var U=document.createElement("link");U.setAttribute("rel","preload");U.setAttribute("href",Q);U.setAttribute("as","font");U.setAttribute("crossorigin","");A.parentNode.insertBefore(U,A)}}}};Editor.trimCssUrl=function(m){return m.replace(RegExp("^[\\s\"']+","g"),"").replace(RegExp("[\\s\"']+$","g"),"")};Editor.GOOGLE_FONTS="https://fonts.googleapis.com/css?family=";Editor.GUID_ALPHABET="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_";Editor.GUID_LENGTH=20;Editor.guid=function(m){m=
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
null==R.getTerminal(m[A],!0)){R.setTerminal(m[A],F,!0);var M=g.getCellGeometry(m[A]);M.points=null;null!=M.getTerminalPoint(!0)&&M.setTerminalPoint(null,!0)}}finally{R.endUpdate()}return m}}var L={67:d.actions.get("selectChildren"),88:d.actions.get("selectDescendants"),80:d.actions.get("selectParent"),83:d.actions.get("selectSiblings")},G=d.onKeyDown;d.onKeyDown=function(F){try{var O=g.getSelectionCell();if(g.isEnabled()&&!g.isEditing()&&null!=O){var S=mxEvent.isAltDown(F)&&mxEvent.isShiftDown(F)?
L[F.keyCode]:null;null!=S?(S.funct(F),mxEvent.consume(F)):c(O)&&(S=null,0<g.getIncomingTreeEdges(O).length&&(9==F.which?S=mxEvent.isShiftDown(F)?D(O):z(O):13==F.which&&(S=E(O,!mxEvent.isShiftDown(F)))),null!=S&&0<S.length?(1==S.length&&g.model.isEdge(S[0])?g.setSelectionCell(g.model.getTerminal(S[0],!1)):g.setSelectionCell(S[S.length-1]),null!=d.hoverIcons&&d.hoverIcons.update(g.view.getState(O)),g.startEditingAtCell(O),mxEvent.consume(F)):37==F.keyCode?(I(O,mxConstants.DIRECTION_WEST),mxEvent.consume(F)):
38==F.keyCode?(I(O,mxConstants.DIRECTION_NORTH),mxEvent.consume(F)):39==F.keyCode?(I(O,mxConstants.DIRECTION_EAST),mxEvent.consume(F)):40==F.keyCode&&(I(O,mxConstants.DIRECTION_SOUTH),mxEvent.consume(F)))}}catch(K){d.handleError(K)}mxEvent.isConsumed(F)||G.apply(this,arguments)};var T=g.connectVertex;g.connectVertex=function(F,O,S,K,R,m,A){var M=g.getIncomingTreeEdges(F);if(c(F)){var Q=y(F),U=Q==mxConstants.DIRECTION_EAST||Q==mxConstants.DIRECTION_WEST,W=O==mxConstants.DIRECTION_EAST||O==mxConstants.DIRECTION_WEST;
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
return T}),G=!0);return G};var B=u.stop;u.stop=function(){B.call(this);this.active=!1;null!=u.status&&null!=u.status.parentNode&&u.status.parentNode.removeChild(u.status);u.status=null};u.pause=function(){return function(){}};return u};EditorUi.prototype.isCompatibleString=function(d){try{var g=mxUtils.parseXml(d),n=this.editor.extractGraphModel(g.documentElement,!0);return null!=n&&0==n.getElementsByTagName("parsererror").length}catch(t){}return!1};EditorUi.prototype.isVisioData=function(d){return 8<
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
"").replace(/ (NS xml|\S*):space="preserve"/g,' xml:space="preserve"');var G=mxUtils.parseXml(L).getElementsByTagName("svg");if(0<G.length&&"error"!=G[0].getAttribute("aria-roledescription")){var T=parseFloat(G[0].getAttribute("width")),p=parseFloat(G[0].getAttribute("height"));if(isNaN(T)||isNaN(p))try{var q=G[0].getAttribute("viewBox").split(/\s+/);T=parseFloat(q[2]);p=parseFloat(q[3])}catch(C){T=T||100,p=p||100}n(this.convertDataUri(Editor.createSvgDataUri(L)),T,p)}else null!=u?u():t({message:mxResources.get("invalidInput")})}catch(C){t(C)}});
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
m.prototype.lineTo=function(W,P){this.passThrough?this.originalLineTo.apply(this.canvas,arguments):(this.addOp(this.lineOp,W,P),this.lastX=W,this.lastY=P)};m.prototype.moveTo=function(W,P){this.passThrough?this.originalMoveTo.apply(this.canvas,arguments):(this.addOp(this.moveOp,W,P),this.lastX=W,this.lastY=P,this.firstX=W,this.firstY=P)};m.prototype.close=function(){this.passThrough?this.originalClose.apply(this.canvas,arguments):this.addOp(this.closeOp)};m.prototype.quadTo=function(W,P,V,X){this.passThrough?
this.originalQuadTo.apply(this.canvas,arguments):(this.addOp(this.quadOp,W,P,V,X),this.lastX=V,this.lastY=X)};m.prototype.curveTo=function(W,P,V,X,Y,Z){this.passThrough?this.originalCurveTo.apply(this.canvas,arguments):(this.addOp(this.curveOp,W,P,V,X,Y,Z),this.lastX=Y,this.lastY=Z)};m.prototype.arcTo=function(W,P,V,X,Y,Z,da){if(this.passThrough)this.originalArcTo.apply(this.canvas,arguments);else{var ba=mxUtils.arcToCurves(this.lastX,this.lastY,W,P,V,X,Y,Z,da);if(null!=ba)for(var ma=0;ma<ba.length;ma+=
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
this.menus.findReplaceWindow,this.menus.commentsWindow]));return d};EditorUi.prototype.fitWindows=function(){for(var d=this.getWindows(),g=0;g<d.length;g++)null!=d[g]&&d[g].window.fit()};EditorUi.prototype.hideWindows=function(){for(var d=this.getWindows(),g=0;g<d.length;g++)null!=d[g]&&d[g].window.setVisible(!1)};EditorUi.prototype.destroyWindows=function(){null!=this.sidebarWindow&&(this.sidebarWindow.destroy(),this.sidebarWindow=null);null!=this.formatWindow&&(this.formatWindow.destroy(),this.formatWindow=
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
B.push("page-id="+this.currentPage.getId());return B};EditorUi.prototype.createLink=function(d,g,n,t,u,v,B,H,L,G){L=this.createUrlParameters(d,g,n,t,u,v,L);d=this.getCurrentFile();g=!0;null!=B?n="#U"+encodeURIComponent(B):(d=this.getCurrentFile(),H||null==d||d.constructor!=window.DriveFile?n="#R"+encodeURIComponent(n?this.getFileData(!0,null,null,null,null,null,null,!0,null,!1):Graph.compress(mxUtils.getXml(this.editor.getGraphXml()))):(n="#"+d.getHash(),g=!1));g&&null!=d&&null!=d.getTitle()&&d.getTitle()!=
this.defaultFilename&&L.push("title="+encodeURIComponent(d.getTitle()));G&&1<n.length&&(L.push("open="+n.substring(1)),n="");return(t&&"1"!=urlParams.dev?EditorUi.lightboxHost:mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||!/.*\.draw\.io$/.test(window.location.hostname)?EditorUi.drawHost:"https://"+window.location.host)+"/"+(0<L.length?"?"+L.join("&"):"")+n};EditorUi.prototype.createHtml=function(d,g,n,t,u,v,B,H,L,G,T,p){this.getBasenames();var q={};""!=u&&u!=mxConstants.NONE&&(q.highlight=u);"auto"!==
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
(L?null!=S.resp&&0<S.resp.length&&null!=S.resp[0]?(T=S.resp[0],L=!1,J()):q():null!=S.resp&&0<S.resp.length&&null!=S.resp[0]?F(S.resp[0]):C())}}catch(K){console.log(K)}});window.addEventListener("message",B)}})));d(v);v.onversionchange=function(){v.close()}}catch(B){null!=g?g(B):null!=window.console&&console.warn(B)}});t.onerror=g;t.onblocked=function(){}}catch(u){null!=g?g(u):null!=window.console&&console.error(u)}else null!=g&&g(Error("IndexedDB not supported"))}else d(this.database)};EditorUi.prototype.setDatabaseItem=
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
Graph.recentCustomFonts[Q]=U,A=document.getElementsByTagName("head")[0],null!=M&&("link"==U.elt.nodeName.toLowerCase()?(U.elt.onload=M,U.elt.onerror=M):M()),null!=A&&A.appendChild(U.elt)):null!=M&&M()}else null!=M&&M()}else null!=M&&M();return m};Graph.getFontUrl=function(m,A){m=Graph.customFontElements[m.toLowerCase()];null!=m&&(A=m.url);return A};Graph.processFontAttributes=function(m){m=m.getElementsByTagName("*");for(var A=0;A<m.length;A++){var M=m[A].getAttribute("data-font-src");if(null!=M){var Q=
"FONT"==m[A].nodeName?m[A].getAttribute("face"):m[A].style.fontFamily;null!=Q&&Graph.addFont(Q,M)}}};Graph.processFontStyle=function(m){if(null!=m){var A=mxUtils.getValue(m,"fontSource",null);if(null!=A){var M=mxUtils.getValue(m,mxConstants.STYLE_FONTFAMILY,null);null!=M&&Graph.addFont(M,decodeURIComponent(A))}}return m};Graph.prototype.defaultThemeName="default-style2";Graph.prototype.lastPasteXml=null;Graph.prototype.pasteCounter=0;Graph.prototype.defaultScrollbars="0"!=urlParams.sb;Graph.prototype.defaultPageVisible=
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
q.init()}else{var C=function(J){return{id:J.id,isExt:!0,url:J.downloadUrl,title:J.title,imgUrl:J.thumbnailLink,changedBy:J.lastModifyingUserName,lastModifiedOn:J.modifiedDate}};p=new TemplatesDialog(c,function(J,F,O){var S=O.libs,K=O.clibs;c.pickFolder(c.mode,function(R){c.createFile(F,J,null!=S&&0<S.length?S:null,null,function(){c.hideDialog()},null,R,null,null!=K&&0<K.length?K:null)},null==c.stateArg||null==c.stateArg.folderId)},null,null,null,"user",function(J,F,O){var S=new Date;S.setDate(S.getDate()-
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
" "+Z.getStatus()})},X,this.timeout,function(){U&&null!=M&&M({code:App.ERROR_TIMEOUT,retry:Y})},V)});Y()}catch(Z){null!=M&&M(Z)}};Editor.prototype.absoluteCssFonts=function(m){var A=null;if(null!=m){var M=m.split("url(");if(0<M.length){A=[M[0]];m=window.location.pathname;var Q=null!=m?m.lastIndexOf("/"):-1;0<=Q&&(m=m.substring(0,Q+1));Q=document.getElementsByTagName("base");var U=null;null!=Q&&0<Q.length&&(U=Q[0].getAttribute("href"));for(var W=1;W<M.length;W++)if(Q=M[W].indexOf(")"),0<Q){var P=Editor.trimCssUrl(M[W].substring(0,
Q));this.graph.isRelativeUrl(P)&&(P=null!=U?U+P:window.location.protocol+"//"+window.location.hostname+("/"==P.charAt(0)?"":m)+P);A.push('url("'+P+'"'+M[W].substring(Q))}else A.push(M[W])}else A=[m]}return null!=A?A.join(""):null};Editor.prototype.mapFontUrl=function(m,A,M){/^https?:\/\//.test(A)&&!this.isCorsEnabledForUrl(A)&&(A=PROXY_URL+"?url="+encodeURIComponent(A));M(m,A)};Editor.prototype.embedCssFonts=function(m,A){var M=m.split("url("),Q=0;null==this.cachedFonts&&(this.cachedFonts={});var U=
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
c,I,l,x),D&&!z?I.y=n.y:z&&!D&&(I.x=n.x),n.y!=I.y&&null!=this.guideY&&null!=this.guideY.node&&(this.guideY.node.style.visibility="hidden"),n.x!=I.x&&null!=this.guideX&&null!=this.guideX.node&&(this.guideX.node.style.visibility="hidden"),I;T(!0,!0);return b.apply(this,arguments)};var e=mxGuide.prototype.setVisible;mxGuide.prototype.setVisible=function(c){e.call(this,c);var k=this.guidesArrVer,l=this.guidesArrHor;if(null!=k)for(var x=0;x<k.length;x++)k[x].node.style.visibility=c?"visible":"hidden";if(null!=
l)for(x=0;x<l.length;x++)l[x].node.style.visibility=c?"visible":"hidden"};var f=mxGuide.prototype.destroy;mxGuide.prototype.destroy=function(){f.call(this);var c=this.guidesArrVer,k=this.guidesArrHor;if(null!=c){for(var l=0;l<c.length;l++)c[l].destroy();this.guidesArrVer=null}if(null!=k){for(l=0;l<k.length;l++)k[l].destroy();this.guidesArrHor=null}}})();function mxRuler(b,e,f,c){function k(){var B=b.diagramContainer;N.style.top=B.offsetTop-E+"px";N.style.left=B.offsetLeft-E+"px";N.style.width=(f?0:B.offsetWidth)+E+"px";N.style.height=(f?B.offsetHeight:0)+E+"px"}function l(B,H,L){if(null!=x)return B;var G;return function(){var T=this,p=arguments,q=L&&!G;clearTimeout(G);G=setTimeout(function(){G=null;L||B.apply(T,p)},H);q&&B.apply(T,p)}}var x=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame,
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
(m[A]=Graph.fontMapping[A]);return m};Editor.prototype.embedExtFonts=function(m){var A=this.graph.getCustomFonts();if(0<A.length){var M=[],Q=0;null==this.cachedGoogleFonts&&(this.cachedGoogleFonts=this.createGoogleFontCache());for(var U=mxUtils.bind(this,function(){0==Q&&this.embedCssFonts(M.join(""),m)}),W=0;W<A.length;W++)mxUtils.bind(this,function(P,V){Graph.isCssFontUrl(V)?null==this.cachedGoogleFonts[V]?(Q++,this.loadUrl(V,mxUtils.bind(this,function(X){this.cachedGoogleFonts[V]=X;M.push(X+"\n");
Q--;U()}),mxUtils.bind(this,function(X){Q--;M.push("@import url("+V+");\n");U()}))):M.push(this.cachedGoogleFonts[V]+"\n"):M.push('@font-face {font-family: "'+P+'";src: url("'+V+'")}\n')})(A[W].name,A[W].url);U()}else m()};Editor.prototype.addMathCss=function(m){m=m.getElementsByTagName("defs");if(null!=m&&0<m.length)for(var A=document.getElementsByTagName("style"),M=0;M<A.length;M++){var Q=mxUtils.getTextContent(A[M]);0>Q.indexOf("mxPageSelector")&&0<Q.indexOf("MathJax")&&m[0].appendChild(A[M].cloneNode(!0))}};
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
Editor.prototype.addFontCss=function(m,A){A=null!=A?A:this.absoluteCssFonts(this.fontCss);if(null!=A){var M=m.getElementsByTagName("defs"),Q=m.ownerDocument;0==M.length?(M=null!=Q.createElementNS?Q.createElementNS(mxConstants.NS_SVG,"defs"):Q.createElement("defs"),null!=m.firstChild?m.insertBefore(M,m.firstChild):m.appendChild(M)):M=M[0];m=null!=Q.createElementNS?Q.createElementNS(mxConstants.NS_SVG,"style"):Q.createElement("style");m.setAttribute("type","text/css");mxUtils.setTextContent(m,A);M.appendChild(m)}};
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
ha=document.createElement("img");ha.setAttribute("src",ka);ha.setAttribute("alt",pa);ha.style.maxWidth=Ka+"px";ha.style.maxHeight=oa+"px";M=ha;var Xa=ka.replace(".drawio.xml","").replace(".drawio","").replace(".xml","");ra.appendChild(ha);ha.onerror=function(){this.src!=Xa?this.src=Xa:(this.src=Editor.errorImage,this.onerror=null)};mxEvent.addGestureListeners(ra,mxUtils.bind(this,function(Oa){G(ra,null,null,aa,ua,Aa)}),null,null);mxEvent.addListener(ra,"dblclick",function(Oa){L();mxEvent.consume(Oa)})}else if(!Ia&&
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
Graph.customFontElements={};Graph.recentCustomFonts={};Graph.isGoogleFontUrl=function(m){return m.substring(0,Editor.GOOGLE_FONTS.length)==Editor.GOOGLE_FONTS};Graph.isCssFontUrl=function(m){return Graph.isGoogleFontUrl(m)};Graph.createFontElement=function(m,A){var M=Graph.fontMapping[A];null==M&&Graph.isCssFontUrl(A)?(m=document.createElement("link"),m.setAttribute("rel","stylesheet"),m.setAttribute("type","text/css"),m.setAttribute("charset","UTF-8"),m.setAttribute("href",A)):(null==M&&(M='@font-face {\nfont-family: "'+
m+'";\nsrc: url("'+A+'");\n}'),m=document.createElement("style"),mxUtils.write(m,M));return m};Graph.addFont=function(m,A,M){if(null!=m&&0<m.length&&null!=A&&0<A.length){var Q=m.toLowerCase();if("helvetica"!=Q&&"arial"!=m&&"sans-serif"!=Q){var U=Graph.customFontElements[Q];null!=U&&U.url!=A&&(U.elt.parentNode.removeChild(U.elt),U=null);null==U?(U=A,"http:"==A.substring(0,5)&&(U=PROXY_URL+"?url="+encodeURIComponent(A)),U={name:m,url:A,elt:Graph.createFontElement(m,U)},Graph.customFontElements[Q]=U,
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
"*");this.remoteInvokeQueue=[]};EditorUi.prototype.handleRemoteInvokeResponse=function(d){var g=d.msgMarkers,n=this.remoteInvokeCallbacks[g.callbackId];if(null==n)throw Error("No callback for "+(null!=g?g.callbackId:"null"));d.error?n.error&&n.error(d.error.errResp):n.callback&&n.callback.apply(this,d.resp);this.remoteInvokeCallbacks[g.callbackId]=null};EditorUi.prototype.remoteInvoke=function(d,g,n,t,u){var v=!0,B=window.setTimeout(mxUtils.bind(this,function(){v=!1;u({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout")})}),
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
EditorUi.prototype.showLocalStorageDialog=function(d,g,n,t,u,v){var B=localStorage.getItem(g);d=new TextareaDialog(this,d,null!=B?JSON.stringify(JSON.parse(B),null,2):"",mxUtils.bind(this,function(H){if(null!=H)try{if(null!=v&&v(H),H==B)this.hideDialog();else{if(0<H.length){var L=JSON.parse(H);localStorage.setItem(g,JSON.stringify(L))}else localStorage.removeItem(g);this.hideDialog();this.alert(mxResources.get("restartForChangeRequired"))}}catch(G){this.handleError(G)}}),null,mxResources.get("close"),
null,null,null,!0,null,null,u,n,t);this.showDialog(d.container,620,460,!0,!1);d.init()};EditorUi.prototype.showBackgroundImageDialog=function(d,g,n,t){d=null!=d?d:mxUtils.bind(this,function(u,v,B,H){v||(u=new ChangePageSetup(this,t?B:null,u),u.ignoreColor=!t,null!=H&&t&&(u.shadowVisible=H),this.editor.graph.model.execute(u))});d=new BackgroundImageDialog(this,d,g,n,t);this.showDialog(d.container,400,t?240:220,!0,!0);d.init()};EditorUi.prototype.showLibraryDialog=function(d,g,n,t,u){d=new LibraryDialog(this,
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
this.customFonts)))}finally{M.getModel().endUpdate()}}}));this.editorUi.showDialog(U.container,380,Editor.enableWebFonts?250:180,!0,!0);U.init()}),q,null,!0)})))}})();function DiagramPage(b,e){this.node=b;null!=e?this.node.setAttribute("id",e):null==this.getId()&&this.node.setAttribute("id",Editor.guid())}DiagramPage.prototype.node=null;DiagramPage.prototype.root=null;DiagramPage.prototype.viewState=null;DiagramPage.prototype.getId=function(){return this.node.getAttribute("id")};DiagramPage.prototype.getName=function(){return this.node.getAttribute("name")};
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
z.code=null);D(z)})))};GitHubClient.prototype.checkExists=function(e,f,c){var k=e.split("/"),l=k[0],x=k[1],y=k[2];e=k.slice(3,k.length).join("/");this.getSha(l,x,e,y,mxUtils.bind(this,function(E){if(f){var D=this.ui.spinner.pause();this.ui.confirm(mxResources.get("replaceIt",[e]),function(){D();c(!0,E)},function(){D();c(!1)})}else this.ui.spinner.stop(),this.ui.showError(mxResources.get("error"),mxResources.get("fileExists"),mxResources.get("ok"),function(){c(!1)})}),mxUtils.bind(this,function(E){c(!0)}),
!0)};GitHubClient.prototype.saveFile=function(e,f,c,k,l){var x=e.meta.org,y=e.meta.repo,E=e.meta.ref,D=e.meta.path,z=mxUtils.bind(this,function(I,d){this.writeFile(x,y,E,D,l,d,I,mxUtils.bind(this,function(g){delete e.meta.isNew;f(JSON.parse(g.getText()).content.sha)}),mxUtils.bind(this,function(g){c(g)}))}),N=mxUtils.bind(this,function(){if(this.ui.useCanvasForExport&&/(\.png)$/i.test(D)){var I=this.ui.getPngFileProperties(this.ui.fileNode);this.ui.getEmbeddedPng(mxUtils.bind(this,function(d){z(e.meta.sha,
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
(EditDataDialog.placeholderHelpLink="https://www.drawio.com/doc/faq/predefined-placeholders");if(/viewer\.diagrams\.net$/.test(window.location.hostname)||/embed\.diagrams\.net$/.test(window.location.hostname))this.editor.editBlankUrl="https://app.diagrams.net/";var B=d.editor.getEditBlankUrl;this.editor.getEditBlankUrl=function(K){K=null!=K?K:"";"1"==urlParams.dev&&(K+=(0<K.length?"&":"?")+"dev=1");return B.apply(this,arguments)};var H=g.addClickHandler;g.addClickHandler=function(K,R,m){var A=R;R=
function(M,Q){if(null==Q){var U=mxEvent.getSource(M);"a"==U.nodeName.toLowerCase()&&(Q=U.getAttribute("href"))}null!=Q&&g.isCustomLink(Q)&&(mxEvent.isTouchEvent(M)||!mxEvent.isPopupTrigger(M))&&g.customLinkClicked(Q)&&mxEvent.consume(M);null!=A&&A(M,Q)};H.call(this,K,R,m)};l.apply(this,arguments);mxClient.IS_SVG&&this.editor.graph.addSvgShadow(g.view.canvas.ownerSVGElement,null,!0);if(null!=this.menus){var L=Menus.prototype.addPopupMenuItems;this.menus.addPopupMenuItems=function(K,R,m){g.isSelectionEmpty()&&
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
161==d.charCodeAt(4)&&177==d.charCodeAt(5)&&26==d.charCodeAt(6)&&225==d.charCodeAt(7)||60==d.charCodeAt(0)&&63==d.charCodeAt(1)&&120==d.charCodeAt(2)&&109==d.charCodeAt(3)&&108==d.charCodeAt(3))};var b=EditorUi.prototype.createKeyHandler;EditorUi.prototype.createKeyHandler=function(d){var g=b.apply(this,arguments);if(!this.editor.chromeless||this.editor.editable){var n=g.getFunction,t=this.editor.graph,u=this;g.getFunction=function(v){if(t.isSelectionEmpty()&&null!=u.pages&&0<u.pages.length){var B=
u.getSelectedPageIndex();if(mxEvent.isShiftDown(v)){if(37==v.keyCode)return function(){0<B&&u.movePage(B,B-1)};if(38==v.keyCode)return function(){0<B&&u.movePage(B,0)};if(39==v.keyCode)return function(){B<u.pages.length-1&&u.movePage(B,B+1)};if(40==v.keyCode)return function(){B<u.pages.length-1&&u.movePage(B,u.pages.length-1)}}else if(mxEvent.isControlDown(v)||mxClient.IS_MAC&&mxEvent.isMetaDown(v)){if(37==v.keyCode)return function(){0<B&&u.selectNextPage(!1)};if(38==v.keyCode)return function(){0<
B&&u.selectPage(u.pages[0])};if(39==v.keyCode)return function(){B<u.pages.length-1&&u.selectNextPage(!0)};if(40==v.keyCode)return function(){B<u.pages.length-1&&u.selectPage(u.pages[u.pages.length-1])}}}return!(65<=v.keyCode&&90>=v.keyCode)||t.isSelectionEmpty()||mxEvent.isAltDown(v)||mxEvent.isShiftDown(v)||mxEvent.isControlDown(v)||mxClient.IS_MAC&&mxEvent.isMetaDown(v)?n.apply(this,arguments):null}}return g};var e=EditorUi.prototype.extractGraphModelFromHtml;EditorUi.prototype.extractGraphModelFromHtml=
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
function(){b.spinner.stop();if(null==b.linkPicker){var B=b.drive.createLinkPicker();b.linkPicker=B.setCallback(function(H){LinkDialog.filePicked(H)}).build()}b.linkPicker.setVisible(!0)}))});"undefined"!=typeof Dropbox&&"undefined"!=typeof Dropbox.choose&&y(IMAGE_PATH+"/dropbox-logo.svg",mxResources.get("dropbox"),function(){Dropbox.choose({linkType:"direct",cancel:function(){},success:function(B){z.value=B[0].link;z.focus()}})});null!=b.oneDrive&&y(IMAGE_PATH+"/onedrive-logo.svg",mxResources.get("oneDrive"),
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
I.vertex=!0;N.addCell(I);N.dblClick=function(J,F){if(null!=F&&F!=I)N.setSelectionCell(F);else{F=mxUtils.convertPoint(N.container,mxEvent.getClientX(J),mxEvent.getClientY(J));mxEvent.consume(J);J=N.view.scale;var O=N.view.translate;N.setSelectionCell(l((F.x-3*J)/J-O.x,(F.y-3*J)/J-O.y))}};k=new mxKeyHandler(N);k.bindKey(46,x);k.bindKey(8,x);N.getRubberband().isForceRubberbandEvent=function(J){return 0==J.evt.button&&(null==J.getCell()||J.getCell()==I)};N.panningHandler.isForcePanningEvent=function(J){return 2==
J.evt.button};var d=N.isCellSelectable;N.isCellSelectable=function(J){return J==I?!1:d.apply(this,arguments)};N.getLinkForCell=function(){return null};var g=N.view.getState(I);z=N.getAllConnectionConstraints(g);for(var n=0;null!=z&&n<z.length;n++){var t=N.getConnectionPoint(g,z[n]);l(t.x-3,t.y-3,z[n])}N.fit(8);N.center();n=b.createToolbarButton(Editor.zoomInImage,mxResources.get("zoomIn"),function(){N.zoomIn()},20);n.setAttribute("disabled","disabled");t=b.createToolbarButton(Editor.zoomOutImage,
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
return Q};Editor.getDiagramNodeXml=function(m){var A=mxUtils.getTextContent(m),M=null;0<A.length?M=Graph.decompress(A):null!=m.firstChild&&(M=mxUtils.getXml(m.firstChild));return M};Editor.extractGraphModelFromPdf=function(m){m=m.substring(m.indexOf(",")+1);m=window.atob&&!mxClient.IS_SF?atob(m):Base64.decode(m,!0);if("%PDF-1.7"==m.substring(0,8)){var A=m.indexOf("EmbeddedFile");if(-1<A){var M=m.indexOf("stream",A)+9;if(0<m.substring(A,M).indexOf("application#2Fvnd.jgraph.mxfile"))return A=m.indexOf("endstream",
M-1),pako.inflateRaw(Graph.stringToArrayBuffer(m.substring(M,A)),{to:"string"})}return null}M=null;A="";for(var Q=0,U=0,W=[],P=null;U<m.length;){var V=m.charCodeAt(U);U+=1;10!=V&&(A+=String.fromCharCode(V));V=="/Subject (%3Cmxfile".charCodeAt(Q)?Q++:Q=0;if(19==Q){var X=m.indexOf("%3C%2Fmxfile%3E)",U)+15;U-=9;if(X>U){M=m.substring(U,X);break}}10==V&&("endobj"==A?P=null:"obj"==A.substring(A.length-3,A.length)||"xref"==A||"trailer"==A?(P=[],W[A.split(" ")[0]]=P):null!=P&&P.push(A),A="")}null==M&&(M=
Editor.extractGraphModelFromXref(W));null!=M&&(M=decodeURIComponent(M.replace(/\\\(/g,"(").replace(/\\\)/g,")")));return M};Editor.extractGraphModelFromXref=function(m){var A=m.trailer,M=null;null!=A&&(A=/.* \/Info (\d+) (\d+) R/g.exec(A.join("\n")),null!=A&&0<A.length&&(A=m[A[1]],null!=A&&(A=/.* \/Subject (\d+) (\d+) R/g.exec(A.join("\n")),null!=A&&0<A.length&&(m=m[A[1]],null!=m&&(m=m.join("\n"),M=m.substring(1,m.length-1))))));return M};Editor.extractParserError=function(m,A){var M=null;m=null!=
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
!0,D=window.setTimeout(mxUtils.bind(this,function(){E=!1;c({code:App.ERROR_TIMEOUT})}),this.ui.timeout),z=this.client.filesGetMetadata({path:"/"+e.path.substring(1),include_deleted:!1});z.then(mxUtils.bind(this,function(N){}));z["catch"](function(N){window.clearTimeout(D);E&&null!=N&&409==N.status&&(E=!1,c({message:mxResources.get("fileNotFound")}))});z=this.client.filesDownload(e);z.then(mxUtils.bind(this,function(N){window.clearTimeout(D);if(E){E=!1;try{var I=new FileReader;I.onload=mxUtils.bind(this,
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
return Q==O||0==M.length?z(F,O):U==W?D(F):E(F,O!=mxConstants.DIRECTION_NORTH&&O!=mxConstants.DIRECTION_WEST)}return T.apply(this,arguments)};g.getSubtree=function(F){var O=[F];!k(F)&&!c(F)||x(F)||g.traverse(F,!0,function(S,K){var R=null!=K&&g.isTreeEdge(K);R&&0>mxUtils.indexOf(O,K)&&O.push(K);(null==K||R)&&0>mxUtils.indexOf(O,S)&&O.push(S);return null==K||R});return O};var p=mxVertexHandler.prototype.init;mxVertexHandler.prototype.init=function(){p.apply(this,arguments);(k(this.state.cell)||c(this.state.cell))&&
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
X||(da.style.backgroundImage="url("+mxWindow.prototype.normalizeImage+")",da.style.backgroundPosition="right 6px center",da.style.backgroundRepeat="no-repeat",da.style.paddingRight="22px");return da}function d(V,X,Y,Z,da,ba){var ma=document.createElement("a");ma.className="geMenuItem";ma.style.display="inline-block";ma.style.boxSizing="border-box";ma.style.height="30px";ma.style.padding="6px";ma.style.position="relative";ma.style.verticalAlign="top";ma.style.top="0px";null!=v.statusContainer?H.insertBefore(ma,
v.statusContainer):H.appendChild(ma);null!=ba?(ma.style.backgroundImage="url("+ba+")",ma.style.backgroundPosition="center center",ma.style.backgroundRepeat="no-repeat",ma.style.backgroundSize="24px 24px",ma.style.width="34px"):mxUtils.write(ma,V);mxEvent.addListener(ma,mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,function(ea){ea.preventDefault()}));mxEvent.addListener(ma,"click",function(ea){"disabled"!=ma.getAttribute("disabled")&&X(ea);mxEvent.consume(ea)});null==Y&&(ma.style.marginRight=
"4px");null!=Z&&ma.setAttribute("title",Z);null!=da&&(V=function(){da.isEnabled()?(ma.removeAttribute("disabled"),ma.style.cursor="pointer"):(ma.setAttribute("disabled","disabled"),ma.style.cursor="default")},da.addListener("stateChanged",V),B.addListener("enabledChanged",V),V());return ma}function g(V,X,Y){Y=document.createElement("div");Y.className="geMenuItem";Y.style.display="inline-block";Y.style.verticalAlign="top";Y.style.marginRight="6px";Y.style.padding="0 4px 0 4px";Y.style.height="30px";
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
this.cellEditor.textarea.getElementsByTagName("font");A=Graph.getFontUrl(m,A);for(var Q=0;Q<M.length;Q++)M[Q].getAttribute("face")==m&&M[Q].getAttribute("data-font-src")!=A&&M[Q].setAttribute("data-font-src",A)}};var v=Graph.prototype.isFastZoomEnabled;Graph.prototype.isFastZoomEnabled=function(){return v.apply(this,arguments)&&(!this.shadowVisible||!mxClient.IS_SF)};Graph.prototype.updateGlobalUrlVariables=function(){this.globalVars=Editor.globalVars;if(null!=urlParams.vars)try{this.globalVars=null!=
this.globalVars?mxUtils.clone(this.globalVars):{};var m=JSON.parse(decodeURIComponent(urlParams.vars));if(null!=m)for(var A in m)this.globalVars[A]=m[A]}catch(M){null!=window.console&&console.log("Error in vars URL parameter: "+M)}};Graph.prototype.getExportVariables=function(){return null!=this.globalVars?mxUtils.clone(this.globalVars):{}};var B=Graph.prototype.getGlobalVariable;Graph.prototype.getGlobalVariable=function(m){var A=B.apply(this,arguments);null==A&&null!=this.globalVars&&(A=this.globalVars[m]);
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
y=document.createElement("div");y.style.height="300px";y.style.width="300px";y.style.display="inline-flex";y.style.justifyContent="center";y.style.alignItems="center";y.style.position="absolute";var E=document.createElement("img");E.onload=function(){function G(){z.model.setStyle(d,g+k())}z=new Graph(D);z.autoExtend=!1;z.autoScroll=!1;z.setGridEnabled(!1);z.setEnabled(!0);z.setPanning(!1);z.setConnectable(!1);z.getRubberband().setEnabled(!1);z.graphHandler.allowLivePreview=!1;var T=z.createVertexHandler;
z.createVertexHandler=function(){var U=T.apply(this,arguments);U.livePreview=!1;return U};if(null!=f)try{if("inset"==f.substring(0,5)){var p=d.geometry,q=E.width,C=E.height,J=(300-q)/2,F=(300-C)/2,O=f.match(/\(([^)]+)\)/)[1].split(/[ ,]+/),S=parseFloat(O[0]),K=parseFloat(O[1]),R=parseFloat(O[2]),m=parseFloat(O[3]);isFinite(S)&&isFinite(K)&&isFinite(R)&&isFinite(m)?(p.x=m/100*q+J,p.y=S/100*C+F,p.width=(100-K)/100*q+J-p.x,p.height=(100-R)/100*C+F-p.y,"round"==O[4]?"50%"==O[5]?u.setAttribute("checked",
"checked"):(I=parseInt(O[5]),B.value=I,t.setAttribute("checked","checked"),v.style.visibility="visible"):n.setAttribute("checked","checked")):f=null}else f=null}catch(U){}d.style=g+(f?f:k());d.vertex=!0;z.addCell(d,null,null,null,null);z.selectAll();z.addListener(mxEvent.CELLS_MOVED,G);z.addListener(mxEvent.CELLS_RESIZED,G);var A=z.graphHandler.mouseUp,M=z.graphHandler.mouseDown;z.graphHandler.mouseUp=function(){A.apply(this,arguments);D.style.backgroundColor="#fff9"};z.graphHandler.mouseDown=function(){M.apply(this,
arguments);D.style.backgroundColor=""};z.dblClick=function(){};var Q=z.getSelectionModel().changeSelection;z.getSelectionModel().changeSelection=function(){Q.call(this,[d],[d])}};E.onerror=function(){E.onload=null;E.src=Editor.errorImage};E.setAttribute("src",e);E.style.maxWidth="300px";E.style.maxHeight="300px";y.appendChild(E);x.appendChild(y);var D=document.createElement("div");D.style.width="300px";D.style.height="300px";D.style.overflow="hidden";D.style.backgroundColor="#fff9";x.appendChild(D);
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
d=F;this.confirmImageResize(function(R){J=R;K()},L)}else K()};EditorUi.prototype.isBlankFile=function(){return null!=this.pages&&1==this.pages.length&&this.isDiagramEmpty()&&this.currentPage.getName()==mxResources.get("pageWithNumber",[1])};EditorUi.prototype.confirmImageResize=function(d,g){g=null!=g?g:!1;var n=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},t=isLocalStorage||mxClient.IS_CHROMEAPP?mxSettings.getResizeImages():null,u=function(v,B){if(v||g)mxSettings.setResizeImages(v?
B:null),mxSettings.save();n();d(B)};null==t||g?this.showDialog((new ConfirmDialog(this,mxResources.get("resizeLargeImages"),function(v){u(v,!0)},function(v){u(v,!1)},mxResources.get("resize"),mxResources.get("actualSize"),'<img style="margin-top:8px;" src="'+Editor.loResImage+'"/>','<img style="margin-top:8px;" src="'+Editor.hiResImage+'"/>',isLocalStorage||mxClient.IS_CHROMEAPP)).container,340,isLocalStorage||mxClient.IS_CHROMEAPP?220:200,!0,!0):u(!1,t)};EditorUi.prototype.parseFile=function(d,g,
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
this.formatWindow;null!=g?g.window.setVisible(null!=d?d:!this.isFormatPanelVisible()):y.apply(this,arguments)};EditorUi.prototype.toggleShapesPanel=function(d){var g=EditorUi.prototype.hsplitPosition;0==g&&(g=134);var n=this.hsplitPosition,t=mxUtils.bind(this,function(){this.hsplitPosition=u;this.refresh();this.diagramContainer.scrollLeft-=n-this.hsplitPosition}),u=d?g:0;mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform",0==u?"translateX(0)":"translateX(-100%)");0!=u&&t();window.setTimeout(mxUtils.bind(this,
function(){mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform",0==u?"translateX(-100%)":"translateX(0)");mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transition","transform 0.3s ease-in-out");mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform-origin","top left");window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transition",null);mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform",null);mxUtils.setPrefixedStyle(this.sidebarContainer.style,
"transform-origin",null);0==u&&t()}),300)}),10)};EditorUi.prototype.isShapesPanelVisible=function(){return 0<this.hsplitPosition};var E=EditorUi.prototype.isFormatPanelVisible;EditorUi.prototype.isFormatPanelVisible=function(){var d=this.formatWindow;return null!=d?d.window.isVisible():E.apply(this,arguments)};var D=EditorUi.prototype.refresh;EditorUi.prototype.refresh=function(d){if(null!=this.sketchWrapperElt&&null!=this.sketchWrapperElt.parentNode){d=null!=d?d:!0;if("1"!=urlParams.embedInline){var g=
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
var CommentsWindow=function(b,e,f,c,k,l){function x(){for(var q=v.getElementsByTagName("div"),C=0,J=0;J<q.length;J++)"none"!=q[J].style.display&&q[J].parentNode==v&&C++;B.style.display=0==C?"block":"none"}function y(q,C,J,F){function O(){C.removeChild(R);C.removeChild(m);K.style.display="block";S.style.display="block"}n={div:C,comment:q,saveCallback:J,deleteOnCancel:F};var S=C.querySelector(".geCommentTxt"),K=C.querySelector(".geCommentActionsList"),R=document.createElement("textarea");R.className=
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
EditorUi.prototype.chromelessWindowResize=function(){};var D=Menus.prototype.init;Menus.prototype.init=function(){D.apply(this,arguments);var I=this.editorUi;EditorUi.enablePlantUml&&!I.isOffline()&&I.actions.put("plantUml",new Action(mxResources.get("plantUml")+"...",function(){var n=new ParseDialog(I,mxResources.get("plantUml")+"...","plantUml");I.showDialog(n.container,620,420,!0,!1);n.init()}));I.actions.put("mermaid",new Action(mxResources.get("mermaid")+"...",function(){var n=new ParseDialog(I,
mxResources.get("mermaid")+"...","mermaid");I.showDialog(n.container,620,420,!0,!1);n.init()}));var d="horizontalFlow verticalFlow - horizontalTree verticalTree radialTree - organic circle".split(" "),g=function(n,t,u,v){n.addItem(u,null,mxUtils.bind(this,function(){var B=new CreateGraphDialog(I,u,v);I.showDialog(B.container,620,420,!0,!1);B.init()}),t)};this.put("insertLayout",new Menu(mxUtils.bind(this,function(n,t){for(var u=0;u<d.length;u++)"-"==d[u]?n.addSeparator(t):g(n,t,mxResources.get(d[u])+
"...",d[u])})))};EditorUi.prototype.installFormatToolbar=function(I){var d=this.editor.graph,g=document.createElement("div");g.style.cssText="position:absolute;top:10px;z-index:1;border-radius:4px;box-shadow:0px 0px 3px 1px #d1d1d1;padding:6px;white-space:nowrap;background-color:#fff;transform:translate(-50%, 0);left:50%;";d.getSelectionModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(n,t){0<d.getSelectionCount()?(I.appendChild(g),g.innerHTML="Selected: "+d.getSelectionCount()):null!=
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
!0,"1"==urlParams.dev?mxscript("js/orgchart/bridge.min.js",function(){mxscript("js/orgchart/bridge.collections.min.js",function(){mxscript("js/orgchart/OrgChart.Layout.min.js",function(){mxscript("js/orgchart/mxOrgChartLayout.js",n,null,null,null,t)},null,null,null,t)},null,null,null,t)},null,null,null,t):mxscript(DRAWIO_BASE_URL+"/js/orgchart.min.js",n,null,null,null,t))}),onerror)};EditorUi.prototype.importCsv=function(d,g){this.loadOrgChartLayouts(mxUtils.bind(this,function(){this.doImportCsv(d,
g)}))};EditorUi.prototype.doImportCsv=function(d,g){try{var n=d.split("\n"),t=[],u=[],v=[],B={};if(0<n.length){var H={},L=this.editor.graph,G=null,T=null,p=null,q=null,C=null,J=null,F=null,O="whiteSpace=wrap;html=1;",S=null,K=null,R="",m="auto",A="auto",M=!1,Q=null,U=null,W=40,P=40,V=100,X=0,Y=mxUtils.bind(this,function(){null!=g?g(Ua):(L.setSelectionCells(Ua),L.scrollCellToVisible(L.getSelectionCell()));null!=this.chromelessResize&&window.setTimeout(mxUtils.bind(this,function(){this.chromelessResize(!0)}),
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
[J],"{1} ago"));C.setAttribute("title",q.toLocaleDateString()+" "+q.toLocaleTimeString())}function D(q){var C=document.createElement("img");C.className="geCommentBusyImg";C.src=IMAGE_PATH+"/spin.gif";q.appendChild(C);q.busyImg=C}function z(q){q.style.border="1px solid red";q.removeChild(q.busyImg)}function N(q){q.style.border="";q.removeChild(q.busyImg)}function I(q,C,J,F,O){function S(W,P,V){var X=document.createElement("li");X.className="geCommentAction";var Y=document.createElement("a");Y.className=
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
function(ba){"true"!=V.getAttribute("contentEditable")&&mxEvent.consume(ba)});W=function(ba){if(mxClient.IS_IOS||mxClient.IS_FF||!(null==document.documentMode||9<document.documentMode)){var ma=new FilenameDialog(b,X.title||"",mxResources.get("ok"),function(ea){null!=ea&&(X.title=ea,R())},mxResources.get("enterValue"));b.showDialog(ma.container,300,80,!0,!0);ma.init();mxEvent.consume(ba)}else if("true"!=V.getAttribute("contentEditable")){null!=v&&(v(),v=null);if(null==X.title||0==X.title.length)V.innerText=
"";V.style.textOverflow="";V.style.whiteSpace="";V.style.cursor="text";V.style.color="";V.setAttribute("contentEditable","true");mxUtils.setPrefixedStyle(V.style,"user-select","text");V.focus();document.execCommand("selectAll",!1,null);v=function(){V.removeAttribute("contentEditable");V.style.cursor="pointer";X.title=V.innerHTML;R()};mxEvent.consume(ba)}};mxEvent.addListener(V,"click",W);mxEvent.addListener(Q,"dblclick",W);d.appendChild(Q);mxEvent.addListener(Q,"dragstart",function(ba){null==T&&null!=
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
mxUtils.bind(this,function(){this.hideDialog()}),mxResources.get("saveAs"),mxResources.get("download"),!1,!1,B,null,1<H,L,t,v,u);H=this.isServices(H)?4<H?390:280:160;this.showDialog(d.container,420,H,!0,!0);d.init()};EditorUi.prototype.isServices=function(d){return 1!=d};EditorUi.prototype.getEditBlankXml=function(){return this.getFileData(!0)};EditorUi.prototype.exportFile=function(d,g,n,t,u,v){};EditorUi.prototype.pickFolder=function(d,g,n){g(null)};EditorUi.prototype.exportSvg=function(d,g,n,t,
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
u?4E3:3E4);G=!0}return G};EditorUi.prototype.setCurrentFile=function(d){null!=d&&(d.opened=new Date);this.currentFile=d};EditorUi.prototype.getCurrentFile=function(){return this.currentFile};EditorUi.prototype.isExportToCanvas=function(){return this.editor.isExportToCanvas()};EditorUi.prototype.createImageDataUri=function(d,g,n,t){d=d.toDataURL("image/"+n);if(null!=d&&6<d.length)null!=g&&(d=Editor.writeGraphModelToPng(d,"tEXt","mxfile",encodeURIComponent(g))),0<t&&(d=Editor.writeGraphModelToPng(d,
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
function(){this.setGraphEnabled(!1);if((window.opener||window.parent)!=window&&("1"!=urlParams.spin||this.spinner.spin(document.body,mxResources.get("loading")))){var d=!1;this.installMessageHandler(mxUtils.bind(this,function(g,n,t,u){d||(d=!0,this.spinner.stop(),this.addEmbedButtons(),this.setGraphEnabled(!0));if(null==g||0==g.length)g=this.emptyDiagramXml;this.setCurrentFile(new EmbedFile(this,g,{}));this.mode=App.MODE_EMBED;this.setFileData(g);if(u)try{var v=this.editor.graph;v.setGridEnabled(!1);
v.pageVisible=!1;var B=v.model.cells,H;for(H in B){var L=B[H];null!=L&&null!=L.style&&(L.style+=";sketch=1;"+(-1==L.style.indexOf("fontFamily=")||-1<L.style.indexOf("fontFamily=Helvetica;")?"fontFamily=Architects Daughter;fontSource=https%3A%2F%2Ffonts.googleapis.com%2Fcss%3Ffamily%3DArchitects%2BDaughter;":""))}}catch(G){console.log(G)}this.editor.isChromelessView()?this.editor.graph.isLightboxView()&&this.lightboxFit():this.showLayersDialog();this.chromelessResize&&this.chromelessResize();this.editor.undoManager.clear();
this.editor.modified=null!=t?t:!1;this.updateUi();window.self!==window.top&&window.focus();null!=this.format&&this.format.refresh()}))}};EditorUi.prototype.showLayersDialog=function(){1<this.editor.graph.getModel().getChildCount(this.editor.graph.getModel().getRoot())&&(null==this.actions.layersWindow?this.actions.get("layers").funct():this.actions.layersWindow.window.setVisible(!0))};EditorUi.prototype.getPublicUrl=function(d,g){null!=d?d.getPublicUrl(g):g(null)};EditorUi.prototype.createLoadMessage=
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
O&&(F=this.getDeletableCells(this.addAllEdges(F)));for(var S=[],K=0;K<F.length;K++){var R=F[K];n.isEdge(R)&&l(R)&&(S.push(R),R=n.getTerminal(R,!1));if(c(R)){var m=[];g.traverse(R,!0,function(A,M){var Q=null!=M&&g.isTreeEdge(M);Q&&m.push(M);(null==M||Q)&&m.push(A);return null==M||Q});0<m.length&&(S=S.concat(m),R=g.getIncomingTreeEdges(F[K]),F=F.concat(R))}else null!=R&&S.push(F[K])}F=S;return u.apply(this,arguments)};d.hoverIcons.getStateAt=function(F,O,S){return c(F.cell)?null:this.graph.view.getState(this.graph.getCellAt(O,
S))};var v=g.duplicateCells;g.duplicateCells=function(F,O){F=null!=F?F:this.getSelectionCells();for(var S=F.slice(0),K=0;K<S.length;K++){var R=g.view.getState(S[K]);if(null!=R&&c(R.cell)){var m=g.getIncomingTreeEdges(R.cell);for(R=0;R<m.length;R++)mxUtils.remove(m[R],F)}}this.model.beginUpdate();try{var A=v.call(this,F,O);if(A.length==F.length)for(K=0;K<F.length;K++)if(c(F[K])){var M=g.getIncomingTreeEdges(A[K]);m=g.getIncomingTreeEdges(F[K]);if(0==M.length&&0<m.length){var Q=this.cloneCell(m[0]);
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
P[X[Z]]&&Y++;Y=Y==W}Y&&(1!=Q||this.isCellVisible(A[V]))&&U.push(A[V])}}return U};Graph.prototype.getAllTags=function(){return this.getTagsForCells(this.model.getDescendants(this.model.getRoot()))};Graph.prototype.getCommonTagsForCells=function(m){for(var A=null,M=[],Q=0;Q<m.length;Q++){var U=this.getTagsForCell(m[Q]);M=[];if(0<U.length){U=U.split(" ");for(var W={},P=0;P<U.length;P++)if(null==A||null!=A[U[P]])W[U[P]]=!0,M.push(U[P]);A=W}else return[]}return M};Graph.prototype.getTagsForCells=function(m){for(var A=
[],M={},Q=0;Q<m.length;Q++){var U=this.getTagsForCell(m[Q]);if(0<U.length){U=U.split(" ");for(var W=0;W<U.length;W++)null==M[U[W]]&&(M[U[W]]=!0,A.push(U[W]))}}return A};Graph.prototype.getTagsForCell=function(m){return this.getAttributeForCell(m,"tags","")};Graph.prototype.addTagsForCells=function(m,A){if(0<m.length&&0<A.length){this.model.beginUpdate();try{for(var M=0;M<m.length;M++){for(var Q=this.getTagsForCell(m[M]),U=Q.split(" "),W=!1,P=0;P<A.length;P++){var V=mxUtils.trim(A[P]);""!=V&&0>mxUtils.indexOf(U,
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
function(d,g,n,t,u,v,B,H){EditorUi.logEvent("SHOULD NOT BE CALLED: loadUrl");return this.editor.loadUrl(d,g,n,t,u,v,B,H)};EditorUi.prototype.loadFonts=function(d){EditorUi.logEvent("SHOULD NOT BE CALLED: loadFonts");return this.editor.loadFonts(d)};EditorUi.prototype.createSvgDataUri=function(d){EditorUi.logEvent("SHOULD NOT BE CALLED: createSvgDataUri");return Editor.createSvgDataUri(d)};EditorUi.prototype.embedCssFonts=function(d,g){EditorUi.logEvent("SHOULD NOT BE CALLED: embedCssFonts");return this.editor.embedCssFonts(d,
g)};EditorUi.prototype.embedExtFonts=function(d){EditorUi.logEvent("SHOULD NOT BE CALLED: embedExtFonts");return this.editor.embedExtFonts(d)};EditorUi.prototype.exportToCanvas=function(d,g,n,t,u,v,B,H,L,G,T,p,q,C,J,F){EditorUi.logEvent("SHOULD NOT BE CALLED: exportToCanvas");return this.editor.exportToCanvas(d,g,n,t,u,v,B,H,L,G,T,p,q,C,J,F)};EditorUi.prototype.createImageUrlConverter=function(){EditorUi.logEvent("SHOULD NOT BE CALLED: createImageUrlConverter");return this.editor.createImageUrlConverter()};
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
this.graph.currentStyle);var Q=this.graph.getBackgroundImageObject(this.graph.backgroundImage,A);null!=Q&&M.setAttribute("backgroundImage",JSON.stringify(Q));M.setAttribute("math",this.graph.mathEnabled?"1":"0");M.setAttribute("shadow",this.graph.shadowVisible?"1":"0");null!=this.graph.extFonts&&0<this.graph.extFonts.length&&(Q=this.graph.extFonts.map(function(U){return U.name+"^"+U.url}),M.setAttribute("extFonts",Q.join("|")));return M};Editor.prototype.isDataSvg=function(m){try{var A=mxUtils.parseXml(m).documentElement.getAttribute("content");
if(null!=A&&(null!=A&&"<"!=A.charAt(0)&&"%"!=A.charAt(0)&&(A=unescape(window.atob?atob(A):Base64.decode(cont,A))),null!=A&&"%"==A.charAt(0)&&(A=decodeURIComponent(A)),null!=A&&0<A.length)){var M=mxUtils.parseXml(A).documentElement;return"mxfile"==M.nodeName||"mxGraphModel"==M.nodeName}}catch(Q){}return!1};Editor.prototype.extractGraphModel=function(m,A,M){return Editor.extractGraphModel.apply(this,arguments)};var f=Editor.prototype.resetGraph;Editor.prototype.resetGraph=function(){this.graph.mathEnabled=
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
arguments);D.style.backgroundColor=""};z.dblClick=function(){};var Q=z.getSelectionModel().changeSelection;z.getSelectionModel().changeSelection=function(){Q.call(this,[d],[d])}};E.onerror=function(){E.onload=null;E.src=Editor.errorImage};E.setAttribute("src",e);E.style.maxWidth="300px";E.style.maxHeight="300px";y.appendChild(E);x.appendChild(y);var D=document.createElement("div");D.style.width="300px";D.style.height="300px";D.style.overflow="hidden";D.style.backgroundColor="#fff9";x.appendChild(D);
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
this.loadImage(Y.target.result,mxUtils.bind(this,function(fa){this.resizeImage(fa,Y.target.result,mxUtils.bind(this,function(qa,ia,ya){U(P,mxUtils.bind(this,function(){if(null!=qa&&qa.length<G){var xa=J&&this.isResampleImageSize(V.size,T)?Math.min(1,Math.min(t/ia,t/ya)):1;return u(qa,V.type,g+P*m,n+P*m,Math.round(ia*xa),Math.round(ya*xa),V.name)}this.handleError({message:mxResources.get("imageTooBig")});return null}))}),J,t,T,V.size)}),mxUtils.bind(this,function(){this.handleError({message:mxResources.get("invalidOrMissingFile")})})))}else Z=
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
(ka?"geTempDlgRadioBtnLarge":"geTempDlgRadioBtnSmall");K.querySelector("."+aa).src="/images/"+la+"-sel.svg";K.querySelector("."+pa).src="/images/"+ha+".svg";return!0}function v(ja,aa,la,na){function pa(wa,Ma){null==ka?(wa=/^https?:\/\//.test(wa)&&!b.editor.isCorsEnabledForUrl(wa)?PROXY_URL+"?url="+encodeURIComponent(wa):TEMPLATE_PATH+"/"+wa,mxUtils.get(wa,mxUtils.bind(this,function(Ia){200<=Ia.getStatus()&&299>=Ia.getStatus()&&(ka=Ia.getText());Ma(ka)}))):Ma(ka)}function ha(wa,Ma,Ia){if(null!=wa&&
mxUtils.isAncestorNode(document.body,aa)&&(wa=mxUtils.parseXml(wa),wa=Editor.extractGraphModel(wa.documentElement,!0),null!=wa)){"mxfile"==wa.nodeName&&(wa=Editor.parseDiagramNode(wa.getElementsByTagName("diagram")[0]));var Aa=new mxCodec(wa.ownerDocument),Ja=new mxGraphModel;Aa.decode(wa,Ja);wa=Ja.root.getChildAt(0).children||[];b.sidebar.createTooltip(aa,wa,Math.min((window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)-80,1E3),Math.min((window.innerHeight||document.documentElement.clientHeight||
document.body.clientHeight)-80,800),null!=ja.title?mxResources.get(ja.title,null,ja.title):null,!0,new mxPoint(Ma,Ia),!0,null,!0);var Na=document.createElement("div");Na.className="geTempDlgDialogMask";K.appendChild(Na);var ra=b.sidebar.hideTooltip;b.sidebar.hideTooltip=function(){Na&&(K.removeChild(Na),Na=null,ra.apply(this,arguments),b.sidebar.hideTooltip=ra)};mxEvent.addListener(Na,"click",function(){b.sidebar.hideTooltip()})}}var ka=null;if(oa||b.sidebar.currentElt==aa)b.sidebar.hideTooltip();
else{var ua=function(wa){oa&&b.sidebar.currentElt==aa&&ha(wa,mxEvent.getClientX(na),mxEvent.getClientY(na));oa=!1;la.src="/images/icon-search.svg"};b.sidebar.hideTooltip();b.sidebar.currentElt=aa;oa=!0;la.src="/images/aui-wait.gif";ja.isExt?E(ja,ua,function(){n(mxResources.get("cantLoadPrev"));oa=!1;la.src="/images/icon-search.svg"}):pa(ja.url,ua)}}function B(ja,aa,la){if(null!=Q){for(var na=Q.className.split(" "),pa=0;pa<na.length;pa++)if(-1<na[pa].indexOf("Active")){na.splice(pa,1);break}Q.className=
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
Editor.extractGraphModelFromXref(W));null!=M&&(M=decodeURIComponent(M.replace(/\\\(/g,"(").replace(/\\\)/g,")")));return M};Editor.extractGraphModelFromXref=function(m){var A=m.trailer,M=null;null!=A&&(A=/.* \/Info (\d+) (\d+) R/g.exec(A.join("\n")),null!=A&&0<A.length&&(A=m[A[1]],null!=A&&(A=/.* \/Subject (\d+) (\d+) R/g.exec(A.join("\n")),null!=A&&0<A.length&&(m=m[A[1]],null!=m&&(m=m.join("\n"),M=m.substring(1,m.length-1))))));return M};Editor.extractParserError=function(m,A){var M=null;m=null!=
m?m.getElementsByTagName("parsererror"):null;null!=m&&0<m.length&&(M=A||mxResources.get("invalidChars"),A=m[0].getElementsByTagName("div"),0<A.length&&(M=mxUtils.getTextContent(A[0])));return null!=M?mxUtils.trim(M):M};Editor.addRetryToError=function(m,A){null!=m&&(m=null!=m.error?m.error:m,null==m.retry&&(m.retry=A))};Editor.mermaidToDrawio=function(m,A,M){if("function"===typeof mxMermaidToDrawio)return mxMermaidToDrawio(m,A,M)};Editor.configure=function(m){if(null!=m){Editor.config=m;Editor.configVersion=
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
function(Q){mxEvent.isConsumed(Q)||((mxEvent.isControlDown(Q)||mxClient.IS_MAC&&mxEvent.isMetaDown(Q))&&13==Q.keyCode?(M.click(),mxEvent.consume(Q)):27==Q.keyCode&&(A.click(),mxEvent.consume(Q)))}));M.focus();M.className="geCommentEditBtn gePrimaryBtn";m.appendChild(M);C.insertBefore(m,S);K.style.display="none";S.style.display="none";R.focus()}function E(q,C){C.innerText="";q=new Date(q.modifiedDate);var J=b.timeSince(q);null==J&&(J=mxResources.get("lessThanAMinute"));mxUtils.write(C,mxResources.get("timeAgo",
[J],"{1} ago"));C.setAttribute("title",q.toLocaleDateString()+" "+q.toLocaleTimeString())}function D(q){var C=document.createElement("img");C.className="geCommentBusyImg";C.src=IMAGE_PATH+"/spin.gif";q.appendChild(C);q.busyImg=C}function z(q){q.style.border="1px solid red";q.removeChild(q.busyImg)}function N(q){q.style.border="";q.removeChild(q.busyImg)}function I(q,C,J,F,O){function S(W,P,V){var X=document.createElement("li");X.className="geCommentAction";var Y=document.createElement("a");Y.className=
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
this.styleInput.value)})),F.appendChild(this.styleInput),this.editor.graph.getSelectionModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(K,R){0<this.editor.graph.getSelectionCount()?(K=this.editor.graph.getSelectionCell(),K=this.editor.graph.getModel().getStyle(K),this.styleInput.value=K||"",this.styleInput.style.visibility="visible"):this.styleInput.style.visibility="hidden"})));var O=this.isSelectionAllowed;this.isSelectionAllowed=function(K){return mxEvent.getSource(K)==this.styleInput?
!0:O.apply(this,arguments)}}F=document.getElementById("geInfo");null!=F&&F.parentNode.removeChild(F);if(Graph.fileSupport&&(!this.editor.chromeless||this.editor.editable)){var S=null;mxEvent.addListener(g.container,"dragleave",function(K){g.isEnabled()&&(null!=S&&(S.parentNode.removeChild(S),S=null),K.stopPropagation(),K.preventDefault())});mxEvent.addListener(g.container,"dragover",mxUtils.bind(this,function(K){null==S&&(!mxClient.IS_IE||10<document.documentMode)&&(S=this.highlightElement(g.container));
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.