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 |
|---|---|---|---|---|---|---|---|
46;EditorUi.prototype.footerHeight=0;Graph.prototype.editAfterInsert=!mxClient.IS_IOS&&!mxClient.IS_ANDROID;Editor.styleElt=document.createElement("style");Editor.styleElt.type="text/css";Editor.styleElt.innerHTML=Editor.createMinimalCss();document.getElementsByTagName("head")[0].appendChild(Editor.styleElt);Editor.prototype.isChromelessView=function(){return!1};Graph.prototype.isLightboxView=function(){return!1};var y=EditorUi.prototype.refresh;EditorUi.prototype.refresh=function(W){y.apply(this,
arguments);null!=this.tabContainer&&(this.tabContainer.style.right="62px",this.diagramContainer.style.bottom=this.tabContainerHeight+"px")};var q=EditorUi.prototype.updateActionStates;EditorUi.prototype.updateActionStates=function(){q.apply(this,arguments);this.menus.get("save").setEnabled(null!=this.getCurrentFile()||"1"==urlParams.embed)};var E=Menus.prototype.addShortcut;Menus.prototype.addShortcut=function(W,d){null!=d.shortcut&&900>p&&!mxClient.IS_IOS?W.firstChild.nextSibling.setAttribute("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 |
EditorUi.prototype.updatePageRoot=function(b,e){if(null==b.root){e=this.editor.extractGraphModel(b.node,null,e);var g=Editor.extractParserError(e);if(g)throw Error(g);null!=e?(b.graphModelNode=e,b.viewState=this.editor.graph.createViewState(e),g=new mxCodec(e.ownerDocument),b.root=g.decode(e).root):b.root=this.editor.graph.model.createRoot()}else if(null==b.viewState){if(null==b.graphModelNode){e=this.editor.extractGraphModel(b.node);if(g=Editor.extractParserError(e))throw Error(g);null!=e&&(b.graphModelNode=
e)}null!=b.graphModelNode&&(b.viewState=this.editor.graph.createViewState(b.graphModelNode))}return b};EditorUi.prototype.selectPage=function(b,e,g){try{if(b!=this.currentPage){var p=this.editor.graph;p.isEditing()&&p.stopEditing(!1);e=null!=e?e:!1;p.isMouseDown=!1;p.reset();var y=p.model.createUndoableEdit();y.ignoreEdit=!0;var q=new SelectPage(this,b,g);q.execute();y.add(q);y.notify();e||p.model.fireEvent(new mxEventObject(mxEvent.UNDO,"edit",y))}}catch(E){this.handleError(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 |
g()}catch(p){null!=e&&e(p)}};DrawioFile.prototype.mergeLatestVersion=function(b,e,g){this.getLatestVersion(mxUtils.bind(this,function(p){this.ui.editor.graph.model.beginUpdate();try{this.ui.replaceFileData(p.getData()),null!=b&&this.patch(b)}finally{this.ui.editor.graph.model.endUpdate()}this.inConflictState=this.invalidChecksum=!1;this.setDescriptor(p.getDescriptor());this.descriptorChanged();null!=e&&e()}),g)}; | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
"fixedSize","0")?I.x-ha.x:Math.max(0,Math.min(v,(I.x-ha.x)/ha.width));this.state.style.size=ha},!1,n)];m&&mxUtils.getValue(B.style,mxConstants.STYLE_ROUNDED,!1)&&D.push(pb(B));return D}},tb=function(c,m,v){c=null!=c?c:.5;return function(n){var t=[hb(n,["size"],function(B){var D=null!=v?"0"!=mxUtils.getValue(this.state.style,"fixedSize","0"):null,ha=Math.max(0,parseFloat(mxUtils.getValue(this.state.style,"size",D?v:m)));return new mxPoint(B.x+Math.min(.75*B.width*c,ha*(D?.75:.75*B.width)),B.y+B.height/
4)},function(B,D){B=null!=v&&"0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?D.x-B.x:Math.max(0,Math.min(c,(D.x-B.x)/B.width*.75));this.state.style.size=B},!1,!0)];mxUtils.getValue(n.style,mxConstants.STYLE_ROUNDED,!1)&&t.push(pb(n));return t}},ob=function(){return function(c){var m=[];mxUtils.getValue(c.style,mxConstants.STYLE_ROUNDED,!1)&&m.push(pb(c));return m}},pb=function(c,m){return hb(c,[mxConstants.STYLE_ARCSIZE],function(v){var n=null!=m?m:v.height/8;if("1"==mxUtils.getValue(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 |
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 |
f.parentNode&&f.parentNode.removeChild(f)}))};var M=!1;EditorUi.prototype.initFormatWindow=function(){if(!M&&null!=this.formatWindow){M=!0;var W=this.formatWindow.window.toggleMinimized,d=240;this.formatWindow.window.toggleMinimized=function(){W.apply(this,arguments);this.minimized?(d=parseInt(this.div.style.width),this.div.style.width="140px",this.table.style.width="140px",this.div.style.left=parseInt(this.div.style.left)+d-140+"px"):(this.div.style.width=d+"px",this.table.style.width=this.div.style.width,
this.div.style.left=Math.max(0,parseInt(this.div.style.left)-d+140)+"px");this.fit()};mxEvent.addListener(this.formatWindow.window.title,"dblclick",mxUtils.bind(this,function(f){mxEvent.getSource(f)==this.formatWindow.window.title&&this.formatWindow.window.toggleMinimized()}))}};var R=EditorUi.prototype.init;EditorUi.prototype.init=function(){function W(ia,qa,ra){var pa=C.menus.get(ia),xa=H.addMenu(mxResources.get(ia),mxUtils.bind(this,function(){pa.funct.apply(this,arguments)}),O);xa.className="geMenuItem"; | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
this.diagramContainer.scrollLeft+=d.x-f.x;this.diagramContainer.scrollTop+=d.x-f.x};EditorUi.prototype.isAutoDarkModeSupported=function(){return null!=window.matchMedia};EditorUi.prototype.isAutoDarkMode=function(d){return!d&&"auto"==urlParams.dark||Editor.isSettingsEnabled()&&("auto"==mxSettings.settings.darkMode||"draw.io"==this.getServiceName()&&"1"!=urlParams.embed&&(!this.editor.chromeless||this.editor.editable)&&null==mxSettings.settings.darkMode)};EditorUi.prototype.setDarkMode=function(d){this.doSetDarkMode(d,
mxUtils.bind(this,function(){this.fireEvent(new mxEventObject("darkModeChanged"))}),mxUtils.bind(this,function(f){null!=window.console&&console.error(f);this.editor.setStatus(f.message)}))};EditorUi.prototype.createDarkStyle=function(){var d=document.createElement("link");d.setAttribute("rel","stylesheet");d.setAttribute("href",STYLE_PATH+"/dark.css");d.setAttribute("charset","UTF-8");d.setAttribute("type","text/css");return d};EditorUi.prototype.doSetDarkMode=function(d,f,k){var u=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 |
(S="1"==f.getCurrentCellStyle(aa).treeMoving);return S}function q(aa){var S=!1;null!=aa&&(aa=k.getParent(aa),S=f.view.getState(aa),S="tree"==(null!=S?S.style:f.getCellStyle(aa)).containerType);return S}function E(aa){var S=!1;null!=aa&&(aa=k.getParent(aa),S=f.view.getState(aa),f.view.getState(aa),S=null!=(null!=S?S.style:f.getCellStyle(aa)).childLayout);return S}function L(aa){aa=f.view.getState(aa);if(null!=aa){var S=f.getIncomingTreeEdges(aa.cell);if(0<S.length&&(S=f.view.getState(S[0]),null!=S&&
(S=S.absolutePoints,null!=S&&0<S.length&&(S=S[S.length-1],null!=S)))){if(S.y==aa.y&&Math.abs(S.x-aa.getCenterX())<aa.width/2)return mxConstants.DIRECTION_SOUTH;if(S.y==aa.y+aa.height&&Math.abs(S.x-aa.getCenterX())<aa.width/2)return mxConstants.DIRECTION_NORTH;if(S.x>aa.getCenterX())return mxConstants.DIRECTION_WEST}}return mxConstants.DIRECTION_EAST}function T(aa,S){S=null!=S?S:!0;f.model.beginUpdate();try{var da=f.model.getParent(aa),P=f.getIncomingTreeEdges(aa),V=f.cloneCells([P[0],aa]);f.model.setTerminal(V[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 |
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 |
mxCylinder);k.prototype.tabWidth=60;k.prototype.tabHeight=20;k.prototype.tabPosition="right";k.prototype.arcSize=.1;k.prototype.paintVertexShape=function(c,m,v,n,t){c.translate(m,v);m=Math.max(0,Math.min(n,parseFloat(mxUtils.getValue(this.style,"tabWidth",this.tabWidth))));v=Math.max(0,Math.min(t,parseFloat(mxUtils.getValue(this.style,"tabHeight",this.tabHeight))));var B=mxUtils.getValue(this.style,"tabPosition",this.tabPosition),D=mxUtils.getValue(this.style,"rounded",!1),ha=mxUtils.getValue(this.style,
"absoluteArcSize",!1),I=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));ha||(I*=Math.min(n,t));I=Math.min(I,.5*n,.5*(t-v));m=Math.max(m,I);m=Math.min(n-I,m);D||(I=0);c.begin();"left"==B?(c.moveTo(Math.max(I,0),v),c.lineTo(Math.max(I,0),0),c.lineTo(m,0),c.lineTo(m,v)):(c.moveTo(n-m,v),c.lineTo(n-m,0),c.lineTo(n-Math.max(I,0),0),c.lineTo(n-Math.max(I,0),v));D?(c.moveTo(0,I+v),c.arcTo(I,I,0,0,1,I,v),c.lineTo(n-I,v),c.arcTo(I,I,0,0,1,n,I+v),c.lineTo(n,t-I),c.arcTo(I,I,0,0,1,n-I,t),c.lineTo(I,
t),c.arcTo(I,I,0,0,1,0,t-I)):(c.moveTo(0,v),c.lineTo(n,v),c.lineTo(n,t),c.lineTo(0,t));c.close();c.fillAndStroke();c.setShadow(!1);"triangle"==mxUtils.getValue(this.style,"folderSymbol",null)&&(c.begin(),c.moveTo(n-30,v+20),c.lineTo(n-20,v+10),c.lineTo(n-10,v+20),c.close(),c.stroke())};mxCellRenderer.registerShape("folder",k);k.prototype.getLabelMargins=function(c){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var m=mxUtils.getValue(this.style,"tabHeight",15)*this.scale;if(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 |
t);else if("square"==D||"default"==D&&"square"==B)c.lineTo(I,t-I);else if("rounded"==D||"default"==D&&"rounded"==B)c.arcTo(ha-.5*I,ha-.5*I,0,0,0,ha+.5*I,t-I);else if("invRound"==D||"default"==D&&"invRound"==B)c.arcTo(ha+I,ha+I,0,0,1,ha+I,t-I);else if("snip"==D||"default"==D&&"snip"==B)c.lineTo(ha+.5*I,t-I);else if("fold"==D||"default"==D&&"fold"==B)c.lineTo(I+ha,t-ha-I),c.lineTo(I+ha,t-I)};Na.prototype.moveSWInner=function(c,m,v,n,t,B,D,ha,I,va){va?"square"==D||"default"==D&&"square"==B?c.moveTo(I,
t-I):"rounded"==D||"default"==D&&"rounded"==B||"snip"==D||"default"==D&&"snip"==B?c.moveTo(I,t-ha-.5*I):("invRound"==D||"default"==D&&"invRound"==B||"fold"==D||"default"==D&&"fold"==B)&&c.moveTo(I,t-ha-I):c.moveTo(0,t-I)};Na.prototype.lineSWInner=function(c,m,v,n,t,B,D,ha,I,va){va?"square"==D||"default"==D&&"square"==B?c.lineTo(I,t-I):"rounded"==D||"default"==D&&"rounded"==B||"snip"==D||"default"==D&&"snip"==B?c.lineTo(I,t-ha-.5*I):("invRound"==D||"default"==D&&"invRound"==B||"fold"==D||"default"== | 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.addListener(Y,"click",mxUtils.bind(this,function(ea){this.customLinkClicked(x);mxEvent.consume(ea)}));return Y};Graph.prototype.initTouch=function(){this.connectionHandler.marker.isEnabled=function(){return null!=this.graph.connectionHandler.first};this.addListener(mxEvent.START_EDITING,function(la,oa){this.popupMenuHandler.hideMenu()});var x=this.updateMouseEvent;this.updateMouseEvent=function(la){la=x.apply(this,arguments);if(mxEvent.isTouchEvent(la.getEvent())&&null==la.getState()){var oa=
this.getCellAt(la.graphX,la.graphY);null!=oa&&this.isSwimlane(oa)&&this.hitsSwimlaneContent(oa,la.graphX,la.graphY)||(la.state=this.view.getState(oa),null!=la.state&&null!=la.state.shape&&(this.container.style.cursor=la.state.shape.node.style.cursor))}null==la.getState()&&this.isEnabled()&&(this.container.style.cursor="default");return la};var J=!1,Q=!1,Y=!1,ea=this.fireMouseEvent;this.fireMouseEvent=function(la,oa,wa){la==mxEvent.MOUSE_DOWN&&(oa=this.updateMouseEvent(oa),J=this.isCellSelected(oa.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 |
this.handleError(ja)}))})))}}),mxUtils.bind(this,function(){this.hideDialog()}),mxResources.get("saveAs"),mxResources.get("download"),!1,!1,F,null,1<K,O,u,C,z);K=this.isServices(K)?4<K?390:280:160;this.showDialog(d.container,420,K,!0,!0);d.init()};EditorUi.prototype.isServices=function(d){return 1!=d};EditorUi.prototype.getEditBlankXml=function(){return this.getFileData(!0)};EditorUi.prototype.exportFile=function(d,f,k,u,z,C){};EditorUi.prototype.getServiceForName=function(d){return null};EditorUi.prototype.getTitleForService= | 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 |
mxShape.prototype.afterPaint=function(c){Pa.apply(this,arguments);null!=c.handJiggle&&(c.handJiggle.destroy(),delete c.handJiggle)};mxShape.prototype.createComicCanvas=function(c){return new fa(c,mxUtils.getValue(this.style,"jiggle",Editor.sketchDefaultJiggle))};mxShape.prototype.createHandJiggle=function(c){return this.outline||null==this.style||"0"==mxUtils.getValue(this.style,"comic","0")?null:this.createComicCanvas(c)};var eb=mxRectangleShape.prototype.isHtmlAllowed;mxRectangleShape.prototype.isHtmlAllowed= | 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>")}; | 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 |
";");"elbowEdgeStyle"==this.currentEdgeStyle.edgeStyle&&null!=this.currentEdgeStyle.elbow&&(x+="elbow="+this.currentEdgeStyle.elbow+";");return x=null!=this.currentEdgeStyle.html?x+("html="+this.currentEdgeStyle.html+";"):x+"html=1;"};Graph.prototype.getPagePadding=function(){return new mxPoint(0,0)};Graph.prototype.loadStylesheet=function(){var x=null!=this.themes?this.themes[this.defaultThemeName]:mxStyleRegistry.dynamicLoading?mxUtils.load(STYLE_PATH+"/default.xml").getDocumentElement():null;null!=
x&&(new mxCodec(x.ownerDocument)).decode(x,this.getStylesheet())};Graph.prototype.createCellLookup=function(x,J){J=null!=J?J:{};for(var Q=0;Q<x.length;Q++){var Y=x[Q];J[mxObjectIdentity.get(Y)]=Y.getId();for(var ea=this.model.getChildCount(Y),la=0;la<ea;la++)this.createCellLookup([this.model.getChildAt(Y,la)],J)}return J};Graph.prototype.createCellMapping=function(x,J,Q){Q=null!=Q?Q:{};for(var Y in x){var ea=J[Y];null==Q[ea]&&(Q[ea]=x[Y].getId()||"")}return Q};Graph.prototype.importGraphModel=function(x, | 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 |
"fold"==B)&&c.lineTo(ha,0);else c.lineTo(0,0)};Na.prototype.paintTop=function(c,m,v,n,t,B,D,ha,I){"square"==D||"default"==D&&"square"==B||!I?c.lineTo(n,0):c.lineTo(n-ha,0)};Na.prototype.paintNE=function(c,m,v,n,t,B,D,ha,I){if(I)if("rounded"==D||"default"==D&&"rounded"==B||"invRound"==D||"default"==D&&"invRound"==B){m=0;if("rounded"==D||"default"==D&&"rounded"==B)m=1;c.arcTo(ha,ha,0,0,m,n,ha)}else("snip"==D||"default"==D&&"snip"==B||"fold"==D||"default"==D&&"fold"==B)&&c.lineTo(n,ha);else c.lineTo(n, | 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.initClipboard=function(){var b=this,e=mxClipboard.cut;mxClipboard.cut=function(q){q.cellEditor.isContentEditing()?document.execCommand("cut",!1,null):e.apply(this,arguments);b.updatePasteActionStates()};mxClipboard.copy=function(q){var E=null;if(q.cellEditor.isContentEditing())document.execCommand("copy",!1,null);else{E=E||q.getSelectionCells();E=q.getExportableCells(q.model.getTopmostCells(E));for(var L={},T=q.createCellLookup(E),G=q.cloneCells(E,null,L),M=new mxGraphModel,R=M.getChildAt(M.getRoot(),
0),W=0;W<G.length;W++){M.add(R,G[W]);var d=q.view.getState(E[W]);if(null!=d){var f=q.getCellGeometry(G[W]);null!=f&&f.relative&&!M.isEdge(E[W])&&null==T[mxObjectIdentity.get(M.getParent(E[W]))]&&(f.offset=null,f.relative=!1,f.x=d.x/d.view.scale-d.view.translate.x,f.y=d.y/d.view.scale-d.view.translate.y)}}q.updateCustomLinks(q.createCellMapping(L,T),G);mxClipboard.insertCount=1;mxClipboard.setCells(G)}b.updatePasteActionStates();return E};var g=mxClipboard.paste;mxClipboard.paste=function(q){var E=
null;q.cellEditor.isContentEditing()?document.execCommand("paste",!1,null):E=g.apply(this,arguments);b.updatePasteActionStates();return E};var p=this.editor.graph.cellEditor.startEditing;this.editor.graph.cellEditor.startEditing=function(){p.apply(this,arguments);b.updatePasteActionStates()};var y=this.editor.graph.cellEditor.stopEditing;this.editor.graph.cellEditor.stopEditing=function(q,E){y.apply(this,arguments);b.updatePasteActionStates()};this.updatePasteActionStates()}; | 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.appendChild(this.sketchPickerMenuElt));mxClient.IS_POINTER&&(this.sketchPickerMenuElt.style.touchAction="none")}};EditorUi.prototype.getNetworkStatus=function(){var d=null;if(this.isOffline(!0))d=mxResources.get("offline");else{var f=this.getCurrentFile();null!=f&&(f.invalidChecksum?d=mxResources.get("error")+": "+mxResources.get("checksum"):null==f.sync||f.sync.enabled&&f.sync.isRealtimeActive()?null==f.sync||f.sync.isConnected()?f.isRealtimeEnabled()&&f.isRealtimeSupported()&&
1<f.getRealtimeState()&&(d=f.getRealtimeError(),d=mxResources.get("realtimeCollaboration")+": "+(null!=d&&null!=d.message?d.message:mxResources.get("error"))):d=mxResources.get("notConnected"):d=mxResources.get("realtimeCollaboration")+": "+mxResources.get("disabled"))}return d};EditorUi.prototype.createMenubarForTheme=function(d){if("simple"==d||"sketch"==d){if(null==this.sketchMenubarElt){this.sketchMenubarElt=document.createElement("div");this.sketchMenubarElt.className="geToolbarContainer";if("simple"== | 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 |
"crosshair";mxConnectionHandler.prototype.createEdgeState=function(x){x=this.graph.createCurrentEdgeStyle();x=this.graph.createEdge(null,null,null,null,null,x);x=new mxCellState(this.graph.view,x,this.graph.getCellStyle(x));for(var J in this.graph.currentEdgeStyle)x.style[J]=this.graph.currentEdgeStyle[J];if(null!=this.previous){var Q=this.previous.style.newEdgeStyle;if(null!=Q)try{var Y=JSON.parse(Q);for(J in Y)x.style[J]=Y[J]}catch(ea){}}x.style=this.graph.postProcessCellStyle(x.cell,x.style);return x}; | 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.handleConflictError=function(b,e){var g=mxUtils.bind(this,function(){this.handleFileSuccess(!0)}),p=mxUtils.bind(this,function(E){this.handleFileError(E,!0)}),y=mxUtils.bind(this,function(){this.ui.spinner.spin(document.body,mxResources.get(this.savingSpinnerKey))&&(this.ui.editor.setStatus(""),this.save(!0,g,p,null,!0,this.constructor!=GitHubFile&&this.constructor!=GitLabFile||null==b?null:b.commitMessage))}),q=mxUtils.bind(this,function(){this.ui.spinner.spin(document.body,mxResources.get("updatingDocument"))&&
this.synchronizeFile(mxUtils.bind(this,function(){this.ui.spinner.stop();this.ui.spinner.spin(document.body,mxResources.get(this.savingSpinnerKey))&&this.save(!0,g,p,null,null,this.constructor!=GitHubFile&&this.constructor!=GitLabFile||null==b?null:b.commitMessage)}),p)});"none"==DrawioFile.SYNC?this.showCopyDialog(g,p,y):this.invalidChecksum?this.showRefreshDialog(g,p,this.getErrorMessage(b)):e?this.showConflictDialog(y,q):this.addConflictStatus(this.getErrorMessage(b),mxUtils.bind(this,function(){this.ui.editor.setStatus(mxUtils.htmlEntities(mxResources.get("updatingDocument")));
this.synchronizeFile(g,p)}))};DrawioFile.prototype.getErrorMessage=function(b){var e=null!=b?null!=b.error?b.error.message:b.message:null;null==e&&null!=b&&b.code==App.ERROR_TIMEOUT?e=mxResources.get("timeout"):"0"==e&&(e=mxResources.get("noResponse"));return e};DrawioFile.prototype.isOverdue=function(){return null!=this.ageStart&&Date.now()-this.ageStart.getTime()>=this.ui.warnInterval}; | 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.selectTableRange=function(b,e){var g=!1;if(this.isTableCell(b)&&this.isTableCell(e)){var p=this.model.getParent(b),y=this.model.getParent(p),q=this.model.getParent(e);if(y==this.model.getParent(q)){b=p.getIndex(b);p=y.getIndex(p);var E=q.getIndex(e),L=y.getIndex(q);q=Math.max(p,L);e=Math.min(b,E);b=Math.max(b,E);E=[];for(p=Math.min(p,L);p<=q;p++){L=this.model.getChildAt(y,p);for(var T=e;T<=b;T++)E.push(this.model.getChildAt(L,T))}0<E.length&&(1<E.length||1<this.getSelectionCount()||
!this.isCellSelected(E[0]))&&(this.setSelectionCells(E),g=!0)}}return g}; | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
t/2);c.end()};mxCellRenderer.registerShape("crossbar",ya);mxUtils.extend(Va,mxActor);Va.prototype.dx=20;Va.prototype.dy=20;Va.prototype.redrawPath=function(c,m,v,n,t){m=Math.max(0,Math.min(n,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));v=Math.max(0,Math.min(t,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));parseFloat(mxUtils.getValue(this.style,"size",this.size));var B=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(0,
0),new mxPoint(n,0),new mxPoint(n,v),new mxPoint((n+m)/2,v),new mxPoint((n+m)/2,t),new mxPoint((n-m)/2,t),new mxPoint((n-m)/2,v),new mxPoint(0,v)],this.isRounded,B,!0);c.end()};mxCellRenderer.registerShape("tee",Va);mxUtils.extend(Wa,mxActor);Wa.prototype.arrowWidth=.3;Wa.prototype.arrowSize=.2;Wa.prototype.redrawPath=function(c,m,v,n,t){var B=t*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth",this.arrowWidth))));m=n*Math.max(0,Math.min(1,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 |
N("image","xlink:href");N("img","src");0==U&&A(l)};Editor.base64Encode=function(l){for(var A="",N=0,X=l.length,U,Z,ba;N<X;){U=l.charCodeAt(N++)&255;if(N==X){A+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(U>>2);A+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((U&3)<<4);A+="==";break}Z=l.charCodeAt(N++);if(N==X){A+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(U>>2);A+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((U&
3)<<4|(Z&240)>>4);A+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((Z&15)<<2);A+="=";break}ba=l.charCodeAt(N++);A+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(U>>2);A+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((U&3)<<4|(Z&240)>>4);A+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((Z&15)<<2|(ba&192)>>6);A+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(ba&
63)}return A};Editor.prototype.loadUrl=function(l,A,N,X,U,Z,ba,ia){try{var qa=!ba&&(X||/(\.png)($|\?)/i.test(l)||/(\.jpe?g)($|\?)/i.test(l)||/(\.gif)($|\?)/i.test(l)||/(\.pdf)($|\?)/i.test(l));U=null!=U?U:!0;var ra=mxUtils.bind(this,function(){mxUtils.get(l,mxUtils.bind(this,function(pa){if(200<=pa.getStatus()&&299>=pa.getStatus()){if(null!=A){var xa=pa.getText();if(qa){if((9==document.documentMode||10==document.documentMode)&&"undefined"!==typeof window.mxUtilsBinaryToArray){pa=mxUtilsBinaryToArray(pa.request.responseBody).toArray(); | 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 |
new Uint8Array(O)}return new Blob(z,{type:f})};EditorUi.prototype.saveLocalFile=function(d,f,k,u,z,C,F,K){C=null!=C?C:!1;F=null!=F?F:"vsdx"!=z&&(!mxClient.IS_IOS||!navigator.standalone);z=this.getServiceCount(C);isLocalStorage&&z++;var O=4>=z?2:6<z?4:3;f=new CreateDialog(this,f,mxUtils.bind(this,function(H,ka){try{if("_blank"==ka)if(null!=k&&"image/"==k.substring(0,6))this.openInNewWindow(d,k,u);else if(null!=k&&"text/html"==k.substring(0,9)){var fa=new EmbedDialog(this,d);this.showDialog(fa.container,
450,240,!0,!0);fa.init()}else{var ca=window.open("about:blank");null==ca?mxUtils.popup(d,!0):(ca.document.write("<pre>"+mxUtils.htmlEntities(d,!1)+"</pre>"),ca.document.close())}else ka==App.MODE_DEVICE||"download"==ka?this.doSaveLocalFile(d,H,k,u,null,K):null!=H&&0<H.length&&this.pickFolder(ka,mxUtils.bind(this,function(ja){try{this.exportFile(d,H,k,u,ka,ja)}catch(ma){this.handleError(ma)}}))}catch(ja){this.handleError(ja)}}),mxUtils.bind(this,function(){this.hideDialog()}),mxResources.get("saveAs"),
mxResources.get("download"),!1,C,F,null,1<z,O,d,k,u);C=this.isServices(z)?z>O?390:280:160;this.showDialog(f.container,420,C,!0,!0);f.init()};EditorUi.prototype.openInNewWindow=function(d,f,k){var u=window.open("about:blank");null==u||null==u.document?mxUtils.popup(d,!0):("image/svg+xml"!=f||mxClient.IS_SVG?"image/svg+xml"!=f||k?(d=k?d:btoa(unescape(encodeURIComponent(d))),u.document.write('<html><img style="max-width:100%;" src="data:'+f+";base64,"+d+'"/></html>')):u.document.write("<html>"+d+"</html>"): | 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){var J=null;null!=x&&0<x.length&&(x=JSON.parse(x),J=new mxImage(x.src,x.width,x.height));return J};Graph.prototype.getBackgroundImageObject=function(x){return x};Graph.prototype.getSvg=function(x,J,Q,Y,ea,la,oa,wa,sa,ua,Fa,Ua,Ra,Na){var Za=null;if(null!=Na)for(Za=new mxDictionary,Fa=0;Fa<Na.length;Fa++)Za.put(Na[Fa],!0);if(Na=this.useCssTransforms)this.useCssTransforms=!1,this.view.revalidate(),this.sizeDidChange();try{J=null!=J?J:1;Q=null!=Q?Q:0;ea=null!=ea?ea:!0;la=null!=la?la:!0;oa= | 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.graph.currentTranslate,T=this.graph.currentScale;E=new mxRectangle((E.x+L.x)*T,(E.y+L.y)*T,E.width*T,E.height*T)}return E};mxGraphView.prototype.viewStateChanged=function(){this.graph.useCssTransforms?this.validate():this.revalidate();this.graph.sizeDidChange()};var e=mxGraphView.prototype.validate;mxGraphView.prototype.validate=function(E){this.graph.useCssTransforms&&(this.graph.currentScale=this.scale,this.graph.currentTranslate.x=this.translate.x,this.graph.currentTranslate.y=this.translate.y,
this.scale=1,this.translate.x=0,this.translate.y=0);e.apply(this,arguments);this.graph.useCssTransforms&&(this.graph.updateCssTransform(),this.scale=this.graph.currentScale,this.translate.x=this.graph.currentTranslate.x,this.translate.y=this.graph.currentTranslate.y)};var g=mxGraph.prototype.getCellsForGroup;Graph.prototype.getCellsForGroup=function(E){E=g.apply(this,arguments);for(var L=[],T=0;T<E.length;T++)this.isTableRow(E[T])||this.isTableCell(E[T])||L.push(E[T]);return L};var p=mxGraph.prototype.getCellsForUngroup; | 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(){null!=this.sidebar&&this.sidebar.updateEntries();this.updateButtonContainer();this.updateDocumentTitle();this.refresh()}));f.addListener("enabledChanged",mxUtils.bind(this,function(){f.isEnabled()||this.hideShapePicker()}));d=this;mxWindow.prototype.fit=function(){if(Editor.inlineFullscreen||null==d.embedViewport)mxUtils.fit(this.div);else{var P=parseInt(this.div.offsetLeft),V=parseInt(this.div.offsetWidth),l=d.embedViewport.x+d.embedViewport.width,A=parseInt(this.div.offsetTop),N=parseInt(this.div.offsetHeight),
X=d.embedViewport.y+d.embedViewport.height;this.div.style.left=Math.max(d.embedViewport.x,Math.min(P,l-V))+"px";this.div.style.top=Math.max(d.embedViewport.y,Math.min(A,X-N))+"px";this.div.style.height=Math.min(d.embedViewport.height,parseInt(this.div.style.height))+"px";this.div.style.width=Math.min(d.embedViewport.width,parseInt(this.div.style.width))+"px"}};if(!this.editor.chromeless||this.editor.editable)if("simple"==Editor.currentTheme||"sketch"==Editor.currentTheme)aa=Editor.currentTheme,Editor.currentTheme= | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
this.getCellAt(la.graphX,la.graphY);null!=oa&&this.isSwimlane(oa)&&this.hitsSwimlaneContent(oa,la.graphX,la.graphY)||(la.state=this.view.getState(oa),null!=la.state&&null!=la.state.shape&&(this.container.style.cursor=la.state.shape.node.style.cursor))}null==la.getState()&&this.isEnabled()&&(this.container.style.cursor="default");return la};var J=!1,Q=!1,Y=!1,ea=this.fireMouseEvent;this.fireMouseEvent=function(la,oa,wa){la==mxEvent.MOUSE_DOWN&&(oa=this.updateMouseEvent(oa),J=this.isCellSelected(oa.getCell()),
Q=this.isSelectionEmpty(),Y=this.popupMenuHandler.isMenuShowing());ea.apply(this,arguments)};this.popupMenuHandler.mouseUp=mxUtils.bind(this,function(la,oa){var wa=mxEvent.isMouseEvent(oa.getEvent());this.popupMenuHandler.popupTrigger=!this.isEditing()&&this.isEnabled()&&(null==oa.getState()||!oa.isSource(oa.getState().control))&&(this.popupMenuHandler.popupTrigger||!Y&&!wa&&(Q&&null==oa.getCell()&&this.isSelectionEmpty()||J&&this.isCellSelected(oa.getCell())));wa=!J||wa?null:mxUtils.bind(this,function(sa){window.setTimeout(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 |
EditorUi.prototype.initCanvas=function(){var b=this.editor.graph;b.timerAutoScroll=!0;b.getPagePadding=function(){return new mxPoint(Math.max(0,Math.round((b.container.offsetWidth-34)/b.view.scale)),Math.max(0,Math.round((b.container.offsetHeight-34)/b.view.scale)))};b.view.getBackgroundPageBounds=function(){var A=this.graph.getPageLayout(),N=this.graph.getPageSize();return new mxRectangle(this.scale*(this.translate.x+A.x*N.width),this.scale*(this.translate.y+A.y*N.height),this.scale*A.width*N.width,
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 |
K.push(function(H){k(null,H||"Unkown Error")}),this[u].apply(this,K);else{var O=this[u].apply(this,K);k([O])}}else k(null,"Invalid Call: "+u+" is not found.")}catch(H){k(null,"Invalid Call: An error occurred, "+H.message)}};EditorUi.prototype.openDatabase=function(d,f){if(null==this.database){var k=window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB;if(null!=k)try{var u=k.open("database",2);u.onupgradeneeded=function(z){try{var C=u.result;1>z.oldVersion&&C.createObjectStore("objects",{keyPath:"key"});
2>z.oldVersion&&(C.createObjectStore("files",{keyPath:"title"}),C.createObjectStore("filesInfo",{keyPath:"title"}),EditorUi.migrateStorageFiles=isLocalStorage)}catch(F){null!=f&&f(F)}};u.onsuccess=mxUtils.bind(this,function(z){try{var C=u.result;this.database=C;EditorUi.migrateStorageFiles&&(StorageFile.migrate(C),EditorUi.migrateStorageFiles=!1);"app.diagrams.net"!=location.host||this.drawioMigrationStarted||(this.drawioMigrationStarted=!0,this.getDatabaseItem(".drawioMigrated3",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 |
(EditorUi.prototype.showRemoteCursors=l.showRemoteCursors);null!=l.restrictExport&&(DrawioFile.RESTRICT_EXPORT=l.restrictExport)}};Editor.isSettingsEnabled=function(){return"undefined"!==typeof window.mxSettings&&(isLocalStorage||mxClient.IS_CHROMEAPP)};Editor.configureFontCss=function(l){if(null!=l){Editor.prototype.fontCss=l;var A=document.getElementsByTagName("script")[0];if(null!=A&&null!=A.parentNode){var N=document.createElement("style");N.setAttribute("type","text/css");N.appendChild(document.createTextNode(l)); | 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(){mxShape.call(this)}function U(){mxShape.call(this)}function Z(){mxRectangleShape.call(this)}function ba(){mxShape.call(this)}function ia(){mxShape.call(this)}function qa(){mxShape.call(this)}function ra(){mxShape.call(this)}function pa(){mxShape.call(this)}function xa(){mxCylinder.call(this)}function Ca(){mxCylinder.call(this)}function Aa(){mxRectangleShape.call(this)}function za(){mxDoubleEllipse.call(this)}function Ma(){mxDoubleEllipse.call(this)}function Qa(){mxArrowConnector.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 |
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 |
this.container.scrollTop/this.view.scale-this.view.translate.y;if(this.pageVisible){var Y=this.getPageLayout(),ea=this.getPageSize();J=Math.max(J,Y.x*ea.width);Q=Math.max(Q,Y.y*ea.height)}return new mxPoint(this.snap(J+x),this.snap(Q+x))};Graph.prototype.getFreeInsertPoint=function(){var x=this.view,J=this.getGraphBounds(),Q=this.getInsertPoint(),Y=this.snap(Math.round(Math.max(Q.x,J.x/x.scale-x.translate.x+(0==J.width?2*this.gridSize:0))));x=this.snap(Math.round(Math.max(Q.y,(J.y+J.height)/x.scale-
x.translate.y+2*this.gridSize)));return new mxPoint(Y,x)};Graph.prototype.getCenterInsertPoint=function(x){x=null!=x?x:new mxRectangle;return mxUtils.hasScrollbars(this.container)?new mxPoint(this.snap(Math.round((this.container.scrollLeft+this.container.clientWidth/2)/this.view.scale-this.view.translate.x-x.width/2)),this.snap(Math.round((this.container.scrollTop+this.container.clientHeight/2)/this.view.scale-this.view.translate.y-x.height/2))):new mxPoint(this.snap(Math.round(this.container.clientWidth/ | 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;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 |
4)},function(B,D){B=null!=v&&"0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?D.x-B.x:Math.max(0,Math.min(c,(D.x-B.x)/B.width*.75));this.state.style.size=B},!1,!0)];mxUtils.getValue(n.style,mxConstants.STYLE_ROUNDED,!1)&&t.push(pb(n));return t}},ob=function(){return function(c){var m=[];mxUtils.getValue(c.style,mxConstants.STYLE_ROUNDED,!1)&&m.push(pb(c));return m}},pb=function(c,m){return hb(c,[mxConstants.STYLE_ARCSIZE],function(v){var n=null!=m?m:v.height/8;if("1"==mxUtils.getValue(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 |
0)};Na.prototype.paintRight=function(c,m,v,n,t,B,D,ha,I){"square"==D||"default"==D&&"square"==B||!I?c.lineTo(n,t):c.lineTo(n,t-ha)};Na.prototype.paintLeft=function(c,m,v,n,t,B,D,ha,I){"square"==D||"default"==D&&"square"==B||!I?c.lineTo(0,0):c.lineTo(0,ha)};Na.prototype.paintSE=function(c,m,v,n,t,B,D,ha,I){if(I)if("rounded"==D||"default"==D&&"rounded"==B||"invRound"==D||"default"==D&&"invRound"==B){m=0;if("rounded"==D||"default"==D&&"rounded"==B)m=1;c.arcTo(ha,ha,0,0,m,n-ha,t)}else("snip"==D||"default"==
D&&"snip"==B||"fold"==D||"default"==D&&"fold"==B)&&c.lineTo(n-ha,t);else c.lineTo(n,t)};Na.prototype.paintBottom=function(c,m,v,n,t,B,D,ha,I){"square"==D||"default"==D&&"square"==B||!I?c.lineTo(0,t):c.lineTo(ha,t)};Na.prototype.paintSW=function(c,m,v,n,t,B,D,ha,I){if(I)if("rounded"==D||"default"==D&&"rounded"==B||"invRound"==D||"default"==D&&"invRound"==B){m=0;if("rounded"==D||"default"==D&&"rounded"==B)m=1;c.arcTo(ha,ha,0,0,m,0,t-ha)}else("snip"==D||"default"==D&&"snip"==B||"fold"==D||"default"== | 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&&"fold"==B)&&c.moveTo(n-I,ha+I):c.moveTo(n,I)};Na.prototype.lineNEInner=function(c,m,v,n,t,B,D,ha,I,va){va?"square"==D||"default"==D&&"square"==B||va?c.lineTo(n-I,I):"rounded"==D||"default"==D&&"rounded"==B||"snip"==D||"default"==D&&"snip"==B?c.lineTo(n-I,ha+.5*I):("invRound"==D||"default"==D&&"invRound"==B||"fold"==D||"default"==D&&"fold"==B)&&c.lineTo(n-I,ha+I):c.lineTo(n,I)};Na.prototype.moveNWInner=function(c,m,v,n,t,B,D,ha,I,va,na){va||na?!va&&na?c.moveTo(I,0):va&&!na?c.moveTo(0,I):"square"== | 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)}else if("view"==d.nodeName){if(d.hasAttribute("scale")&&(z.view.scale=parseFloat(d.getAttribute("scale"))),d.hasAttribute("dx")||d.hasAttribute("dy"))z.view.translate=new mxPoint(parseFloat(d.getAttribute("dx")||0),parseFloat(d.getAttribute("dy")||0))}else"fit"==d.nodeName&&(F=d.hasAttribute("max-scale")?parseFloat(d.getAttribute("max-scale")):1);d=d.nextSibling}}finally{C.endUpdate()}null!=F&&this.chromelessResize&&this.chromelessResize(!0,F)}return k};EditorUi.prototype.getCopyFilename=function(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 Y(){mxEllipse.call(this)}function ea(){mxEllipse.call(this)}function la(){mxRhombus.call(this)}function oa(){mxEllipse.call(this)}function wa(){mxEllipse.call(this)}function sa(){mxEllipse.call(this)}function ua(){mxEllipse.call(this)}function Fa(){mxActor.call(this)}function Ua(){mxActor.call(this)}function Ra(){mxActor.call(this)}function Na(c,m,v,n){mxShape.call(this);this.bounds=c;this.fill=m;this.stroke=v;this.strokewidth=null!=n?n:1;this.rectStyle="square";this.size=10;this.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 |
da.resp&&0<da.resp.length&&null!=da.resp[0]?aa(da.resp[0]):ja())}}catch(P){console.log(P)}});window.addEventListener("message",F)}})));d(C);C.onversionchange=function(){C.close()}}catch(F){null!=f?f(F):null!=window.console&&console.warn(F)}});u.onerror=f;u.onblocked=function(){}}catch(z){null!=f?f(z):null!=window.console&&console.error(z)}else null!=f&&f(Error("IndexedDB not supported"))}else d(this.database)};EditorUi.prototype.setDatabaseItem=function(d,f,k,u,z){this.openDatabase(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 |
"_blank")}};EditorUi.prototype.createEchoRequest=function(d,f,k,u,z,C){d="xml="+encodeURIComponent(d);return new mxXmlRequest(SAVE_URL,d+(null!=k?"&mime="+k:"")+(null!=z?"&format="+z:"")+(null!=C?"&base64="+C:"")+(null!=f?"&filename="+encodeURIComponent(f):"")+(u?"&binary=1":""))};EditorUi.prototype.base64ToBlob=function(d,f){f=f||"";d=atob(d);for(var k=d.length,u=Math.ceil(k/1024),z=Array(u),C=0;C<u;++C){for(var F=1024*C,K=Math.min(F+1024,k),O=Array(K-F),H=0;F<K;++H,++F)O[H]=d[F].charCodeAt(0);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 |
EditorUi.prototype.updateTabContainer=function(){if(null!=this.tabContainer&&null!=this.pages){var b=this.editor.graph,e=document.createElement("div");e.className="geTabScroller";for(var g=null,p=0;p<this.pages.length;p++)mxUtils.bind(this,function(y,q){q.className=this.pages[y]==this.currentPage?"geTab gePageTab geActivePage":"geTab gePageTab geInactivePage";q.setAttribute("draggable","true");mxEvent.addListener(q,"dragstart",mxUtils.bind(this,function(E){b.isEnabled()?(mxClient.IS_FF&&E.dataTransfer.setData("Text",
"<diagram/>"),g=y):mxEvent.consume(E)}));mxEvent.addListener(q,"dragend",mxUtils.bind(this,function(E){g=null;E.stopPropagation();E.preventDefault()}));mxEvent.addListener(q,"dragover",mxUtils.bind(this,function(E){null!=g&&(E.dataTransfer.dropEffect="move");E.stopPropagation();E.preventDefault()}));mxEvent.addListener(q,"drop",mxUtils.bind(this,function(E){null!=g&&y!=g&&this.movePage(g,y);E.stopPropagation();E.preventDefault()}));e.appendChild(q)})(p,this.createTabForPage(this.pages[p],p+1));p=
null!=this.tabScroller?this.tabScroller.scrollLeft:0;this.tabContainer.innerText="";"simple"!=Editor.currentTheme&&(this.pageMenuTab=this.createPageMenuTab(),this.tabContainer.appendChild(this.pageMenuTab));this.tabContainer.appendChild(e);this.isPageInsertTabVisible()&&this.tabContainer.appendChild(this.createPageInsertTab());this.leftScrollTab=this.createLeftScrollTab();this.tabContainer.appendChild(this.leftScrollTab);this.rightScrollTab=this.createRightScrollTab();this.tabContainer.appendChild(this.rightScrollTab);
this.tabScroller=e;this.tabScroller.scrollLeft=p;this.checkTabScrollerOverflow();mxEvent.addListener(this.tabScroller,"scroll",mxUtils.bind(this,function(y){this.checkTabScrollerOverflow()}));window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(this.leftScrollTab.style,"transition","all 0.2s linear");mxUtils.setPrefixedStyle(this.rightScrollTab.style,"transition","all 0.2s linear")}),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 |
fb=Math.sqrt(va*va+qb*qb);D.x=(D.x+B.x)*na;D.y=(D.y+B.y)*na;t.call(this,fb,va/fb,qb/fb,bb,I,D,ha)})},xb=function(c,m){return function(v){return[wb(v,["startWidth"],!0,function(n,t,B,D,ha){ha=mxUtils.getNumber(v.style,"startWidth",c)*v.view.scale+m;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));v.style.startWidth=Math.round(2*n)/v.view.scale-m})]}},rb=function(c){return function(m){return[hb(m,["arrowWidth", | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
z.pasteCounter=0);var F=z.pasteCounter*z.gridSize;if(k||this.isCompatibleString(d))C=this.importXml(d,F,F),z.setSelectionCells(C);else if(f&&1==z.getSelectionCount()){F=z.getStartEditingCell(z.getSelectionCell(),u);if(/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(d)&&"image"==z.getCurrentCellStyle(F)[mxConstants.STYLE_SHAPE])z.setCellStyles(mxConstants.STYLE_IMAGE,d,[F]);else{z.model.beginUpdate();try{z.labelChanged(F,d),Graph.isLink(d)&&z.setLinkForCell(F,d)}finally{z.model.endUpdate()}}z.setSelectionCell(F)}else C=
z.getInsertPoint(),z.isMouseInsertPoint()&&(F=0,z.lastPasteXml==d&&0<z.pasteCounter&&z.pasteCounter--),C=this.insertTextAt(d,C.x+F,C.y+F,!0),z.setSelectionCells(C);z.isSelectionEmpty()||(z.scrollCellToVisible(z.getSelectionCell()),null!=this.hoverIcons&&this.hoverIcons.update(z.view.getState(z.getSelectionCell())));return C};EditorUi.prototype.pasteCells=function(d,f,k,u){if(!mxEvent.isConsumed(d)){var z=f,C=!1;if(k&&null!=d.clipboardData&&d.clipboardData.getData){var F=d.clipboardData.getData("text/plain"), | 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.styleInput.value=P||"",this.styleInput.style.visibility="visible"):this.styleInput.style.visibility="hidden"})));var S=this.isSelectionAllowed;this.isSelectionAllowed=function(P){return mxEvent.getSource(P)==this.styleInput?!0:S.apply(this,arguments)}}aa=document.getElementById("geInfo");null!=aa&&aa.parentNode.removeChild(aa);if(Graph.fileSupport&&(!this.editor.chromeless||this.editor.editable)){var da=null;mxEvent.addListener(f.container,"dragleave",function(P){f.isEnabled()&&(null!=da&&(da.parentNode.removeChild(da), | 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 |
"size",this.fixedSize)))):n*Math.max(0,Math.min(1,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(0,t),new mxPoint(m,0),new mxPoint(n,0),new mxPoint(n-m,t)],this.isRounded,v,!0);c.end()};mxCellRenderer.registerShape("parallelogram",K);mxUtils.extend(O,mxActor);O.prototype.size=.2;O.prototype.fixedSize=20;O.prototype.isRoundable=function(){return!0};O.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 |
"disabled")});f=new CustomDialog(this,C,mxUtils.bind(this,function(){d(O.checked,H.checked,ka.checked,fa.checked,ca.getLink(),aa.checked)}),null,mxResources.get("embed"),z);this.showDialog(f.container,280,300,!0,!0)};EditorUi.prototype.createEmbedImage=function(d,f,k,u,z,C,F,K){function O(ja){var ma=" ",aa="";u&&(ma=" onclick=\"(function(img){if(img.wnd!=null&&!img.wnd.closed){img.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==img.wnd){img.wnd.postMessage(decodeURIComponent(img.getAttribute('src')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);img.wnd=window.open('"+
EditorUi.lightboxHost+"/?client=1"+(null!=ka?"&page="+ka:"")+(z?"&edit=_blank":"")+(C?"&layers=1":"")+"');}})(this);\"",aa+="cursor:pointer;");d&&(aa+="max-width:100%;");var S="";k&&(S=' width="'+Math.round(H.width)+'" height="'+Math.round(H.height)+'"');F('<img src="'+ja+'"'+S+(""!=aa?' style="'+aa+'"':"")+ma+"/>")}var H=this.editor.graph.getGraphBounds(),ka=this.getSelectedPageIndex();if(this.isExportToCanvas())this.editor.exportToCanvas(mxUtils.bind(this,function(ja){var ma=u?this.getFileData(!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 |
Graph.prototype.createLayouts=function(b){for(var e=[],g=0;g<b.length;g++)if(0<=mxUtils.indexOf(Graph.layoutNames,b[g].layout)){var p="mxOrgChartLayout"==b[g].layout&&null!=b[g].config?new window[b[g].layout](this,b[g].config.branchOptimizer):new window[b[g].layout](this);if(null!=b[g].config)for(var y in b[g].config)if("mxOrgChartLayout"!=b[g].layout||"branchOptimizer"!=y)p[y]=b[g].config[y];e.push(p)}else throw Error(mxResources.get("invalidCallFnNotFound",[b[g].layout]));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 |
mxClient.IS_SVG&&this.editor.graph.addSvgShadow(f.view.canvas.ownerSVGElement,null,!0);if(null!=this.menus){var O=Menus.prototype.addPopupMenuItems;this.menus.addPopupMenuItems=function(P,V,l){f.isSelectionEmpty()&&"simple"==Editor.currentTheme&&this.addMenuItems(P,["zoomIn","zoomOut","-"],null,l);O.apply(this,arguments);f.isSelectionEmpty()||null==d.addSelectionToScratchpad||this.addMenuItems(P,["-","addToScratchpad"],null,l);f.isSelectionEmpty()&&"simple"==Editor.currentTheme&&this.addMenuItems(P,
["-","exitGroup","home"],null,l)};var H=Menus.prototype.addPopupMenuEditItems;this.menus.addPopupMenuEditItems=function(P,V,l){if(d.editor.graph.isSelectionEmpty())H.apply(this,arguments),d.menus.addMenuItems(P,["copyAsImage"],null,l);else if(this.isShowCellEditItems()?this.addPopupDeleteItem(P,V,l):this.addPopupMenuArrangeItems(P,V,l),this.addMenuItems(P,"- cut copy copyAsImage duplicate -".split(" "),null,l),this.isShowCellEditItems()||this.addPopupDeleteItem(P,V,l),this.addMenuItems(P,["lockUnlock", | 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),c.lineTo(D,ha+m),c.lineTo(v,ha+m),c.moveTo(v,I),c.lineTo(D,I),c.lineTo(D,I+m),c.lineTo(v,I+m)):(c.moveTo(v,0),c.lineTo(n,0),c.lineTo(n,t),c.lineTo(v,t),c.lineTo(v,I+m),c.lineTo(0,I+m),c.lineTo(0,I),c.lineTo(v,I),c.lineTo(v,ha+m),c.lineTo(0,ha+m),c.lineTo(0,ha),c.lineTo(v,ha),c.close());c.end()};mxCellRenderer.registerShape("component",Ca);mxUtils.extend(Aa,mxRectangleShape);Aa.prototype.paintForeground=function(c,m,v,n,t){var B=n/2,D=t/2,ha=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,
mxConstants.LINE_ARCSIZE)/2;c.begin();this.addPoints(c,[new mxPoint(m+B,v),new mxPoint(m+n,v+D),new mxPoint(m+B,v+t),new mxPoint(m,v+D)],this.isRounded,ha,!0);c.stroke();mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("associativeEntity",Aa);mxUtils.extend(za,mxDoubleEllipse);za.prototype.outerStroke=!0;za.prototype.paintVertexShape=function(c,m,v,n,t){var B=Math.min(4,Math.min(n/5,t/5));0<n&&0<t&&(c.ellipse(m+B,v+B,n-2*B,t-2*B),c.fillAndStroke());c.setShadow(!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 |
ha-.5*I,I);else if("fold"==D||"default"==D&&"fold"==B)c.lineTo(n-ha-I,ha+I),c.lineTo(n-ha-I,I)};Na.prototype.paintRightInner=function(c,m,v,n,t,B,D,ha,I,va,na){va||na?!va&&na?c.lineTo(n-I,0):va&&!na?c.lineTo(n,I):va?"square"==D||"default"==D&&"square"==B?c.lineTo(n-I,I):"rounded"==D||"default"==D&&"rounded"==B||"snip"==D||"default"==D&&"snip"==B?c.lineTo(n-I,ha+.5*I):c.lineTo(n-I,ha+I):c.lineTo(n-I,0):c.lineTo(n,0)};Na.prototype.paintLeftInner=function(c,m,v,n,t,B,D,ha,I,va,na){va||na?!va&&na?c.lineTo(I, | 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 W(){mxShape.call(this)}function d(c,m,v,n){mxShape.call(this);this.bounds=c;this.fill=m;this.stroke=v;this.strokewidth=null!=n?n:1}function f(){mxActor.call(this)}function k(){mxCylinder.call(this)}function u(){mxCylinder.call(this)}function z(){mxActor.call(this)}function C(){mxActor.call(this)}function F(){mxActor.call(this)}function K(){mxActor.call(this)}function O(){mxActor.call(this)}function H(){mxActor.call(this)}function ka(){mxActor.call(this)}function fa(c,m){this.canvas=c;this.canvas.setLineJoin("round"); | 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&&k()};EditorUi.prototype.alert=function(d,f,k){d=new ErrorDialog(this,null,d,mxResources.get("ok"),f);this.showDialog(d.container,k||340,100,!0,!1);d.init()};EditorUi.prototype.confirm=function(d,f,k,u,z,C){d=null!=d?d:"";var F=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},K=Math.min(220,28*Math.ceil(Math.max(1,d.length)/50));d=new ConfirmDialog(this,d,function(){F();null!=f&&f()},function(){F();null!=k&&k()},u,z,null,null,null,null,K);this.showDialog(d.container, | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
(S.state=null);return S};var ma=this.isCellSelectable;this.isCellSelectable=function(S){return ma.apply(this,arguments)&&!this.isCellLocked(this.getLayerForCell(S))};this.isCellLocked=function(S){for(;null!=S;){if("1"==mxUtils.getValue(this.getCurrentCellStyle(S),"locked","0"))return!0;S=this.model.getParent(S)}return!1};var aa=null;this.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(S,da){"mouseDown"==da.getProperty("eventName")&&(S=da.getProperty("event").getState(),aa=null==S|| | 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;J<this.moveHandles.length;J++)null!=this.moveHandles[J]&&(this.moveHandles[J].node.style.visibility=x?"":"hidden");if(null!=this.cornerHandles)for(J=0;J<this.cornerHandles.length;J++)this.cornerHandles[J].node.style.visibility=x?"":"hidden"};mxVertexHandler.prototype.isMoveHandlesVisible=function(){return this.graph.isTable(this.state.cell)&&this.graph.isCellMovable(this.state.cell)};mxVertexHandler.prototype.refreshMoveHandles=function(){var x=this.isMoveHandlesVisible();x&&null==this.moveHandles?
this.moveHandles=this.createMoveHandles():x||null==this.moveHandles||this.destroyMoveHandles();if(x&&null==this.moveHandles){for(x=0;x<this.moveHandles.length;x++)null!=this.moveHandles[x]&&this.moveHandles[x].parentNode.removeChild(this.moveHandles[x]);this.moveHandles=null}};mxVertexHandler.prototype.createMoveHandles=function(){for(var x=this.graph,J=x.model,Q=[],Y=0;Y<J.getChildCount(this.state.cell);Y++)mxUtils.bind(this,function(ea){if(null!=ea&&J.isVertex(ea.cell)&&x.isCellMovable(ea.cell)){var 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 |
this.direction==mxConstants.DIRECTION_EAST||this.direction==mxConstants.DIRECTION_WEST)return m*=n,new mxRectangle(c.x,c.y+m,v,n-2*m);m*=v;return new mxRectangle(c.x+m,c.y,v-2*m,n)}return c};mxCellRenderer.registerShape("tape",C);mxUtils.extend(F,mxActor);F.prototype.size=.3;F.prototype.getLabelMargins=function(c){return mxUtils.getValue(this.style,"boundedLbl",!1)?new mxRectangle(0,0,0,parseFloat(mxUtils.getValue(this.style,"size",this.size))*c.height):null};F.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,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 |
Graph.fadeNodes=function(b,e,g,p,y){y=null!=y?y:1E3;Graph.setTransitionForNodes(b,null);Graph.setOpacityForNodes(b,e);window.setTimeout(function(){Graph.setTransitionForNodes(b,"all "+y+"ms ease-in-out");Graph.setOpacityForNodes(b,g);window.setTimeout(function(){Graph.setTransitionForNodes(b,null);null!=p&&p()},y)},0)};Graph.removeKeys=function(b,e){for(var g in b)e(g)&&delete b[g]}; | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
function(x){var J=null;null!=x&&0<x.length&&(x=JSON.parse(x),J=new mxImage(x.src,x.width,x.height));return J};Graph.prototype.getBackgroundImageObject=function(x){return x};Graph.prototype.getSvg=function(x,J,Q,Y,ea,la,oa,wa,sa,ua,Fa,Ua,Ra,Na){var Za=null;if(null!=Na)for(Za=new mxDictionary,Fa=0;Fa<Na.length;Fa++)Za.put(Na[Fa],!0);if(Na=this.useCssTransforms)this.useCssTransforms=!1,this.view.revalidate(),this.sizeDidChange();try{J=null!=J?J:1;Q=null!=Q?Q:0;ea=null!=ea?ea:!0;la=null!=la?la:!0;oa= | 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 |
aa);mxUtils.extend(S,mxHexagon);S.prototype.size=.25;S.prototype.fixedSize=20;S.prototype.isRoundable=function(){return!0};S.prototype.redrawPath=function(c,m,v,n,t){m="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(.5*n,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):n*Math.max(0,Math.min(1,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,.5*t),new mxPoint(n-m,t),new mxPoint(m,t),new mxPoint(0,.5*t)],this.isRounded,v,!0)};mxCellRenderer.registerShape("hexagon",S);mxUtils.extend(da,mxRectangleShape);da.prototype.isHtmlAllowed=function(){return!1};da.prototype.paintForeground=function(c,m,v,n,t){var B=Math.min(n/5,t/5)+1;c.begin();c.moveTo(m+n/2,v+B);c.lineTo(m+n/2,v+t-B);c.moveTo(m+B,v+t/2);c.lineTo(m+n-B,v+t/2);c.end();c.stroke();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 |
this.lastY,Z,ba,ia,qa,ra,pa,xa);if(null!=Ca)for(var Aa=0;Aa<Ca.length;Aa+=6)this.curveTo(Ca[Aa],Ca[Aa+1],Ca[Aa+2],Ca[Aa+3],Ca[Aa+4],Ca[Aa+5]);this.lastX=pa;this.lastY=xa}};l.prototype.rect=function(Z,ba,ia,qa){this.passThrough?this.originalRect.apply(this.canvas,arguments):(this.path=[],this.nextShape=this.rc.generator.rectangle(Z,ba,ia,qa,this.getStyle(!0,!0)))};l.prototype.ellipse=function(Z,ba,ia,qa){this.passThrough?this.originalEllipse.apply(this.canvas,arguments):(this.path=[],this.nextShape= | 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"==g.nodeName&&"p1"==g.className&&b.parentNode.insertBefore(b.ownerDocument.createElement("br"),b);b.parentNode.removeChild(b)}e||null==b.innerHTML||(p=Graph.createTabNode(4),b.innerHTML=b.innerHTML.replace(/\t/g,p.outerHTML))}b=g}};Graph.createTabNode=function(b){var e="\t";if(null!=b)for(e="";0<b;)e+=" ",b--;b=document.createElement("span");b.style.whiteSpace="pre";b.appendChild(document.createTextNode(e));return b};Graph.sanitizeHtml=function(b,e){return Graph.domPurify(b,!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 |
arguments);c.setStrokeColor(this.stroke);c.setFillColor(this.stroke);c.setDashed(!1);null!=v&&v();null!=n&&n()};mxCellRenderer.registerShape("wire",y);mxUtils.extend(q,mxCylinder);q.prototype.size=6;q.prototype.paintVertexShape=function(c,m,v,n,t){c.setFillColor(this.stroke);var B=Math.max(0,parseFloat(mxUtils.getValue(this.style,"size",this.size))-2)+2*this.strokewidth;c.ellipse(m+.5*(n-B),v+.5*(t-B),B,B);c.fill();c.setFillColor(mxConstants.NONE);c.rect(m,v,n,t);c.fill()};mxCellRenderer.registerShape("waypoint", | 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,D,m+n/2,v+t/2);s=this.scale;m=this.bounds.x/s;v=this.bounds.y/s;n=this.bounds.width/s;t=this.bounds.height/s;this.paintTableForeground(c,m,v,n,t)}};e.prototype.paintTableForeground=function(c,m,v,n,t){n=this.state.view.graph.getTableLines(this.state.cell,"0"!=mxUtils.getValue(this.state.style,"rowLines","1"),"0"!=mxUtils.getValue(this.state.style,"columnLines","1"));for(t=0;t<n.length;t++)b.prototype.paintTableLine(c,n[t],m,v)};e.prototype.configurePointerEvents=function(c){0==this.getTitleSize()? | 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.centerShapePicker=function(b,e,g,p,y){if(y==mxConstants.DIRECTION_EAST||y==mxConstants.DIRECTION_WEST)b.style.width="40px";var q=b.getBoundingClientRect();y==mxConstants.DIRECTION_NORTH?(g-=q.width/2-10,p-=q.height+6):y==mxConstants.DIRECTION_SOUTH?(g-=q.width/2-10,p+=e.height+6):y==mxConstants.DIRECTION_WEST?(g-=q.width+6,p-=q.height/2-10):y==mxConstants.DIRECTION_EAST&&(g+=e.width+6,p-=q.height/2-10);b.style.left=g+"px";b.style.top=p+"px"}; | 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 |
height:Math.round(y.height),border:100}))));q=new EmbedDialog(this,this.getLinkForPage(b,g,q));this.showDialog(q.container,450,240,!0,!0);q.init()}))};(function(){mxCodecRegistry.getCodec(ChangePageSetup).exclude.push("page")})();(function(){var b=new mxObjectCodec(new MovePage,["ui"]);b.beforeDecode=function(e,g,p){p.ui=e.ui;return g};b.afterDecode=function(e,g,p){e=p.oldIndex;p.oldIndex=p.newIndex;p.newIndex=e;return p};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.replaceElement=function(x,J){J=x.ownerDocument.createElement(null!=J?J:"span");for(var Q=Array.prototype.slice.call(x.attributes);attr=Q.pop();)J.setAttribute(attr.nodeName,attr.nodeValue);J.innerHTML=x.innerHTML;x.parentNode.replaceChild(J,x)};Graph.prototype.processElements=function(x,J){if(null!=x){x=x.getElementsByTagName("*");for(var Q=0;Q<x.length;Q++)J(x[Q])}};Graph.prototype.updateLabelElements=function(x,J,Q){x=null!=x?x:this.getSelectionCells();for(var Y=document.createElement("div"),
ea=0;ea<x.length;ea++){var la=this.getCurrentCellStyle(x[ea]);if(null!=la&&"1"==la.html&&(la=this.convertValueToString(x[ea]),null!=la&&0<la.length)){Y.innerHTML=la;for(var oa=Y.getElementsByTagName(null!=Q?Q:"*"),wa=0;wa<oa.length;wa++)J(oa[wa]);Y.innerHTML!=la&&this.cellLabelChanged(x[ea],Y.innerHTML)}}};Graph.prototype.cellLabelChanged=function(x,J,Q){J=Graph.zapGremlins(J);this.model.beginUpdate();try{if(null!=x.value&&"object"==typeof x.value){if(this.isReplacePlaceholders(x)&&null!=x.getAttribute("placeholder"))for(var 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 |
"");this.blockDelayedSelection=null};var Da=mxVertexHandler.prototype.init;mxVertexHandler.prototype.init=function(){Da.apply(this,arguments);var x=!1;null!=this.rotationShape&&this.rotationShape.node.setAttribute("title",mxResources.get("rotateTooltip"));if(this.graph.isTable(this.state.cell)&&this.graph.isCellMovable(this.state.cell))this.refreshMoveHandles();else if(1==this.graph.getSelectionCount()&&this.graph.isCellMovable(this.state.cell)&&(this.graph.isTableCell(this.state.cell)||this.graph.isTableRow(this.state.cell))){this.cornerHandles=
[];for(var J=0;4>J;J++){var Q=new mxRectangleShape(new mxRectangle(0,0,6,6),"#ffffff",mxConstants.HANDLE_STROKECOLOR);Q.dialect=mxConstants.DIALECT_SVG;Q.init(this.graph.view.getOverlayPane());this.cornerHandles.push(Q)}}var Y=mxUtils.bind(this,function(){null!=this.specialHandle&&(this.specialHandle.node.style.display=this.graph.isEnabled()&&this.graph.getSelectionCount()<this.graph.graphHandler.maxCells?"":"none");this.redrawHandles()});this.changeHandler=mxUtils.bind(this,function(ea,la){this.updateLinkHint(this.graph.getLinkForCell(this.state.cell),
this.graph.getLinksForState(this.state));Y()});this.graph.getSelectionModel().addListener(mxEvent.CHANGE,this.changeHandler);this.graph.getModel().addListener(mxEvent.CHANGE,this.changeHandler);this.editingHandler=mxUtils.bind(this,function(ea,la){this.redrawHandles()});this.graph.addListener(mxEvent.EDITING_STOPPED,this.editingHandler);J=this.graph.getLinkForCell(this.state.cell);Q=this.graph.getLinksForState(this.state);this.updateLinkHint(J,Q);if(null!=J||null!=Q&&0<Q.length)x=!0;x&&this.redrawHandles()}; | 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.createPageMenuTab=function(){return this.createControlTab(mxResources.get("pages"),Editor.verticalDotsImage,mxUtils.bind(this,function(b){this.editor.graph.popupMenuHandler.hideMenu();var e=new mxPopupMenu(mxUtils.bind(this,function(y,q){this.menus.get("pages").funct(y,q)}));e.div.className+=" geMenubarMenu";e.smartSeparators=!0;e.showDisabled=!0;e.autoExpand=!0;e.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(e,arguments);e.destroy()});var g=mxEvent.getClientX(b),
p=mxEvent.getClientY(b);e.popup(g,p,null,b);this.setCurrentMenu(e);mxEvent.consume(b)}))};EditorUi.prototype.createTabForPage=function(b,e){var g=this.createTab(),p=b.getName()||mxResources.get("untitled"),y=b.getId();g.setAttribute("title",p+(null!=y?" ("+y+")":"")+" ["+e+"]");e=document.createElement("span");e.style.maxWidth="160px";e.style.textOverflow="ellipsis";e.style.overflow="hidden";mxUtils.write(e,p);g.appendChild(e);this.addTabListeners(b,g);return g}; | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
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 |
FilenameDialog.createFileTypes=function(b,e,g){var p=document.createElement("select");for(b=0;b<g.length;b++){var y=document.createElement("option");y.setAttribute("value",b);mxUtils.write(y,mxResources.get(g[b].description)+" (."+g[b].extension+")");p.appendChild(y)}mxEvent.addListener(p,"change",function(q){q=g[p.value].extension;var E=e.value.lastIndexOf(".drawio.");E=0<E?E:e.value.lastIndexOf(".");"drawio"!=q&&(q="drawio."+q);e.value=0<E?e.value.substring(0,E+1)+q:e.value+"."+q;"createEvent"in
document?(q=document.createEvent("HTMLEvents"),q.initEvent("change",!1,!0),e.dispatchEvent(q)):e.fireEvent("onchange")});b=function(q){q=e.value.toLowerCase();for(var E=0,L=0;L<g.length;L++){var T=g[L].extension,G=null;"drawio"!=T&&(G=T,T=".drawio."+T);if(q.substring(q.length-T.length-1)=="."+T||null!=G&&q.substring(q.length-G.length-1)=="."+G){E=L;break}}p.value=E};mxEvent.addListener(e,"change",b);mxEvent.addListener(e,"keyup",b);b();return 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 |
p,g);this.ui.actions.get("share").funct()}))}))}),null,mxResources.get("saveToGoogleDrive",null,"Save to Google Drive"),mxResources.get("cancel")):this.ui.alert(mxResources.get("sharingAvailable"),null,380)};DrawioFile.prototype.getHash=function(){return""};DrawioFile.prototype.getId=function(){return""};DrawioFile.prototype.isEditable=function(){return!this.ui.editor.isChromelessView()||this.ui.editor.editable};DrawioFile.prototype.getUi=function(){return this.ui};DrawioFile.prototype.getTitle=function(){return""}; | 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&&k()};EditorUi.prototype.alert=function(d,f,k){d=new ErrorDialog(this,null,d,mxResources.get("ok"),f);this.showDialog(d.container,k||340,100,!0,!1);d.init()};EditorUi.prototype.confirm=function(d,f,k,u,z,C){d=null!=d?d:"";var F=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},K=Math.min(220,28*Math.ceil(Math.max(1,d.length)/50));d=new ConfirmDialog(this,d,function(){F();null!=f&&f()},function(){F();null!=k&&k()},u,z,null,null,null,null,K);this.showDialog(d.container,
340,46+K,!0,C);d.init()};EditorUi.prototype.showBanner=function(d,f,k,u,z,C,F,K,O){var H=!1;if(!(this.bannerShowing||this["hideBanner"+d]||isLocalStorage&&null!=mxSettings.settings&&null!=mxSettings.settings["close"+d])){C=null!=C?C:"bottom:10px;left:50%;";F=null!=F?F:"translate(-50%,120%)";K=null!=K?K:"translate(-50%,0%)";var ka=z?500:1E3;H=z?"padding:4px;border-radius:6px;font-size:11px;height:12px;font-weight:normal;":"font-size:16px;padding:18px 34px 12px 20px;font-weight:bold;";var fa=document.createElement("div"); | 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 |
"error"!=H[0].getAttribute("aria-roledescription")){var ka=parseFloat(H[0].getAttribute("width")),fa=parseFloat(H[0].getAttribute("height"));if(isNaN(ka)||isNaN(fa))try{var ca=H[0].getAttribute("viewBox").split(/\s+/);ka=parseFloat(ca[2]);fa=parseFloat(ca[3])}catch(ja){ka=ka||100,fa=fa||100}k(this.convertDataUri(Editor.createSvgDataUri(O)),ka,fa)}else null!=z?z():u({message:mxResources.get("invalidInput")})}catch(ja){u(ja)}});mermaid.mermaidAPI.initialize(f);mermaid.mermaidAPI.render("geMermaidOutput-"+ | 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=mxEvent.getClientY(b);e.popup(g,p,null,b);this.setCurrentMenu(e);mxEvent.consume(b)}))};EditorUi.prototype.createTabForPage=function(b,e){var g=this.createTab(),p=b.getName()||mxResources.get("untitled"),y=b.getId();g.setAttribute("title",p+(null!=y?" ("+y+")":"")+" ["+e+"]");e=document.createElement("span");e.style.maxWidth="160px";e.style.textOverflow="ellipsis";e.style.overflow="hidden";mxUtils.write(e,p);g.appendChild(e);this.addTabListeners(b,g);return g}; | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
this.formatWindow,this.freehandWindow];null!=this.actions&&(d=d.concat([this.actions.outlineWindow,this.actions.layersWindow]));null!=this.menus&&(d=d.concat([this.menus.tagsWindow,this.menus.findWindow,this.menus.findReplaceWindow,this.menus.commentsWindow]));return d};EditorUi.prototype.fitWindows=function(){for(var d=this.getWindows(),f=0;f<d.length;f++)null!=d[f]&&d[f].window.fit()};EditorUi.prototype.hideWindows=function(){for(var d=this.getWindows(),f=0;f<d.length;f++)null!=d[f]&&d[f].window.setVisible(!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 |
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 |
Graph.zapGremlins=function(b){for(var e=0,g=[],p=0;p<b.length;p++){var y=b.charCodeAt(p);(32<=y||9==y||10==y||13==y)&&65535!=y&&65534!=y||(g.push(b.substring(e,p)),e=p+1)}0<e&&e<b.length&&g.push(b.substring(e));return 0==g.length?b:g.join("")};Graph.stringToBytes=function(b){for(var e=Array(b.length),g=0;g<b.length;g++)e[g]=b.charCodeAt(g);return e};Graph.bytesToString=function(b){for(var e=Array(b.length),g=0;g<b.length;g++)e[g]=String.fromCharCode(b[g]);return e.join("")}; | 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="";
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 |
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)&&
mxEvent.isShiftDown(R)&&mxEvent.isAltDown(R)){if(p.model.isVertex(p.getSelectionCell()))return function(){var d=p.connectVertex(p.getSelectionCell(),L[R.keyCode],p.defaultEdgeLength,R,!0);null!=d&&0<d.length&&(1==d.length&&p.model.isEdge(d[0])?p.setSelectionCell(p.model.getTerminal(d[0],!1)):p.setSelectionCell(d[d.length-1]),p.scrollCellToVisible(p.getSelectionCell()),null!=g.hoverIcons&&g.hoverIcons.update(p.view.getState(p.getSelectionCell())))}}else return this.isControlDown(R)?function(){e(R.keyCode,
mxEvent.isShiftDown(R)?p.gridSize:null,!0)}:function(){e(R.keyCode,mxEvent.isShiftDown(R)?p.gridSize:null)}}return T.apply(this,arguments)};y.bindAction=mxUtils.bind(this,function(R,W,d,f){var k=this.actions.get(d);null!=k&&(d=function(){k.isEnabled()&&k.funct.apply(this,arguments)},W?f?y.bindControlShiftKey(R,d):y.bindControlKey(R,d):f?y.bindShiftKey(R,d):y.bindKey(R,d))});var G=this,M=y.escape;y.escape=function(R){M.apply(this,arguments)};y.enter=function(){};y.bindControlShiftKey(36,function(){p.exitGroup()}); | 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 |
mxStencilRegistry.getStencil=function(b){var e=mxStencilRegistry.stencils[b];if(null==e&&null==mxCellRenderer.defaultShapes[b]&&mxStencilRegistry.dynamicLoading){var g=mxStencilRegistry.getBasenameForStencil(b);if(null!=g){e=mxStencilRegistry.libraries[g];if(null!=e){if(null==mxStencilRegistry.packages[g]){for(var p=0;p<e.length;p++){var y=e[p];if(!mxStencilRegistry.filesLoaded[y])if(mxStencilRegistry.filesLoaded[y]=!0,".xml"==y.toLowerCase().substring(y.length-4,y.length))mxStencilRegistry.loadStencilSet(y,
null);else if(".js"==y.toLowerCase().substring(y.length-3,y.length))try{if(mxStencilRegistry.allowEval){var q=mxUtils.load(y);null!=q&&200<=q.getStatus()&&299>=q.getStatus()&&eval.call(window,q.getText())}}catch(E){null!=window.console&&console.log("error in getStencil:",b,g,e,y,E)}}mxStencilRegistry.packages[g]=1}}else g=g.replace("_-_","_"),mxStencilRegistry.loadStencilSet(STENCIL_PATH+"/"+g+".xml",null);e=mxStencilRegistry.stencils[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 |
mxUtils.write(ja,mxResources.get("timeAgo",[ma],"{1} ago"));ja.setAttribute("title",ca.toLocaleDateString()+" "+ca.toLocaleTimeString())}function G(ca){var ja=document.createElement("img");ja.className="geCommentBusyImg";ja.src=IMAGE_PATH+"/spin.gif";ca.appendChild(ja);ca.busyImg=ja}function M(ca){ca.style.border="1px solid red";ca.removeChild(ca.busyImg)}function R(ca){ca.style.border="";ca.removeChild(ca.busyImg)}function W(ca,ja,ma,aa,S){function da(Z,ba,ia){var qa=document.createElement("li"); | 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 |
EditorUi.prototype.chromelessWindowResize=function(){};var G=Menus.prototype.init;Menus.prototype.init=function(){G.apply(this,arguments);var W=this.editorUi;EditorUi.enablePlantUml&&!W.isOffline()&&W.actions.put("plantUml",new Action(mxResources.get("plantUml")+"...",function(){var k=new ParseDialog(W,mxResources.get("plantUml")+"...","plantUml");W.showDialog(k.container,620,420,!0,!1);k.init()}));W.actions.put("mermaid",new Action(mxResources.get("mermaid")+"...",function(){var k=new ParseDialog(W,
mxResources.get("mermaid")+"...","mermaid");W.showDialog(k.container,620,420,!0,!1);k.init()}));var d="horizontalFlow verticalFlow - horizontalTree verticalTree radialTree - organic circle".split(" "),f=function(k,u,z,C){k.addItem(z,null,mxUtils.bind(this,function(){var F=new CreateGraphDialog(W,z,C);W.showDialog(F.container,620,420,!0,!1);F.init()}),u)};this.put("insertLayout",new Menu(mxUtils.bind(this,function(k,u){for(var z=0;z<d.length;z++)"-"==d[z]?k.addSeparator(u):f(k,u,mxResources.get(d[z])+
"...",d[z])})))};EditorUi.prototype.installFormatToolbar=function(W){var d=this.editor.graph,f=document.createElement("div");f.style.cssText="position:absolute;top:10px;z-index:1;border-radius:4px;box-shadow:0px 0px 3px 1px #d1d1d1;padding:6px;white-space:nowrap;background-color:#fff;transform:translate(-50%, 0);left:50%;";d.getSelectionModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(k,u){0<d.getSelectionCount()?(W.appendChild(f),f.innerHTML="Selected: "+d.getSelectionCount()):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.executeLayout=function(b,e,g){var p=this.editor.graph;p.getModel().beginUpdate();try{b()}catch(y){throw y;}finally{this.allowAnimation&&e&&p.isEnabled()?(b=new mxMorphing(p),b.addListener(mxEvent.DONE,mxUtils.bind(this,function(){p.getModel().endUpdate();null!=g&&g()})),b.startAnimation()):(p.getModel().endUpdate(),null!=g&&g())}}; | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
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==
this.div&&(this.div=this.createShape()),mxUtils.clearSelection(),this.update(x,Q),this.isSpaceEvent(J)?(x=this.x+this.width,Q=this.y+this.height,Y=this.graph.view.scale,mxEvent.isAltDown(J.getEvent())||(this.width=this.graph.snap(this.width/Y)*Y,this.height=this.graph.snap(this.height/Y)*Y,this.graph.isGridEnabled()||(this.width<this.graph.tolerance&&(this.width=0),this.height<this.graph.tolerance&&(this.height=0)),this.x<this.first.x&&(this.x=x-this.width),this.y<this.first.y&&(this.y=Q-this.height)),
this.div.style.borderStyle="dashed",this.div.style.backgroundColor="white",this.div.style.left=this.x+"px",this.div.style.top=this.y+"px",this.div.style.width=Math.max(0,this.width)+"px",this.div.style.height=this.graph.container.clientHeight+"px",this.div.style.borderWidth=0>=this.width?"0px 1px 0px 0px":"0px 1px 0px 1px",null==this.secondDiv&&(this.secondDiv=this.div.cloneNode(!0),this.div.parentNode.appendChild(this.secondDiv)),this.secondDiv.style.left=this.x+"px",this.secondDiv.style.top=this.y+
"px",this.secondDiv.style.width=this.graph.container.clientWidth+"px",this.secondDiv.style.height=Math.max(0,this.height)+"px",this.secondDiv.style.borderWidth=0>=this.height?"1px 0px 0px 0px":"1px 0px 1px 0px"):(this.div.style.backgroundColor="",this.div.style.borderWidth="",this.div.style.borderStyle="",null!=this.secondDiv&&(this.secondDiv.parentNode.removeChild(this.secondDiv),this.secondDiv=null)),J.consume()}};var ia=mxRubberband.prototype.reset;mxRubberband.prototype.reset=function(){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 |
n=0;n<this.line.length&&!m;n++){var t=this.line[n];null!=t&&null!=v&&(m=mxUtils.rectangleIntersectsSegment(c,v,t));v=t}return m};mxCellRenderer.registerShape("tableLine",b);mxUtils.extend(e,mxSwimlane);e.prototype.getLabelBounds=function(c){return 0==this.getTitleSize()?mxShape.prototype.getLabelBounds.apply(this,arguments):mxSwimlane.prototype.getLabelBounds.apply(this,arguments)};e.prototype.paintVertexShape=function(c,m,v,n,t){var B=null!=this.state?this.state.view.graph.isCellCollapsed(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 |
EditorUi.prototype.createTimeout=function(b,e,g){var p=!0,y=null,q=mxUtils.bind(this,function(L){y.clear()&&(p=!1,L=null!=L?L:{code:App.ERROR_TIMEOUT,message:mxResources.get("timeout"),retry:mxUtils.bind(this,function(){this.createTimeout(b,e,g)})},null!=g?g(L):this.handleError(L))}),E=window.setTimeout(q,null!=b?b:this.timeout);y={clear:function(){window.clearTimeout(E);return p},isAlive:function(){return p}};null!=e&&this.tryAndHandle(mxUtils.bind(this,function(){e(y)}),q);return 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 |
Graph.prototype.dblClick=function(x,J){this.isEnabled()&&(J=this.insertTextForEvent(x,J),mxGraph.prototype.dblClick.call(this,x,J))};Graph.prototype.insertTextForEvent=function(x,J){var Q=mxUtils.convertPoint(this.container,mxEvent.getClientX(x),mxEvent.getClientY(x));if(null!=x&&!this.model.isVertex(J)){var Y=this.model.isEdge(J)?this.view.getState(J):null,ea=mxEvent.getSource(x);this.firstClickState!=Y||this.firstClickSource!=ea||null!=Y&&null!=Y.text&&null!=Y.text.node&&null!=Y.text.boundingBox&&
(mxUtils.contains(Y.text.boundingBox,Q.x,Q.y)||mxUtils.isAncestorNode(Y.text.node,mxEvent.getSource(x)))||(null!=Y||this.isCellLocked(this.getDefaultParent()))&&(null==Y||this.isCellLocked(Y.cell))||!(null!=Y||mxClient.IS_SVG&&ea==this.view.getCanvas().ownerSVGElement)||(null==Y&&(Y=this.view.getState(this.getCellAt(Q.x,Q.y))),J=this.addText(Q.x,Q.y,Y))}return J};Graph.prototype.getInsertPoint=function(){var x=this.getGridSize(),J=this.container.scrollLeft/this.view.scale-this.view.translate.x,Q= | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
300,80,!0,!1);F.init()}}));mxEvent.addListener(k,"change",mxUtils.bind(this,function(){k.checked&&(null==f||f.checked)?C.removeAttribute("disabled"):C.setAttribute("disabled","disabled")}));mxUtils.br(d);return{getLink:function(){return k.checked?"blank"===C.value?"_blank":z:null},getEditInput:function(){return k},getEditSelect:function(){return C}}};EditorUi.prototype.addLinkSection=function(d,f){function k(){var K=document.createElement("div");K.style.width="100%";K.style.height="100%";K.style.boxSizing= | 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 |
na,t),c.lineTo(n-na,t-na),c.lineTo(n,t-na)),("fold"==va||"default"==va&&"fold"==B)&&fb&&Ga&&(c.moveTo(0,t-na),c.lineTo(na,t-na),c.lineTo(na,t))};mxCellRenderer.registerShape(Na.prototype.cst.RECT2,Na);Na.prototype.constraints=null;mxUtils.extend(Za,mxConnector);Za.prototype.origPaintEdgeShape=Za.prototype.paintEdgeShape;Za.prototype.paintEdgeShape=function(c,m,v){for(var n=[],t=0;t<m.length;t++)n.push(mxUtils.clone(m[t]));t=c.state.dashed;var B=c.state.fixDash;Za.prototype.origPaintEdgeShape.apply(this,
[c,n,v]);3<=c.state.strokeWidth&&(n=mxUtils.getValue(this.style,"fillColor",null),null!=n&&(c.setStrokeColor(n),c.setStrokeWidth(c.state.strokeWidth-2),c.setDashed(t,B),Za.prototype.origPaintEdgeShape.apply(this,[c,m,v])))};mxCellRenderer.registerShape("filledEdge",Za);"undefined"!==typeof StyleFormatPanel&&function(){var c=StyleFormatPanel.prototype.getCustomColors;StyleFormatPanel.prototype.getCustomColors=function(){var m=this.editorUi.getSelectionState(),v=c.apply(this,arguments);"umlFrame"== | 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.graph.setTooltips(0!=this.graphConfig.tooltips);this.graph.initialViewState={translate:this.graph.view.translate.clone(),scale:this.graph.view.scale};null!=G&&this.setLayersVisible(G);this.graph.customLinkClicked=function(k){try{if(Graph.isPageLink(k)){var u=k.indexOf(",");L.selectPageById(k.substring(u+1))||alert(mxResources.get("pageNotFound")||"Page not found")}else this.handleCustomLink(k)}catch(z){alert(z.message)}return!0};var f=this.graph.foldTreeCell;this.graph.foldTreeCell=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 |
EditorUi.prototype.pickColor=function(b,e){var g=this.editor.graph,p=g.cellEditor.saveSelection(),y=230+17*(Math.ceil(ColorDialog.prototype.presetColors.length/12)+Math.ceil(ColorDialog.prototype.defaultColors.length/12));b=new ColorDialog(this,mxUtils.rgba2hex(b)||"none",function(q){g.cellEditor.restoreSelection(p);e(q)},function(){g.cellEditor.restoreSelection(p)});this.showDialog(b.container,230,y,!0,!1);b.init()}; | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
g.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 |
Pa.getAlternateText=function(nb,ub,gb,tb,ob,pb,hb,Ab,Db,Bb,vb,zb,yb){if(null!=pb&&0<this.state.fontSize)try{mxUtils.isNode(pb)?pb=pb.innerText:(eb.innerHTML=pb,pb=mxUtils.extractTextWithWhitespace(eb.childNodes));for(var Cb=Math.ceil(2*tb/this.state.fontSize),c=[],m=0,v=0;(0==Cb||m<Cb)&&v<pb.length;){var n=pb.charCodeAt(v);if(10==n||13==n){if(0<m)break}else c.push(pb.charAt(v)),255>n&&m++;v++}c.length<pb.length&&1<pb.length-c.length&&(pb=mxUtils.trim(c.join(""))+"...");return pb}catch(t){return jb.apply(this,
arguments)}else return jb.apply(this,arguments)};var ib=this.backgroundImage;if(null!=ib){x=Sa/J;var mb=this.view.translate;Ra=new mxRectangle((ib.x+mb.x)*x,(ib.y+mb.y)*x,ib.width*x,ib.height*x);mxUtils.intersects(cb,Ra)&&Pa.image(ib.x+mb.x,ib.y+mb.y,ib.width,ib.height,ib.src,!0)}Pa.scale(Y);Pa.textEnabled=oa;wa=null!=wa?wa:this.createSvgImageExport();var wb=wa.drawCellState,xb=wa.getLinkForCellState;wa.getLinkForCellState=function(nb,ub){var gb=xb.apply(this,arguments);return null==gb||nb.view.graph.isCustomLink(gb)? | 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 Y(){mxEllipse.call(this)}function ea(){mxEllipse.call(this)}function la(){mxRhombus.call(this)}function oa(){mxEllipse.call(this)}function wa(){mxEllipse.call(this)}function sa(){mxEllipse.call(this)}function ua(){mxEllipse.call(this)}function Fa(){mxActor.call(this)}function Ua(){mxActor.call(this)}function Ra(){mxActor.call(this)}function Na(c,m,v,n){mxShape.call(this);this.bounds=c;this.fill=m;this.stroke=v;this.strokewidth=null!=n?n:1;this.rectStyle="square";this.size=10;this.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 |
1)};mxCellRenderer.registerShape("flexArrow",Oa);mxUtils.extend(ta,mxActor);ta.prototype.size=30;ta.prototype.isRoundable=function(){return!0};ta.prototype.redrawPath=function(c,m,v,n,t){m=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(0,t),new mxPoint(0,m),new mxPoint(n,0),new mxPoint(n,t)],this.isRounded,v,!0);c.end()};mxCellRenderer.registerShape("manualInput", | 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 |
mxGraphView.prototype.updateFloatingTerminalPoint=function(M,R,W,d){if(null==R||null==M||"1"!=R.style.snapToPoint&&"1"!=M.style.snapToPoint)L.apply(this,arguments);else{R=this.getTerminalPort(M,R,d);var f=this.getNextPoint(M,W,d),k=this.graph.isOrthogonal(M),u=mxUtils.toRadians(Number(R.style[mxConstants.STYLE_ROTATION]||"0")),z=new mxPoint(R.getCenterX(),R.getCenterY());if(0!=u){var C=Math.cos(-u),F=Math.sin(-u);f=mxUtils.getRotatedPoint(f,C,F,z)}C=parseFloat(M.style[mxConstants.STYLE_PERIMETER_SPACING]||
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, | 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.