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 |
|---|---|---|---|---|---|---|---|
N||X});0<l.length&&(da=da.concat(l),V=f.getIncomingTreeEdges(aa[P]),aa=aa.concat(V))}else null!=V&&da.push(aa[P])}aa=da;return z.apply(this,arguments)};d.hoverIcons.getStateAt=function(aa,S,da){return p(aa.cell)?null:this.graph.view.getState(this.graph.getCellAt(S,da))};var C=f.duplicateCells;f.duplicateCells=function(aa,S){aa=null!=aa?aa:this.getSelectionCells();for(var da=aa.slice(0),P=0;P<da.length;P++){var V=f.view.getState(da[P]);if(null!=V&&p(V.cell)){var l=f.getIncomingTreeEdges(V.cell);for(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 |
PrintDialog.createPrintPreview=function(b,e,g,p,y,q,E){e=new mxPrintPreview(b,e,g,p,y,q);e.title=mxResources.get("preview");e.addPageCss=!mxClient.IS_SF;e.printBackgroundImage=!0;e.autoOrigin=E;b=b.background;if(null==b||""==b||b==mxConstants.NONE)b="#ffffff";e.backgroundColor=b;var L=e.writeHead;e.writeHead=function(T){L.apply(this,arguments);T.writeln('<style type="text/css">');T.writeln("@media screen {");T.writeln(" body > div { padding:30px;box-sizing:content-box; }");T.writeln("}");T.writeln("</style>")};
return e};PrintDialog.previewEnabled=!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 |
b.container.scrollLeft)<O&&Math.abs(this.scrollTop-b.container.scrollTop)<O&&Math.abs(this.startX-N.getGraphX())<O&&Math.abs(this.startY-N.getGraphY())<O&&(0<parseFloat(g.chromelessToolbar.style.opacity||0)?k():u(30))}})}this.editor.editable||this.addChromelessClickHandler()}else if(this.editor.extendCanvas){var H=b.view.validate,ka=new mxPoint,fa=null;b.view.validate=function(){if(null!=b.container&&mxUtils.hasScrollbars(b.container)){if(null!=g.currentPage&&fa!=g.currentPage){fa=g.currentPage;var A=
b.getBoundingBoxFromGeometry(b.model.getCells(),!0);null==A&&(A=new mxRectangle(b.view.translate.x*b.view.scale,b.view.translate.y*b.view.scale));A=b.getPageLayout(A,ka,1);var N=b.getDefaultTranslate(A);this.x0=A.x;this.y0=A.y;if(N.x!=this.translate.x||N.y!=this.translate.y)this.invalidate(),this.translate.x=N.x,this.translate.y=N.y}N=b.getPagePadding();var X=b.getPageSize();A=N.x-(this.x0||0)*X.width;N=N.y-(this.y0||0)*X.height;if(this.translate.x!=A||this.translate.y!=N)this.invalidate(),this.translate.x=
A,this.translate.y=N}H.apply(this,arguments)};if(!b.isViewer()){var ca=b.sizeDidChange;b.sizeDidChange=function(){if(null!=this.container&&mxUtils.hasScrollbars(this.container)){this.updateMinimumSize();if(!this.autoTranslate){var A=this.getPageLayout(),N=this.getDefaultTranslate(A),X=this.view.translate.x,U=this.view.translate.y;if(N.x!=X||N.y!=U){this.view.x0=A.x;this.view.y0=A.y;this.autoTranslate=!0;this.view.setTranslate(N.x,N.y);this.container.scrollLeft+=Math.round((N.x-X)*this.view.scale); | 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(c,m,v,n,t){mxEllipse.prototype.paintVertexShape.apply(this,arguments);c.setShadow(!1);c.begin();c.moveTo(m+.145*n,v+.145*t);c.lineTo(m+.855*n,v+.855*t);c.end();c.stroke();c.begin();c.moveTo(m+.855*n,v+.145*t);c.lineTo(m+.145*n,v+.855*t);c.end();c.stroke()};mxCellRenderer.registerShape("sumEllipse",ea);mxUtils.extend(la,mxRhombus);la.prototype.paintVertexShape=function(c,m,v,n,t){mxRhombus.prototype.paintVertexShape.apply(this,arguments);c.setShadow(!1);c.begin();c.moveTo(m,v+t/2);c.lineTo(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 |
this.getCursorForMouseEvent=function(S){var da=null==S.state&&null!=S.sourceState&&this.isCellLocked(S.sourceState.cell);return this.getCursorForCell(da?S.sourceState.cell:S.getCell())};var fa=this.getCursorForCell;this.getCursorForCell=function(S){if(!this.isEnabled()||this.isCellLocked(S)){if(null!=this.getClickableLinkForCell(S))return"pointer";if(this.isCellLocked(S))return"default"}return fa.apply(this,arguments)};this.selectRegion=function(S,da){var P=mxEvent.isAltDown(da)?S:null;S=this.getCells(S.x,
S.y,S.width,S.height,null,null,P,null,!0);if(this.isToggleEvent(da))for(P=0;P<S.length;P++)this.selectCellForEvent(S[P],da);else this.selectCellsForEvent(S,da);return S};var ca=this.graphHandler.shouldRemoveCellsFromParent;this.graphHandler.shouldRemoveCellsFromParent=function(S,da,P){return this.graph.isCellSelected(S)?!1:ca.apply(this,arguments)};var ja=this.updateMouseEvent;this.updateMouseEvent=function(S){S=ja.apply(this,arguments);null!=S.state&&this.isCellLocked(this.getLayerForCell(S.getCell()))&& | 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.connectionHandler.insertEdge=function(S,da,P,V,l,A){var N=mxConnectionHandler.prototype.insertEdge.apply(this,arguments);null!=V&&this.graph.applyNewEdgeStyle(V,[N]);return N};var f=new mxRubberband(this);this.getRubberband=function(){return f};var k=(new Date).getTime(),u=0,z=this.connectionHandler.mouseMove;this.connectionHandler.mouseMove=function(){var S=this.currentState;z.apply(this,arguments);S!=this.currentState?(k=(new Date).getTime(),u=0):u=(new Date).getTime()-k};var 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 |
"transparent";this.graph.transparentBackground=!1;if(this.responsive&&this.graph.dialect==mxConstants.DIALECT_SVG){var E=this.graph.view.getDrawPane().ownerSVGElement;this.graph.view.getCanvas();null!=this.graphConfig.border?E.style.padding=this.graphConfig.border+"px":""==b.style.padding&&(E.style.padding="8px");E.style.boxSizing="border-box";E.style.overflow="visible";this.graph.fit=function(){};this.graph.sizeDidChange=function(){var k=this.view.graphBounds,u=this.view.translate;E.setAttribute("viewBox",
k.x+u.x-this.panDx+" "+(k.y+u.y-this.panDy)+" "+(k.width+1)+" "+(k.height+1));this.container.style.backgroundColor=E.style.backgroundColor;this.fireEvent(new mxEventObject(mxEvent.SIZE,"bounds",k))}}this.graphConfig.move&&(this.graph.isMoveCellsEvent=function(k){return!0});this.lightboxClickEnabled&&(b.style.cursor="pointer");this.editor=new Editor(!0,null,null,this.graph);this.editor.editBlankUrl=this.editBlankUrl;this.graph.lightbox=!0;this.graph.centerZoom=!1;this.graph.autoExtend=!1;this.graph.autoScroll= | 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,t){m=t*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));c.moveTo(0,0);c.lineTo(n,0);c.lineTo(n,t-m/2);c.quadTo(3*n/4,t-1.4*m,n/2,t-m/2);c.quadTo(n/4,t-m*(1-1.4),0,t-m/2);c.lineTo(0,m/2);c.close();c.end()};mxCellRenderer.registerShape("document",F);var lb=mxCylinder.prototype.getCylinderSize;mxCylinder.prototype.getCylinderSize=function(c,m,v,n){var t=mxUtils.getValue(this.style,"size");return null!=t?n*Math.max(0,Math.min(1,t)):lb.apply(this,arguments)};mxCylinder.prototype.getLabelMargins= | 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(c,m,v,n,t){var B=mxUtils.getValue(this.style,"fixedSize",this.fixedSize),D=parseFloat(mxUtils.getValue(this.style,"size",this.size));D=B?Math.max(0,Math.min(n,D)):n*Math.max(0,Math.min(1,D));this.isRounded&&(B=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100,D=Math.max(D,Math.min(n*B,t*B)));D=Math.round(D);c.begin();c.moveTo(m+D,v);c.lineTo(m+D,v+t);c.moveTo(m+n-D,v);c.lineTo(m+n-D,v+t);c.end();c.stroke();mxRectangleShape.prototype.paintForeground.apply(this,
arguments)};mxCellRenderer.registerShape("process",ca);mxCellRenderer.registerShape("process2",ca);mxUtils.extend(ja,mxRectangleShape);ja.prototype.paintBackground=function(c,m,v,n,t){c.setFillColor(mxConstants.NONE);c.rect(m,v,n,t);c.fill()};ja.prototype.paintForeground=function(c,m,v,n,t){};mxCellRenderer.registerShape("transparent",ja);mxUtils.extend(ma,mxHexagon);ma.prototype.size=30;ma.prototype.position=.5;ma.prototype.position2=.5;ma.prototype.base=20;ma.prototype.getLabelMargins=function(){return new mxRectangle(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 |
this.sketchWrapperElt.parentNode.removeChild(this.sketchWrapperElt))};EditorUi.prototype.createMainMenuForTheme=function(d){if(("simple"==d||"sketch"==d)&&null==this.sketchMainMenuElt){this.sketchMainMenuElt=document.createElement("div");this.sketchMainMenuElt.style.cssText="position:absolute;padding:9px 12px;overflow:hidden;white-space:nowrap;user-select:none;box-sizing:border-box;";var f=this.createMenu("simple"==d?"view":"diagram","simple"==d?Editor.thinViewImage:Editor.menuImage);this.sketchMainMenuElt.appendChild(f);
"simple"==d?(this.sketchMainMenuElt.className="geToolbarContainer geSimpleMainMenu",this.sketchMainMenuElt.style.display="flex",this.sketchMainMenuElt.style.height="52px",this.sketchMainMenuElt.style.justifyContent="start",this.sketchMainMenuElt.style.alignItems="center",this.sketchMainMenuElt.style.top="0px",this.sketchMainMenuElt.style.left="0px",this.sketchMainMenuElt.style.right="0px",this.sketchMainMenuElt.style.gap="10px",f.style.flexShrink="0",f.style.opacity="0.7"):(this.sketchMainMenuElt.appendChild(this.createMenuItem("delete",
Editor.trashImage)),this.sketchMainMenuElt.appendChild(this.createMenuItem("undo",Editor.undoImage)),this.sketchMainMenuElt.appendChild(this.createMenuItem("redo",Editor.redoImage)),this.sketchMainMenuElt.className="geToolbarContainer",this.sketchMainMenuElt.style.borderRadius="4px",this.sketchMainMenuElt.style.height="44px",this.sketchMainMenuElt.style.left="10px",this.sketchMainMenuElt.style.top="10px",this.sketchMainMenuElt.style.zIndex="1");this.sketchWrapperElt.appendChild(this.sketchMainMenuElt)}}; | 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.body.clientHeight,(1200>(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)||708>d)&&this.formatWindow.window.toggleMinimized()):this.formatWindow.window.setVisible(!1)}};var L=EditorUi.prototype.toggleFormatPanel;EditorUi.prototype.toggleFormatPanel=function(d){var f=this.formatWindow;null!=f?f.window.setVisible(null!=d?d:!this.isFormatPanelVisible()):L.apply(this,arguments)};EditorUi.prototype.toggleShapesPanel=function(d){var f=EditorUi.prototype.hsplitPosition;
0==f&&(f=134);var k=this.hsplitPosition,u=mxUtils.bind(this,function(){this.hsplitPosition=z;this.refresh();this.diagramContainer.scrollLeft-=k-this.hsplitPosition}),z=d?f:0;mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform",0==z?"translateX(0)":"translateX(-100%)");0!=z&&u();window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform",0==z?"translateX(-100%)":"translateX(0)");mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transition",
"transform 0.3s ease-in-out");mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform-origin","top left");window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transition",null);mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform",null);mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform-origin",null);0==z&&u()}),300)}),10)};EditorUi.prototype.isShapesPanelVisible=function(){return 0<this.hsplitPosition};var T=EditorUi.prototype.isFormatPanelVisible; | 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);C+=parseFloat(M.style[d?mxConstants.STYLE_SOURCE_PERIMETER_SPACING:mxConstants.STYLE_TARGET_PERIMETER_SPACING]||0);f=this.getPerimeterPoint(R,f,0==u&&k,C);0!=u&&(C=Math.cos(u),F=Math.sin(u),f=mxUtils.getRotatedPoint(f,C,F,z));M.setAbsoluteTerminalPoint(this.snapToAnchorPoint(M,R,W,d,f),d)}};mxGraphView.prototype.snapToAnchorPoint=function(M,R,W,d,f){if(null!=R&&null!=M){M=this.graph.getAllConnectionConstraints(R);d=W=null;if(null!=M)for(var k=0;k<M.length;k++){var u=this.graph.getConnectionPoint(R,
M[k]);if(null!=u){var z=(u.x-f.x)*(u.x-f.x)+(u.y-f.y)*(u.y-f.y);if(null==d||z<d)W=u,d=z}}null!=W&&(f=W)}return f};var T=mxStencil.prototype.evaluateTextAttribute;mxStencil.prototype.evaluateTextAttribute=function(M,R,W){var d=T.apply(this,arguments);"1"==M.getAttribute("placeholders")&&null!=W.state&&(d=W.state.view.graph.replacePlaceholders(W.state.cell,d));return d};var G=mxCellRenderer.prototype.createShape;mxCellRenderer.prototype.createShape=function(M){if(null!=M.style&&"undefined"!==typeof pako){var R= | 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 |
HoverIcons.prototype.createArrow=function(b,e,g){var p=null;p=mxUtils.createImage(b.src);p.style.width=b.width+"px";p.style.height=b.height+"px";p.style.padding=this.tolerance+"px";null!=e&&p.setAttribute("title",e);p.style.position="absolute";p.style.cursor=this.cssCursor;mxEvent.addGestureListeners(p,mxUtils.bind(this,function(y){null==this.currentState||this.isResetEvent(y)||(this.mouseDownPoint=mxUtils.convertPoint(this.graph.container,mxEvent.getClientX(y),mxEvent.getClientY(y)),this.drag(y,
this.mouseDownPoint.x,this.mouseDownPoint.y),this.activeArrow=p,this.setDisplay("none"),mxEvent.consume(y))}));mxEvent.redirectMouseEvents(p,this.graph,this.currentState);mxEvent.addListener(p,"mouseenter",mxUtils.bind(this,function(y){mxEvent.isMouseEvent(y)&&(null!=this.activeArrow&&this.activeArrow!=p&&mxUtils.setOpacity(this.activeArrow,this.inactiveOpacity),this.graph.connectionHandler.constraintHandler.reset(),mxUtils.setOpacity(p,100),this.activeArrow=p,this.fireEvent(new mxEventObject("focus",
"arrow",p,"direction",g,"event",y)))}));mxEvent.addListener(p,"mouseleave",mxUtils.bind(this,function(y){mxEvent.isMouseEvent(y)&&this.fireEvent(new mxEventObject("blur","arrow",p,"direction",g,"event",y));this.graph.isMouseDown||this.resetActiveArrow()}));return p};HoverIcons.prototype.resetActiveArrow=function(){null!=this.activeArrow&&(mxUtils.setOpacity(this.activeArrow,this.inactiveOpacity),this.activeArrow=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 |
Editor=function(b,e,g,p,y){mxEventSource.call(this);this.chromeless=null!=b?b:this.chromeless;this.initStencilRegistry();this.graph=p||this.createGraph(e,g);this.editable=null!=y?y:!b;this.undoManager=this.createUndoManager();this.status="";this.getOrCreateFilename=function(){return this.filename||mxResources.get("drawing",[Editor.pageCounter])+".xml"};this.getFilename=function(){return this.filename};this.setStatus=function(q,E){this.status=q;this.statusFunction=E;this.fireEvent(new mxEventObject("statusChanged"))}; | 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){y.apply(this,arguments);this.graph.model.isEdge(M.cell)&&1!=M.style[mxConstants.STYLE_CURVED]&&this.updateLineJumps(M)};mxGraphView.prototype.updateLineJumps=function(M){var R=M.absolutePoints;if(Graph.lineJumpsEnabled){var W=null!=M.routedPoints,d=null;if(null!=R&&null!=this.validEdges&&"none"!==mxUtils.getValue(M.style,"jumpStyle","none")){var f=function(ja,ma,aa){var S=new mxPoint(ma,aa);S.type=ja;d.push(S);S=null!=M.routedPoints?M.routedPoints[d.length-1]:null;return null==S||S.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 |
"javascript:void(0);"))}};Graph.prototype.createSvgCanvas=function(x){x=new mxSvgCanvas2D(x);x.minStrokeWidth=this.cellRenderer.minSvgStrokeWidth;x.pointerEvents=!0;return x};Graph.prototype.getSelectedTextBlocks=function(){function x(oa){if(oa.firstChild)return oa.firstChild;for(;oa;){if(oa.nextSibling)return oa.nextSibling;oa=oa.parentNode}}function J(oa){var wa=oa.startContainer,sa=oa.endContainer;oa=oa.commonAncestorContainer;var ua=[],Fa;for(Fa=wa.parentNode;Fa&&(ua.push(Fa),Fa!=oa);Fa=Fa.parentNode);
ua.reverse();for(Fa=wa;Fa&&(ua.push(Fa),Fa!=sa);Fa=x(Fa));return ua}var Q=[this.getSelectedElement()];if(window.getSelection){var Y=window.getSelection();Y.getRangeAt&&Y.rangeCount&&(Q=J(Y.getRangeAt(0)))}Y=[];for(var ea=0;ea<Q.length;ea++)for(var la=Q[ea];null!=this.cellEditor.textarea&&this.cellEditor.textarea.contains(la)&&la!=this.cellEditor.textarea&&null!=la.parentNode;)if(la.nodeType==mxConstants.NODETYPE_ELEMENT&&"block"==mxUtils.getCurrentStyle(la).display){0>mxUtils.indexOf(Y,la)&&Y.push(la); | 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 |
Fa;Ua<$a;Ua+=Q)Ea.drawImage(sa,ua/ia,Ua/ia);Va()}catch(Ra){null!=U&&U(Ra)}};sa.onerror=function(ua){null!=U&&U(ua)};sa.src=J}else Va()}catch(ua){null!=U&&U(ua)}});Ba.onerror=function(Va){null!=U&&U(Va)};ra&&this.graph.addSvgShadow(Da);this.graph.mathEnabled&&this.addMathCss(Da);var ya=mxUtils.bind(this,function(){try{null!=this.resolvedFontCss&&this.addFontCss(Da,this.resolvedFontCss),Ba.src=Editor.createSvgDataUri(mxUtils.getXml(Da))}catch(Va){null!=U&&U(Va)}});this.embedExtFonts(mxUtils.bind(this, | 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.GUID_ALPHABET="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_";Editor.GUID_LENGTH=20;Editor.guid=function(l){l=null!=l?l:Editor.GUID_LENGTH;for(var A=[],N=0;N<l;N++)A.push(Editor.GUID_ALPHABET.charAt(Math.floor(Math.random()*Editor.GUID_ALPHABET.length)));return A.join("")};Editor.updateStatusInterval=1E4;Editor.prototype.appName="draw.io";Editor.prototype.diagramFileTypes=[{description:"diagramXmlDesc",extension:"drawio",mimeType:"text/xml"},{description:"diagramPngDesc", | 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,n,t,B,D,ha,I,va,na){B*=ha+va;D*=ha+va;var bb=t.clone();return function(){m.begin();m.moveTo(bb.x,bb.y);I?m.lineTo(bb.x-B-D/c,bb.y-D+B/c):m.lineTo(bb.x+D/c-B,bb.y-D-B/c);m.stroke()}}}(2));if("undefined"!==typeof mxVertexHandler){var mb=function(c,m,v){return wb(c,["width"],m,function(n,t,B,D,ha){ha=c.shape.getEdgeWidth()*c.view.scale+v;return new mxPoint(D.x+t*n/4+B*ha/2,D.y+B*n/4-t*ha/2)},function(n,t,B,D,ha,I){n=Math.sqrt(mxUtils.ptSegDistSq(D.x,D.y,ha.x,ha.y,I.x,I.y));c.style.width=Math.round(2*
n)/c.view.scale-v})},wb=function(c,m,v,n,t){return hb(c,m,function(B){var D=c.absolutePoints;if(null!=D&&0<D.length){var ha=D.length-1;B=c.view.translate;var I=c.view.scale,va=v?D[0]:D[ha];D=v?D[1]:D[ha-1];ha=D.x-va.x;var na=D.y-va.y,bb=Math.sqrt(ha*ha+na*na);va=n.call(this,bb,ha/bb,na/bb,va,D);return new mxPoint(va.x/I-B.x,va.y/I-B.y)}return null},function(B,D,ha){var I=c.absolutePoints,va=I.length-1;B=c.view.translate;var na=c.view.scale,bb=v?I[0]:I[va];I=v?I[1]:I[va-1];va=I.x-bb.x;var qb=I.y-bb.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 |
".sketch-configuration",Editor.settingsKey=".sketch-config")};EditorUi.initTheme();EditorUi.prototype.showImageDialog=function(d,f,k,u,z,C,F){d=new ImageDialog(this,d,f,k,u,z,C,F);this.showDialog(d.container,Graph.fileSupport?480:360,Graph.fileSupport?200:90,!0,!0);d.init()};EditorUi.prototype.showLocalStorageDialog=function(d,f,k,u,z,C){var F=localStorage.getItem(f);d=new TextareaDialog(this,d,null!=F?JSON.stringify(JSON.parse(F),null,2):"",mxUtils.bind(this,function(K){if(null!=K)try{if(null!=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 |
0,0,parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale)};ma.prototype.isRoundable=function(){return!0};ma.prototype.redrawPath=function(c,m,v,n,t){m=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;v=Math.max(0,Math.min(t,parseFloat(mxUtils.getValue(this.style,"size",this.size))));var B=n*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"position",this.position)))),D=n*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"position2",
this.position2)))),ha=Math.max(0,Math.min(n,parseFloat(mxUtils.getValue(this.style,"base",this.base))));this.addPoints(c,[new mxPoint(0,0),new mxPoint(n,0),new mxPoint(n,t-v),new mxPoint(Math.min(n,B+ha),t-v),new mxPoint(D,t),new mxPoint(Math.max(0,B),t-v),new mxPoint(0,t-v)],this.isRounded,m,!0,[4])};mxCellRenderer.registerShape("callout",ma);mxUtils.extend(aa,mxActor);aa.prototype.size=.2;aa.prototype.fixedSize=20;aa.prototype.isRoundable=function(){return!0};aa.prototype.redrawPath=function(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 |
Graph.prototype.visitTableCells=function(b,e){var g=null,p=this.model.getChildCells(b,!0);b=this.getActualStartSize(b,!0);for(var y=0;y<p.length;y++){for(var q=this.getActualStartSize(p[y],!0),E=this.model.getChildCells(p[y],!0),L=this.getCellStyle(p[y],!0),T=null,G=[],M=0;M<E.length;M++){var R=this.getCellGeometry(E[M]),W={cell:E[M],rospan:1,colspan:1,row:y,col:M,geo:R};R=null!=R.alternateBounds?R.alternateBounds:R;W.point=new mxPoint(R.width+(null!=T?T.point.x:b.x+q.x),R.height+(null!=g&&null!=
g[0]?g[0].point.y:b.y+q.y));W.actual=W;null!=g&&null!=g[M]&&1<g[M].rowspan?(W.rowspan=g[M].rowspan-1,W.colspan=g[M].colspan,W.actual=g[M].actual):null!=T&&1<T.colspan?(W.rowspan=T.rowspan,W.colspan=T.colspan-1,W.actual=T.actual):(T=this.getCurrentCellStyle(E[M],!0),null!=T&&(W.rowspan=parseInt(T.rowspan||1),W.colspan=parseInt(T.colspan||1)));T=1==mxUtils.getValue(L,mxConstants.STYLE_SWIMLANE_HEAD,1)&&mxUtils.getValue(L,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE)!=mxConstants.NONE;e(W,E.length,
p.length,b.x+(T?q.x:0),b.y+(T?q.y:0));G.push(W);T=W}g=G}};Graph.prototype.getTableLines=function(b,e,g){var p=[],y=[];(e||g)&&this.visitTableCells(b,mxUtils.bind(this,function(q,E,L,T,G){e&&q.row<L-1&&(null==p[q.row]&&(p[q.row]=[new mxPoint(T,q.point.y)]),1<q.rowspan&&p[q.row].push(null),p[q.row].push(q.point));g&&q.col<E-1&&(null==y[q.col]&&(y[q.col]=[new mxPoint(q.point.x,G)]),1<q.colspan&&y[q.col].push(null),y[q.col].push(q.point))}));return p.concat(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 |
null!=T.ownerSVGElement&&(T=T.ownerSVGElement);var G=this.gridSize*this.view.scale*this.view.gridSteps;G=-Math.round(G-mxUtils.mod(this.view.translate.x*this.view.scale+E,G))+"px "+-Math.round(G-mxUtils.mod(this.view.translate.y*this.view.scale+L,G))+"px";T.style.backgroundPosition=G}};mxGraph.prototype.updatePageBreaks=function(E,L,T){var G=this.view.scale,M=this.view.translate,R=this.pageFormat,W=G*this.pageScale,d=this.view.getBackgroundPageBounds();L=d.width;T=d.height;var f=new mxRectangle(G*
M.x,G*M.y,R.width*W,R.height*W),k=(E=E&&Math.min(f.width,f.height)>this.minPageBreakDist)?Math.ceil(T/f.height)-1:0,u=E?Math.ceil(L/f.width)-1:0,z=d.x+L,C=d.y+T;null==this.horizontalPageBreaks&&0<k&&(this.horizontalPageBreaks=[]);null==this.verticalPageBreaks&&0<u&&(this.verticalPageBreaks=[]);E=mxUtils.bind(this,function(F){if(null!=F){for(var K=F==this.horizontalPageBreaks?k:u,O=0;O<=K;O++){var H=F==this.horizontalPageBreaks?[new mxPoint(Math.round(d.x),Math.round(d.y+(O+1)*f.height)),new mxPoint(Math.round(z),
Math.round(d.y+(O+1)*f.height))]:[new mxPoint(Math.round(d.x+(O+1)*f.width),Math.round(d.y)),new mxPoint(Math.round(d.x+(O+1)*f.width),Math.round(C))];null!=F[O]?(F[O].points=H,F[O].redraw()):(H=new mxPolyline(H,this.pageBreakColor),H.dialect=this.dialect,H.isDashed=this.pageBreakDashed,H.pointerEvents=!1,H.init(this.view.backgroundPane),H.redraw(),F[O]=H)}for(O=K;O<F.length;O++)null!=F[O]&&F[O].destroy();F.splice(K,F.length-K)}});E(this.horizontalPageBreaks);E(this.verticalPageBreaks)};var e=mxGraphHandler.prototype.shouldRemoveCellsFromParent; | 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,v,n,t){m=Math.min(n/2,Math.min(t,parseFloat(mxUtils.getValue(this.style,"size",this.size))));v=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(m,0),new mxPoint(n-m,0),new mxPoint(n,.8*m),new mxPoint(n,t),new mxPoint(0,t),new mxPoint(0,.8*m)],this.isRounded,v,!0);c.end()};mxCellRenderer.registerShape("loopLimit",x);mxUtils.extend(J,mxActor);J.prototype.size=.375;J.prototype.isRoundable=function(){return!0};J.prototype.redrawPath=function(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 |
Fa;Ua<$a;Ua+=Q)Ea.drawImage(sa,ua/ia,Ua/ia);Va()}catch(Ra){null!=U&&U(Ra)}};sa.onerror=function(ua){null!=U&&U(ua)};sa.src=J}else Va()}catch(ua){null!=U&&U(ua)}});Ba.onerror=function(Va){null!=U&&U(Va)};ra&&this.graph.addSvgShadow(Da);this.graph.mathEnabled&&this.addMathCss(Da);var ya=mxUtils.bind(this,function(){try{null!=this.resolvedFontCss&&this.addFontCss(Da,this.resolvedFontCss),Ba.src=Editor.createSvgDataUri(mxUtils.getXml(Da))}catch(Va){null!=U&&U(Va)}});this.embedExtFonts(mxUtils.bind(this, | 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 |
"defs"):X.createElement("defs"),null!=l.firstChild?l.insertBefore(N,l.firstChild):l.appendChild(N)):N=N[0];l=null!=X.createElementNS?X.createElementNS(mxConstants.NS_SVG,"style"):X.createElement("style");l.setAttribute("type","text/css");mxUtils.setTextContent(l,A);N.appendChild(l)}};Editor.prototype.isExportToCanvas=function(){return mxClient.IS_CHROMEAPP||this.useCanvasForExport};Editor.prototype.getMaxCanvasScale=function(l,A,N){var X=mxClient.IS_FF?8192:16384;return Math.min(N,Math.min(X/l,X/
A))};Editor.prototype.exportToCanvas=function(l,A,N,X,U,Z,ba,ia,qa,ra,pa,xa,Ca,Aa,za,Ma,Qa,Oa){try{Z=null!=Z?Z:!0;ba=null!=ba?ba:!0;xa=null!=xa?xa:this.graph;Ca=null!=Ca?Ca:0;var ta=qa?null:xa.background;ta==mxConstants.NONE&&(ta=null);null==ta&&(ta=X);null==ta&&0==qa&&(ta=Ma?this.graph.defaultPageBackgroundColor:"#ffffff");this.convertImages(xa.getSvg(null,null,Ca,Aa,null,ba,null,null,null,ra,null,Ma,Qa,Oa),mxUtils.bind(this,function(Da){try{var Ba=new Image;Ba.onload=mxUtils.bind(this,function(){try{var Va= | 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.length,b.x+(T?q.x:0),b.y+(T?q.y:0));G.push(W);T=W}g=G}};Graph.prototype.getTableLines=function(b,e,g){var p=[],y=[];(e||g)&&this.visitTableCells(b,mxUtils.bind(this,function(q,E,L,T,G){e&&q.row<L-1&&(null==p[q.row]&&(p[q.row]=[new mxPoint(T,q.point.y)]),1<q.rowspan&&p[q.row].push(null),p[q.row].push(q.point));g&&q.col<E-1&&(null==y[q.col]&&(y[q.col]=[new mxPoint(q.point.x,G)]),1<q.colspan&&y[q.col].push(null),y[q.col].push(q.point))}));return p.concat(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 |
DrawioFile.prototype.save=function(b,e,g,p,y,q){try{if(EditorUi.debug("DrawioFile.save",[this],"revision",b,"unloading",p,"overwrite",y,"manual",q,"saving",this.savingFile,"editable",this.isEditable(),"invalidChecksum",this.invalidChecksum),this.isEditable())if(!y&&this.invalidChecksum)if(null!=g)g({message:mxResources.get("checksum")});else throw Error(mxResources.get("checksum"));else this.updateFileData(),this.clearAutosave(),null!=e&&e();else if(null!=g)g({message:mxResources.get("readOnly")});
else throw Error(mxResources.get("readOnly"));}catch(E){if(null!=g)g(E);else throw E;}};DrawioFile.prototype.createData=function(){var b=this.ui.pages;if(this.isRealtime()&&(this.ui.pages=this.ownPages,null!=this.ui.currentPage)){var e=this.ui.getPageById(this.ui.currentPage.getId(),this.ownPages);null!=e&&(e.viewState=this.ui.editor.graph.getViewState(),e.needsUpdate=!0)}e=this.ui.getFileData(null,null,null,null,null,null,null,null,this,!this.isCompressed());this.ui.pages=b;return 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(){fa();ka()}));fa();ka()}null!=f&&f()});if(null!=d.url&&0<d.url.length){var C=this.editor.getProxiedUrl(d.url);this.editor.loadUrl(C,mxUtils.bind(this,function(F){z(F)}),mxUtils.bind(this,function(F){null!=k&&k(F)}))}else z("")};EditorUi.prototype.updateDiagram=function(d){function f(V){var l=new mxCellOverlay(V.image||z.warningImage,V.tooltip,V.align,V.valign,V.offset);l.addListener(mxEvent.CLICK,function(A,N){u.alert(V.tooltip)});return l}var k=null,u=this;if(null!=d&&0<d.length&&(k=mxUtils.parseXml(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 |
EditorUi.prototype.generatePlantUmlImage=function(d,f,k,u){function z(K,O,H){c1=K>>2;c2=(K&3)<<4|O>>4;c3=(O&15)<<2|H>>6;c4=H&63;r="";r+=C(c1&63);r+=C(c2&63);r+=C(c3&63);return r+=C(c4&63)}function C(K){if(10>K)return String.fromCharCode(48+K);K-=10;if(26>K)return String.fromCharCode(65+K);K-=26;if(26>K)return String.fromCharCode(97+K);K-=26;return 0==K?"-":1==K?"_":"?"}var F=new XMLHttpRequest;F.open("GET",("txt"==f?PLANT_URL+"/txt/":"png"==f?PLANT_URL+"/png/":PLANT_URL+"/svg/")+function(K){r=""; | 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.setTableValues=function(b,e,g){for(var p=this.model.getChildCells(b,!0),y=0;y<p.length;y++)if(null!=g&&(p[y].value=g[y]),null!=e)for(var q=this.model.getChildCells(p[y],!0),E=0;E<q.length;E++)null!=e[y][E]&&(q[E].value=e[y][E]);return b}; | 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.pointerEvents=!1:mxSwimlane.prototype.configurePointerEvents.apply(this,arguments)};mxCellRenderer.registerShape("table",e);mxUtils.extend(g,e);g.prototype.paintForeground=function(){};mxCellRenderer.registerShape("tableRow",g);mxUtils.extend(p,mxCylinder);p.prototype.size=20;p.prototype.darkOpacity=0;p.prototype.darkOpacity2=0;p.prototype.paintVertexShape=function(c,m,v,n,t){var B=Math.max(0,Math.min(n,Math.min(t,parseFloat(mxUtils.getValue(this.style,"size",this.size))))),D=Math.max(-1,Math.min(1, | 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.connectionHandler.isOutlineConnectEvent;this.connectionHandler.isOutlineConnectEvent=function(S){return mxEvent.isShiftDown(S.getEvent())&&mxEvent.isAltDown(S.getEvent())?!1:null!=this.currentState&&S.getState()==this.currentState&&2E3<u||(null==this.currentState||"0"!=mxUtils.getValue(this.currentState.style,"outlineConnect","1"))&&C.apply(this,arguments)};var F=this.isToggleEvent;this.isToggleEvent=function(S){return F.apply(this,arguments)||!mxClient.IS_CHROMEOS&&mxEvent.isShiftDown(S)};var 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 |
mxResources.get("errorLoadingFile"))}}else if(0==d.indexOf("PK"))this.importZipFile(k,mxUtils.bind(this,function(K){this.spinner.stop();C(K)}),mxUtils.bind(this,function(){this.spinner.stop();this.openLocalFile(d,f,u)}));else{if("image/png"==k.type.substring(0,9))d=this.extractGraphModelFromPng(d);else if("application/pdf"==k.type){var F=Editor.extractGraphModelFromPdf(d);null!=F&&(z=null,u=!0,d=F)}this.spinner.stop();this.openLocalFile(d,f,u,z,null!=z?k:null)}}};EditorUi.prototype.openFiles=function(d,
f){if(this.spinner.spin(document.body,mxResources.get("loading")))for(var k=0;k<d.length;k++)mxUtils.bind(this,function(u){var z=new FileReader;z.onload=mxUtils.bind(this,function(C){try{this.openFileHandle(C.target.result,u.name,u,f)}catch(F){this.handleError(F)}});z.onerror=mxUtils.bind(this,function(C){this.spinner.stop();this.handleError(C);window.openFile=null});"image"!==u.type.substring(0,5)&&"application/pdf"!==u.type||"image/svg"===u.type.substring(0,9)?z.readAsText(u):z.readAsDataURL(u)})(d[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 |
mxCellEditor.prototype.startEditing=function(x,J){x=this.graph.getStartEditingCell(x,J);C.apply(this,arguments);var Q=this.graph.view.getState(x);this.textarea.className=null!=Q&&1==Q.style.html?"mxCellEditor geContentEditable":"mxCellEditor mxPlainTextEditor";this.codeViewMode=!1;this.switchSelectionState=null;this.graph.setSelectionCell(x);Q=this.graph.getModel().getParent(x);var Y=this.graph.getCellGeometry(x);if(this.graph.getModel().isEdge(Q)&&null!=Y&&Y.relative||this.graph.getModel().isEdge(x))this.textarea.style.outline=
mxClient.IS_IE||mxClient.IS_IE11||mxClient.IS_FF&&mxClient.IS_WIN?"gray dotted 1px":""};var F=mxCellEditor.prototype.installListeners;mxCellEditor.prototype.installListeners=function(x){function J(ea,la){la.originalNode=ea;ea=ea.firstChild;for(var oa=la.firstChild;null!=ea&&null!=oa;)J(ea,oa),ea=ea.nextSibling,oa=oa.nextSibling;return la}function Q(ea,la){if(null!=ea)if(la.originalNode!=ea)Y(ea);else for(ea=ea.firstChild,la=la.firstChild;null!=ea;){var oa=ea.nextSibling;null==la?Y(ea):(Q(ea,la),la= | 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=0,37==R?f=-W:38==R?k=-W:39==R?f=W:40==R&&(k=W),C.currentDx+=f*z,C.currentDy+=k*z,C.checkPreview(),C.updatePreview()),null!=E&&window.clearTimeout(E),E=window.setTimeout(function(){if(null!=C.first){var F=C.roundLength(C.currentDx/z),K=C.roundLength(C.currentDy/z);C.moveCells(C.cells,F,K);C.reset()}},400))}}}}var g=this,p=this.editor.graph,y=new mxKeyHandler(p),q=y.isEventIgnored;y.isEventIgnored=function(R){return!(mxEvent.isShiftDown(R)&&9==R.keyCode)&&(!this.isControlDown(R)||mxEvent.isShiftDown(R)||
90!=R.keyCode&&89!=R.keyCode&&188!=R.keyCode&&190!=R.keyCode&&85!=R.keyCode)&&(66!=R.keyCode&&73!=R.keyCode||!this.isControlDown(R)||this.graph.cellEditor.isContentEditing()&&!mxClient.IS_FF&&!mxClient.IS_SF)&&(109!=R.keyCode&&107!=R.keyCode||!this.isControlDown(R)&&!mxEvent.isShiftDown(R)||!this.graph.cellEditor.isContentEditing()&&!mxClient.IS_FF&&!mxClient.IS_SF)&&q.apply(this,arguments)};y.isEnabledForEvent=function(R){return!mxEvent.isConsumed(R)&&this.isGraphEvent(R)&&this.isEnabled()&&(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 |
this.path.push(this.canvas.format(this.lastY))};l.prototype.lineTo=function(Z,ba){this.passThrough?this.originalLineTo.apply(this.canvas,arguments):(this.addOp(this.lineOp,Z,ba),this.lastX=Z,this.lastY=ba)};l.prototype.moveTo=function(Z,ba){this.passThrough?this.originalMoveTo.apply(this.canvas,arguments):(this.addOp(this.moveOp,Z,ba),this.lastX=Z,this.lastY=ba,this.firstX=Z,this.firstY=ba)};l.prototype.close=function(){this.passThrough?this.originalClose.apply(this.canvas,arguments):this.addOp(this.closeOp)}; | 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 |
1)),!mxUtils.hasScrollbars(b.container)||0==Z&&0==ba||(b.container.scrollLeft-=Z*(b.cumulativeZoomFactor-1),b.container.scrollTop-=ba*(b.cumulativeZoomFactor-1)));null!=V&&ma.setAttribute("filter",V);b.cumulativeZoomFactor=1;V=P=S=da=aa=null}),null!=A?A:b.isFastZoomEnabled()?g.wheelZoomDelay:g.lazyZoomDelay)},0)};b.lazyZoom=function(A,N,X,U){U=null!=U?U:this.zoomFactor;(N=N||!b.scrollbars)&&(S=new mxPoint(b.container.offsetLeft+b.container.clientWidth/2,b.container.offsetTop+b.container.clientHeight/
2));A?.15>=this.view.scale*this.cumulativeZoomFactor?this.cumulativeZoomFactor*=(this.view.scale+.05)/this.view.scale:(this.cumulativeZoomFactor*=U,this.cumulativeZoomFactor=Math.round(this.view.scale*this.cumulativeZoomFactor*100)/100/this.view.scale):.15>=this.view.scale*this.cumulativeZoomFactor?this.cumulativeZoomFactor*=(this.view.scale-.05)/this.view.scale:(this.cumulativeZoomFactor/=U,this.cumulativeZoomFactor=Math.round(this.view.scale*this.cumulativeZoomFactor*100)/100/this.view.scale);this.cumulativeZoomFactor= | 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.graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&this.graph.isCssTransformsSupported();this.graph.updateCssTransform()};Editor.initMath=function(l,A){if("undefined"===typeof window.MathJax&&!mxClient.IS_IE&&!mxClient.IS_IE11){var N=function(){X=null;if(0<Editor.mathJaxQueue.length)Editor.doMathJaxRender(Editor.mathJaxQueue.shift());else Editor.onMathJaxDone()};l=null!=l?l:DRAW_MATH_URL+"/startup.js";Editor.mathJaxQueue=[];var X=null;Editor.doMathJaxRender=function(ba){try{null==
X?(MathJax.typesetClear([ba]),MathJax.typeset([ba]),N()):X!=ba&&Editor.mathJaxQueue.push(ba)}catch(ia){MathJax.typesetClear([ba]),null!=ia.retry?(X=ba,ia.retry.then(function(){MathJax.typesetPromise([ba]).then(N)["catch"](function(qa){console.log("Error in MathJax.typesetPromise: "+qa.toString());N()})})["catch"](function(qa){console.log("Error in MathJax.retry: "+qa.toString());N()})):null!=window.console&&console.log("Error in MathJax.typeset: "+ia.toString())}};window.MathJax=null!=A?A:{options:{skipHtmlTags:{"[+]":["text"]}}, | 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 |
PageSetupDialog.addPageFormatPanel=function(b,e,g,p){function y(O,H,ka){if(ka||R!=document.activeElement&&W!=document.activeElement){O=!1;for(H=0;H<f.length;H++)ka=f[H],C?"custom"==ka.key&&(L.value=ka.key,C=!1):null!=ka.format&&("a4"==ka.key?826==g.width?(g=mxRectangle.fromRectangle(g),g.width=827):826==g.height&&(g=mxRectangle.fromRectangle(g),g.height=827):"a5"==ka.key&&(584==g.width?(g=mxRectangle.fromRectangle(g),g.width=583):584==g.height&&(g=mxRectangle.fromRectangle(g),g.height=583)),g.width==
ka.format.width&&g.height==ka.format.height?(L.value=ka.key,q.setAttribute("checked","checked"),q.defaultChecked=!0,q.checked=!0,E.removeAttribute("checked"),E.defaultChecked=!1,E.checked=!1,O=!0):g.width==ka.format.height&&g.height==ka.format.width&&(L.value=ka.key,q.removeAttribute("checked"),q.defaultChecked=!1,q.checked=!1,E.setAttribute("checked","checked"),E.defaultChecked=!0,O=E.checked=!0));O?(T.style.display="",M.style.display="none"):(R.value=g.width/100,W.value=g.height/100,q.setAttribute("checked",
"checked"),L.value="custom",T.style.display="none",M.style.display="")}}e="format-"+e;var q=document.createElement("input");q.setAttribute("name",e);q.setAttribute("type","radio");q.setAttribute("value","portrait");var E=document.createElement("input");E.setAttribute("name",e);E.setAttribute("type","radio");E.setAttribute("value","landscape");var L=document.createElement("select");L.style.marginBottom="8px";L.style.borderRadius="4px";L.style.borderWidth="1px";L.style.borderStyle="solid";L.style.width= | 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{var z=this.createDarkStyle();this.createTimeout(null,mxUtils.bind(this,function(C){z.onerror=mxUtils.bind(this,function(F){C.clear()&&k(Error(mxResources.get("errorLoadingFile")+" "+z.getAttribute("href")))});z.onload=mxUtils.bind(this,function(){C.clear()&&(this.darkStyle=z,u())});document.getElementsByTagName("head")[0].appendChild(z)}),mxUtils.bind(this,function(){k(Error(mxResources.get("timeout")+" "+z.getAttribute("href")))}))}};EditorUi.prototype.setPagesVisible=function(d){Editor.pagesVisible!=
d&&(Editor.pagesVisible=d,mxSettings.settings.pagesVisible=d,mxSettings.save(),this.fireEvent(new mxEventObject("pagesVisibleChanged")))};EditorUi.prototype.setSidebarTitles=function(d,f){this.sidebar.sidebarTitles!=d&&(this.sidebar.sidebarTitles=d,this.sidebar.refresh(),Editor.isSettingsEnabled()&&f&&(mxSettings.settings.sidebarTitles=d,mxSettings.save()),this.fireEvent(new mxEventObject("sidebarTitlesChanged")))};EditorUi.prototype.saveScrollState=function(){var d=this.editor.graph.view.translate, | 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=function(b,e,g,p,y){mxEventSource.call(this);this.chromeless=null!=b?b:this.chromeless;this.initStencilRegistry();this.graph=p||this.createGraph(e,g);this.editable=null!=y?y:!b;this.undoManager=this.createUndoManager();this.status="";this.getOrCreateFilename=function(){return this.filename||mxResources.get("drawing",[Editor.pageCounter])+".xml"};this.getFilename=function(){return this.filename};this.setStatus=function(q,E){this.status=q;this.statusFunction=E;this.fireEvent(new mxEventObject("statusChanged"))};
this.getStatus=function(){return this.status};this.graphChangeListener=function(q,E){q=null!=E?E.getProperty("edit"):null;null!=q&&q.ignoreEdit||this.setModified(!0)};this.graph.getModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(){this.graphChangeListener.apply(this,arguments)}));this.graph.resetViewOnRootChange=!1;this.init()};Editor.pageCounter=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 |
function(d){return""};EditorUi.prototype.libraryLoaded=function(d,f,k,u){if(null!=this.sidebar){d.constructor!=LocalLibrary&&mxSettings.addCustomLibrary(d.getHash());var z=null;if(d.constructor!=StorageLibrary||".scratchpad"!=d.title){null==this.openLibraries&&(this.openLibraries=[]);for(var C=0;C<this.openLibraries.length;C++)if(this.openLibraries[C].file.getHash()==d.getHash()){mxUtils.remove(this.openLibraries[C],this.openLibraries);break}z={file:d,images:f,title:k,expand:u};this.openLibraries.push(z)}else this.scratchpad= | 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.importZipFile=function(d,f,k){var u=this,z=mxUtils.bind(this,function(){this.loadingExtensions=!1;"undefined"!==typeof JSZip?JSZip.loadAsync(d).then(function(C){if(mxUtils.isEmptyObject(C.files))k();else{var F=0,K,O=!1;C.forEach(function(H,ka){H=ka.name.toLowerCase();"diagram/diagram.xml"==H?(O=!0,ka.async("string").then(function(fa){0==fa.indexOf("<mxfile ")?f(fa):k()})):0==H.indexOf("versions/")&&(H=parseInt(H.substr(9)),H>F&&(F=H,K=ka))});0<F?K.async("string").then(function(H){(new XMLHttpRequest).upload&&
u.isRemoteFileFormat(H,d.name)?u.isOffline()?u.showError(mxResources.get("error"),mxResources.get("notInOffline"),null,k):u.parseFileData(H,mxUtils.bind(this,function(ka){4==ka.readyState&&(200<=ka.status&&299>=ka.status?f(ka.responseText):k())}),d.name):k()}):O||k()}},function(C){k(C)}):k()});"undefined"!==typeof JSZip||this.loadingExtensions||this.isOffline(!0)?z():(this.loadingExtensions=!0,mxscript("js/extensions.min.js",z,null,null,null,k))};EditorUi.prototype.importFile=function(d,f,k,u,z,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 |
Math.max(K/z,O/z);if(1<H){var ka=Math.round(K/H),fa=Math.round(O/H),ca=document.createElement("canvas");ca.width=ka;ca.height=fa;ca.getContext("2d").drawImage(d,0,0,ka,fa);var ja=ca.toDataURL();if(ja.length<f.length){var ma=document.createElement("canvas");ma.width=ka;ma.height=fa;var aa=ma.toDataURL();ja!==aa&&(f=ja,K=ka,O=fa)}}}catch(S){}k(f,K,O)};EditorUi.prototype.extractGraphModelFromPng=function(d){return Editor.extractGraphModelFromPng(d)};EditorUi.prototype.loadImage=function(d,f,k){try{var u=
new Image;u.onload=function(){u.width=0<u.width?u.width:120;u.height=0<u.height?u.height:120;f(u)};null!=k&&(u.onerror=k);u.src=d}catch(z){if(null!=k)k(z);else throw z;}};EditorUi.prototype.getDefaultSketchMode=function(){var d="1"==urlParams.sketch;return"0"!=(null!=urlParams.rough?urlParams.rough:d)};var y=EditorUi.prototype.createUi;EditorUi.prototype.createUi=function(){Editor.isSettingsEnabled()&&(this.doSetSketchMode(null!=mxSettings.settings.sketchMode&&null==urlParams.rough&&null==urlParams.sketch? | 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 |
"fixed"==u.aspect&&(C+="aspect=fixed;");f.appendChild(this.sidebar.createVertexTemplate(C+"image="+z,u.w,u.h,"",u.title||"",!1,null,!0))}else null!=u.xml&&(z=this.stringToCells("<"==u.xml.charAt(0)?u.xml:Graph.decompress(u.xml)),0<z.length&&f.appendChild(this.sidebar.createVertexTemplateFromCells(z,u.w,u.h,u.title||"",!0,null,!0)))}};EditorUi.prototype.getResource=function(d){return null!=d?d[mxLanguage]||d.main:null};EditorUi.prototype.footerHeight=0;"1"==urlParams.savesidebar&&(Sidebar.prototype.thumbWidth= | 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(Z){return this.outline||null==this.style||"0"==mxUtils.getValue(this.style,"sketch","0")?A.apply(this,arguments):"comic"==mxUtils.getValue(this.style,"sketchStyle","rough")?this.createComicCanvas(Z):this.createRoughCanvas(Z)};var N=mxImageShape.prototype.paintVertexShape;mxImageShape.prototype.paintVertexShape=function(Z,ba,ia,qa,ra){null!=Z.handJiggle&&Z.handJiggle.passThrough||N.apply(this,arguments)};var X=mxShape.prototype.paint;mxShape.prototype.paint=function(Z){var ba=Z.addTolerance,
ia=!0;null!=this.style&&(ia="1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1"));if(null!=Z.handJiggle&&Z.handJiggle.constructor==l&&!this.outline){Z.save();var qa=this.fill,ra=this.stroke;this.stroke=this.fill=null;var pa=this.configurePointerEvents,xa=Z.setStrokeColor;Z.setStrokeColor=function(){};var Ca=Z.setFillColor;Z.setFillColor=function(){};ia||null==qa||(this.configurePointerEvents=function(){});Z.handJiggle.passThrough=!0;X.apply(this,arguments);Z.handJiggle.passThrough=
!1;Z.setFillColor=Ca;Z.setStrokeColor=xa;this.configurePointerEvents=pa;this.stroke=ra;this.fill=qa;Z.restore();ia&&null!=qa&&(Z.addTolerance=function(){})}X.apply(this,arguments);Z.addTolerance=ba};var U=mxShape.prototype.paintGlassEffect;mxShape.prototype.paintGlassEffect=function(Z,ba,ia,qa,ra,pa){null!=Z.handJiggle&&Z.handJiggle.constructor==l?(Z.handJiggle.passThrough=!0,U.apply(this,arguments),Z.handJiggle.passThrough=!1):U.apply(this,arguments)}})();Editor.fastCompress=function(l){return 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 |
Y.setAttribute("label",x.value||"");null!=Q?Y.setAttribute(J,Q):Y.removeAttribute(J);this.model.setValue(x,Y)};Graph.prototype.isTargetShape=function(x,J,Q){x=mxUtils.getValue(this.getCurrentCellStyle(x),mxConstants.STYLE_SHAPE,"");for(Q=0;Q<J.length;Q++){var Y=mxUtils.getValue(this.getCurrentCellStyle(J[Q]),"targetShapes","").split(",");if(0<=mxUtils.indexOf(Y,x))return!0}return!1};var k=Graph.prototype.getDropTarget;Graph.prototype.getDropTarget=function(x,J,Q,Y){if(mxEvent.isAltDown(J))return null;
for(var ea=0;ea<x.length;ea++){var la=this.model.getParent(x[ea]);if(this.model.isEdge(la)&&0>mxUtils.indexOf(x,la))return null}la=k.apply(this,arguments);var oa=!0;for(ea=0;ea<x.length&&oa;ea++)oa=oa&&this.isTableRow(x[ea]);oa&&(this.isTableCell(la)&&(la=this.model.getParent(la)),this.isTableRow(la)&&(la=this.model.getParent(la)),this.isTable(la)||(la=null));return la};Graph.prototype.click=function(x){mxGraph.prototype.click.call(this,x);this.firstClickState=x.getState();this.firstClickSource=x.getSource()}; | 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 |
ha.positionChanged=function(){I.apply(this,arguments);c.view.invalidate(this.state.cell);c.view.validate()}}return ha},Ab={link:function(c){return[mb(c,!0,10),mb(c,!1,10)]},flexArrow:function(c){var m=c.view.graph.gridSize/c.view.scale,v=[];mxUtils.getValue(c.style,mxConstants.STYLE_STARTARROW,mxConstants.NONE)!=mxConstants.NONE&&(v.push(wb(c,["width",mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE],!0,function(n,t,B,D,ha){n=(c.shape.getEdgeWidth()-c.shape.strokewidth)*c.view.scale;ha=3*mxUtils.getNumber(c.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 |
window.getSelection(),J.getRangeAt&&J.rangeCount){var Q=document.createRange();Q.selectNode(x);J.removeAllRanges();J.addRange(Q)}}else(J=document.selection)&&"Control"!=J.type&&(x=J.createRange(),x.collapse(!0),Q=J.createRange(),Q.setEndPoint("StartToStart",x),Q.select())};Graph.prototype.flipEdgePoints=function(x,J,Q){var Y=this.getCellGeometry(x);if(null!=Y){Y=Y.clone();if(null!=Y.points)for(var ea=0;ea<Y.points.length;ea++)J?Y.points[ea].x=Q+(Q-Y.points[ea].x):Y.points[ea].y=Q+(Q-Y.points[ea].y);
ea=function(la){null!=la&&(J?la.x=Q+(Q-la.x):la.y=Q+(Q-la.y))};ea(Y.getTerminalPoint(!0));ea(Y.getTerminalPoint(!1));this.model.setGeometry(x,Y)}};Graph.prototype.flipChildren=function(x,J,Q){this.model.beginUpdate();try{for(var Y=this.model.getChildCount(x),ea=0;ea<Y;ea++){var la=this.model.getChildAt(x,ea);if(this.model.isEdge(la))this.flipEdgePoints(la,J,Q);else{var oa=this.getCellGeometry(la);null!=oa&&(oa=oa.clone(),J?oa.x=Q+(Q-oa.x-oa.width):oa.y=Q+(Q-oa.y-oa.height),this.model.setGeometry(la, | 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 |
ea=function(la){null!=la&&(J?la.x=Q+(Q-la.x):la.y=Q+(Q-la.y))};ea(Y.getTerminalPoint(!0));ea(Y.getTerminalPoint(!1));this.model.setGeometry(x,Y)}};Graph.prototype.flipChildren=function(x,J,Q){this.model.beginUpdate();try{for(var Y=this.model.getChildCount(x),ea=0;ea<Y;ea++){var la=this.model.getChildAt(x,ea);if(this.model.isEdge(la))this.flipEdgePoints(la,J,Q);else{var oa=this.getCellGeometry(la);null!=oa&&(oa=oa.clone(),J?oa.x=Q+(Q-oa.x-oa.width):oa.y=Q+(Q-oa.y-oa.height),this.model.setGeometry(la, | 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 |
90!=R.keyCode&&89!=R.keyCode&&188!=R.keyCode&&190!=R.keyCode&&85!=R.keyCode)&&(66!=R.keyCode&&73!=R.keyCode||!this.isControlDown(R)||this.graph.cellEditor.isContentEditing()&&!mxClient.IS_FF&&!mxClient.IS_SF)&&(109!=R.keyCode&&107!=R.keyCode||!this.isControlDown(R)&&!mxEvent.isShiftDown(R)||!this.graph.cellEditor.isContentEditing()&&!mxClient.IS_FF&&!mxClient.IS_SF)&&q.apply(this,arguments)};y.isEnabledForEvent=function(R){return!mxEvent.isConsumed(R)&&this.isGraphEvent(R)&&this.isEnabled()&&(null==
g.dialogs||0==g.dialogs.length)};y.isControlDown=function(R){return mxEvent.isControlDown(R)||mxClient.IS_MAC&&R.metaKey};var E=null,L={37:mxConstants.DIRECTION_WEST,38:mxConstants.DIRECTION_NORTH,39:mxConstants.DIRECTION_EAST,40:mxConstants.DIRECTION_SOUTH},T=y.getFunction;mxKeyHandler.prototype.getFunction=function(R){if(p.isEnabled()){if(mxEvent.isShiftDown(R)&&mxEvent.isAltDown(R)){var W=g.actions.get(g.altShiftActions[R.keyCode]);if(null!=W)return W.funct}if(null!=L[R.keyCode]&&!p.isSelectionEmpty())if(!this.isControlDown(R)&& | 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.saveFile=function(b,e,g,p){};DrawioFile.prototype.getFileUrl=function(){return null};DrawioFile.prototype.getFolderUrl=function(b){return null};DrawioFile.prototype.getPublicUrl=function(b){b(null)};DrawioFile.prototype.isRestricted=function(){return DrawioFile.RESTRICT_EXPORT};DrawioFile.prototype.isModified=function(){return this.modified};DrawioFile.prototype.getShadowModified=function(){return this.shadowModified}; | 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 |
mxPerimeter.HexagonPerimeter2);mxUtils.extend(ia,mxShape);ia.prototype.size=10;ia.prototype.paintBackground=function(c,m,v,n,t){var B=parseFloat(mxUtils.getValue(this.style,"size",this.size));c.translate(m,v);c.ellipse((n-B)/2,0,B,B);c.fillAndStroke();c.begin();c.moveTo(n/2,B);c.lineTo(n/2,t);c.end();c.stroke()};mxCellRenderer.registerShape("lollipop",ia);mxUtils.extend(qa,mxShape);qa.prototype.size=10;qa.prototype.inset=2;qa.prototype.paintBackground=function(c,m,v,n,t){var B=parseFloat(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 |
try{p.pasteXml(M,!0)}finally{q.getModel().endUpdate()}}else mxClipboard.paste(q)}),G=!0)}catch(M){}G||mxClipboard.paste(q)}},!1,"sprite-paste",Editor.ctrlKey+"+V");this.addAction("pasteHere",function(G){function M(W){if(null!=W){for(var d=!0,f=0;f<W.length&&d;f++)d=d&&q.model.isEdge(W[f]);var k=q.view.translate;f=q.view.scale;var u=k.x,z=k.y;k=null;if(1==W.length&&d){var C=q.getCellGeometry(W[0]);null!=C&&(k=C.getTerminalPoint(!0))}k=null!=k?k:q.getBoundingBoxFromGeometry(W,d);null!=k&&(d=Math.round(q.snap(q.popupMenuHandler.triggerX/ | 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.commentsRefreshNeeded=function(){return!0};DrawioFile.prototype.commentsSaveNeeded=function(){return!1};DrawioFile.prototype.getComments=function(b,e){b([])};DrawioFile.prototype.addComment=function(b,e,g){e(Date.now())};DrawioFile.prototype.canReplyToReplies=function(){return!0};DrawioFile.prototype.canComment=function(){return!0};DrawioFile.prototype.newComment=function(b,e){return new DrawioComment(this,null,b,Date.now(),Date.now(),!1,e)};LocalFile=function(b,e,g,p,y,q){DrawioFile.call(this,b,e);this.title=g;this.mode=p?null:App.MODE_DEVICE;this.fileHandle=y;this.desc=q};mxUtils.extend(LocalFile,DrawioFile);LocalFile.prototype.isAutosave=function(){return null!=this.fileHandle&&!this.invalidFileHandle&&DrawioFile.prototype.isAutosave.apply(this,arguments)};LocalFile.prototype.isAutosaveOptional=function(){return null!=this.fileHandle};LocalFile.prototype.getMode=function(){return this.mode};LocalFile.prototype.getTitle=function(){return this.title}; | 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 |
mxUtils.br(d);return{getColor:function(){return C},getTarget:function(){return u.value},focus:function(){u.focus()}}};EditorUi.prototype.createUrlParameters=function(d,f,k,u,z,C,F){F=null!=F?F:[];u&&("https://viewer.diagrams.net"==EditorUi.lightboxHost&&"1"!=urlParams.dev||F.push("lightbox=1"),"auto"!=d&&F.push("target="+d),null!=f&&f!=mxConstants.NONE&&F.push("highlight="+("#"==f.charAt(0)?f.substring(1):f)),null!=z&&0<z.length&&F.push("edit="+encodeURIComponent(z)),C&&F.push("layers=1"),this.editor.graph.foldingEnabled&& | 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 |
20*(X-1),U=-1),b.lazyZoom(N,null,U,X),mxEvent.consume(A),!1;ba=ba.parentNode}}),b.container);b.panningHandler.zoomGraph=function(A){b.cumulativeZoomFactor=A.scale;b.lazyZoom(0<A.scale,!0);mxEvent.consume(A)}};EditorUi.prototype.addChromelessToolbarItems=function(b){b(mxUtils.bind(this,function(e){this.actions.get("print").funct();mxEvent.consume(e)}),Editor.printImage,mxResources.get("print"))};EditorUi.prototype.isPagesEnabled=function(){return this.editor.editable||"1"!=urlParams["hide-pages"]}; | 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 Action(b,e,g,p,y){mxEventSource.call(this);this.label=b;this.funct=this.createFunction(e);this.enabled=null!=g?g:!0;this.iconCls=p;this.shortcut=y;this.visible=!0}mxUtils.extend(Action,mxEventSource);Action.prototype.createFunction=function(b){return b};Action.prototype.setEnabled=function(b){this.enabled!=b&&(this.enabled=b,this.fireEvent(new mxEventObject("stateChanged")))};Action.prototype.isEnabled=function(){return this.enabled}; | 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;K<u.model.getChildCount(f);K++)this.updatePageLinksForCell(d,u.model.getChildAt(f,K))};EditorUi.prototype.updatePageLink=function(d,f){if(Graph.isPageLink(f)){var k=d[f.substring(f.indexOf(",")+1)];f=null!=k?"data:page/id,"+k:null}else if("data:action/json,"==f.substring(0,17))try{var u=JSON.parse(f.substring(17));if(null!=u.actions){for(var z=0;z<u.actions.length;z++){var C=u.actions[z];if(null!=C.open&&Graph.isPageLink(C.open)){var F=C.open.substring(C.open.indexOf(",")+1);k=d[F];null!=k?C.open=
"data:page/id,"+k:null==this.getPageById(F)&&delete C.open}}f="data:action/json,"+JSON.stringify(u)}}catch(K){}return f};EditorUi.prototype.isRemoteVisioFormat=function(d){return/(\.v(sd|dx))($|\?)/i.test(d)||/(\.vs(s|x))($|\?)/i.test(d)};EditorUi.prototype.importVisio=function(d,f,k,u,z){var C=mxUtils.bind(this,function(F){this.loadingExtensions=!1;null!=k?k(F):this.handleError(F)});this.createTimeout(null,mxUtils.bind(this,function(F){u=null!=u?u:d.name;var K=mxUtils.bind(this,function(H){F.clear()&& | 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);m+=B;v+=B;n-=2*B;t-=2*B;0<n&&0<t&&(c.setShadow(!1),ib.apply(this,[c,m,v,n,t]))}};mxUtils.extend(P,mxRectangleShape);P.prototype.isHtmlAllowed=function(){return!1};P.prototype.getLabelBounds=function(c){if(1==this.style["double"]){var m=(Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||0))*this.scale;return new mxRectangle(c.x+m,c.y+m,c.width-2*m,c.height-2*m)}return c};P.prototype.paintForeground=function(c,m,v,n,t){if(null!=this.style){if(!this.outline&&1==this.style["double"]){var B=
Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||0);m+=B;v+=B;n-=2*B;t-=2*B;0<n&&0<t&&mxRectangleShape.prototype.paintBackground.apply(this,arguments)}c.setDashed(!1);B=0;do{var D=mxCellRenderer.defaultShapes[this.style["symbol"+B]];if(null!=D){var ha=this.style["symbol"+B+"Align"],I=this.style["symbol"+B+"VerticalAlign"],va=this.style["symbol"+B+"Width"],na=this.style["symbol"+B+"Height"],bb=this.style["symbol"+B+"Spacing"]||0,qb=this.style["symbol"+B+"VSpacing"]||
bb,fb=this.style["symbol"+B+"ArcSpacing"];null!=fb&&(fb*=this.getArcSize(n+this.strokewidth,t+this.strokewidth),bb+=fb,qb+=fb);fb=m;var Ga=v;fb=ha==mxConstants.ALIGN_CENTER?fb+(n-va)/2:ha==mxConstants.ALIGN_RIGHT?fb+(n-va-bb):fb+bb;Ga=I==mxConstants.ALIGN_MIDDLE?Ga+(t-na)/2:I==mxConstants.ALIGN_BOTTOM?Ga+(t-na-qb):Ga+qb;c.save();ha=new D;ha.style=this.style;D.prototype.paintVertexShape.call(ha,c,fb,Ga,va,na);c.restore()}B++}while(null!=D)}mxRectangleShape.prototype.paintForeground.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 |
mxSelectionCellsHandler.prototype.getHandledSelectionCells=function(){function x(wa){Q.get(wa)||(Q.put(wa,!0),ea.push(wa))}for(var J=fa.apply(this,arguments),Q=new mxDictionary,Y=this.graph.model,ea=[],la=0;la<J.length;la++){var oa=J[la];this.graph.isTableCell(oa)?x(Y.getParent(Y.getParent(oa))):this.graph.isTableRow(oa)&&x(Y.getParent(oa));x(oa)}return ea};var ca=mxVertexHandler.prototype.isGhostPreview;mxVertexHandler.prototype.isGhostPreview=function(){return ca.apply(this,arguments)&&!this.graph.isTable(this.state.cell)&& | 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+";"))}}),mxUtils.bind(this,function(){var ca=null;O.getModel().beginUpdate();try{ca=O.insertVertex(O.getDefaultParent(),null,d,O.snap(f),O.snap(k),1,1,"text;"+(u?"html=1;":"")),O.updateCellSize(ca),O.fireEvent(new mxEventObject("textInserted","cells",[ca]))}finally{O.getModel().endUpdate()}O.setSelectionCell(ca)}))}else{d=Graph.zapGremlins(mxUtils.trim(d));if(this.isCompatibleString(d))return this.importXml(d,f,k,C,null,K);if(0<d.length)if(this.isLucidChartData(d))this.convertLucidChart(d,mxUtils.bind(this, | 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;u^=f}return u};EditorUi.prototype.descriptorChanged=function(){};EditorUi.prototype.restoreLibraries=function(){};EditorUi.prototype.saveLibrary=function(d,f,k,u,z,C,F){};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, | 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.initMinimalTheme=function(){function b(W,d){if(EditorUi.windowed){var f=W.editor.graph;f.popupMenuHandler.hideMenu();null==W.formatWindow?(d=Math.max(10,W.diagramContainer.clientWidth-248),f=Math.min(566,f.container.clientHeight-10),W.formatWindow=new WrapperWindow(W,mxResources.get("format"),d,60,240,f,function(k){W.createFormat(k).init()}),W.formatWindow.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){W.formatWindow.window.fit()})),W.formatWindow.window.minimumSize=new mxRectangle(0,
0,240,80)):W.formatWindow.window.setVisible(null!=d?d:!W.formatWindow.window.isVisible())}else null==W.formatElt&&(W.formatElt=W.createSidebarContainer(),W.createFormat(W.formatElt).init(),W.formatElt.style.border="none",W.formatElt.style.width="240px",W.formatElt.style.borderLeft="1px solid gray",W.formatElt.style.right="0px"),f=W.diagramContainer.parentNode,null!=W.formatElt.parentNode?(W.formatElt.parentNode.removeChild(W.formatElt),f.style.right="0px"):(f.parentNode.appendChild(W.formatElt),f.style.right=
W.formatElt.style.width)}function e(W,d){function f(z,C){var F=W.menus.get(z);z=k.addMenu(C,mxUtils.bind(this,function(){F.funct.apply(this,arguments)}));z.style.cssText="position:absolute;border-width:1px;cusor:pointer;border-style:none;height:24px;bottom:0px;text-align:center;padding:8px 6px 0 6px;border-top-style:solid;width:50%;height:32px;box-sizing:border-box;font-size:11px;";z.className="geTitle";d.appendChild(z);return z}var k=new Menubar(W,d);if(Editor.enableCustomLibraries&&("1"!=urlParams.embed|| | 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.scale*A.height*N.height)};b.getPreferredPageSize=function(A,N,X){A=this.getPageLayout();N=this.getPageSize();return new mxRectangle(0,0,A.width*N.width,A.height*N.height)};var e=null,g=this;if(this.editor.isChromelessView()){this.chromelessResize=e=mxUtils.bind(this,function(A,N,X,U){if(null!=b.container&&!b.isViewer()){X=null!=X?X:0;U=null!=U?U:0;var Z=b.pageVisible?b.view.getBackgroundPageBounds():b.getGraphBounds(),ba=mxUtils.hasScrollbars(b.container),ia=b.view.translate,qa=b.view.scale, | 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&&(this.lastAutosaveRevision=(new Date).getTime());this.save(q,mxUtils.bind(this,function(E){this.autosaveCompleted();null!=g&&g(E)}),mxUtils.bind(this,function(E){null!=p&&p(E)}))}else this.isModified()||this.ui.editor.setStatus(""),null!=g&&g(null)}catch(E){null!=p&&p(E)}}),b);EditorUi.debug("DrawioFile.autosave",[this],"thread",y,"delay",b,"saving",this.savingFile);this.autosaveThread=y};DrawioFile.prototype.isAutosaveNow=function(){return!0};DrawioFile.prototype.autosaveCompleted=function(){}; | 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.prototype.create=function(b){function e(d){var f=E.checked||G.checked,k=parseInt(R.value)/100;isNaN(k)&&(k=1,R.value="100%");mxClient.IS_SF&&(k*=.75);var u=g.pageFormat||mxConstants.PAGE_FORMAT_A4_PORTRAIT,z=1/g.pageScale;if(f){var C=E.checked?1:parseInt(M.value);isNaN(C)||(z=mxUtils.getScaleForPageCount(C,g,u))}var F=C=0;u=mxRectangle.fromRectangle(u);u.width=Math.ceil(u.width*k);u.height=Math.ceil(u.height*k);z*=k;!f&&g.pageVisible?(k=g.getPageLayout(),C-=k.x*u.width,F-=k.y*u.height):
f=!0;f=PrintDialog.createPrintPreview(g,z,u,0,C,F,f);f.open();d&&PrintDialog.printPreview(f)}var g=b.editor.graph,p=document.createElement("table");p.style.width="100%";p.style.height="100%";var y=document.createElement("tbody");var q=document.createElement("tr");var E=document.createElement("input");E.setAttribute("type","checkbox");var L=document.createElement("td");L.setAttribute("colspan","2");L.style.fontSize="10pt";L.appendChild(E);var T=document.createElement("span");mxUtils.write(T," "+mxResources.get("fitPage")); | 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(aa){var S=[aa];!y(aa)&&!p(aa)||E(aa)||f.traverse(aa,!0,function(da,P){var V=null!=P&&f.isTreeEdge(P);V&&0>mxUtils.indexOf(S,P)&&S.push(P);(null==P||V)&&0>mxUtils.indexOf(S,da)&&S.push(da);return null==P||V});return S};var fa=mxVertexHandler.prototype.init;mxVertexHandler.prototype.init=function(){fa.apply(this,arguments);(y(this.state.cell)||p(this.state.cell))&&!E(this.state.cell)&&0<this.graph.getOutgoingTreeEdges(this.state.cell).length&&(this.moveHandle=mxUtils.createImage(Editor.moveImage), | 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.changeHandler=null)}}();(function(){function b(c,m,v){mxShape.call(this);this.line=c;this.stroke=m;this.strokewidth=null!=v?v:1;this.updateBoundsFromLine()}function e(){mxSwimlane.call(this)}function g(){mxSwimlane.call(this)}function p(){mxCylinder.call(this)}function y(){mxConnector.call(this)}function q(){mxCylinder.call(this)}function E(){mxActor.call(this)}function L(){mxCylinder.call(this)}function T(){mxCylinder.call(this)}function G(){mxCylinder.call(this)}function M(){mxCylinder.call(this)}function R(){mxShape.call(this)} | 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.model.execute(P)}}F&&this.insertHandler(K,null,null,O.defaultVertexStyle,O.defaultEdgeStyle,!1,!0)}finally{O.model.endUpdate()}}}catch(V){if(z)throw V;this.handleError(V)}return K};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(u){}};EditorUi.prototype.updatePageLinksForCell=function(d,f){var k=document.createElement("div"),u=this.editor.graph,z=u.getLinkForCell(f);null!=z&&u.setLinkForCell(f,this.updatePageLink(d,z));if(u.isHtmlLabel(f)){k.innerHTML=Graph.sanitizeHtml(u.getLabel(f));for(var C=k.getElementsByTagName("a"),F=!1,K=0;K<C.length;K++)z=C[K].getAttribute("href"),null!=z&&(C[K].setAttribute("href",this.updatePageLink(d,z)),F=!0);F&&u.labelChanged(f,k.innerHTML)}for(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 |
Graph.minTableColumnWidth))};cb.execute=function(eb){if(0!=kb)Y.setTableColumnWidth(this.state.cell,kb,Pa);else if(!Q.blockDelayedSelection){var jb=Y.getCellAt(eb.getGraphX(),eb.getGraphY())||oa.cell;Y.graphHandler.selectCellForEvent(jb,eb)}kb=0};cb.positionChanged=function(){};cb.reset=function(){kb=0};x.push(cb)})(ea)}}return null!=x?x.reverse():null};var A=mxVertexHandler.prototype.setHandlesVisible;mxVertexHandler.prototype.setHandlesVisible=function(x){A.apply(this,arguments);if(null!=this.moveHandles)for(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 |
var F=y.cellEditor.isStopEditingEvent;y.cellEditor.isStopEditingEvent=function(P){return F.apply(this,arguments)||13==P.keyCode&&(!mxClient.IS_SF&&mxEvent.isControlDown(P)||mxClient.IS_MAC&&mxEvent.isMetaDown(P)||mxClient.IS_SF&&mxEvent.isShiftDown(P))};var K=y.isZoomWheelEvent;y.isZoomWheelEvent=function(){return p.isSpaceDown()||K.apply(this,arguments)};var O=!1,H=null,ka=null,fa=null,ca=mxUtils.bind(this,function(){if(null!=this.toolbar&&O!=y.cellEditor.isContentEditing()){for(var P=this.toolbar.container.firstChild, | 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.createTable=function(b,e,g,p,y,q,E,L,T){g=null!=g?g:60;p=null!=p?p:40;q=null!=q?q:30;L=null!=L?L:"shape=tableRow;horizontal=0;startSize=0;swimlaneHead=0;swimlaneBody=0;strokeColor=inherit;top=0;left=0;bottom=0;right=0;collapsible=0;dropTarget=0;fillColor=none;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;";T=null!=T?T:"shape=partialRectangle;html=1;whiteSpace=wrap;connectable=0;strokeColor=inherit;overflow=hidden;fillColor=none;top=0;left=0;bottom=0;right=0;pointerEvents=1;";return this.createParent(this.createVertex(null,
null,null!=y?y:"",0,0,e*g,b*p+(null!=y?q:0),null!=E?E:"shape=table;startSize="+(null!=y?q:"0")+";container=1;collapsible=0;childLayout=tableLayout;"),this.createParent(this.createVertex(null,null,"",0,0,e*g,p,L),this.createVertex(null,null,"",0,0,g,p,T),e,g,0),b,0,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 |
(function(){var b=new mxObjectCodec(new ChangePageSetup,["ui","previousColor","previousImage","previousFormat","previousPageScale"]);b.afterDecode=function(e,g,p){p.previousColor=p.color;p.previousImage=p.image;p.previousFormat=p.format;p.previousPageScale=p.pageScale;null!=p.foldingEnabled&&(p.foldingEnabled=!p.foldingEnabled);return p};mxCodecRegistry.register(b)})();EditorUi.prototype.setBackgroundColor=function(b){this.editor.graph.background=b;this.editor.graph.view.validateBackground();this.fireEvent(new mxEventObject("backgroundColorChanged"))}; | 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.replacePlaceholders=function(b,e,g,p){p=[];if(null!=e){for(var y=0;match=this.placeholderPattern.exec(e);){var q=match[0];if(2<q.length&&"%label%"!=q&&"%tooltip%"!=q){var E=null;if(match.index>y&&"%"==e.charAt(match.index-1))E=q.substring(1);else{var L=q.substring(1,q.length-1);if("id"==L)E=b.id;else if(0>L.indexOf("{"))for(var T=b;null==E&&null!=T;)null!=T.value&&"object"==typeof T.value&&(Graph.translateDiagram&&null!=Graph.diagramLanguage&&(E=T.getAttribute(L+"_"+Graph.diagramLanguage)),
null==E&&(E=T.hasAttribute(L)?null!=T.getAttribute(L)?T.getAttribute(L):"":null)),T=this.model.getParent(T);null==E&&(E=this.getGlobalVariable(L));null==E&&null!=g&&(E=g[L])}p.push(e.substring(y,match.index)+(null!=E?E:q));y=match.index+q.length}}p.push(e.substring(y))}return p.join("")};Graph.prototype.restoreSelection=function(b){if(null!=b&&0<b.length){for(var e=[],g=0;g<b.length;g++){var p=this.model.getCell(b[g].id);null!=p&&e.push(p)}this.setSelectionCells(e)}else this.clearSelection()}; | 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 |
.4;C.prototype.redrawPath=function(c,m,v,n,t){m=t*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));c.moveTo(0,m/2);c.quadTo(n/4,1.4*m,n/2,m/2);c.quadTo(3*n/4,m*(1-1.4),n,m/2);c.lineTo(n,t-m/2);c.quadTo(3*n/4,t-1.4*m,n/2,t-m/2);c.quadTo(n/4,t-m*(1-1.4),0,t-m/2);c.lineTo(0,m/2);c.close();c.end()};C.prototype.getLabelBounds=function(c){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var m=mxUtils.getValue(this.style,"size",this.size),v=c.width,n=c.height;if(null==this.direction|| | 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){var f=g.apply(this,arguments);this.editor.graph.addListener("viewStateChanged",mxUtils.bind(this,function(k){this.editor.graph.isSelectionEmpty()&&f.refresh()}));return f};EditorUi.prototype.handleError=function(d,f,k,u,z,C,F){var K=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},O=null!=d&&null!=d.error?d.error:d;if(null!=d&&("1"==urlParams.test||null!=d.stack)&&null!=d.message)try{F?null!=window.console&&console.error("EditorUi.handleError:",d):EditorUi.logError("Caught: "+ | 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 |
try{z=u.insertVertex(null,null,"<pre>"+d+"</pre>",f,k,1,1,"text;html=1;align=left;verticalAlign=top;"),u.updateCellSize(z,!0)}finally{u.getModel().endUpdate()}return z};EditorUi.prototype.insertTextAt=function(d,f,k,u,z,C,F,K){C=null!=C?C:!0;F=null!=F?F:!0;if(null!=d)if(Graph.fileSupport&&(new XMLHttpRequest).upload&&this.isRemoteFileFormat(d))this.isOffline()?this.showError(mxResources.get("error"),mxResources.get("notInOffline")):this.parseFileData(d.replace(/\s+/g," "),mxUtils.bind(this,function(ca){4== | 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*(m+1));return new mxPoint(c.getCenterX()+m,Math.min(c.y+c.height,Math.max(c.y+n,v.y)))};mxStyleRegistry.putValue("lifelinePerimeter",mxPerimeter.LifelinePerimeter);mxPerimeter.OrthogonalPerimeter=function(c,m,v,n){n=!0;return mxPerimeter.RectanglePerimeter.apply(this,arguments)};mxStyleRegistry.putValue("orthogonalPerimeter",mxPerimeter.OrthogonalPerimeter);mxPerimeter.BackbonePerimeter=function(c,m,v,n){n=parseFloat(m.style[mxConstants.STYLE_STROKEWIDTH]||1)*m.view.scale/2-1;null!=m.style.backboneSize&&
(n+=parseFloat(m.style.backboneSize)*m.view.scale/2-1);if("south"==m.style[mxConstants.STYLE_DIRECTION]||"north"==m.style[mxConstants.STYLE_DIRECTION])return v.x<c.getCenterX()&&(n=-1*(n+1)),new mxPoint(c.getCenterX()+n,Math.min(c.y+c.height,Math.max(c.y,v.y)));v.y<c.getCenterY()&&(n=-1*(n+1));return new mxPoint(Math.min(c.x+c.width,Math.max(c.x,v.x)),c.getCenterY()+n)};mxStyleRegistry.putValue("backbonePerimeter",mxPerimeter.BackbonePerimeter);mxPerimeter.CalloutPerimeter=function(c,m,v,n){return mxPerimeter.RectanglePerimeter(mxUtils.getDirectedBounds(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 |
mxEvent.getSource(g)==this.graph.container&&this.setDisplay("none")}));this.graph.addListener(mxEvent.START_EDITING,mxUtils.bind(this,function(g){this.reset()}));var b=this.graph.click;this.graph.click=mxUtils.bind(this,function(g){b.apply(this.graph,arguments);null==this.currentState||this.graph.isCellSelected(this.currentState.cell)||!mxEvent.isTouchEvent(g.getEvent())||this.graph.model.isVertex(g.getCell())||this.reset()});var e=!1;this.graph.addMouseListener({mouseDown:mxUtils.bind(this,function(g,
p){e=!1;g=p.getEvent();this.isResetEvent(g)?this.reset():this.isActive()||(p=this.getState(p.getState()),null==p&&mxEvent.isTouchEvent(g)||this.update(p));this.setDisplay("none")}),mouseMove:mxUtils.bind(this,function(g,p){g=p.getEvent();this.isResetEvent(g)?this.reset():this.graph.isMouseDown||mxEvent.isTouchEvent(g)||this.update(this.getState(p.getState()),p.getGraphX(),p.getGraphY());null!=this.graph.connectionHandler&&null!=this.graph.connectionHandler.shape&&(e=!0)}),mouseUp:mxUtils.bind(this, | 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 |
for(i=0;i<K.length;i+=3)r=i+2==K.length?r+z(K.charCodeAt(i),K.charCodeAt(i+1),0):i+1==K.length?r+z(K.charCodeAt(i),0,0):r+z(K.charCodeAt(i),K.charCodeAt(i+1),K.charCodeAt(i+2));return r}(Graph.arrayBufferToString(pako.deflateRaw(d))),!0);"txt"!=f&&(F.responseType="blob");F.onload=function(K){if(200<=this.status&&300>this.status)if("txt"==f)k(this.response);else{var O=new FileReader;O.readAsDataURL(this.response);O.onloadend=function(H){var ka=new Image;ka.onload=function(){try{var fa=ka.width,ca=
ka.height;if(0==fa&&0==ca){var ja=O.result,ma=ja.indexOf(","),aa=decodeURIComponent(escape(atob(ja.substring(ma+1)))),S=mxUtils.parseXml(aa).getElementsByTagName("svg");0<S.length&&(fa=parseFloat(S[0].getAttribute("width")),ca=parseFloat(S[0].getAttribute("height")))}k(O.result,fa,ca)}catch(da){u(da)}};ka.src=O.result};O.onerror=function(H){u(H)}}else u(K)};F.onerror=function(K){u(K)};F.send()};EditorUi.prototype.insertAsPreText=function(d,f,k){var u=this.editor.graph,z=null;u.getModel().beginUpdate(); | 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.traverse(y,!0,mxUtils.bind(this,function(L,T){var G=null!=T&&this.isTreeEdge(T);G&&q.push(T);L==y||null!=T&&!G||q.push(L);return(null==T||G)&&(L==y||!this.model.isCollapsed(L))}));this.model.setCollapsed(y,p);for(var E=0;E<q.length;E++)this.model.setVisible(q[E],!p)}finally{this.model.endUpdate()}};Graph.prototype.isTreeEdge=function(p){return!this.isEdgeIgnored(p)};Graph.prototype.getTreeEdges=function(p,y,q,E,L,T){return this.model.filterCells(this.getEdges(p,y,q,E,L,T),mxUtils.bind(this, | 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 |
sa))}}finally{this.graph.model.endUpdate()}}else oa=new mxRectangle(this.x,this.y,this.width,this.height),this.graph.selectRegion(oa,J.getEvent());J.consume()}}};mxRubberband.prototype.mouseMove=function(x,J){if(!J.isConsumed()&&null!=this.first){var Q=mxUtils.getScrollOrigin(this.graph.container);x=mxUtils.getOffset(this.graph.container);Q.x-=x.x;Q.y-=x.y;x=J.getX()+Q.x;Q=J.getY()+Q.y;var Y=this.first.x-x,ea=this.first.y-Q,la=this.graph.tolerance;if(null!=this.div||Math.abs(Y)>la||Math.abs(ea)>la)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 |
EditorUi.prototype.resetScrollbars=function(){var b=this.editor.graph,e=b.container;if(!this.editor.extendCanvas)e.scrollTop=0,e.scrollLeft=0,mxUtils.hasScrollbars(e)||b.view.setTranslate(0,0);else if(!this.editor.isChromelessView())if(mxUtils.hasScrollbars(e))if(b.pageVisible){var g=b.getPagePadding();e.scrollTop=Math.floor(g.y-this.editor.initialTopSpacing)-1;e.scrollLeft=Math.floor(Math.min(g.x,(e.scrollWidth-e.clientWidth)/2))-1;g=b.getGraphBounds();0<g.width&&0<g.height&&(g.x>e.scrollLeft+.9*
e.clientWidth&&(e.scrollLeft=Math.min(g.x+g.width-e.clientWidth,g.x-10)),g.y>e.scrollTop+.9*e.clientHeight&&(e.scrollTop=Math.min(g.y+g.height-e.clientHeight,g.y-10)))}else if(g=b.getGraphBounds(),0==g.width&&0==g.height)e.scrollLeft=(e.scrollWidth-e.clientWidth)/2,e.scrollTop=(e.scrollHeight-e.clientHeight)/2;else{var p=Math.max(g.height,b.scrollTileSize.height*b.view.scale);e.scrollLeft=Math.floor(Math.max(0,g.x-Math.max(0,(e.clientWidth-Math.max(g.width,b.scrollTileSize.width*b.view.scale))/2)));
e.scrollTop=Math.floor(Math.max(0,g.y-Math.max(20,(e.clientHeight-p)/4)))}else{g=mxRectangle.fromRectangle(b.pageVisible?b.view.getBackgroundPageBounds():b.getGraphBounds());p=b.view.translate;var y=b.view.scale;g.x=g.x/y-p.x;g.y=g.y/y-p.y;g.width/=y;g.height/=y;b.view.setTranslate(Math.floor(Math.max(0,(e.clientWidth-g.width)/2)-g.x+2),Math.floor((b.pageVisible?0:Math.max(0,(e.clientHeight-g.height)/4))-g.y+1))}}; | 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.isRemoteFileFormat(H,d.name)?u.isOffline()?u.showError(mxResources.get("error"),mxResources.get("notInOffline"),null,k):u.parseFileData(H,mxUtils.bind(this,function(ka){4==ka.readyState&&(200<=ka.status&&299>=ka.status?f(ka.responseText):k())}),d.name):k()}):O||k()}},function(C){k(C)}):k()});"undefined"!==typeof JSZip||this.loadingExtensions||this.isOffline(!0)?z():(this.loadingExtensions=!0,mxscript("js/extensions.min.js",z,null,null,null,k))};EditorUi.prototype.importFile=function(d,f,k,u,z,C,
F,K,O,H,ka,fa){H=null!=H?H:!0;var ca=!1,ja=null,ma=mxUtils.bind(this,function(aa){var S=null;null!=aa&&"<mxlibrary"==aa.substring(0,10)?this.loadLibrary(new LocalLibrary(this,aa,F)):S=this.importXml(aa,k,u,H,null,null!=fa?mxEvent.isControlDown(fa):null);null!=K&&K(S)});"image"==f.substring(0,5)?(O=!1,"image/png"==f.substring(0,9)&&(f=ka?null:this.extractGraphModelFromPng(d),null!=f&&0<f.length&&(ja=this.importXml(f,k,u,H,null,null!=fa?mxEvent.isControlDown(fa):null),O=!0)),O||(f=this.editor.graph,
O=d.indexOf(";"),0<O&&(d=d.substring(0,O)+d.substring(d.indexOf(",",O+1))),H&&f.isGridEnabled()&&(k=f.snap(k),u=f.snap(u)),ja=[f.insertVertex(null,null,"",k,u,z,C,"shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image="+d+";")])):/(\.*<graphml )/.test(d)?(ca=!0,this.importGraphML(d,ma)):null!=O&&null!=F&&(/(\.v(dx|sdx?))($|\?)/i.test(F)||/(\.vs(x|sx?))($|\?)/i.test(F))?(ca=!0,this.importVisio(O,ma)):(new XMLHttpRequest).upload&&this.isRemoteFileFormat(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 |
function(x){return p.apply(this,arguments)||this.graph.isEdgeIgnored(x)};var y=mxConnectionHandler.prototype.isCreateTarget;mxConnectionHandler.prototype.isCreateTarget=function(x){return this.graph.isCloneEvent(x)!=y.apply(this,arguments)};mxConstraintHandler.prototype.createHighlightShape=function(){var x=new mxEllipse(null,this.highlightColor,this.highlightColor,0);x.opacity=mxConstants.HIGHLIGHT_OPACITY;return x};mxConnectionHandler.prototype.livePreview=!0;mxConnectionHandler.prototype.cursor= | 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)};EditorUi.prototype.getDatabaseItem=function(d,f,k,u){this.openDatabase(mxUtils.bind(this,function(z){try{u=u||"objects";var C=z.transaction([u],"readonly").objectStore(u).get(d);C.onsuccess=function(){f(C.result)};C.onerror=k}catch(F){null!=k&&k(F)}}),k)};EditorUi.prototype.getDatabaseItems=function(d,f,k){this.openDatabase(mxUtils.bind(this,function(u){try{k=k||"objects";var z=u.transaction([k],"readonly").objectStore(k).openCursor(IDBKeyRange.lowerBound(0)),C=[];z.onsuccess=function(F){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 |
function(d){return mxResources.get(d)};EditorUi.prototype.pickFolder=function(d,f,k){f(null)};EditorUi.prototype.exportSvg=function(d,f,k,u,z,C,F,K,O,H,ka,fa,ca,ja){if(this.spinner.spin(document.body,mxResources.get("export")))try{var ma=this.editor.graph.isSelectionEmpty();k=null!=k?k:ma;var aa=f?null:this.editor.graph.background;aa==mxConstants.NONE&&(aa=null);null==aa&&0==f&&(aa=ka?this.editor.graph.defaultPageBackgroundColor:"#ffffff");var S=this.editor.graph.getSvg(aa,d,F,K,null,k,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 |
function(d,f){f=null!=f?f:!1;var k=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},u=isLocalStorage||mxClient.IS_CHROMEAPP?mxSettings.getResizeImages():null,z=function(C,F){if(C||f)mxSettings.setResizeImages(C?F:null),mxSettings.save();k();d(F)};null==u||f?this.showDialog((new ConfirmDialog(this,mxResources.get("resizeLargeImages"),function(C){z(C,!0)},function(C){z(C,!1)},mxResources.get("resize"),mxResources.get("actualSize"),'<img style="margin-top:8px;" src="'+Editor.loResImage+ | 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 |
mxUtils.bind(this,fa.prototype.curveTo);this.originalArcTo=this.canvas.arcTo;this.canvas.arcTo=mxUtils.bind(this,fa.prototype.arcTo)}function ca(){mxRectangleShape.call(this)}function ja(){mxRectangleShape.call(this)}function ma(){mxActor.call(this)}function aa(){mxActor.call(this)}function S(){mxActor.call(this)}function da(){mxRectangleShape.call(this)}function P(){mxRectangleShape.call(this)}function V(){mxCylinder.call(this)}function l(){mxShape.call(this)}function A(){mxShape.call(this)}function N(){mxEllipse.call(this)} | 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 |
"resize",p);b.window.destroy();null!=g&&g()}};function ChangeGridColor(b,e){this.ui=b;this.color=e}ChangeGridColor.prototype.execute=function(){var b=this.ui.editor.graph.view.gridColor;this.ui.setGridColor(this.color);this.color=b};(function(){var b=new mxObjectCodec(new ChangeGridColor,["ui"]);mxCodecRegistry.register(b)})(); | 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.updateAlternateBounds=function(b,e,g){if(null!=b&&null!=e&&null!=this.layoutManager&&null!=e.alternateBounds){var p=this.layoutManager.getLayout(this.model.getParent(b));null!=p&&p.constructor==mxStackLayout&&(p.horizontal?e.alternateBounds.height=0:e.alternateBounds.width=0)}mxGraph.prototype.updateAlternateBounds.apply(this,arguments)};Graph.prototype.isMoveCellsEvent=function(b,e){return mxEvent.isShiftDown(b)||"1"==mxUtils.getValue(e.style,"moveCells","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 |
F.freehand){var ma=F.freehand.createStyle;F.freehand.createStyle=function(ia){return ma.apply(this,arguments)+"sketch=0;"}}C.editor.addListener("statusChanged",mxUtils.bind(this,function(){C.setStatusText(C.editor.getStatus())}));C.setStatusText(C.editor.getStatus());var aa=C.menus.get("viewZoom");if(null!=aa){var S=function(ia){if(mxEvent.isAltDown(ia))C.hideCurrentMenu(),C.actions.get("customZoom").funct(),mxEvent.consume(ia);else if("geMenuItem"==mxEvent.getSource(ia).className||mxEvent.isShiftDown(ia))C.hideCurrentMenu(), | 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 |
{val:"square",dispName:"Square"},{val:"rounded",dispName:"Round"},{val:"snip",dispName:"Snip"},{val:"invRound",dispName:"Inv. Round"},{val:"fold",dispName:"Fold"}]}];Na.prototype.paintVertexShape=function(c,m,v,n,t){c.translate(m,v);this.strictDrawShape(c,0,0,n,t)};Na.prototype.strictDrawShape=function(c,m,v,n,t,B){var D=B&&B.rectStyle?B.rectStyle:mxUtils.getValue(this.style,"rectStyle",this.rectStyle),ha=B&&B.absoluteCornerSize?B.absoluteCornerSize:mxUtils.getValue(this.style,"absoluteCornerSize", | 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(){var b=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(g){return window.setTimeout(g,20)},e=function(g,p){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-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 |
oa.tooltipHandler.reset(ua,!0,this.currentState),(null==this.currentState||ua.getState()!=this.currentState&&null!=ua.sourceState||!oa.intersects(this.currentState,ua.getGraphX(),ua.getGraphY()))&&this.updateCurrentState(ua))}},mouseUp:function(sa,ua){var Fa=ua.getSource();for(sa=ua.getEvent();null!=Fa&&"a"!=Fa.nodeName.toLowerCase();)Fa=Fa.parentNode;null==Fa&&Math.abs(this.scrollLeft-oa.container.scrollLeft)<la&&Math.abs(this.scrollTop-oa.container.scrollTop)<la&&(null==ua.sourceState||!ua.isSource(ua.sourceState.control))&&
((mxEvent.isLeftMouseButton(sa)||mxEvent.isMiddleMouseButton(sa))&&!mxEvent.isPopupTrigger(sa)||mxEvent.isTouchEvent(sa))&&(null!=this.currentLink?(Fa=oa.isBlankLink(this.currentLink),"data:"!==this.currentLink.substring(0,5)&&Fa||null==J||J(sa,this.currentLink),mxEvent.isConsumed(sa)||(sa=null!=this.currentTarget?this.currentTarget:mxEvent.isMiddleMouseButton(sa)?"_blank":Fa?oa.linkTarget:"_top",oa.openLink(this.currentLink,sa),ua.consume())):null!=Q&&!ua.isConsumed()&&Math.abs(this.scrollLeft-oa.container.scrollLeft)<
la&&Math.abs(this.scrollTop-oa.container.scrollTop)<la&&Math.abs(this.startX-ua.getGraphX())<la&&Math.abs(this.startY-ua.getGraphY())<la&&Q(ua.getEvent()));this.clear()},activate:function(sa){this.currentLink=oa.getAbsoluteUrl(oa.getLinkForCell(sa.cell));null!=this.currentLink&&(this.currentTarget=oa.getLinkTargetForCell(sa.cell),oa.container.style.cursor="pointer",null!=this.highlight&&this.highlight.highlight(sa))},clear:function(){null!=oa.container&&(oa.container.style.cursor=ea);this.currentLink= | 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(){if(!mxClient.IS_IE){var d=this.editor.graph;d.container.addEventListener("paste",mxUtils.bind(this,function(f){if(!mxEvent.isConsumed(f))try{for(var k=f.clipboardData||f.originalEvent.clipboardData,u=!1,z=0;z<k.types.length;z++)if("text/"===k.types[z].substring(0,5)){u=!0;break}if(!u){var C=k.items;for(index in C){var F=C[index];if("file"===F.kind){if(d.isEditing())this.importFiles([F.getAsFile()],0,0,this.maxImageSize,function(O,H,ka,fa,ca,ja){d.insertImage(O,ca,ja)},function(){},function(O){return"image/"==
O.type.substring(0,6)},function(O){for(var H=0;H<O.length;H++)O[H]()});else{var K=this.editor.graph.getInsertPoint();this.importFiles([F.getAsFile()],K.x,K.y,this.maxImageSize);mxEvent.consume(f)}break}}}}catch(O){}}),!1)}};EditorUi.prototype.installNativeClipboardHandler=function(){function d(){window.setTimeout(function(){k.innerHTML=" ";k.focus();document.execCommand("selectAll",!1,null)},0)}var f=this.editor.graph,k=document.createElement("div");k.setAttribute("autocomplete","off");k.setAttribute("autocorrect", | 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 |
"geTabContainer geTabItem";C.tabContainer.style.cssText="position:absolute;left:0px;right:0px;bottom:0px;height:30px;white-space:nowrap;visibility:hidden;";u=C.diagramContainer.parentNode;z=document.createElement("div");z.style.cssText="position:absolute;top:0px;left:0px;right:0px;bottom:0px;overflow:hidden;";C.diagramContainer.style.top="47px";var ca=Editor.addBoxImage;if(null!=C.hoverIcons){var ja=C.hoverIcons.update;C.hoverIcons.update=function(){F.freehand.isDrawing()||ja.apply(this,arguments)}}if(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 |
GraphViewer.prototype.createToolbarButton=function(b,e,g,p){var y=document.createElement("div");y.style.borderRight="1px solid #d0d0d0";y.style.padding="3px 6px 3px 6px";mxEvent.addListener(y,"click",b);null!=g&&y.setAttribute("title",g);y.style.display="inline-block";b=document.createElement("img");b.setAttribute("border","0");b.setAttribute("src",e);b.style.width="18px";null==p||p?(mxEvent.addListener(y,"mouseenter",function(){y.style.backgroundColor="#ddd"}),mxEvent.addListener(y,"mouseleave",
function(){y.style.backgroundColor="#eee"}),mxUtils.setOpacity(b,60),y.style.cursor="pointer"):mxUtils.setOpacity(y,30);y.appendChild(b);return y};GraphViewer.prototype.disableButton=function(b){var e=this.graphConfig["toolbar-buttons"]?this.graphConfig["toolbar-buttons"][b]:null;null!=e&&(mxUtils.setOpacity(e.elem,30),mxEvent.removeListener(e.elem,"click",e.handler),mxEvent.addListener(e.elem,"mouseenter",function(){e.elem.style.backgroundColor="#eee"}))}; | 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.