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 |
|---|---|---|---|---|---|---|---|
t/2);c.end()};mxCellRenderer.registerShape("crossbar",za);mxUtils.extend(Va,mxActor);Va.prototype.dx=20;Va.prototype.dy=20;Va.prototype.redrawPath=function(c,l,u,p,t){l=Math.max(0,Math.min(p,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));u=Math.max(0,Math.min(t,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));parseFloat(mxUtils.getValue(this.style,"size",this.size));var B=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(0,
0),new mxPoint(p,0),new mxPoint(p,u),new mxPoint((p+l)/2,u),new mxPoint((p+l)/2,t),new mxPoint((p-l)/2,t),new mxPoint((p-l)/2,u),new mxPoint(0,u)],this.isRounded,B,!0);c.end()};mxCellRenderer.registerShape("tee",Va);mxUtils.extend(La,mxActor);La.prototype.arrowWidth=.3;La.prototype.arrowSize=.2;La.prototype.redrawPath=function(c,l,u,p,t){var B=t*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth",this.arrowWidth))));l=p*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style, | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
Ra.shape.node.parentNode.firstChild);Ra.redraw=function(){if(null!=this.shape){this.shape.stroke=0==lb?mxConstants.NONE:xa.stroke;if(this.shape.constructor==Y)this.shape.line=L(Na[bb],0,lb),this.shape.updateBoundsFromLine();else{var Pa=X.getActualStartSize(oa.cell,!0);this.shape.bounds.height=1;this.shape.bounds.y=this.state.y+this.state.height+lb*la;this.shape.bounds.x=oa.x+(bb==Fa.length-1?0:Pa.x*la);this.shape.bounds.width=oa.width-(bb==Fa.length-1?0:Pa.width+Pa.x+la)}this.shape.redraw()}};var kb= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
return!mxUtils.getValue(E.style,mxConstants.STYLE_CURVED,!1)&&("connector"==N||"filledEdge"==N||"wire"==N)};Graph.prototype.isAutoSizeState=function(E){return"1"==mxUtils.getValue(E.style,mxConstants.STYLE_AUTOSIZE,null)};Graph.prototype.isImageState=function(E){return null!=mxUtils.getValue(E.style,mxConstants.STYLE_IMAGE,null)};Graph.prototype.isShadowState=function(E){return"image"!=mxUtils.getValue(E.style,mxConstants.STYLE_SHAPE,null)};Graph.prototype.getVerticesAndEdges=function(E,N){E=null!=
E?E:!0;N=null!=N?N:!0;var T=this.model;return T.filterDescendants(function(F){return E&&T.isVertex(F)||N&&T.isEdge(F)},T.getRoot())};Graph.prototype.applyNewEdgeStyle=function(E,N,T){E=this.getCellStyle(E).newEdgeStyle;if(null!=E){this.model.beginUpdate();try{var F=JSON.parse(E),K;for(K in F)this.setCellStyles(K,F[K],N),"edgeStyle"==K&&"elbowEdgeStyle"==F[K]&&null!=T&&this.setCellStyles("elbow",T==mxConstants.DIRECTION_SOUTH||T==mxConstants.DIRECTION_NOTH?"vertical":"horizontal",N)}finally{this.model.endUpdate()}}}; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
".scratchpad"==d.title&&(this.scratchpad=null))};EditorUi.prototype.removeLibrarySidebar=function(d){var f=this.sidebar.palettes[d];if(null!=f){for(var k=0;k<f.length;k++)f[k].parentNode.removeChild(f[k]);delete this.sidebar.palettes[d]}};EditorUi.prototype.repositionLibrary=function(d){var f=this.sidebar.getEntryContainer();if(null==d){var k=this.sidebar.palettes["L.scratchpad"];null==k&&(k=this.sidebar.palettes.search);null!=k&&(d=k[k.length-1].nextSibling)}d=null!=d?d:f.firstChild.nextSibling.nextSibling;
k=f.lastChild;var v=k.previousSibling;f.insertBefore(k,d);f.insertBefore(v,k)};EditorUi.prototype.loadLibrary=function(d,f){var k=mxUtils.parseXml(d.getData());if("mxlibrary"==k.documentElement.nodeName){var v=JSON.parse(mxUtils.getTextContent(k.documentElement));this.libraryLoaded(d,v,k.documentElement.getAttribute("title"),f)}else throw{message:mxResources.get("notALibraryFile")};};EditorUi.prototype.getLibraryStorageHint=function(d){return""};EditorUi.prototype.libraryLoaded=function(d,f,k,v){if(null!= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
(function(){var b=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(g){return window.setTimeout(g,20)},e=function(g,n){function y(){this.q=[];this.add=function(k){this.q.push(k)};var d,f;this.call=function(){d=0;for(f=this.q.length;d<f;d++)this.q[d].call()}}function q(d,f){return d.currentStyle?d.currentStyle[f]:window.getComputedStyle?window.getComputedStyle(d,null).getPropertyValue(f):d.style[f]}function E(d,f){if(!d.resizedAttached)d.resizedAttached= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
mxVertexHandler.prototype.updateLinkHint=function(x,L){try{if(null==x&&(null==L||0==L.length)||1<this.graph.getSelectionCount())null!=this.linkHint&&(this.linkHint.parentNode.removeChild(this.linkHint),this.linkHint=null);else if(null!=x||null!=L&&0<L.length){null==this.linkHint&&(this.linkHint=b(),this.linkHint.style.padding="6px 8px 6px 8px",this.linkHint.style.opacity="1",this.linkHint.style.filter="",this.graph.container.appendChild(this.linkHint),mxEvent.addListener(this.linkHint,"mouseenter",
mxUtils.bind(this,function(){this.graph.tooltipHandler.hide()})));this.linkHint.innerText="";if(null!=x){var P=document.createElement("div");P.style.display="flex";P.style.alignItems="center";P.appendChild(this.graph.createLinkForHint(x));this.linkHint.appendChild(P);if(this.graph.isEnabled()&&"function"===typeof this.graph.editLink&&!this.graph.isCellLocked(this.state.cell)){var X=document.createElement("img");X.className="geAdaptiveAsset";X.setAttribute("src",Editor.editImage);X.setAttribute("title",
mxResources.get("editLink"));X.setAttribute("width","14");X.setAttribute("height","14");X.style.marginLeft="6px";X.style.marginBottom="-1px";X.style.cursor="pointer";P.appendChild(X);mxEvent.addListener(X,"click",mxUtils.bind(this,function(oa){this.graph.setSelectionCell(this.state.cell);this.graph.editLink();mxEvent.consume(oa)}));var ea=X.cloneNode(!0);ea.setAttribute("src",Editor.trashImage);ea.setAttribute("title",mxResources.get("removeIt",[mxResources.get("link")]));ea.style.marginLeft="4px";
P.appendChild(ea);mxEvent.addListener(ea,"click",mxUtils.bind(this,function(oa){this.graph.setLinkForCell(this.state.cell,null);mxEvent.consume(oa)}))}}if(null!=L)for(P=0;P<L.length;P++){var la=document.createElement("div");la.style.marginTop=null!=x||0<P?"6px":"0px";la.appendChild(this.graph.createLinkForHint(L[P].getAttribute("href"),mxUtils.getTextContent(L[P])));this.linkHint.appendChild(la)}}null!=this.linkHint&&Graph.sanitizeNode(this.linkHint)}catch(oa){}};mxEdgeHandler.prototype.updateLinkHint= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
D&&"snip"==B||"fold"==D||"default"==D&&"fold"==B)&&c.lineTo(p-ha,t);else c.lineTo(p,t)};Na.prototype.paintBottom=function(c,l,u,p,t,B,D,ha,I){"square"==D||"default"==D&&"square"==B||!I?c.lineTo(0,t):c.lineTo(ha,t)};Na.prototype.paintSW=function(c,l,u,p,t,B,D,ha,I){if(I)if("rounded"==D||"default"==D&&"rounded"==B||"invRound"==D||"default"==D&&"invRound"==B){l=0;if("rounded"==D||"default"==D&&"rounded"==B)l=1;c.arcTo(ha,ha,0,0,l,0,t-ha)}else("snip"==D||"default"==D&&"snip"==B||"fold"==D||"default"==
D&&"fold"==B)&&c.lineTo(0,t-ha);else c.lineTo(0,t)};Na.prototype.paintNWInner=function(c,l,u,p,t,B,D,ha,I){if("rounded"==D||"default"==D&&"rounded"==B)c.arcTo(ha-.5*I,ha-.5*I,0,0,0,I,.5*I+ha);else if("invRound"==D||"default"==D&&"invRound"==B)c.arcTo(ha+I,ha+I,0,0,1,I,I+ha);else if("snip"==D||"default"==D&&"snip"==B)c.lineTo(I,.5*I+ha);else if("fold"==D||"default"==D&&"fold"==B)c.lineTo(I+ha,I+ha),c.lineTo(I,I+ha)};Na.prototype.paintTopInner=function(c,l,u,p,t,B,D,ha,I,ua,na){ua||na?!ua&&na?c.lineTo(0, | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
this.linkHint=null);null!=this.changeHandler&&(this.graph.getModel().removeListener(this.changeHandler),this.graph.getSelectionModel().removeListener(this.changeHandler),this.changeHandler=null)}}();(function(){function b(c,l,u){mxShape.call(this);this.line=c;this.stroke=l;this.strokewidth=null!=u?u:1;this.updateBoundsFromLine()}function e(){mxSwimlane.call(this)}function g(){mxSwimlane.call(this)}function n(){mxCylinder.call(this)}function y(){mxConnector.call(this)}function q(){mxCylinder.call(this)}function E(){mxActor.call(this)}function N(){mxCylinder.call(this)}function T(){mxCylinder.call(this)}function F(){mxCylinder.call(this)}function K(){mxCylinder.call(this)}function R(){mxShape.call(this)} | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
null!=Graph.diagramLanguage&&mxUtils.isNode(x.value)&&x.value.hasAttribute("tooltip_"+Graph.diagramLanguage)&&(P="tooltip_"+Graph.diagramLanguage);this.setAttributeForCell(x,P,L)};Graph.prototype.getAttributeForCell=function(x,L,P){x=null!=x.value&&"object"===typeof x.value?x.value.getAttribute(L):null;return null!=x?x:P};Graph.prototype.setAttributeForCell=function(x,L,P){if(null!=x.value&&"object"==typeof x.value)var X=x.value.cloneNode(!0);else X=mxUtils.createXmlDocument().createElement("UserObject"),
X.setAttribute("label",x.value||"");null!=P?X.setAttribute(L,P):X.removeAttribute(L);this.model.setValue(x,X)};Graph.prototype.isTargetShape=function(x,L,P){x=mxUtils.getValue(this.getCurrentCellStyle(x),mxConstants.STYLE_SHAPE,"");for(P=0;P<L.length;P++){var X=mxUtils.getValue(this.getCurrentCellStyle(L[P]),"targetShapes","").split(",");if(0<=mxUtils.indexOf(X,x))return!0}return!1};var k=Graph.prototype.getDropTarget;Graph.prototype.getDropTarget=function(x,L,P,X){if(mxEvent.isAltDown(L))return null; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
this.insertHandler(J,null,null,O.defaultVertexStyle,O.defaultEdgeStyle,!1,!0)}finally{O.model.endUpdate()}}}catch(Y){if(z)throw Y;this.handleError(Y)}return J};EditorUi.prototype.updatePageLinks=function(d,f){for(var k=0;k<f.length;k++)this.updatePageLinksForCell(d,f[k].root),null!=f[k].viewState&&this.updateBackgroundPageLink(d,f[k].viewState.backgroundImage)};EditorUi.prototype.updateBackgroundPageLink=function(d,f){try{if(null!=f&&Graph.isPageLink(f.originalSrc)){var k=d[f.originalSrc.substring(f.originalSrc.indexOf(",")+
1)];null!=k&&(f.originalSrc="data:page/id,"+k)}}catch(v){}};EditorUi.prototype.updatePageLinksForCell=function(d,f){var k=document.createElement("div"),v=this.editor.graph,z=v.getLinkForCell(f);null!=z&&v.setLinkForCell(f,this.updatePageLink(d,z));if(v.isHtmlLabel(f)){k.innerHTML=Graph.sanitizeHtml(v.getLabel(f));for(var A=k.getElementsByTagName("a"),H=!1,J=0;J<A.length;J++)z=A[J].getAttribute("href"),null!=z&&(A[J].setAttribute("href",this.updatePageLink(d,z)),H=!0);H&&v.labelChanged(f,k.innerHTML)}for(J= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
var WrapperWindow=function(b,e,g,n,y,q,E){var N=b.createSidebarContainer();E(N);this.window=new mxWindow(e,N,g,n,y,q,!0,!0);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.setVisible(!0);b.installResizeHandler(this,!0);mxClient.IS_SF&&(this.window.div.onselectstart=mxUtils.bind(this,function(T){null==T&&(T=window.event);return null!=T&&b.isSelectionAllowed(T)}))}; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
function(x){var L=x.getEvent();return null==x.getState()&&!mxEvent.isMouseEvent(L)||mxEvent.isPopupTrigger(L)&&(null==x.getState()||mxEvent.isControlDown(L)||mxEvent.isShiftDown(L))};var aa=mxGraphHandler.prototype.mouseDown;mxGraphHandler.prototype.mouseDown=function(x,L){aa.apply(this,arguments);mxEvent.isTouchEvent(L.getEvent())&&this.graph.isCellSelected(L.getCell())&&1<this.graph.getSelectionCount()&&(this.delayedSelection=!1)}}else mxPanningHandler.prototype.isPanningTrigger=function(x){var L= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
Graph.prototype.getNodesForCells=function(b){for(var e=[],g=0;g<b.length;g++){var n=this.view.getState(b[g]);if(null!=n){for(var y=this.cellRenderer.getShapesForState(n),q=0;q<y.length;q++)null!=y[q]&&null!=y[q].node&&e.push(y[q].node);null!=n.control&&null!=n.control.node&&e.push(n.control.node)}}return e}; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
oa))}}finally{L.endUpdate()}};Graph.prototype.insertRow=function(x,L){for(var P=x.tBodies[0],X=P.rows[0].cells,ea=x=0;ea<X.length;ea++){var la=X[ea].getAttribute("colspan");x+=null!=la?parseInt(la):1}L=P.insertRow(L);for(ea=0;ea<x;ea++)mxUtils.br(L.insertCell(-1));return L.cells[0]};Graph.prototype.deleteRow=function(x,L){x.tBodies[0].deleteRow(L)};Graph.prototype.insertColumn=function(x,L){var P=x.tHead;if(null!=P)for(var X=0;X<P.rows.length;X++){var ea=document.createElement("th");P.rows[X].appendChild(ea);
mxUtils.br(ea)}x=x.tBodies[0];for(P=0;P<x.rows.length;P++)X=x.rows[P].insertCell(L),mxUtils.br(X);return x.rows[0].cells[0<=L?L:x.rows[0].cells.length-1]};Graph.prototype.deleteColumn=function(x,L){if(0<=L){x=x.tBodies[0].rows;for(var P=0;P<x.length;P++)x[P].cells.length>L&&x[P].deleteCell(L)}};Graph.prototype.pasteHtmlAtCaret=function(x){if(window.getSelection){var L=window.getSelection();if(L.getRangeAt&&L.rangeCount){L=L.getRangeAt(0);L.deleteContents();var P=document.createElement("div");P.innerHTML= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
EditorUi.prototype.setScrollbars=function(a){var b=this.editor.graph,e=b.container.style.overflow;b.scrollbars=a;this.editor.updateGraphComponents();e!=b.container.style.overflow&&(b.container.scrollTop=0,b.container.scrollLeft=0,b.view.scaleAndTranslate(1,0,0),this.resetScrollbars());this.fireEvent(new mxEventObject("scrollbarsChanged"))};EditorUi.prototype.hasScrollbars=function(){return this.editor.graph.scrollbars}; | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
m[1].geometry.width)/2:(T.x+T.width)/V-W.x+-z.x+10,m[1].geometry.y-=m[1].geometry.height+z.y+40):(m[1].geometry.x=L==mxConstants.DIRECTION_WEST?m[1].geometry.x-(m[1].geometry.width+z.x+40):m[1].geometry.x+(m[1].geometry.width-z.x+40),m[1].geometry.y=null==T?M.geometry.y+(M.geometry.height-m[1].geometry.height)/2:(T.y+T.height)/V-W.y+-z.y+10);return g.addCells(m,y)}finally{g.model.endUpdate()}}function K(M,p,y){M=g.getOutgoingTreeEdges(M);y=g.view.getState(y);var C=[];if(null!=y&&null!=M){for(var L=
0;L<M.length;L++){var m=g.view.getState(g.model.getTerminal(M[L],!1));null!=m&&(!p&&Math.min(m.x+m.width,y.x+y.width)>=Math.max(m.x,y.x)||p&&Math.min(m.y+m.height,y.y+y.height)>=Math.max(m.y,y.y))&&C.push(m)}C.sort(function(z,J){return p?z.x+z.width-J.x-J.width:z.y+z.height-J.y-J.height})}return C}function H(M,p){var y=x(M),C=p==mxConstants.DIRECTION_EAST||p==mxConstants.DIRECTION_WEST;(y==mxConstants.DIRECTION_EAST||y==mxConstants.DIRECTION_WEST)==C&&y!=p?d.actions.get("selectParent").funct():y== | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
b.editor.cancelFirst||f.appendChild(l);u.setAttribute("disabled","disabled");this.okBtn=u;e.appendChild(f);this.container=e}AspectDialog.prototype.init=function(){var b=this.ui.getFileData(!0);if(this.ui.pages)for(b=0;b<this.ui.pages.length;b++){var e=this.ui.updatePageRoot(this.ui.pages[b]);this.createPageItem(e.getId(),e.getName(),e.node)}else this.createPageItem("1","Page-1",mxUtils.parseXml(b).documentElement)}; | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
(Y.charCodeAt(0)<<24)}function Q(Y){return String.fromCharCode(Y>>24&255,Y>>16&255,Y>>8&255,Y&255)}m=m.substring(m.indexOf(",")+1);m=window.atob?atob(m):Base64.decode(m,!0);var X=0;if(W(m,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=T&&T();else if(W(m,4),"IHDR"!=W(m,4))null!=T&&T();else{W(m,17);T=m.substring(0,X);do{var Z=V(m);if("IDAT"==W(m,4)){T=m.substring(0,X-8);"pHYs"==z&&"dpi"==J?(J=Math.round(O/.0254),J=Q(J)+Q(J)+String.fromCharCode(1)):J=J+String.fromCharCode(0)+ | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
(EditorUi.debug("EditorUi.generateOpenAiMermaidDiagram","\nprompt:",d,"\nresponse:",S,"\nresult:",U),this.spinner.stop(),g(U,N,P,R))}),F)}),F,mxUtils.bind(this,function(N){3>q++?v.clear()&&(this.spinner.stop(),t()):F(N)}))}),F);else{var G={message:mxResources.get("error")+" "+I.getStatus()};try{G=JSON.parse(I.getText()),G=G.error}catch(S){}F(G)}}),F)}),n)});t()};EditorUi.prototype.extractMermaidMindmap=function(d){for(0<d[1].indexOf("orientation")&&d.splice(1,1);1<d.length&&""==d[1];)d.splice(1,1);
for(var g=[],n=2;n<d.length;n++){var q=mxUtils.trim(d[n]);"["!=q&&"]"!=q&&"%%"!=q.substring(0,2)&&"##"!=q.substring(0,2)&&(q=d[n].replace(/[-|>]/g," "),""!=mxUtils.trim(q)&&" "==q.charAt(0)&&g.push(q))}return"mindmap\nroot(("+mxUtils.trim(d[1])+"))\n"+g.join("\n")};EditorUi.prototype.extractMermaidDeclaration=function(d){"o\n\n"==d.substring(0,3)&&(d=d.substring(3));var g=d.split("```");g=1<g.length?g:d.split("<pre>");g=1<g.length?g:d.split("~~~");g=1<g.length?g:d.split("%%");g=1<g.length?g:d.split("(Begins)"); | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
"/":"https://"+location.host+"/")+window.location.search+"#U"+encodeURIComponent(t)))))}else this.openLocalFile(t,null,!0)}q.stopPropagation();q.preventDefault()}))};EditorUi.prototype.highlightElement=function(d){var g=0,n=0;if(null==d){var q=document.body;var t=document.documentElement;var v=(q.clientWidth||t.clientWidth)-3;q=Math.max(q.clientHeight||0,t.clientHeight)-3}else g=d.offsetTop,n=d.offsetLeft,v=d.clientWidth,q=d.clientHeight;t=document.createElement("div");t.style.zIndex=mxPopupMenu.prototype.zIndex+
2;t.style.border="3px dotted rgb(254, 137, 12)";t.style.pointerEvents="none";t.style.position="absolute";t.style.top=g+"px";t.style.left=n+"px";t.style.width=Math.max(0,v-3)+"px";t.style.height=Math.max(0,q-3)+"px";null!=d&&d.parentNode==this.editor.graph.container?this.editor.graph.container.appendChild(t):document.body.appendChild(t);return t};EditorUi.prototype.stringToCells=function(d){d=mxUtils.parseXml(d);var g=this.editor.extractGraphModel(d.documentElement);d=[];if(null!=g){var n=new mxCodec(g.ownerDocument), | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
null!=d.getMode())try{this.addRecent({id:d.getHash(),title:d.getTitle(),mode:d.getMode()})}catch(F){}try{mxSettings.setOpenCounter(mxSettings.getOpenCounter()+1),mxSettings.save()}catch(F){}}catch(F){this.fileLoadedError=F;if(null!=d)try{d.close()}catch(I){}if(EditorUi.enableLogging&&!this.isOffline())try{EditorUi.logEvent({category:"ERROR-LOAD-FILE-"+(null!=d?d.getHash():"none"),action:"message_"+F.message,label:"stack_"+F.stack})}catch(I){}d=mxUtils.bind(this,function(){null!=urlParams.url&&this.spinner.spin(document.body,
mxResources.get("reconnecting"))?window.location.search=this.getSearch(["url"]):null!=q?this.fileLoaded(q)||v():v()});g?d():this.handleError(F,mxResources.get("errorLoadingFile"),d,!0,null,null,!0)}else v();return t};EditorUi.prototype.getHashValueForPages=function(d,g){var n=0,q=new mxGraphModel,t=new mxCodec;null!=g&&(g.byteCount=0,g.attrCount=0,g.eltCount=0,g.nodeCount=0);for(var v=0;v<d.length;v++){this.updatePageRoot(d[v]);var B=d[v].node.cloneNode(!1);B.removeAttribute("name");q.root=d[v].root; | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
EditorUi.prototype.diffViewState=function(b,e){var f=b.viewState,c=e.viewState,k={};b==this.currentPage&&(f=this.editor.graph.getViewState());e==this.currentPage&&(c=this.editor.graph.getViewState());if(null!=f&&null!=c)for(var l in this.viewStateProperties)this.diffViewStateProperty(f,c,l,k);return k};EditorUi.prototype.diffViewStateProperty=function(b,e,f,c){b=JSON.stringify(this.getViewStateProperty(b,f));e=JSON.stringify(this.getViewStateProperty(e,f));b!=e&&(c[f]=e)}; | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
function(m){var z="1"==mxUtils.getValue(m.style,"enumerate",0);z&&null==m.secondLabel?(m.secondLabel=new mxText("",new mxRectangle,mxConstants.ALIGN_LEFT,mxConstants.ALIGN_BOTTOM),m.secondLabel.size=12,m.secondLabel.state=m,m.secondLabel.dialect=mxConstants.DIALECT_STRICTHTML,this.graph.cellRenderer.initializeLabel(m,m.secondLabel)):z||null==m.secondLabel||(m.secondLabel.destroy(),m.secondLabel=null);z=m.secondLabel;if(null!=z){var J=m.view.scale,O=this.createEnumerationValue(m);m=this.graph.model.isVertex(m.cell)?
new mxRectangle(m.x+m.width-4*J,m.y+4*J,0,0):mxRectangle.fromPoint(m.view.getPoint(m));z.bounds.equals(m)&&z.value==O&&z.scale==J||(z.bounds=m,z.value=O,z.scale=J,z.redraw())}};var U=mxGraphView.prototype.validateBackgroundPage;mxGraphView.prototype.validateBackgroundPage=function(){U.apply(this,arguments);if(mxClient.IS_GC&&null!=this.getDrawPane()){var m=this.getDrawPane().parentNode;!this.graph.mathEnabled||mxClient.NO_FO||null!=this.webKitForceRepaintNode&&null!=this.webKitForceRepaintNode.parentNode|| | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
g.parentNode&&g.parentNode.removeChild(g)}))};var A=!1;EditorUi.prototype.initFormatWindow=function(){if(!A&&null!=this.formatWindow){A=!0;var H=this.formatWindow.window.toggleMinimized,d=240;this.formatWindow.window.toggleMinimized=function(){H.apply(this,arguments);this.minimized?(d=parseInt(this.div.style.width),this.div.style.width="140px",this.table.style.width="140px",this.div.style.left=parseInt(this.div.style.left)+d-140+"px"):(this.div.style.width=d+"px",this.table.style.width=this.div.style.width,
this.div.style.left=Math.max(0,parseInt(this.div.style.left)-d+140)+"px");this.fit()};mxEvent.addListener(this.formatWindow.window.title,"dblclick",mxUtils.bind(this,function(g){mxEvent.getSource(g)==this.formatWindow.window.title&&this.formatWindow.window.toggleMinimized()}))}};var K=EditorUi.prototype.init;EditorUi.prototype.init=function(){function H(Q,X,Z){var Y=v.menus.get(Q),aa=G.addMenu(mxResources.get(Q),mxUtils.bind(this,function(){Y.funct.apply(this,arguments)}),I);aa.className="geMenuItem"; | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
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 z=0;z<m.length;z++)if(0>mxUtils.indexOf(this.hiddenTags,m[z]))return!1;return!0};Graph.prototype.getCellsForTags=function(m,z,J,O){var T=[];if(null!=m){z=null!=z?z:this.model.getDescendants(this.model.getRoot());for(var W=0,V={},Q=0;Q<m.length;Q++)0<m[Q].length&&(V[m[Q]]=!0,W++);for(Q=0;Q<z.length;Q++)if(J&&this.model.getParent(z[Q])==
this.model.root||this.model.isVertex(z[Q])||this.model.isEdge(z[Q])){var X=this.getTagsForCell(z[Q]),Z=!1;if(0<X.length&&(X=X.split(" "),X.length>=m.length)){for(var Y=Z=0;Y<X.length&&Z<W;Y++)null!=V[X[Y]]&&Z++;Z=Z==W}Z&&(1!=O||this.isCellVisible(z[Q]))&&T.push(z[Q])}}return T};Graph.prototype.getAllTags=function(){return this.getTagsForCells(this.model.getDescendants(this.model.getRoot()))};Graph.prototype.getCommonTagsForCells=function(m){for(var z=null,J=[],O=0;O<m.length;O++){var T=this.getTagsForCell(m[O]); | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
"unknown");null!=S&&null!=S.error&&null!=S.error.code&&(U+="-code_"+S.error.code);EditorUi.logEvent({category:"ERROR-SAVE-FILE-"+f.getHash()+"-rev_"+f.desc.headRevisionId+"-mod_"+f.desc.modifiedDate+"-size_"+f.getSize()+"-mime_"+f.desc.mimeType+(this.ui.editor.autosave?"":"-nosave")+(f.isAutosave()?"":"-noauto")+(f.changeListenerEnabled?"":"-nolisten")+(f.inConflictState?"-conflict":"")+(f.invalidChecksum?"-invalid":""),action:U,label:(null!=this.user?"user_"+this.user.id:"nouser")+(null!=f.sync?
"-client_"+f.sync.clientId:"-nosync")})}}catch(N){}}),d=mxUtils.bind(this,function(S){H(S);try{EditorUi.logError(S.message,null,null,null,S)}catch(U){}});if(f.isEditable()&&null!=f.desc){var g=(new Date).getTime(),n=f.desc.etag,q=f.desc.modifiedDate,t=f.desc.headRevisionId,v=this.ui.useCanvasForExport&&/(\.png)$/i.test(f.getTitle());x=null!=x?x:!1;var B=null,F=!1,I={mimeType:f.desc.mimeType,title:f.getTitle()};if(this.isGoogleRealtimeMimeType(I.mimeType))I.mimeType=this.xmlMimeType,B=f.desc,F=c=!0; | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
S;var O=g(".odPreview"),T=g("#odFiles");b=function(V,Q){Q=Q||document;return Q.querySelectorAll(V)}(".odCatListTitle");for(S=0;S<b.length;S++)b[S].addEventListener("click",function(){M=m=null;if(!y)switch(I(this),this.id){case "odFiles":F();break;case "odRecent":F("recent");break;case "odShared":F("shared");break;case "odSharepoint":F("sharepoint")}});var W=null;g("#odSearchBox").addEventListener("keyup",function(V){var Q=this;null!=W&&clearTimeout(W);13==V.keyCode?G(Q.value):W=setTimeout(function(){G(Q.value)}, | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
f,c,k,l){this.insertFile(e,f,c,k,!0,l,!1)};GitHubClient.prototype.insertFile=function(e,f,c,k,l,u,x){l=null!=l?l:!1;u=u.split("/");var E=u[0],D=u[1],A=u[2],K=u.slice(3,u.length).join("/");0<K.length&&(K+="/");K+=e;this.checkExists(E+"/"+D+"/"+A+"/"+K,!0,mxUtils.bind(this,function(H,d){H?l?(x||(f=Base64.encode(f)),this.showCommitDialog(e,!0,mxUtils.bind(this,function(g){this.writeFile(E,D,A,K,g,f,d,mxUtils.bind(this,function(n){try{var q=JSON.parse(n.getText());c(this.createGitHubFile(E,D,A,q.content,
l))}catch(t){k(t)}}),k)}),k)):c(new GitHubFile(this.ui,f,{org:E,repo:D,ref:A,name:e,path:K,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(u){l();c(u)}),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= | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
p?(p=g.getOutgoingTreeEdges(M),null!=p&&0<p.length&&g.setSelectionCell(g.model.getTerminal(p[0],!1))):(y=g.getIncomingTreeEdges(M),null!=y&&0<y.length&&(C=K(g.model.getTerminal(y[0],!0),C,M),M=g.view.getState(M),null!=M&&(M=mxUtils.indexOf(C,M),0<=M&&(M+=p==mxConstants.DIRECTION_NORTH||p==mxConstants.DIRECTION_WEST?-1:1,0<=M&&M<=C.length-1&&g.setSelectionCell(C[M].cell)))))}var d=this,g=d.editor.graph,n=g.getModel(),q=d.menus.createPopupMenu;d.menus.createPopupMenu=function(M,p,y){q.apply(this,arguments);
if(1==g.getSelectionCount()){p=g.getSelectionCell();var C=g.getOutgoingTreeEdges(p);M.addSeparator();0<C.length&&(c(g.getSelectionCell())&&this.addMenuItems(M,["selectChildren"],null,y),this.addMenuItems(M,["selectDescendants"],null,y));c(g.getSelectionCell())?(M.addSeparator(),0<g.getIncomingTreeEdges(p).length&&this.addMenuItems(M,["selectSiblings","selectParent"],null,y)):0<g.model.getEdgeCount(p)&&this.addMenuItems(M,["selectConnections"],null,y)}};d.actions.addAction("selectChildren",function(M){if(g.isEnabled()&& | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
(this.ui.spinner.stop(),this.ui.showError(mxResources.get("error"),mxResources.get("fileExists"),mxResources.get("ok"),function(){k(!1)}))}),function(u){k(!1)},!0)};OneDriveClient.prototype.saveFile=function(e,f,c,k){try{var l=e.getData(),u=mxUtils.bind(this,function(E){var D=mxUtils.bind(this,function(K){f(K,l)}),A=this.getItemURL(e.getId());4E6<=E.length?this.writeLargeFile(A,E,D,c,k):this.writeFile(A+"/content/",E,"PUT",null,D,c,k)});if(this.ui.useCanvasForExport&&/(\.png)$/i.test(e.meta.name)){var x=
this.ui.getPngFileProperties(this.ui.fileNode);this.ui.getEmbeddedPng(mxUtils.bind(this,function(E){u(this.ui.base64ToBlob(E,"image/png"))}),c,this.ui.getCurrentFile()!=e?l:null,x.scale,x.border)}else u(l)}catch(E){c(E)}};OneDriveClient.prototype.writeLargeFile=function(e,f,c,k,l){try{if(null!=f){var u=(new TextEncoder).encode(f).length,x=mxUtils.bind(this,function(D,A,K,H){try{H=H||0;var d=!0,g=null;g=window.setTimeout(mxUtils.bind(this,function(){d=!1;k({code:App.ERROR_TIMEOUT})}),this.ui.timeout); | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
Ba(Editor.parseDiagramNode(ea)));return ea},Ba=function(ea){var ha=ea.getAttribute("background");if(null==ha||""==ha||ha==mxConstants.NONE)ha=x.defaultPageBackgroundColor;l.style.backgroundColor=ha;(new mxCodec(ea.ownerDocument)).decode(ea,x.getModel());x.maxFitScale=1;x.fit(8);x.center();return ea};C.style.display="none";C.innerText="";B=ba;F=da;D=parseSelectFunction=null;A=0;if("mxfile"==sa.nodeName){ba=sa.getElementsByTagName("diagram");D=[];for(da=0;da<ba.length;da++)D.push(ba[da]);A=Math.min(E, | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
6)this.curveTo(ca[da],ca[da+1],ca[da+2],ca[da+3],ca[da+4],ca[da+5]);this.lastX=Y;this.lastY=aa}};m.prototype.rect=function(W,V,Q,X){this.passThrough?this.originalRect.apply(this.canvas,arguments):(this.path=[],this.nextShape=this.rc.generator.rectangle(W,V,Q,X,this.getStyle(!0,!0)))};m.prototype.ellipse=function(W,V,Q,X){this.passThrough?this.originalEllipse.apply(this.canvas,arguments):(this.path=[],this.nextShape=this.rc.generator.ellipse(W+Q/2,V+X/2,Q,X,this.getStyle(!0,!0)))};m.prototype.roundrect= | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
this.model.root||this.model.isVertex(z[Q])||this.model.isEdge(z[Q])){var X=this.getTagsForCell(z[Q]),Z=!1;if(0<X.length&&(X=X.split(" "),X.length>=m.length)){for(var Y=Z=0;Y<X.length&&Z<W;Y++)null!=V[X[Y]]&&Z++;Z=Z==W}Z&&(1!=O||this.isCellVisible(z[Q]))&&T.push(z[Q])}}return T};Graph.prototype.getAllTags=function(){return this.getTagsForCells(this.model.getDescendants(this.model.getRoot()))};Graph.prototype.getCommonTagsForCells=function(m){for(var z=null,J=[],O=0;O<m.length;O++){var T=this.getTagsForCell(m[O]);
J=[];if(0<T.length){T=T.split(" ");for(var W={},V=0;V<T.length;V++)if(null==z||null!=z[T[V]])W[T[V]]=!0,J.push(T[V]);z=W}else return[]}return J};Graph.prototype.getTagsForCells=function(m){for(var z=[],J={},O=0;O<m.length;O++){var T=this.getTagsForCell(m[O]);if(0<T.length){T=T.split(" ");for(var W=0;W<T.length;W++)null==J[T[W]]&&(J[T[W]]=!0,z.push(T[W]))}}return z};Graph.prototype.getTagsForCell=function(m){return this.getAttributeForCell(m,"tags","")};Graph.prototype.addTagsForCells=function(m,z){if(0< | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
T.style.borderCollapse="collapse";T.style.borderSpacing="0px";T.style.width="100%";var W=document.createElement("tbody"),V=(new Date).toDateString();null!=b.currentPage&&null!=b.pages&&(E=mxUtils.indexOf(b.pages,b.currentPage));for(H=e.length-1;0<=H;H--){var Q=function(X){var Z=new Date(X.modifiedDate),Y=null;if(0<=Z.getTime()){var aa=function(da){d.stop();u.innerText="";var ba=mxUtils.parseXml(da),sa=b.editor.extractGraphModel(ba.documentElement,!0);if(null!=sa){var za=function(ea){null!=ea&&(ea=
Ba(Editor.parseDiagramNode(ea)));return ea},Ba=function(ea){var ha=ea.getAttribute("background");if(null==ha||""==ha||ha==mxConstants.NONE)ha=x.defaultPageBackgroundColor;l.style.backgroundColor=ha;(new mxCodec(ea.ownerDocument)).decode(ea,x.getModel());x.maxFitScale=1;x.fit(8);x.center();return ea};C.style.display="none";C.innerText="";B=ba;F=da;D=parseSelectFunction=null;A=0;if("mxfile"==sa.nodeName){ba=sa.getElementsByTagName("diagram");D=[];for(da=0;da<ba.length;da++)D.push(ba[da]);A=Math.min(E, | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
za.push(sa[Ba]);Q.setSelectionCells(za)}function W(sa){Q.setHiddenTags(sa?[]:X.slice());T();Q.refresh()}function V(sa,za){Y.innerText="";if(0<sa.length){var Ba=document.createElement("table");Ba.setAttribute("cellpadding","2");Ba.style.boxSizing="border-box";Ba.style.tableLayout="fixed";Ba.style.width="100%";var ea=document.createElement("tbody");if(null!=sa&&0<sa.length)for(var ha=0;ha<sa.length;ha++)(function(qa){function la(){var ra=Q.getCellsForTags([qa],null,null,!0);Q.isEnabled()?Q.setSelectionCells(ra):
Q.highlightCells(ra,null,null,70)}var ya=0>mxUtils.indexOf(Q.hiddenTags,qa),Ca=document.createElement("tr"),ta=document.createElement("td");ta.style.align="center";ta.style.width="16px";var Fa=document.createElement("img");Fa.setAttribute("src",ya?Editor.visibleImage:Editor.hiddenImage);Fa.setAttribute("title",mxResources.get(ya?"hideIt":"show",[qa]));mxUtils.setOpacity(Fa,ya?75:25);Fa.style.verticalAlign="middle";Fa.style.cursor="pointer";Fa.style.width="16px";if(z||Editor.isDarkMode())Fa.style.filter= | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
"geCommentActionLnk";mxUtils.write(Z,W);X.appendChild(Z);mxEvent.addListener(Z,"click",function(Y){V(Y,N);Y.preventDefault();mxEvent.consume(Y)});T.appendChild(X);Q&&(X.style.display="none")}function C(){function W(X){V.push(Q);if(null!=X.replies)for(var Z=0;Z<X.replies.length;Z++)Q=Q.nextSibling,W(X.replies[Z])}var V=[],Q=m;W(N);return{pdiv:Q,replies:V}}function L(W,V,Q,X,Z){function Y(){D(ba);N.addReply(da,function(sa){da.id=sa;N.replies.push(da);K(ba);Q&&Q()},function(sa){aa();A(ba);b.handleError(sa,
null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))},X,Z)}function aa(){x(da,ba,function(sa){Y()},!0)}var ca=C().pdiv,da=b.newComment(W,b.getCurrentUser());da.pCommentId=N.id;null==N.replies&&(N.replies=[]);var ba=H(da,N.replies,ca,M+1);V?aa():Y()}if(p||!N.isResolved){B.style.display="none";var m=document.createElement("div");m.className="geCommentContainer";m.setAttribute("data-commentId",N.id);m.style.marginLeft=20*M+5+"px";N.isResolved&&!Editor.isDarkMode()&&(m.style.backgroundColor= | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
Y+"')";break;default:null==Q?C=[{driveId:V}]:C.push({name:Z,driveId:V,folderId:Q}),qa=(V?"/drives/"+V:"/me/drive")+(Q?"/items/"+Q:"/root")+"/children"}ba||(qa+=(0<qa.indexOf("?")?"&":"?")+"select=id,name,description,parentReference,file,createdBy,lastModifiedBy,lastModifiedDateTime,size,folder,remoteItem,@microsoft.graph.downloadUrl");var la=[];ca()}}function I(V){T.className=T.className.replace("odCatSelected","");T=V;T.className+=" odCatSelected"}function G(V){y||(W=null,F("search",null,null,null, | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
"keys",Ea,"values",Qa,"cells",aa.getSelectionCells()))}finally{aa.getModel().endUpdate()}}function T(pa,ra,ua){var Ga=mxUtils.getOffset(m,!0),Ea=mxUtils.getOffset(pa,!0);ra.style.position="absolute";ra.style.left=Ea.x-Ga.x+"px";ra.style.top=Ea.y-Ga.y+"px";ra.style.width=pa.offsetWidth+"px";ra.style.height=pa.offsetHeight-(ua?4:0)+"px";ra.style.zIndex=5}function W(pa,ra,ua){var Ga=document.createElement("div");Ga.style.width="32px";Ga.style.height="4px";Ga.style.margin="2px";Ga.style.border="1px solid black";
Ga.style.background=ra&&"none"!=ra?ra:"url('"+Dialog.prototype.noColorImage+"')";btn=mxUtils.button("",mxUtils.bind(Y,function(Ea){this.editorUi.pickColor(ra,function(Qa){Ga.style.background="none"==Qa?"url('"+Dialog.prototype.noColorImage+"')":Qa;O(pa,Qa,ua)});mxEvent.consume(Ea)}));btn.style.height="12px";btn.style.width="40px";btn.className="geColorBtn";btn.appendChild(Ga);return btn}function V(pa,ra,ua,Ga,Ea,Qa,Ha){null!=ra&&(ra=ra.split(","),ca.push({name:pa,values:ra,type:ua,defVal:Ga,countProperty:Ea, | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
O.length&&(T=O[Math.max(0,Math.min(O.length-1,urlParams.page||0))])),null!=T&&(m=Editor.parseDiagramNode(T,J)));null==m||"mxGraphModel"==m.nodeName||z&&"mxfile"==m.nodeName||(m=null);return m};Editor.parseDiagramNode=function(m,z){var J=mxUtils.trim(mxUtils.getTextContent(m)),O=null;0<J.length?(m=Graph.decompress(J,null,z),null!=m&&0<m.length&&(O=mxUtils.parseXml(m).documentElement)):(m=mxUtils.getChildNodes(m),0<m.length&&(O=mxUtils.createXmlDocument(),O.appendChild(O.importNode(m[0],!0)),O=O.documentElement));
return O};Editor.getDiagramNodeXml=function(m){var z=mxUtils.getTextContent(m),J=null;0<z.length?J=Graph.decompress(z):null!=m.firstChild&&(J=mxUtils.getXml(m.firstChild));return J};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 z=m.indexOf("EmbeddedFile");if(-1<z){var J=m.indexOf("stream",z)+9;if(0<m.substring(z,J).indexOf("application#2Fvnd.jgraph.mxfile"))return z=m.indexOf("endstream", | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
this.editor.graph.getInsertPoint();this.importFiles([B.getAsFile()],F.x,F.y,this.maxImageSize);mxEvent.consume(g)}break}}}}catch(I){}}),!1)}};EditorUi.prototype.installNativeClipboardHandler=function(){function d(){window.setTimeout(function(){n.innerHTML=" ";n.focus();document.execCommand("selectAll",!1,null)},0)}var g=this.editor.graph,n=document.createElement("div");n.setAttribute("autocomplete","off");n.setAttribute("autocorrect","off");n.setAttribute("autocapitalize","off");n.setAttribute("spellcheck", | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
E;this.okButton=k;this.container=H},TemplatesDialog=function(b,e,f,c,k,l,u,x,E,D,A,K,H,d,g){function n(ka){ta.innerText=ka;ta.style.display="block";setTimeout(function(){ta.style.display="none"},4E3)}function q(){null!=z&&(z.style.fontWeight="normal",z.style.textDecoration="none",J=z,z=null)}function t(ka,fa,ma,na,oa,ia,ja){if(-1<ka.className.indexOf("geTempDlgRadioBtnActive"))return!1;ka.className+=" geTempDlgRadioBtnActive";C.querySelector(".geTempDlgRadioBtn[data-id="+na+"]").className="geTempDlgRadioBtn "+ | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
null==this.cachedGoogleFonts[Q]?(O++,this.loadUrl(Q,mxUtils.bind(this,function(X){this.cachedGoogleFonts[Q]=X;J.push(X+"\n");O--;T()}),mxUtils.bind(this,function(X){O--;J.push("@import url("+Q+");\n");T()}))):J.push(this.cachedGoogleFonts[Q]+"\n"):J.push('@font-face {font-family: "'+V+'";src: url("'+Q+'")}\n')})(z[W].name,z[W].url);T()}else m()};Editor.prototype.addMathCss=function(m){m=m.getElementsByTagName("defs");if(null!=m&&0<m.length)for(var z=document.getElementsByTagName("style"),J=0;J<z.length;J++){var O=
mxUtils.getTextContent(z[J]);0>O.indexOf("mxPageSelector")&&0<O.indexOf("MathJax")&&m[0].appendChild(z[J].cloneNode(!0))}};Editor.prototype.addFontCss=function(m,z){z=null!=z?z:this.absoluteCssFonts(this.fontCss);if(null!=z){var J=m.getElementsByTagName("defs"),O=m.ownerDocument;0==J.length?(J=null!=O.createElementNS?O.createElementNS(mxConstants.NS_SVG,"defs"):O.createElement("defs"),null!=m.firstChild?m.insertBefore(J,m.firstChild):m.appendChild(J)):J=J[0];m=null!=O.createElementNS?O.createElementNS(mxConstants.NS_SVG, | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
if(null==na&&(ia=oa.indexOf("/"),na=oa.substring(0,ia),null==ma)){var ja=oa.indexOf("/",ia+1);-1<ja&&(ma=oa.substring(ia+1,ja))}ia=Ga[na];null==ia&&(Ra++,ia=[],Ga[na]=ia);oa=ka.getAttribute("clibs");null!=fa[oa]&&(oa=fa[oa]);oa={url:ka.getAttribute("url"),libs:ka.getAttribute("libs"),title:ka.getAttribute("title")||ka.getAttribute("name"),preview:ka.getAttribute("preview"),clibs:oa,tags:ka.getAttribute("tags")};ia.push(oa);null!=ma&&(ia=Ea[na],null==ia&&(ia={},Ea[na]=ia),na=ia[ma],null==na&&(na=[],
ia[ma]=na),na.push(oa))}ka=ka.nextSibling}U(Ga,Qa,Ia)}})}function P(ka){u&&(Ba.scrollTop=0,ba.innerText="",Fa.spin(ba),m=!1,L=!0,sa.innerText=mxResources.get("recentDiag"),Y=null,u(Va,function(){n(mxResources.get("cannotLoad"));Va([])},ka?null:l))}function R(ka){if(""==ka)null!=J&&(J.click(),J=null);else{if(null==TemplatesDialog.tagsList[c]){var fa={};for(Ka in Ga)for(var ma=Ga[Ka],na=0;na<ma.length;na++){var oa=ma[na];if(null!=oa.tags)for(var ia=oa.tags.toLowerCase().split(";"),ja=0;ja<ia.length;ja++)null== | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
mxJsCanvas.prototype.roundrect=function(b,e,f,c,k,l){this.begin();this.moveTo(b+k,e);this.lineTo(b+f-k,e);this.quadTo(b+f,e,b+f,e+l);this.lineTo(b+f,e+c-l);this.quadTo(b+f,e+c,b+f-k,e+c);this.lineTo(b+k,e+c);this.quadTo(b,e+c,b,e+c-l);this.lineTo(b,e+l);this.quadTo(b,e,b+k,e)};mxJsCanvas.prototype.ellipse=function(b,e,f,c){this.ctx.save();this.ctx.translate(b+f/2,e+c/2);this.ctx.scale(f/2,c/2);this.ctx.beginPath();this.ctx.arc(0,0,1,0,2*Math.PI,!1);this.ctx.restore()}; | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
c)}}}catch(x){}}))}};App.prototype.handleLicense=function(b,e){};App.prototype.getEditBlankXml=function(){var b=this.getCurrentFile();return null!=b&&this.editor.isChromelessView()&&this.editor.graph.isLightboxView()?b.getData():this.getFileData(!0)};App.prototype.updateActionStates=function(){EditorUi.prototype.updateActionStates.apply(this,arguments);this.actions.get("revisionHistory").setEnabled(this.isRevisionHistoryEnabled())}; | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
"Invalid data",toString:function(){return this.message}};};var e=Editor.prototype.getGraphXml;Editor.prototype.getGraphXml=function(m,z){m=null!=m?m:!0;var J=e.apply(this,arguments);null!=this.graph.currentStyle&&"default-style2"!=this.graph.currentStyle&&J.setAttribute("style",this.graph.currentStyle);var O=this.graph.getBackgroundImageObject(this.graph.backgroundImage,z);null!=O&&J.setAttribute("backgroundImage",JSON.stringify(O));J.setAttribute("math",this.graph.mathEnabled?"1":"0");J.setAttribute("shadow",
this.graph.shadowVisible?"1":"0");null!=this.graph.extFonts&&0<this.graph.extFonts.length&&(O=this.graph.extFonts.map(function(T){return T.name+"^"+T.url}),J.setAttribute("extFonts",O.join("|")));return J};Editor.prototype.isDataSvg=function(m){try{var z=mxUtils.parseXml(m).documentElement.getAttribute("content");if(null!=z&&(null!=z&&"<"!=z.charAt(0)&&"%"!=z.charAt(0)&&(z=unescape(window.atob?atob(z):Base64.decode(cont,z))),null!=z&&"%"==z.charAt(0)&&(z=decodeURIComponent(z)),null!=z&&0<z.length)){var J= | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
EditorUi.prototype.diffPage=function(b,e){var f=[],c=[],k={};this.updatePageRoot(b);this.updatePageRoot(e);e=this.createCellLookup(e.root);var l=this.diffCellRecursive(b.root,null,e,l,c),u;for(u in e)b=e[u],f.push(this.getJsonForCell(b.cell,b.prev));mxUtils.isEmptyObject(l)||(k[EditorUi.DIFF_UPDATE]=l);0<c.length&&(k[EditorUi.DIFF_REMOVE]=c);0<f.length&&(k[EditorUi.DIFF_INSERT]=f);return k}; | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
document.execCommand("copy");this.alert(mxResources.get("copiedToClipboard"));q.value=v}catch(B){this.handleError(B)}}));t.setAttribute("title","copy");t.className="geBtn";n.appendChild(t)}),!0,null,null,"https://www.drawio.com/doc/faq/apply-layouts");this.showDialog(g.container,620,460,!0,!0);g.init()}))};EditorUi.prototype.loadOrgChartLayouts=function(d){this.createTimeout(null,mxUtils.bind(this,function(g){var n=mxUtils.bind(this,function(){this.loadingOrgChart=!1;g.clear()&&(Graph.layoutNames.push("mxOrgChartLayout"),
this.spinner.stop(),d())}),q=mxUtils.bind(this,function(t){this.loadingOrgChart=!1;g.clear()&&this.handleError(t)});"undefined"!==typeof mxOrgChartLayout||this.loadingOrgChart||this.isOffline(!0)?n():this.spinner.spin(document.body,mxResources.get("loading"))&&(this.loadingOrgChart=!0,"1"==urlParams.dev?mxscript("js/orgchart/bridge.min.js",function(){mxscript("js/orgchart/bridge.collections.min.js",function(){mxscript("js/orgchart/OrgChart.Layout.min.js",function(){mxscript("js/orgchart/mxOrgChartLayout.js",
n,null,null,null,q)},null,null,null,q)},null,null,null,q)},null,null,null,q):mxscript(DRAWIO_BASE_URL+"/js/orgchart.min.js",n,null,null,null,q))}),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"),q=[],t=[],v=[],B={};if(0<n.length){var F={},I=this.editor.graph,G=null,S=null,U=null,N=null,P=null,R=null,M=null,p="whiteSpace=wrap;html=1;",y=null,C=null, | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
m?m.getElementsByTagName("parsererror"):null;null!=m&&0<m.length&&(J=z||mxResources.get("invalidChars"),z=m[0].getElementsByTagName("div"),0<z.length&&(J=mxUtils.getTextContent(z[0])));return null!=J?mxUtils.trim(J):J};Editor.addRetryToError=function(m,z){null!=m&&(m=null!=m.error?m.error:m,null==m.retry&&(m.retry=z))};Editor.mermaidToDrawio=function(m,z,J){if("function"===typeof mxMermaidToDrawio)return mxMermaidToDrawio(m,z,J)};Editor.configure=function(m){if(null!=m){Editor.config=m;Editor.configVersion= | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
return O};Editor.getDiagramNodeXml=function(m){var z=mxUtils.getTextContent(m),J=null;0<z.length?J=Graph.decompress(z):null!=m.firstChild&&(J=mxUtils.getXml(m.firstChild));return J};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 z=m.indexOf("EmbeddedFile");if(-1<z){var J=m.indexOf("stream",z)+9;if(0<m.substring(z,J).indexOf("application#2Fvnd.jgraph.mxfile"))return z=m.indexOf("endstream", | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
else if(15E7<=f.length)k({message:mxResources.get("drawingTooLarge")+" ("+this.ui.formatFileSize(f.length)+" / 150 MB)"});else{l=null!=l?l:"";var u=mxUtils.bind(this,function(){return this.client.filesUpload({path:"/"+l+e,mode:{".tag":"overwrite"},mute:!0,contents:new Blob([f],{type:"text/plain"})})});this.executePromise(u,c,k)}};DropboxClient.prototype.pickLibrary=function(e){Dropbox.choose({linkType:"direct",cancel:mxUtils.bind(this,function(){}),success:mxUtils.bind(this,function(f){if(this.ui.spinner.spin(document.body, | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
64);EditorUi.initTheme=function(){"atlas"==Editor.currentTheme&&(mxClient.link("stylesheet",STYLE_PATH+"/atlas.css"),"undefined"!==typeof Toolbar&&(Toolbar.prototype.unselectedBackground="linear-gradient(rgb(255, 255, 255) 0px, rgb(242, 242, 242) 100%)",Toolbar.prototype.selectedBackground="rgb(242, 242, 242)"),Editor.prototype.initialTopSpacing=3,EditorUi.prototype.menubarHeight=41,EditorUi.prototype.toolbarHeight=38);"sketch"==Editor.currentTheme&&(Editor.configurationKey=".sketch-configuration",
Editor.settingsKey=".sketch-config")};EditorUi.initTheme();EditorUi.prototype.showImageDialog=function(d,g,n,q,t,v,B){d=new ImageDialog(this,d,g,n,q,t,v,B);this.showDialog(d.container,Graph.fileSupport?480:360,Graph.fileSupport?200:90,!0,!0);d.init()};EditorUi.prototype.showLocalStorageDialog=function(d,g,n,q,t,v){var B=localStorage.getItem(g);d=new TextareaDialog(this,d,null!=B?JSON.stringify(JSON.parse(B),null,2):"",mxUtils.bind(this,function(F){if(null!=F)try{if(null!=v&&v(F),F==B)this.hideDialog(); | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
mxAsyncCanvas.prototype.text=function(b,e,f,c,k,l,u,x,E,D,A,K){if(null!=k&&0!=k.length&&(b=this.state.scale,"html"==E&&"function"===typeof html2canvas)){this.incWaitCounter();var H=this.canvasIndex++;html2canvas(k,{onrendered:mxUtils.bind(this,function(d){this.htmlCanvas.subCanvas[H]=d;this.decWaitCounter()}),scale:b,logging:!0})}};mxAsyncCanvas.prototype.finish=function(b){0==this.waitCounter?b():this.onComplete=b};function mxJsCanvas(b){mxAbstractCanvas2D.call(this);this.ctx=b.getContext("2d");this.ctx.textBaseline="top";this.ctx.fillStyle="rgba(255,255,255,0)";this.ctx.strokeStyle="rgba(0, 0, 0, 0)";this.M_RAD_PER_DEG=Math.PI/180;this.images=null==this.images?[]:this.images;this.subCanvas=null==this.subCanvas?[]:this.subCanvas}mxUtils.extend(mxJsCanvas,mxAbstractCanvas2D);mxJsCanvas.prototype.ctx=null;mxJsCanvas.prototype.waitCounter=0;mxJsCanvas.prototype.onComplete=null;mxJsCanvas.prototype.images=null; | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
m=0;m<L.length;m++)if(null!=L[m][EditorUi.DIFF_UPDATE]&&null!=L[m][EditorUi.DIFF_UPDATE][C]||null!=L[m][EditorUi.DIFF_REMOVE]&&0<=mxUtils.indexOf(L[m][EditorUi.DIFF_REMOVE],C)){g.refreshBackgroundImage();break}}}));var v=g.getBackgroundImageObject;g.getBackgroundImageObject=function(C,L){var m=v.apply(this,arguments);if(null!=m&&null!=m.originalSrc)if(!L)m={src:m.originalSrc};else if(L&&null!=this.themes&&"darkTheme"==this.defaultThemeName){var z=this.stylesheet,J=this.shapeForegroundColor,O=this.shapeBackgroundColor;
this.stylesheet=this.getDefaultStylesheet();this.shapeBackgroundColor="#ffffff";this.shapeForegroundColor="#000000";m=d.createImageForPageLink(m.originalSrc);this.shapeBackgroundColor=O;this.shapeForegroundColor=J;this.stylesheet=z}return m};this.isOffline()||"undefined"===typeof window.EditDataDialog||(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= | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
d;this.editor.updateGraphComponents();this.editor.graph.refresh();this.editor.graph.defaultMathEnabled=d;this.fireEvent(new mxEventObject("mathEnabledChanged"))};EditorUi.prototype.isMathEnabled=function(d){return this.editor.graph.mathEnabled};EditorUi.prototype.isStandaloneApp=function(){return mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||this.isOfflineApp()};EditorUi.prototype.isOfflineApp=function(){return"1"==urlParams.offline};EditorUi.prototype.isOffline=function(d){return this.isOfflineApp()||
!navigator.onLine||!d&&("1"==urlParams.stealth||"1"==urlParams.lockdown)};EditorUi.prototype.isExternalDataComms=function(){return"1"!=urlParams.offline&&!this.isOffline()&&!this.isOfflineApp()};EditorUi.prototype.createSpinner=function(d,g,n){var q=null==d||null==g;n=null!=n?n:24;var t=new Spinner({lines:12,length:n,width:Math.round(n/3),radius:Math.round(n/2),rotate:0,color:Editor.isDarkMode()?"#c0c0c0":"#000",speed:1.5,trail:60,shadow:!1,hwaccel:!1,zIndex:2E9}),v=t.spin;t.spin=function(F,I){var G= | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
"")+"."+v;d=this.createImageDataUri(d,g,n,t);this.saveData(q,v,d.substring(d.lastIndexOf(",")+1),"image/"+n,!0)};EditorUi.prototype.isLocalFileSave=function(){return"remote"!=urlParams.save&&(mxClient.IS_IE||"undefined"!==typeof window.Blob&&"undefined"!==typeof window.URL)&&9!=document.documentMode&&8!=document.documentMode&&7!=document.documentMode||this.isOfflineApp()||mxClient.IS_IOS};EditorUi.prototype.showTextDialog=function(d,g){d=new TextareaDialog(this,d,g,null,null,mxResources.get("close")); | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
f.toLowerCase()})}),this.executePromise(E,x,k)):x()):k()})):k({message:mxResources.get("invalidName")})}};DropboxClient.prototype.insertLibrary=function(e,f,c,k){this.insertFile(e,f,c,k,!0)};DropboxClient.prototype.insertFile=function(e,f,c,k,l){l=null!=l?l:!1;this.checkExists(e,mxUtils.bind(this,function(u){u?this.saveFile(e,f,mxUtils.bind(this,function(x){l?c(new DropboxLibrary(this.ui,f,x)):c(new DropboxFile(this.ui,f,x))}),k):k()}))};DropboxClient.prototype.saveFile=function(e,f,c,k,l){if(/[\\\/:\?\*"\|]/.test(e))k({message:mxResources.get("dropboxCharsNotAllowed")}); | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
App.prototype.getTitleForService=function(b){return b==App.MODE_GOOGLE?mxResources.get("googleDrive"):b==App.MODE_ONEDRIVE?mxResources.get("oneDrive"):EditorUi.prototype.getTitleForService.apply(this,arguments)}; | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
arguments))};var q=mxSvgCanvas2D.prototype.updateTextNodes;mxSvgCanvas2D.prototype.updateTextNodes=function(m,z,J,O,T,W,V,Q,X,Z,Y){q.apply(this,arguments);Graph.processFontAttributes(Y)};var t=mxText.prototype.redraw;mxText.prototype.redraw=function(){t.apply(this,arguments);null!=this.node&&"DIV"==this.node.nodeName&&Graph.processFontAttributes(this.node)};Graph.prototype.createTagsDialog=function(m,z,J,O){function T(){for(var sa=Q.getSelectionCells(),za=[],Ba=0;Ba<sa.length;Ba++)Q.isCellVisible(sa[Ba])&&
za.push(sa[Ba]);Q.setSelectionCells(za)}function W(sa){Q.setHiddenTags(sa?[]:X.slice());T();Q.refresh()}function V(sa,za){Y.innerText="";if(0<sa.length){var Ba=document.createElement("table");Ba.setAttribute("cellpadding","2");Ba.style.boxSizing="border-box";Ba.style.tableLayout="fixed";Ba.style.width="100%";var ea=document.createElement("tbody");if(null!=sa&&0<sa.length)for(var ha=0;ha<sa.length;ha++)(function(qa){function la(){var ra=Q.getCellsForTags([qa],null,null,!0);Q.isEnabled()?Q.setSelectionCells(ra): | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
EditorUi.prototype.isExportToCanvas=function(){return this.editor.isExportToCanvas()};EditorUi.prototype.createImageDataUri=function(d,g,n,q){d=d.toDataURL("image/"+n);if(null!=d&&6<d.length)null!=g&&(d=Editor.writeGraphModelToPng(d,"tEXt","mxfile",encodeURIComponent(g))),0<q&&(d=Editor.writeGraphModelToPng(d,"pHYs","dpi",q));else throw{message:mxResources.get("unknownError")};return d};EditorUi.prototype.saveCanvas=function(d,g,n,q,t){var v="jpeg"==n?"jpg":n;q=this.getBaseFilename(q)+(null!=g?".drawio": | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
EditorUi.prototype.isObjectEqual=function(b,e,f){if(null==b&&null==e)return!0;if(null!=b?null==e:null!=e)return!1;var c=function(k,l){return null==f||f[k]!=l?!0===l?1:l:void 0};return JSON.stringify(b,c)==JSON.stringify(e,c)};var mxSettings={currentVersion:18,defaultFormatWidth:600>screen.width?"0":"240",key:Editor.settingsKey,getLanguage:function(){return mxSettings.settings.language},setLanguage:function(b){mxSettings.settings.language=b},isMainSettings:function(){return".drawio-config"==mxSettings.key},getMainSettings:function(){var b=localStorage.getItem(".drawio-config");null==b?(b=mxSettings.getDefaults(),delete b.isNew):(b=JSON.parse(b),b.version=mxSettings.currentVersion);return b},getUi:function(){return mxSettings.isMainSettings()? | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
null==G.data&&null==G.url?(G=U(G),Ba(G,I)):this.loadDescriptor(G,mxUtils.bind(this,function(ea){Ba(za(),I)}),mxUtils.bind(this,function(ea){this.handleError(ea,mxResources.get("errorLoadingFile"))}))}}));var B=window.opener||window.parent;v="json"==urlParams.proto?JSON.stringify({event:"init"}):urlParams.ready||"ready";B.postMessage(v,"*");if("json"==urlParams.proto){var F=this.editor.graph.openLink;this.editor.graph.openLink=function(I,G,S){F.apply(this,arguments);B.postMessage(JSON.stringify({event:"openLink",
href:I,target:G,allowOpener:S}),"*")}}};EditorUi.prototype.createEmbedButton=function(d,g,n,q){var t="simple"==Editor.currentTheme||"sketch"==Editor.currentTheme||"min"==Editor.currentTheme,v=document.createElement("button");v.setAttribute("title",d+(null!=n?" ("+n+")":""));v.style.marginLeft="6px";mxUtils.write(v,d);t?(v.className=q?"gePrimaryBtn":"",v.style.marginLeft="8px",v.style.padding="6px"):v.className="geBigButton"+(q?"":" geBigStandardButton");mxEvent.addListener(v,"click",g);return v}; | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
z;null!=m&&m()})):null!=m&&m()};Editor.prototype.createGoogleFontCache=function(){var m={},z;for(z in Graph.fontMapping)Graph.isCssFontUrl(z)&&(m[z]=Graph.fontMapping[z]);return m};Editor.prototype.embedExtFonts=function(m){var z=this.graph.getCustomFonts();if(0<z.length){var J=[],O=0;null==this.cachedGoogleFonts&&(this.cachedGoogleFonts=this.createGoogleFontCache());for(var T=mxUtils.bind(this,function(){0==O&&this.embedCssFonts(J.join(""),m)}),W=0;W<z.length;W++)mxUtils.bind(this,function(V,Q){Graph.isCssFontUrl(Q)? | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
[R],"{1} ago"));P.setAttribute("title",N.toLocaleDateString()+" "+N.toLocaleTimeString())}function D(N){var P=document.createElement("img");P.className="geCommentBusyImg";P.src=IMAGE_PATH+"/spin.gif";N.appendChild(P);N.busyImg=P}function A(N){N.style.border="1px solid red";N.removeChild(N.busyImg)}function K(N){N.style.border="";N.removeChild(N.busyImg)}function H(N,P,R,M,p){function y(W,V,Q){var X=document.createElement("li");X.className="geCommentAction";var Z=document.createElement("a");Z.className= | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
Graph.prototype.highlightCells=function(m,z,J,O){for(var T=0;T<m.length;T++)this.highlightCell(m[T],z,J,O)};Graph.prototype.highlightCell=function(m,z,J,O,T){z=null!=z?z:mxConstants.DEFAULT_VALID_COLOR;J=null!=J?J:1E3;m=this.view.getState(m);var W=null;null!=m&&(T=null!=T?T:4,T=Math.max(T+1,mxUtils.getValue(m.style,mxConstants.STYLE_STROKEWIDTH,1)+T),W=new mxCellHighlight(this,z,T,!1),null!=O&&(W.opacity=O),W.highlight(m),window.setTimeout(function(){null!=W.shape&&(mxUtils.setPrefixedStyle(W.shape.node.style, | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
PrintDialog.previewEnabled&&(ba=mxUtils.button(mxResources.get("preview"),function(){m.hideDialog();O(!1)}),ba.className="geBtn",z.appendChild(ba));ba=mxUtils.button(mxResources.get(PrintDialog.previewEnabled?"print":"ok"),function(){m.hideDialog();O(!0)});ba.className="geBtn gePrimaryBtn";z.appendChild(ba);m.editor.cancelFirst||z.appendChild(V);W.appendChild(z);this.container=W};var y=ChangePageSetup.prototype.execute;ChangePageSetup.prototype.execute=function(){null==this.page&&(this.page=this.ui.currentPage);
if(this.page!=this.ui.currentPage){if(null!=this.page.viewState){this.ignoreColor||(this.page.viewState.background=this.color);if(!this.ignoreImage){var m=this.image;null!=m&&null!=m.src&&Graph.isPageLink(m.src)&&(m={originalSrc:m.src});this.page.viewState.backgroundImage=m}null!=this.format&&(this.page.viewState.pageFormat=this.format);null!=this.mathEnabled&&(this.page.viewState.mathEnabled=this.mathEnabled);null!=this.shadowVisible&&(this.page.viewState.shadowVisible=this.shadowVisible)}}else y.apply(this,
arguments),null!=this.mathEnabled&&this.mathEnabled!=this.ui.isMathEnabled()&&(this.ui.setMathEnabled(this.mathEnabled),this.mathEnabled=!this.mathEnabled),null!=this.shadowVisible&&this.shadowVisible!=this.ui.editor.graph.shadowVisible&&(this.ui.editor.graph.setShadowVisible(this.shadowVisible),this.shadowVisible=!this.shadowVisible)};Editor.prototype.useCanvasForExport=!1;try{var C=document.createElement("canvas"),L=new Image;L.onload=function(){try{C.getContext("2d").drawImage(L,0,0);var m=C.toDataURL("image/png"); | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
this.model.root||this.model.isVertex(z[Q])||this.model.isEdge(z[Q])){var X=this.getTagsForCell(z[Q]),Z=!1;if(0<X.length&&(X=X.split(" "),X.length>=m.length)){for(var Y=Z=0;Y<X.length&&Z<W;Y++)null!=V[X[Y]]&&Z++;Z=Z==W}Z&&(1!=O||this.isCellVisible(z[Q]))&&T.push(z[Q])}}return T};Graph.prototype.getAllTags=function(){return this.getTagsForCells(this.model.getDescendants(this.model.getRoot()))};Graph.prototype.getCommonTagsForCells=function(m){for(var z=null,J=[],O=0;O<m.length;O++){var T=this.getTagsForCell(m[O]); | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
U.setBackgroundImage(R.viewState.backgroundImage);U.getGlobalVariable=function(M){return"page"==M&&null!=R?R.getName():"pagenumber"==M?1:P.apply(this,arguments)};document.body.appendChild(U.container);null!=R&&U.model.setRoot(R.root)}}B=null!=B?B:this.getXmlFileData(t,v,G,S);I=null!=I?I:this.getCurrentFile();d=this.createFileData(B,U,I,window.location.href,d,g,n,q,t,F,G);U!=this.editor.graph&&U.container.parentNode.removeChild(U.container);return d};EditorUi.prototype.getHtml=function(d,g,n,q,t,v){v= | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
EditorUi.prototype.getPngFileProperties=function(d){var g=1,n=0;if(null!=d){if(d.hasAttribute("scale")){var q=parseFloat(d.getAttribute("scale"));!isNaN(q)&&0<q&&(g=q)}d.hasAttribute("border")&&(q=parseInt(d.getAttribute("border")),!isNaN(q)&&0<q&&(n=q))}return{scale:g,border:n}};EditorUi.prototype.getEmbeddedPng=function(d,g,n,q,t){try{var v=this.editor.graph,B=null!=v.themes&&"darkTheme"==v.defaultThemeName,F=null;if(null!=n&&0<n.length)v=this.createTemporaryGraph(B?v.getDefaultStylesheet():v.getStylesheet()), | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
var X=this.fill,Z=this.stroke;this.stroke=this.fill=null;var Y=this.configurePointerEvents,aa=W.setStrokeColor;W.setStrokeColor=function(){};var ca=W.setFillColor;W.setFillColor=function(){};Q||null==X||(this.configurePointerEvents=function(){});W.handJiggle.passThrough=!0;O.apply(this,arguments);W.handJiggle.passThrough=!1;W.setFillColor=ca;W.setStrokeColor=aa;this.configurePointerEvents=Y;this.stroke=Z;this.fill=X;W.restore();Q&&null!=X&&(W.addTolerance=function(){})}O.apply(this,arguments);W.addTolerance= | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
function(P){A=P};this.setAutoScroll=function(P){K=P};this.setOpenFill=function(P){H=P};this.setStopClickEnabled=function(P){n=P};this.setSelectInserted=function(P){q=P};this.setSmoothing=function(P){f=P};this.setPerfectFreehandMode=function(P){v=P};this.isPerfectFreehandMode=function(){return v};this.setBrushSize=function(P){t.size=P};this.getBrushSize=function(){return t.size};var B=function(P){g=P;b.getRubberband().setEnabled(!P);b.graphHandler.setSelectEnabled(!P);b.graphHandler.setMoveEnabled(!P); | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
"260px";g.style.textAlign="center";g.style.fontSize="22px";g.style.color="#a0c3ff";mxUtils.write(g,mxResources.get("dragImagesHere"));f.appendChild(g);var n={},q=null,t=null,v=null;K=function(S){"true"!=mxEvent.getSource(S).getAttribute("contentEditable")&&null!=v&&(v(),v=null,mxEvent.consume(S))};mxEvent.addListener(d,"mousedown",K);mxEvent.addListener(d,"pointerdown",K);mxEvent.addListener(d,"touchstart",K);var B=new mxUrlConverter,F=!1;if(null!=c)for(K=0;K<c.length;K++)e=c[K],x(e.data,null,0,0, | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
y,"image(s) from",L.length,"cell(s): ",[L,C])}finally{k.model.endUpdate()}}));c.actions.addAction("testInspect",mxUtils.bind(this,function(){console.log(c,k.getModel())}));c.actions.addAction("testXmlImageExport",mxUtils.bind(this,function(){var p=new mxImageExport,y=k.getGraphBounds(),C=k.view.scale,L=mxUtils.createXmlDocument(),m=L.createElement("output");L.appendChild(m);L=new mxXmlCanvas2D(m);L.translate(Math.floor((1-y.x)/C),Math.floor((1-y.y)/C));L.scale(1/C);var z=0,J=L.save;L.save=function(){z++; | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
d)}),c,this.ui.getCurrentFile()!=e?e.getData():null,H.scale,H.border)}else A(e.meta.sha,Base64.encode(e.getData()))});k?this.getSha(u,x,D,E,mxUtils.bind(this,function(H){e.meta.sha=H;K()}),c):K()};GitHubClient.prototype.pickLibrary=function(e){this.pickFile(e)};GitHubClient.prototype.pickFolder=function(e){this.showGitHubDialog(!1,e,!0)};GitHubClient.prototype.pickFile=function(e){e=null!=e?e:mxUtils.bind(this,function(f){this.ui.loadFile("H"+encodeURIComponent(f))});this.showGitHubDialog(!0,e)}; | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
b.editor.cancelFirst||A.appendChild(K);D.appendChild(A);this.init=function(){Editor.selectFilename(d)};this.container=D},CreateDialog=function(b,e,f,c,k,l,u,x,E,D,A,K,H,d,g,n,q){function t(N,P,R,M){function p(){mxEvent.addListener(y,"click",function(){var J=R;if(u){var O=F.value,T=O.lastIndexOf(".");if(0>e.lastIndexOf(".")&&0>T){J=null!=J?J:U.value;var W="";J==App.MODE_GOOGLE?W=b.drive.extension:J==App.MODE_GITHUB?W=b.gitHub.extension:J==App.MODE_GITLAB?W=b.gitLab.extension:J==App.MODE_TRELLO?W=b.trello.extension:
J==App.MODE_DROPBOX?W=b.dropbox.extension:J==App.MODE_ONEDRIVE?W=b.oneDrive.extension:J==App.MODE_DEVICE&&(W=".drawio");0<=T&&(O=O.substring(0,T));F.value=O+W}}v(R)})}var y=document.createElement("a");y.style.overflow="hidden";var C=document.createElement("img");C.src=N;C.setAttribute("border","0");C.setAttribute("align","absmiddle");C.style.width="60px";C.style.height="60px";C.style.paddingBottom="6px";y.style.display="inline-block";y.className="geBaseButton";y.style.position="relative";y.style.margin= | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
!0===mxSettings.settings.darkMode&&(M=!0);this.installSettings();screen.width<=Editor.smallScreenWidth&&(this.formatWidth=0);"1"==urlParams.prefetchFonts&&d.editor.loadFonts()};var u=EditorUi.prototype.windowResized;EditorUi.prototype.windowResized=function(){if("simple"==Editor.currentTheme){var d=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,g=Editor.smallScreenWidth;null!=this.lastWindowWidth&&this.lastWindowWidth>=g&&d<g?this.isFormatPanelVisible()&&this.toggleFormatPanel(!1):
null!=this.lastWindowWidth&&this.lastWindowWidth<g&&d>=g&&(this.isFormatPanelVisible()||this.toggleFormatPanel(!0));this.lastWindowWidth=d}u.apply(this,arguments)};EditorUi.prototype.initializeInlineEmbedMode=function(){var d=this.sketchFooterMenuElt,g=this.sketchMainMenuElt,n=this.sketchPickerMenuElt,q=this.editor.graph;n.style.transform="";mxEvent.addGestureListeners(this.diagramContainer.parentNode,mxUtils.bind(this,function(G){mxEvent.getSource(G)==this.diagramContainer.parentNode&&(this.embedExitPoint= | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
(q<<5)-q+this.hashValue(d.childNodes[t],g,n)<<0}else if(null!=d&&"function"!==typeof d){d=String(d);g=0;null!=n&&(n.byteCount+=d.length);for(t=0;t<d.length;t++)g=(g<<5)-g+d.charCodeAt(t)<<0;q^=g}return q};EditorUi.prototype.descriptorChanged=function(){};EditorUi.prototype.restoreLibraries=function(){};EditorUi.prototype.saveLibrary=function(d,g,n,q,t,v,B){};EditorUi.prototype.isScratchpadEnabled=function(){return isLocalStorage||mxClient.IS_CHROMEAPP};EditorUi.prototype.toggleScratchpad=function(){this.isScratchpadEnabled()&&
(null==this.scratchpad?StorageFile.getFileContent(this,".scratchpad",mxUtils.bind(this,function(d){null==d&&(d=this.emptyLibraryXml);this.loadLibrary(new StorageLibrary(this,d,".scratchpad"))})):this.closeLibrary(this.scratchpad))};EditorUi.prototype.createLibraryDataFromImages=function(d){if(!Editor.defaultCompressed)for(var g=0;g<d.length;g++)null!=d[g].xml&&"<"!=d[g].xml.charAt(0)&&(d[g].xml=mxUtils.trim(Graph.decompress(d[g].xml)));g=mxUtils.createXmlDocument();var n=g.createElement("mxlibrary"); | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
GitHubFile.prototype.setDescriptorEtag=function(b,e){b.sha=e};GitHubFile.prototype.save=function(b,e,f,c,k,l){this.doSave(this.getTitle(),e,f,c,k,l)};GitHubFile.prototype.saveAs=function(b,e,f){this.doSave(b,e,f)};GitHubFile.prototype.doSave=function(b,e,f,c,k,l){var u=this.meta.name;this.meta.name=b;DrawioFile.prototype.save.apply(this,[null,mxUtils.bind(this,function(){this.meta.name=u;this.saveFile(b,!1,e,f,c,k,l)}),f,c,k])}; | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
function(O){mxEvent.isConsumed(O)||((mxEvent.isControlDown(O)||mxClient.IS_MAC&&mxEvent.isMetaDown(O))&&13==O.keyCode?(J.click(),mxEvent.consume(O)):27==O.keyCode&&(z.click(),mxEvent.consume(O)))}));J.focus();J.className="geCommentEditBtn gePrimaryBtn";m.appendChild(J);P.insertBefore(m,y);C.style.display="none";y.style.display="none";L.focus()}function E(N,P){P.innerText="";N=new Date(N.modifiedDate);var R=b.timeSince(N);null==R&&(R=mxResources.get("lessThanAMinute"));mxUtils.write(P,mxResources.get("timeAgo",
[R],"{1} ago"));P.setAttribute("title",N.toLocaleDateString()+" "+N.toLocaleTimeString())}function D(N){var P=document.createElement("img");P.className="geCommentBusyImg";P.src=IMAGE_PATH+"/spin.gif";N.appendChild(P);N.busyImg=P}function A(N){N.style.border="1px solid red";N.removeChild(N.busyImg)}function K(N){N.style.border="";N.removeChild(N.busyImg)}function H(N,P,R,M,p){function y(W,V,Q){var X=document.createElement("li");X.className="geCommentAction";var Z=document.createElement("a");Z.className= | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
function(d,g){mxSettings.setUi(d);(g=this.doSetCurrentTheme(d)||g)||this.alert(mxResources.get("restartForChangeRequired"))};EditorUi.prototype.isDefaultTheme=function(d){return""==d||"dark"==d||"default"==d||"kennedy"==d||null==d};EditorUi.prototype.doSetCurrentTheme=function(d,g,n){function q(I){return"simple"==I||0==g&&"sketch"==I}g=null!=g?g:150;var t=Editor.currentTheme,v=q(t)&&this.isDefaultTheme(d)||this.isDefaultTheme(t)&&q(d),B=v&&"sketch"!=d&&"sketch"!=t;if(v&&!this.themeSwitching){Editor.currentTheme= | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
n)});F()};GitHubClient.prototype.logout=function(){this.clearPersistentToken();this.setUser(null);b=null}})();TrelloFile=function(b,e,f){DrawioFile.call(this,b,e);this.meta=f;this.saveNeededCounter=0};mxUtils.extend(TrelloFile,DrawioFile);TrelloFile.prototype.getHash=function(){return"T"+encodeURIComponent(this.meta.compoundId)};TrelloFile.prototype.getMode=function(){return App.MODE_TRELLO};TrelloFile.prototype.isAutosave=function(){return!0};TrelloFile.prototype.getTitle=function(){return this.meta.name};TrelloFile.prototype.isRenamable=function(){return!1};TrelloFile.prototype.getSize=function(){return this.meta.bytes}; | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
EditorUi.prototype.createParentLookup=function(b,e){function f(D){var A=c[D];null==A&&(A={inserted:[],moved:{}},c[D]=A);return A}var c={};if(null!=e[EditorUi.DIFF_INSERT])for(var k=0;k<e[EditorUi.DIFF_INSERT].length;k++){var l=e[EditorUi.DIFF_INSERT][k],u=null!=l.parent?l.parent:"",x=null!=l.previous?l.previous:"";f(u).inserted[x]=l}if(null!=e[EditorUi.DIFF_UPDATE])for(var E in e[EditorUi.DIFF_UPDATE])l=e[EditorUi.DIFF_UPDATE][E],null!=l.previous&&(u=l.parent,null==u&&(k=b.getCell(E),null!=k&&(k=
b.getParent(k),null!=k&&(u=k.getId()))),null!=u&&(f(u).moved[l.previous]=E));return c}; | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
method:"PUT",params:m})})));try{EditorUi.logEvent({category:f.convertedFrom+"-CONVERT-FILE-"+f.getHash(),action:"from_"+B.id+"."+B.headRevisionId+"-to_"+f.desc.id+"."+f.desc.headRevisionId,label:null!=this.user?"user_"+this.user.id:"nouser"+(null!=f.sync?"-client_"+f.sync.clientId:"nosync")})}catch(m){}}}catch(m){d(m)}}),y=mxUtils.bind(this,function(L,m){f.saveLevel=4;try{null!=D&&(I.properties=D);var z=E||f.constructor!=DriveFile||"manual"!=DrawioFile.SYNC&&"auto"!=DrawioFile.SYNC?null:f.getCurrentEtag(), | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
arguments);this.enumerationState=0};var S=mxGraphView.prototype.stateValidated;mxGraphView.prototype.stateValidated=function(m){null!=m.shape&&this.redrawEnumerationState(m);return S.apply(this,arguments)};mxGraphView.prototype.createEnumerationValue=function(m){m=decodeURIComponent(mxUtils.getValue(m.style,"enumerateValue",""));""==m&&(m=++this.enumerationState);return'<div style="padding:2px;border:1px solid gray;background:yellow;border-radius:2px;">'+mxUtils.htmlEntities(m)+"</div>"};mxGraphView.prototype.redrawEnumerationState= | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
this.canvas.begin=this.originalBegin;this.canvas.end=this.originalEnd;this.canvas.rect=this.originalRect;this.canvas.ellipse=this.originalEllipse;this.canvas.roundrect=this.originalRoundrect};mxShape.prototype.createRoughCanvas=function(W){return new m(W,Editor.createRoughCanvas(W),this)};var z=mxShape.prototype.createHandJiggle;mxShape.prototype.createHandJiggle=function(W){return this.outline||null==this.style||"0"==mxUtils.getValue(this.style,"sketch","0")?z.apply(this,arguments):"comic"==mxUtils.getValue(this.style, | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
mxResources.get("mermaid")+"...","mermaid");H.showDialog(n.container,620,420,!0,!1);n.init()}));var d="horizontalFlow verticalFlow - horizontalTree verticalTree radialTree - organic circle".split(" "),g=function(n,q,t,v){n.addItem(t,null,mxUtils.bind(this,function(){var B=new CreateGraphDialog(H,t,v);H.showDialog(B.container,620,420,!0,!1);B.init()}),q)};this.put("insertLayout",new Menu(mxUtils.bind(this,function(n,q){for(var t=0;t<d.length;t++)"-"==d[t]?n.addSeparator(q):g(n,q,mxResources.get(d[t])+ | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
v.descriptorChanged=function(){U.apply(this,arguments);var Q=v.getCurrentFile();if(null!=Q&&null!=Q.getTitle()){var X=Q.getMode();"google"==X?X="googleDrive":"github"==X?X="gitHub":"gitlab"==X?X="gitLab":"onedrive"==X&&(X="oneDrive");X=mxResources.get(X);F.setAttribute("title",Q.getTitle()+(null!=X?" ("+X+")":""))}else F.removeAttribute("title")};v.setStatusText(v.editor.getStatus());F.appendChild(v.statusContainer);v.buttonContainer=document.createElement("div");v.buttonContainer.style.cssText="display:flex;justify-content:flex-end;padding-right:10px;gap:6px;white-space:nowrap;background-color:inherit;align-items:center;min-width:0;margin-left:auto;"; | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
message:this.getErrorMessage(e,mxResources.get("error")+" "+e.getStatus())})}),mxUtils.bind(this,function(H){window.clearTimeout(A);D&&c(H)}))}),x=mxUtils.bind(this,function(E){null==this.user?this.updateUser(function(){x(!0)},c,E):u(E)});null==b?this.authenticate(function(){x(!0)},c):x(!1)};GitHubClient.prototype.getLibrary=function(e,f,c){this.getFile(e,f,c,!0)};GitHubClient.prototype.getSha=function(e,f,c,k,l,u,x){var E="&t="+(new Date).getTime();e=new mxXmlRequest(this.baseUrl+"/repos/"+e+"/"+ | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
p&&(M=this.getDeletableCells(this.addAllEdges(M)));for(var y=[],C=0;C<M.length;C++){var L=M[C];n.isEdge(L)&&l(L)&&(y.push(L),L=n.getTerminal(L,!1));if(c(L)){var m=[];g.traverse(L,!0,function(z,J){var O=null!=J&&g.isTreeEdge(J);O&&m.push(J);(null==J||O)&&m.push(z);return null==J||O});0<m.length&&(y=y.concat(m),L=g.getIncomingTreeEdges(M[C]),M=M.concat(L))}else null!=L&&y.push(M[C])}M=y;return t.apply(this,arguments)};d.hoverIcons.getStateAt=function(M,p,y){return c(M.cell)?null:this.graph.view.getState(this.graph.getCellAt(p,
y))};var v=g.duplicateCells;g.duplicateCells=function(M,p){M=null!=M?M:this.getSelectionCells();for(var y=M.slice(0),C=0;C<y.length;C++){var L=g.view.getState(y[C]);if(null!=L&&c(L.cell)){var m=g.getIncomingTreeEdges(L.cell);for(L=0;L<m.length;L++)mxUtils.remove(m[L],M)}}this.model.beginUpdate();try{var z=v.call(this,M,p);if(z.length==M.length)for(C=0;C<M.length;C++)if(c(M[C])){var J=g.getIncomingTreeEdges(z[C]);m=g.getIncomingTreeEdges(M[C]);if(0==J.length&&0<m.length){var O=this.cloneCell(m[0]); | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
message:this.getErrorMessage(e,mxResources.get("error")+" "+e.getStatus())})}),mxUtils.bind(this,function(H){window.clearTimeout(A);D&&c(H)}))}),x=mxUtils.bind(this,function(E){null==this.user?this.updateUser(function(){x(!0)},c,E):u(E)});null==b?this.authenticate(function(){x(!0)},c):x(!1)};GitHubClient.prototype.getLibrary=function(e,f,c){this.getFile(e,f,c,!0)};GitHubClient.prototype.getSha=function(e,f,c,k,l,u,x){var E="&t="+(new Date).getTime();e=new mxXmlRequest(this.baseUrl+"/repos/"+e+"/"+
f+"/contents/"+c+"?ref="+k+E,null,"HEAD");this.executeRequest(e,mxUtils.bind(this,function(D){try{l(D.request.getResponseHeader("Etag").match(/"([^"]+)"/)[1])}catch(A){u(A)}}),u,null,x)};GitHubClient.prototype.getFile=function(e,f,c,k,l){k=null!=k?k:!1;var u=e.split("/"),x=u[0],E=u[1],D=u[2];e=u.slice(3,u.length).join("/");u=/\.png$/i.test(e);if(!l&&(/\.v(dx|sdx?)$/i.test(e)||/\.gliffy$/i.test(e)||/\.pdf$/i.test(e)||!this.ui.useCanvasForExport&&u))if(null!=b){l=this.baseUrl+"/repos/"+x+"/"+E+"/contents/"+ | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
Da.substring(0,1).toUpperCase()+Da.substring(1));18<Da.length&&(Da=Da.substring(0,18)+"…");return Da+(null!=va?" ("+va.length+")":"")}function ma(Da,va,Ma){mxEvent.addListener(va,"click",function(){Ha!=va&&(null!=Ha&&(Ha.style.backgroundColor=""),Ha=va,Ha.style.backgroundColor=u,ha.scrollTop=0,ha.innerText="",y=0,null!=ra[Da].content?(ha.appendChild(ra[Da].content),da=ea,Ia=null,null!=ra[Da].content.init&&ra[Da].content.init()):(Ia=Ma?ua[Da][Ma]:ra[Da],W=null,v(!1)))});null!=urlParams["smart-template"]&&
"smartTemplate"==Da&&va.click()}Qa&&(Qa=!1,mxEvent.addListener(ha,"scroll",function(Da){ha.scrollTop+ha.clientHeight>=ha.scrollHeight&&(v(),mxEvent.consume(Da))}));if(0<Ea){var na=document.createElement("div");na.style.cssText="font-weight: bold;background: #f9f9f9;padding: 5px 0 5px 0;text-align: center;";mxUtils.write(na,mxResources.get("custom"));ta.appendChild(na);for(var oa in Ga){var ia=document.createElement("div");na=oa;var ja=Ga[oa];18<na.length&&(na=na.substring(0,18)+"…");ia.style.cssText= | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
EditorUi.prototype.isObjectEqual=function(b,e,f){if(null==b&&null==e)return!0;if(null!=b?null==e:null!=e)return!1;var c=function(k,l){return null==f||f[k]!=l?!0===l?1:l:void 0};return JSON.stringify(b,c)==JSON.stringify(e,c)};var mxSettings={currentVersion:18,defaultFormatWidth:600>screen.width?"0":"240",key:Editor.settingsKey,getLanguage:function(){return mxSettings.settings.language},setLanguage:function(b){mxSettings.settings.language=b},isMainSettings:function(){return".drawio-config"==mxSettings.key},getMainSettings:function(){var b=localStorage.getItem(".drawio-config");null==b?(b=mxSettings.getDefaults(),delete b.isNew):(b=JSON.parse(b),b.version=mxSettings.currentVersion);return b},getUi:function(){return mxSettings.isMainSettings()? | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
this.state.y+this.state.height+(40>this.state.height?10:0)+2+"px")};var P=mxVertexHandler.prototype.setHandlesVisible;mxVertexHandler.prototype.setHandlesVisible=function(M){P.apply(this,arguments);null!=this.moveHandle&&(this.moveHandle.style.display=M?"":"none")};var R=mxVertexHandler.prototype.destroy;mxVertexHandler.prototype.destroy=function(M,p){R.apply(this,arguments);null!=this.moveHandle&&(this.moveHandle.parentNode.removeChild(this.moveHandle),this.moveHandle=null)}};if("undefined"!==typeof Sidebar){var f= | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
Editor.createRoughCanvas=function(m){var z=rough.canvas({getContext:function(){return m}});z.draw=function(J){var O=J.sets||[];J=J.options||this.getDefaultOptions();for(var T=0;T<O.length;T++){var W=O[T];switch(W.type){case "path":null!=J.stroke&&this._drawToContext(m,W,J);break;case "fillPath":this._drawToContext(m,W,J);break;case "fillSketch":this.fillSketch(m,W,J)}}};z.fillSketch=function(J,O,T){var W=m.state.strokeColor,V=m.state.strokeWidth,Q=m.state.strokeAlpha,X=m.state.dashed,Z=T.fillWeight;
0>Z&&(Z=T.strokeWidth/2);m.setStrokeAlpha(m.state.fillAlpha);m.setStrokeColor(T.fill||"");m.setStrokeWidth(Z);m.setDashed(!1);this._drawToContext(J,O,T);m.setDashed(X);m.setStrokeWidth(V);m.setStrokeColor(W);m.setStrokeAlpha(Q)};z._drawToContext=function(J,O,T){J.begin();for(var W=0;W<O.ops.length;W++){var V=O.ops[W],Q=V.data;switch(V.op){case "move":J.moveTo(Q[0],Q[1]);break;case "bcurveTo":J.curveTo(Q[0],Q[1],Q[2],Q[3],Q[4],Q[5]);break;case "lineTo":J.lineTo(Q[0],Q[1])}}J.end();"fillPath"===O.type&& | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
DrawioFile.prototype.fileSaved=function(b,e,f,c,k,l,u){this.lastSaved=new Date;this.ageStart=null;this.stats.saved++;try{this.invalidChecksum=this.inConflictState=!1;l=null!=l?l:this.ui.getPagesForXml(b);try{null==this.sync||this.isOptimisticSync()?(this.setShadowPages(l),null!=this.sync&&(this.sync.lastModified=this.getLastModifiedDate(),this.sync.resetUpdateStatusThread(),this.isRealtime()&&this.sync.scheduleCleanup()),null!=f&&f()):this.sync.fileSaved(l,e,f,c,k,u)}catch(D){this.invalidChecksum=
this.inConflictState=!0;this.descriptorChanged();null!=c&&c(D);try{if(this.errorReportsEnabled)this.sendErrorReport("Error in fileSaved",null,D);else{var x=this.getCurrentUser(),E=null!=x?x.id:"unknown";EditorUi.logError("Error in fileSaved",null,this.getMode()+"."+this.getId(),E,D)}}catch(A){}}EditorUi.debug("DrawioFile.fileSaved",[this],"savedData",[b],"desc",[e],"inConflictState",this.inConflictState,"invalidChecksum",this.invalidChecksum)}catch(D){this.descriptorChanged(),null!=c&&c(D)}}; | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
g.view.validate());N=L;P=C}));var R=g.labelLinkClicked;g.labelLinkClicked=function(C,L,m){var z=L.getAttribute("href");if(null==z||!g.isCustomLink(z)||!mxEvent.isTouchEvent(m)&&mxEvent.isPopupTrigger(m))R.apply(this,arguments);else{if(!g.isEnabled()||null!=C&&g.isCellLocked(C.cell))g.customLinkClicked(z),g.getRubberband().reset();mxEvent.consume(m)}};this.editor.getOrCreateFilename=function(){var C=d.defaultFilename,L=d.getCurrentFile();null!=L&&(C=null!=L.getTitle()?L.getTitle():C);return C};var M= | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
function(){b.spinner.stop();if(null==b.linkPicker){var B=b.drive.createLinkPicker();b.linkPicker=B.setCallback(function(F){LinkDialog.filePicked(F)}).build()}b.linkPicker.setVisible(!0)}))});"undefined"!=typeof Dropbox&&"undefined"!=typeof Dropbox.choose&&x(IMAGE_PATH+"/dropbox-logo.svg",mxResources.get("dropbox"),function(){Dropbox.choose({linkType:"direct",cancel:function(){},success:function(B){A.value=B[0].link;A.focus()}})});null!=b.oneDrive&&x(IMAGE_PATH+"/onedrive-logo.svg",mxResources.get("oneDrive"), | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
g.getCurrentCellStyle(M).treeMoving);return p}function l(M){var p=!1;null!=M&&(M=n.getParent(M),p=g.view.getState(M),p="tree"==(null!=p?p.style:g.getCellStyle(M)).containerType);return p}function u(M){var p=!1;null!=M&&(M=n.getParent(M),p=g.view.getState(M),g.view.getState(M),p=null!=(null!=p?p.style:g.getCellStyle(M)).childLayout);return p}function x(M){M=g.view.getState(M);if(null!=M){var p=g.getIncomingTreeEdges(M.cell);if(0<p.length&&(p=g.view.getState(p[0]),null!=p&&(p=p.absolutePoints,null!=
p&&0<p.length&&(p=p[p.length-1],null!=p)))){if(p.y==M.y&&Math.abs(p.x-M.getCenterX())<M.width/2)return mxConstants.DIRECTION_SOUTH;if(p.y==M.y+M.height&&Math.abs(p.x-M.getCenterX())<M.width/2)return mxConstants.DIRECTION_NORTH;if(p.x>M.getCenterX())return mxConstants.DIRECTION_WEST}}return mxConstants.DIRECTION_EAST}function E(M,p){p=null!=p?p:!0;g.model.beginUpdate();try{var y=g.model.getParent(M),C=g.getIncomingTreeEdges(M),L=g.cloneCells([C[0],M]);g.model.setTerminal(L[0],g.model.getTerminal(C[0], | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
k,null,4>=u.length)};GitLabClient.prototype.checkExists=function(e,f,c){this.getFile(e,mxUtils.bind(this,function(k){if(f){var l=this.ui.spinner.pause();this.ui.confirm(mxResources.get("replaceIt",[e]),function(){l();c(!0,k.getCurrentEtag())},function(){l();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(k){c(!0)}),null,!0)};GitLabClient.prototype.writeFile=function(e, | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
2});var t=null,v=null,B=null,F=null,I=null,G=null,S=null;c.actions.addAction("testPerformance",mxUtils.bind(this,function(){null!=t?(k.view.revalidate=t,t=null):(t=k.view.revalidate,k.view.revalidate=function(){var p=Date.now(),y=t.apply(this,arguments);EditorUi.debug("[Performance] mxGraphView.revalidate",[this],"time",Date.now()-p+" ms","args",arguments);return y});null!=v?(c.selectPage=v,v=null):(v=c.selectPage,c.selectPage=function(){var p=Date.now(),y=v.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.selectPage",
[this],"time",Date.now()-p+" ms","args",arguments);return y});null!=B?(c.diffPages=B,B=null):(B=c.diffPages,c.diffPages=function(){var p=Date.now(),y=B.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.diffPages",[this],"time",Date.now()-p+" ms","args",arguments);return y});null!=F?(c.patchPages=F,F=null):(F=c.patchPages,c.patchPages=function(){var p=Date.now(),y=F.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.patchPages",[this],"time",Date.now()-p+" ms","args",arguments); | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.