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 |
|---|---|---|---|---|---|---|---|
mxPerimeter.TrapezoidPerimeter);mxPerimeter.StepPerimeter=function(c,m,v,n){var t="0"!=mxUtils.getValue(m.style,"fixedSize","0"),B=t?aa.prototype.fixedSize:aa.prototype.size;null!=m&&(B=mxUtils.getValue(m.style,"size",B));t&&(B*=m.view.scale);var D=c.x,ha=c.y,I=c.width,va=c.height,na=c.getCenterX();c=c.getCenterY();m=null!=m?mxUtils.getValue(m.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;m==mxConstants.DIRECTION_EAST?(t=t?Math.max(0,Math.min(I,B)):I*Math.max(0,
Math.min(1,B)),ha=[new mxPoint(D,ha),new mxPoint(D+I-t,ha),new mxPoint(D+I,c),new mxPoint(D+I-t,ha+va),new mxPoint(D,ha+va),new mxPoint(D+t,c),new mxPoint(D,ha)]):m==mxConstants.DIRECTION_WEST?(t=t?Math.max(0,Math.min(I,B)):I*Math.max(0,Math.min(1,B)),ha=[new mxPoint(D+t,ha),new mxPoint(D+I,ha),new mxPoint(D+I-t,c),new mxPoint(D+I,ha+va),new mxPoint(D+t,ha+va),new mxPoint(D,c),new mxPoint(D+t,ha)]):m==mxConstants.DIRECTION_NORTH?(t=t?Math.max(0,Math.min(va,B)):va*Math.max(0,Math.min(1,B)),ha=[new mxPoint(D,
ha+t),new mxPoint(na,ha),new mxPoint(D+I,ha+t),new mxPoint(D+I,ha+va),new mxPoint(na,ha+va-t),new mxPoint(D,ha+va),new mxPoint(D,ha+t)]):(t=t?Math.max(0,Math.min(va,B)):va*Math.max(0,Math.min(1,B)),ha=[new mxPoint(D,ha),new mxPoint(na,ha+t),new mxPoint(D+I,ha),new mxPoint(D+I,ha+va-t),new mxPoint(na,ha+va),new mxPoint(D,ha+va-t),new mxPoint(D,ha)]);na=new mxPoint(na,c);n&&(v.x<D||v.x>D+I?na.y=v.y:na.x=v.x);return mxUtils.getPerimeterPoint(ha,na,v)};mxStyleRegistry.putValue("stepPerimeter",mxPerimeter.StepPerimeter); | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
(function(){var b=new mxObjectCodec(new ChangePageSetup,["ui","previousColor","previousImage","previousFormat","previousPageScale"]);b.afterDecode=function(e,g,p){p.previousColor=p.color;p.previousImage=p.image;p.previousFormat=p.format;p.previousPageScale=p.pageScale;null!=p.foldingEnabled&&(p.foldingEnabled=!p.foldingEnabled);return p};mxCodecRegistry.register(b)})();EditorUi.prototype.setBackgroundColor=function(b){this.editor.graph.background=b;this.editor.graph.view.validateBackground();this.fireEvent(new mxEventObject("backgroundColorChanged"))}; | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
"arrow",p,"direction",g,"event",y)))}));mxEvent.addListener(p,"mouseleave",mxUtils.bind(this,function(y){mxEvent.isMouseEvent(y)&&this.fireEvent(new mxEventObject("blur","arrow",p,"direction",g,"event",y));this.graph.isMouseDown||this.resetActiveArrow()}));return p};HoverIcons.prototype.resetActiveArrow=function(){null!=this.activeArrow&&(mxUtils.setOpacity(this.activeArrow,this.inactiveOpacity),this.activeArrow=null)}; | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
0;if(19==X){var qa=l.indexOf("%3C%2Fmxfile%3E)",U)+15;U-=9;if(qa>U){N=l.substring(U,qa);break}}10==ia&&("endobj"==A?ba=null:"obj"==A.substring(A.length-3,A.length)||"xref"==A||"trailer"==A?(ba=[],Z[A.split(" ")[0]]=ba):null!=ba&&ba.push(A),A="")}null==N&&(N=Editor.extractGraphModelFromXref(Z));null!=N&&(N=decodeURIComponent(N.replace(/\\\(/g,"(").replace(/\\\)/g,")")));return N};Editor.extractGraphModelFromXref=function(l){var A=l.trailer,N=null;null!=A&&(A=/.* \/Info (\d+) (\d+) R/g.exec(A.join("\n")),
null!=A&&0<A.length&&(A=l[A[1]],null!=A&&(A=/.* \/Subject (\d+) (\d+) R/g.exec(A.join("\n")),null!=A&&0<A.length&&(l=l[A[1]],null!=l&&(l=l.join("\n"),N=l.substring(1,l.length-1))))));return N};Editor.extractParserError=function(l,A){var N=null;l=null!=l?l.getElementsByTagName("parsererror"):null;null!=l&&0<l.length&&(N=A||mxResources.get("invalidChars"),A=l[0].getElementsByTagName("div"),0<A.length&&(N=mxUtils.getTextContent(A[0])));return null!=N?mxUtils.trim(N):N};Editor.addRetryToError=function(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 |
mxCellRenderer.registerShape("plus",da);var ib=mxRhombus.prototype.paintVertexShape;mxRhombus.prototype.getLabelBounds=function(c){if(1==this.style["double"]){var m=(2*Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||0))*this.scale;return new mxRectangle(c.x+m,c.y+m,c.width-2*m,c.height-2*m)}return c};mxRhombus.prototype.paintVertexShape=function(c,m,v,n,t){ib.apply(this,arguments);if(!this.outline&&1==this.style["double"]){var B=2*Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||
0);m+=B;v+=B;n-=2*B;t-=2*B;0<n&&0<t&&(c.setShadow(!1),ib.apply(this,[c,m,v,n,t]))}};mxUtils.extend(P,mxRectangleShape);P.prototype.isHtmlAllowed=function(){return!1};P.prototype.getLabelBounds=function(c){if(1==this.style["double"]){var m=(Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||0))*this.scale;return new mxRectangle(c.x+m,c.y+m,c.width-2*m,c.height-2*m)}return c};P.prototype.paintForeground=function(c,m,v,n,t){if(null!=this.style){if(!this.outline&&1==this.style["double"]){var B= | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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.text.node.style.opacity=""),Graph.setOpacityForNodes(this.getNodesForCells([b.cell]),e?1:0))})}};Graph.prototype.executeAnimations=function(b,e,g,p){g=null!=g?g:30;p=null!=p?p:30;var y=null,q=0,E=mxUtils.bind(this,function(){if(q==g||this.stoppingCustomActions){window.clearInterval(y);for(var L=0;L<b.length;L++)b[L].stop();null!=e&&e()}else for(L=0;L<b.length;L++)b[L].execute(q,g);q++});y=window.setInterval(E,p);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 |
mxStencilRegistry.loadStencilSet=function(b,e,g,p){var y=mxStencilRegistry.packages[b];if(null!=g&&g||null==y){var q=!1;if(null==y)try{if(p){mxStencilRegistry.loadStencil(b,mxUtils.bind(this,function(E){null!=E&&null!=E.documentElement&&(mxStencilRegistry.packages[b]=E,q=!0,mxStencilRegistry.parseStencilSet(E.documentElement,e,q))}));return}y=mxStencilRegistry.loadStencil(b);mxStencilRegistry.packages[b]=y;q=!0}catch(E){null!=window.console&&console.log("error in loadStencilSet:",b,E)}null!=y&&null!=
y.documentElement&&mxStencilRegistry.parseStencilSet(y.documentElement,e,q)}};mxStencilRegistry.loadStencil=function(b,e){if(null!=e)mxUtils.get(b,mxUtils.bind(this,function(g){e(200<=g.getStatus()&&299>=g.getStatus()?g.getXml():null)}),mxUtils.bind(this,function(g){e(null)}));else return mxUtils.load(b).getXml()};mxStencilRegistry.parseStencilSets=function(b){for(var e=0;e<b.length;e++)mxStencilRegistry.parseStencilSet(mxUtils.parseXml(b[e]).documentElement)}; | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
ia=!0;null!=this.style&&(ia="1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1"));if(null!=Z.handJiggle&&Z.handJiggle.constructor==l&&!this.outline){Z.save();var qa=this.fill,ra=this.stroke;this.stroke=this.fill=null;var pa=this.configurePointerEvents,xa=Z.setStrokeColor;Z.setStrokeColor=function(){};var Ca=Z.setFillColor;Z.setFillColor=function(){};ia||null==qa||(this.configurePointerEvents=function(){});Z.handJiggle.passThrough=!0;X.apply(this,arguments);Z.handJiggle.passThrough= | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
ia=!0;null!=this.style&&(ia="1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1"));if(null!=Z.handJiggle&&Z.handJiggle.constructor==l&&!this.outline){Z.save();var qa=this.fill,ra=this.stroke;this.stroke=this.fill=null;var pa=this.configurePointerEvents,xa=Z.setStrokeColor;Z.setStrokeColor=function(){};var Ca=Z.setFillColor;Z.setFillColor=function(){};ia||null==qa||(this.configurePointerEvents=function(){});Z.handJiggle.passThrough=!0;X.apply(this,arguments);Z.handJiggle.passThrough= | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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.reloadFile=function(b,e){try{this.ui.spinner.stop();var g=mxUtils.bind(this,function(){EditorUi.debug("DrawioFile.reloadFile",[this],"hash",this.getHash(),"modified",this.isModified(),"backupPatch",this.backupPatch);this.stats.fileReloaded++;if(""==this.getHash())this.mergeLatestVersion(null!=this.backupPatch?[this.backupPatch]:null,mxUtils.bind(this,function(){this.backupPatch=null;null!=b&&b()}),e);else{var p=this.ui.editor.graph,y=p.getSelectionCells(),q=p.getViewState(),E=
this.ui.currentPage;this.ui.loadFile(this.getHash(),!0,null,mxUtils.bind(this,function(){if(null==this.ui.fileLoadedError){this.ui.restoreViewState(E,q,y);null!=this.backupPatch&&this.patch([this.backupPatch]);var L=this.ui.getCurrentFile();null!=L&&(L.stats=this.stats);null!=b&&b()}}),!0)}});this.isModified()&&null==this.backupPatch?this.ui.confirm(mxResources.get("allChangesLost"),mxUtils.bind(this,function(){this.handleFileSuccess("manual"==DrawioFile.SYNC)}),g,mxResources.get("cancel"),mxResources.get("discardChanges")):
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 |
M.style.width="64px";M.style.cursor="pointer";M.style.padding="4px";var R=g.backgroundImage,W=g.background,d=g.shadowVisible,f=function(k){b.showBackgroundImageDialog(function(u,z,C,F){z||(null!=u&&null!=u.src&&Graph.isPageLink(u.src)&&(u={originalSrc:u.src}),R=u,d=F);W=C;e()},R,W,!0);mxEvent.consume(k)};mxEvent.addListener(G,"click",f);mxEvent.addListener(M,"click",f);e();E.appendChild(M);E.appendChild(G);q.appendChild(E);y.appendChild(q);q=document.createElement("tr");E=document.createElement("td"); | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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)};EditorUi.prototype.embedExtFonts=function(d){EditorUi.logEvent("SHOULD NOT BE CALLED: embedExtFonts");return this.editor.embedExtFonts(d)};EditorUi.prototype.exportToCanvas=function(d,f,k,u,z,C,F,K,O,H,ka,fa,ca,ja,ma,aa){EditorUi.logEvent("SHOULD NOT BE CALLED: exportToCanvas");return this.editor.exportToCanvas(d,f,k,u,z,C,F,K,O,H,ka,fa,ca,ja,ma,aa)};EditorUi.prototype.createImageUrlConverter=function(){EditorUi.logEvent("SHOULD NOT BE CALLED: createImageUrlConverter");return this.editor.createImageUrlConverter()}; | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
null,[b]),this.setCellStyles(mxConstants.STYLE_FONTSTYLE,null,[b]),this.setCellStyles(mxConstants.STYLE_FONTCOLOR,null,[b]),this.setCellStyles(mxConstants.STYLE_LABEL_BORDERCOLOR,null,[b]),this.setCellStyles(mxConstants.STYLE_LABEL_BACKGROUNDCOLOR,null,[b]))}finally{this.getModel().endUpdate()}return p};Graph.prototype.createParent=function(b,e,g,p,y){b=this.cloneCell(b);for(var q=0;q<g;q++){var E=this.cloneCell(e),L=this.getCellGeometry(E);null!=L&&(L.x+=q*p,L.y+=q*y);b.insert(E)}return b}; | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
null==b?(G.style.border="1px solid #c0c0c0",G.style.margin="40px",mxEvent.addListener(document.documentElement,"keydown",q)):(e.style.display="none",g.style.display="none");var M=this;T.getImageFromBundles=function(W){return M.getImageUrl(W)};var R=y.createTemporaryGraph;y.createTemporaryGraph=function(){var W=R.apply(this,arguments);W.getImageFromBundles=function(d){return M.getImageUrl(d)};return W};this.graphConfig.move&&(T.isMoveCellsEvent=function(W){return!0});mxUtils.setPrefixedStyle(G.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 |
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 |
qa.className="geCommentAction";var ra=document.createElement("a");ra.className="geCommentActionLnk";mxUtils.write(ra,Z);qa.appendChild(ra);mxEvent.addListener(ra,"click",function(pa){ba(pa,ca);pa.preventDefault();mxEvent.consume(pa)});U.appendChild(qa);ia&&(qa.style.display="none")}function P(){function Z(qa){ba.push(ia);if(null!=qa.replies)for(var ra=0;ra<qa.replies.length;ra++)ia=ia.nextSibling,Z(qa.replies[ra])}var ba=[],ia=l;Z(ca);return{pdiv:ia,replies:ba}}function V(Z,ba,ia,qa,ra){function pa(){G(za); | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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.menus&&(null!=this.menus.tagsWindow&&(this.menus.tagsWindow.destroy(),this.menus.tagsWindow=null),null!=this.menus.findWindow&&(this.menus.findWindow.destroy(),this.menus.findWindow=null),null!=this.menus.findReplaceWindow&&(this.menus.findReplaceWindow.destroy(),this.menus.findReplaceWindow=null),null!=this.menus.commentsWindow&&(this.menus.commentsWindow.destroy(),this.menus.commentsWindow=null))};EditorUi.prototype.switchThemeConstants=function(d){var f=this.editor.graph;f.defaultEdgeLength=
Graph.prototype.defaultEdgeLength;f.defaultGridEnabled=Graph.prototype.defaultGridEnabled;f.defaultPageVisible=Graph.prototype.defaultPageVisible;null!=this.menus&&(this.menus.autoPopup="simple"!=d&&"sketch"!=d);"simple"==d||"sketch"==d?(Editor.fitWindowBorders=new mxRectangle(60,30,30,30),f.defaultEdgeLength=120,null==urlParams.grid&&(f.defaultGridEnabled=!1),null==urlParams.pv&&(f.defaultPageVisible=!1)):Editor.fitWindowBorders=null};EditorUi.prototype.switchCssForTheme=function(d){"simple"==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 |
qa.className="geCommentAction";var ra=document.createElement("a");ra.className="geCommentActionLnk";mxUtils.write(ra,Z);qa.appendChild(ra);mxEvent.addListener(ra,"click",function(pa){ba(pa,ca);pa.preventDefault();mxEvent.consume(pa)});U.appendChild(qa);ia&&(qa.style.display="none")}function P(){function Z(qa){ba.push(ia);if(null!=qa.replies)for(var ra=0;ra<qa.replies.length;ra++)ia=ia.nextSibling,Z(qa.replies[ra])}var ba=[],ia=l;Z(ca);return{pdiv:ia,replies:ba}}function V(Z,ba,ia,qa,ra){function pa(){G(za);
ca.addReply(Aa,function(Ma){Aa.id=Ma;ca.replies.push(Aa);R(za);ia&&ia()},function(Ma){xa();M(za);b.handleError(Ma,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))},qa,ra)}function xa(){L(Aa,za,function(Ma){pa()},!0)}var Ca=P().pdiv,Aa=b.newComment(Z,b.getCurrentUser());Aa.pCommentId=ca.id;null==ca.replies&&(ca.replies=[]);var za=W(Aa,ca.replies,Ca,aa+1);ba?xa():pa()}if(S||!ca.isResolved){F.style.display="none";var l=document.createElement("div");l.className="geCommentContainer"; | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
"-rev_"+this.ui.hashValue(L):"")+(null!=z?"-latest_"+z:"")+(null!=k?"-latestRev_"+this.ui.hashValue(k.getCurrentRevisionId()):""));EditorUi.logEvent({category:"CHECKSUM-ERROR-SYNC-FILE-"+W,action:y,label:"user_"+R+(null!=this.sync?"-client_"+this.sync.clientId:"-nosync")+"-bytes_"+d+"-patches_"+e.length+"-size_"+this.getSize()})}catch(C){}}),b)}}catch(k){}}; | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
!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==
l||0==l.length||"undefined"===typeof pako?l:Graph.arrayBufferToString(pako.deflateRaw(l))};Editor.fastDecompress=function(l){return null==l||0==l.length||"undefined"===typeof pako?l:pako.inflateRaw(Graph.stringToArrayBuffer(atob(l)),{to:"string"})};Editor.extractGraphModel=function(l,A,N){if(null!=l&&"undefined"!==typeof pako){var X=l.ownerDocument.getElementsByTagName("div"),U=[];if(null!=X&&0<X.length)for(var Z=0;Z<X.length;Z++)if("mxgraph"==X[Z].getAttribute("class")){U.push(X[Z]);break}0<U.length&& | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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);var Sa=Math.tan(mxUtils.toRadians(30)),db=(.5-Sa)/2;mxCellRenderer.registerShape("isoRectangle",E);mxUtils.extend(y,mxConnector);y.prototype.paintEdgeShape=function(c,m){var v=this.createMarker(c,m,!0),n=this.createMarker(c,m,!1);c.setDashed(!1);mxPolyline.prototype.paintEdgeShape.apply(this,arguments);null!=this.isDashed&&c.setDashed(this.isDashed,null!=this.style?1==mxUtils.getValue(this.style,mxConstants.STYLE_FIX_DASH,!1):!1);c.setShadow(!1);c.setStrokeColor(this.fill);mxPolyline.prototype.paintEdgeShape.apply(this,
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 |
!0;this.connectionHandler.setCreateTarget(!1);this.connectionHandler.insertBeforeSource=!0;this.connectionHandler.isValidSource=function(S,da){return!1};this.alternateEdgeStyle="vertical";null==p&&this.loadStylesheet();var R=this.graphHandler.getGuideStates;this.graphHandler.getGuideStates=function(){var S=R.apply(this,arguments);if(this.graph.pageVisible){var da=[],P=this.graph.pageFormat,V=this.graph.pageScale,l=P.width*V;P=P.height*V;V=this.graph.view.translate;for(var A=this.graph.view.scale, | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
function(l,A,N){return Editor.extractGraphModel.apply(this,arguments)};var g=Editor.prototype.resetGraph;Editor.prototype.resetGraph=function(){this.graph.mathEnabled="1"==urlParams.math;this.graph.view.x0=null;this.graph.view.y0=null;this.graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&this.graph.isCssTransformsSupported();this.graph.updateCssTransform();g.apply(this,arguments)};var p=Editor.prototype.updateGraphComponents;Editor.prototype.updateGraphComponents=function(){p.apply(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 |
this.changeHandler=null)}}();(function(){function b(c,m,v){mxShape.call(this);this.line=c;this.stroke=m;this.strokewidth=null!=v?v:1;this.updateBoundsFromLine()}function e(){mxSwimlane.call(this)}function g(){mxSwimlane.call(this)}function p(){mxCylinder.call(this)}function y(){mxConnector.call(this)}function q(){mxCylinder.call(this)}function E(){mxActor.call(this)}function L(){mxCylinder.call(this)}function T(){mxCylinder.call(this)}function G(){mxCylinder.call(this)}function M(){mxCylinder.call(this)}function R(){mxShape.call(this)} | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
t):va&&!na?c.lineTo(0,t-I):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):c.lineTo(I,t-ha-I):c.lineTo(I,t):c.lineTo(0,t)};Na.prototype.paintSEInner=function(c,m,v,n,t,B,D,ha,I){if("rounded"==D||"default"==D&&"rounded"==B)c.arcTo(ha-.5*I,ha-.5*I,0,0,0,n-I,t-ha-.5*I);else if("invRound"==D||"default"==D&&"invRound"==B)c.arcTo(ha+I,ha+I,0,0,1,n-I,t-ha-I);else if("snip"==D||"default"==D&&"snip"==
B)c.lineTo(n-I,t-ha-.5*I);else if("fold"==D||"default"==D&&"fold"==B)c.lineTo(n-ha-I,t-ha-I),c.lineTo(n-I,t-ha-I)};Na.prototype.paintBottomInner=function(c,m,v,n,t,B,D,ha,I,va,na){va||na?!va&&na?c.lineTo(n,t-I):va&&!na?c.lineTo(n-I,t):"square"==D||"default"==D&&"square"==B||!va?c.lineTo(n-I,t-I):"rounded"==D||"default"==D&&"rounded"==B||"snip"==D||"default"==D&&"snip"==B?c.lineTo(n-ha-.5*I,t-I):c.lineTo(n-ha-I,t-I):c.lineTo(n,t)};Na.prototype.paintSWInner=function(c,m,v,n,t,B,D,ha,I,va){if(!va)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 |
mxVertexHandler.prototype.getSelectionBounds=function(x){var J=this.graph.getModel(),Q=J.getParent(x.cell),Y=this.graph.getCellGeometry(x.cell);return J.isEdge(Q)&&null!=Y&&Y.relative&&2>x.width&&2>x.height&&null!=x.text&&null!=x.text.boundingBox?(J=x.text.unrotatedBoundingBox||x.text.boundingBox,new mxRectangle(Math.round(J.x),Math.round(J.y),Math.round(J.width),Math.round(J.height))):Ma.apply(this,arguments)};var Qa=mxVertexHandler.prototype.mouseDown;mxVertexHandler.prototype.mouseDown=function(x,
J){var Q=this.graph.getModel(),Y=Q.getParent(this.state.cell),ea=this.graph.getCellGeometry(this.state.cell);(this.getHandleForEvent(J)==mxEvent.ROTATION_HANDLE||!Q.isEdge(Y)||null==ea||!ea.relative||null==this.state||2<=this.state.width||2<=this.state.height)&&Qa.apply(this,arguments)};mxVertexHandler.prototype.rotateClick=function(){var x=mxUtils.getValue(this.state.style,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE),J=mxUtils.getValue(this.state.style,mxConstants.STYLE_FILLCOLOR,mxConstants.NONE); | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
this.scale=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 |
"transparent";this.graph.transparentBackground=!1;if(this.responsive&&this.graph.dialect==mxConstants.DIALECT_SVG){var E=this.graph.view.getDrawPane().ownerSVGElement;this.graph.view.getCanvas();null!=this.graphConfig.border?E.style.padding=this.graphConfig.border+"px":""==b.style.padding&&(E.style.padding="8px");E.style.boxSizing="border-box";E.style.overflow="visible";this.graph.fit=function(){};this.graph.sizeDidChange=function(){var k=this.view.graphBounds,u=this.view.translate;E.setAttribute("viewBox", | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
m,(.5-db)*m),c.lineTo(.5*m,(1-db)*m)):(c.translate((n-m)/2,(t-m)/2),c.moveTo(0,.25*m),c.lineTo(.5*m,m*db),c.lineTo(m,.25*m),c.lineTo(m,.75*m),c.lineTo(.5*m,(1-db)*m),c.lineTo(0,.75*m),c.close());c.end()};mxCellRenderer.registerShape("isoCube",L);mxUtils.extend(T,mxCylinder);T.prototype.redrawPath=function(c,m,v,n,t,B){m=Math.min(t/2,Math.round(t/8)+this.strokewidth-1);if(B&&null!=this.fill||!B&&null==this.fill)c.moveTo(0,m),c.curveTo(0,2*m,n,2*m,n,m),B||(c.stroke(),c.begin()),c.translate(0,m/2),c.moveTo(0,
m),c.curveTo(0,2*m,n,2*m,n,m),B||(c.stroke(),c.begin()),c.translate(0,m/2),c.moveTo(0,m),c.curveTo(0,2*m,n,2*m,n,m),B||(c.stroke(),c.begin()),c.translate(0,-m);B||(c.moveTo(0,m),c.curveTo(0,-m/3,n,-m/3,n,m),c.lineTo(n,t-m),c.curveTo(n,t+m/3,0,t+m/3,0,t-m),c.close())};T.prototype.getLabelMargins=function(c){return new mxRectangle(0,2.5*Math.min(c.height/2,Math.round(c.height/8)+this.strokewidth-1),0,0)};mxCellRenderer.registerShape("datastore",T);mxUtils.extend(G,mxCylinder);G.prototype.size=30;G.prototype.darkOpacity= | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
M.width/e),g.getElementsByTagName("svg")[0].setAttribute("height",M.height/p))}catch(R){}finally{document.body.removeChild(g)}}b=Editor.createSvgDataUri(mxUtils.getXml(q[0]))}}}catch(R){}return b};Graph.stripQuotes=function(b){null!=b&&("'"==b.charAt(0)&&(b=b.substring(1)),"'"==b.charAt(b.length-1)&&(b=b.substring(0,b.length-1)),'"'==b.charAt(0)&&(b=b.substring(1)),'"'==b.charAt(b.length-1)&&(b=b.substring(0,b.length-1)));return b}; | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
d.pages&&1<d.pages.length?470:390,!0,!0)};this.defaultFilename=mxResources.get("untitledDiagram");var ka=f.getExportVariables;f.getExportVariables=function(){var P=ka.apply(this,arguments),V=d.getCurrentFile();null!=V&&(P.filename=V.getTitle());P.pagecount=null!=d.pages?d.pages.length:1;P.page=null!=d.currentPage?d.currentPage.getName():"";P.pagenumber=null!=d.pages&&null!=d.currentPage?mxUtils.indexOf(d.pages,d.currentPage)+1:1;return P};var fa=f.getGlobalVariable;f.getGlobalVariable=function(P){var V=
d.getCurrentFile();return"filename"==P&&null!=V?V.getTitle():"page"==P&&null!=d.currentPage?d.currentPage.getName():"pagenumber"==P?null!=d.currentPage&&null!=d.pages?mxUtils.indexOf(d.pages,d.currentPage)+1:1:"pagecount"==P?null!=d.pages?d.pages.length:1:fa.apply(this,arguments)};var ca=null,ja=null;this.addListener("fileDescriptorChanged",mxUtils.bind(this,function(){var P=this.getCurrentFile(),V=null!=P&&null!=P.getTitle()?P.getTitle():this.defaultFilename;ca!=V&&P==ja&&(f.invalidateDescendantsWithPlaceholders(f.model.getRoot()), | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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=[""],X=0,U=!0,Z;l=$jscomp.makeIterator(l);for(Z=l.next();!Z.done;Z=l.next())Z=Z.value,'"'===Z?(U&&Z===A&&(N[X]+=Z),U=!U):","===Z&&U?Z=N[++X]="":N[X]+=Z,A=Z;return N}return[]};Editor.prototype.getProxiedUrl=function(l){if((/test\.draw\.io$/.test(window.location.hostname)||/app\.diagrams\.net$/.test(window.location.hostname))&&!this.isCorsEnabledForUrl(l)){var A=/(\.v(dx|sdx?))($|\?)/i.test(l)||/(\.vs(x|sx?))($|\?)/i.test(l);A=/\.png$/i.test(l)||/\.pdf$/i.test(l)||A;var N="t="+(new Date).getTime();
l=PROXY_URL+"?url="+encodeURIComponent(l)+"&"+N+(A?"&base64=1":"")}return l};Editor.prototype.isCorsEnabledForUrl=function(l){if(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||l.substring(0,window.location.origin.length)==window.location.origin)return!0;null!=urlParams.cors&&null==this.corsRegExp&&(this.corsRegExp=new RegExp(decodeURIComponent(urlParams.cors)));return null!=this.corsRegExp&&this.corsRegExp.test(l)||"https://raw.githubusercontent.com/"===l.substring(0,34)||"https://fonts.googleapis.com/"=== | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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"],function(v){var n=Math.max(0,Math.min(.5*v.height,parseFloat(mxUtils.getValue(this.state.style,"size",c))));return new mxPoint(v.x,v.y+n)},function(v,n){this.state.style.size=Math.max(0,n.y-v.y)},!0)]}},ub=function(c,m,v){return function(n){var t=[hb(n,["size"],function(B){var D=Math.max(0,Math.min(B.width,Math.min(B.height,parseFloat(mxUtils.getValue(this.state.style,"size",m)))))*c;return new mxPoint(B.x+D,B.y+D)},function(B,D){this.state.style.size=Math.round(Math.max(0,Math.min(Math.min(B.width,
D.x-B.x),Math.min(B.height,D.y-B.y)))/c)},!1)];v&&mxUtils.getValue(n.style,mxConstants.STYLE_ROUNDED,!1)&&t.push(pb(n));return t}},gb=function(c,m,v,n,t){v=null!=v?v:.5;return function(B){var D=[hb(B,["size"],function(ha){var I=null!=t?"0"!=mxUtils.getValue(this.state.style,"fixedSize","0"):null,va=parseFloat(mxUtils.getValue(this.state.style,"size",I?t:c));return new mxPoint(ha.x+Math.max(0,Math.min(.5*ha.width,va*(I?1:ha.width))),ha.getCenterY())},function(ha,I,va){ha=null!=t&&"0"!=mxUtils.getValue(this.state.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 |
b,g);this.replaceDefaultColor(e,mxConstants.STYLE_LABEL_BORDERCOLOR,g,b);this.replaceDefaultColor(e,mxConstants.STYLE_SWIMLANE_FILLCOLOR,b,g);this.replaceDefaultColor(e,mxConstants.STYLE_LABEL_BACKGROUNDCOLOR,b,g)}return e};Graph.prototype.replaceDefaultColor=function(b,e,g,p){null!=b&&"default"==b[e]&&null!=g&&(b[e]=this.getDefaultColor(b,e,g,p))};Graph.prototype.getDefaultColor=function(b,e,g,p){e="default"+e.charAt(0).toUpperCase()+e.substring(1);"invert"==b[e]&&(g=p);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 |
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 |
N&&A(Editor.svgBrokenImage.src)});else{var U=new Image;this.crossOriginImages&&(U.crossOrigin="anonymous");U.onload=function(){window.clearTimeout(X);if(N)try{var Z=document.createElement("canvas"),ba=Z.getContext("2d");Z.height=U.height;Z.width=U.width;ba.drawImage(U,0,0);A(Z.toDataURL())}catch(ia){A(Editor.svgBrokenImage.src)}};U.onerror=function(){window.clearTimeout(X);N&&A(Editor.svgBrokenImage.src)};U.src=l}}catch(Z){A(Editor.svgBrokenImage.src)}};Editor.prototype.convertImages=function(l,A,
N,X){null==X&&(X=this.createImageUrlConverter());var U=0,Z=N||{};N=mxUtils.bind(this,function(ba,ia){ba=l.getElementsByTagName(ba);for(var qa=0;qa<ba.length;qa++)mxUtils.bind(this,function(ra){try{if(null!=ra){var pa=X.convert(ra.getAttribute(ia));if(null!=pa&&"data:"!=pa.substring(0,5)){var xa=Z[pa];null==xa?(U++,this.convertImageToDataUri(pa,function(Ca){null!=Ca&&(Z[pa]=Ca,ra.setAttribute(ia,Ca));U--;0==U&&A(l)})):ra.setAttribute(ia,xa)}else null!=pa&&ra.setAttribute(ia,pa)}}catch(Ca){}})(ba[qa])});
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& | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
mxUtils.bind(this,fa.prototype.curveTo);this.originalArcTo=this.canvas.arcTo;this.canvas.arcTo=mxUtils.bind(this,fa.prototype.arcTo)}function ca(){mxRectangleShape.call(this)}function ja(){mxRectangleShape.call(this)}function ma(){mxActor.call(this)}function aa(){mxActor.call(this)}function S(){mxActor.call(this)}function da(){mxRectangleShape.call(this)}function P(){mxRectangleShape.call(this)}function V(){mxCylinder.call(this)}function l(){mxShape.call(this)}function A(){mxShape.call(this)}function N(){mxEllipse.call(this)} | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
u.document.write("<html><pre>"+mxUtils.htmlEntities(d,!1)+"</pre></html>"),u.document.close())};var p=EditorUi.prototype.addChromelessToolbarItems;EditorUi.prototype.isChromelessImageExportEnabled=function(){return"draw.io"!=this.getServiceName()||/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname)};EditorUi.prototype.addChromelessToolbarItems=function(d){if(null!=urlParams.tags){this.tagsDialog=this.tagsComponent=null;var f=d(mxUtils.bind(this,function(u){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 |
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 |
C="json"==urlParams.proto?JSON.stringify({event:"init"}):urlParams.ready||"ready";F.postMessage(C,"*");if("json"==urlParams.proto){var K=this.editor.graph.openLink;this.editor.graph.openLink=function(O,H,ka){K.apply(this,arguments);F.postMessage(JSON.stringify({event:"openLink",href:O,target:H,allowOpener:ka}),"*")}}};EditorUi.prototype.createEmbedButton=function(d,f,k,u){var z="simple"==Editor.currentTheme||"sketch"==Editor.currentTheme||"min"==Editor.currentTheme,C=document.createElement("button");
C.setAttribute("title",d+(null!=k?" ("+k+")":""));C.style.marginLeft="6px";mxUtils.write(C,d);z?(C.className=u?"gePrimaryBtn":"",C.style.marginLeft="8px",C.style.padding="6px"):C.className="geBigButton"+(u?"":" geBigStandardButton");mxEvent.addListener(C,"click",f);return C};EditorUi.prototype.addEmbedButtons=function(){var d=document.createElement("div");d.style.display="inline-flex";d.style.alignItems="center";d.style.marginLeft="auto";"simple"!=Editor.currentTheme&&"sketch"!=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 |
J&&x[Q].deleteCell(J)}};Graph.prototype.pasteHtmlAtCaret=function(x){if(window.getSelection){var J=window.getSelection();if(J.getRangeAt&&J.rangeCount){J=J.getRangeAt(0);J.deleteContents();var Q=document.createElement("div");Q.innerHTML=x;x=document.createDocumentFragment();for(var Y;Y=Q.firstChild;)lastNode=x.appendChild(Y);J.insertNode(x)}}else(J=document.selection)&&"Control"!=J.type&&J.createRange().pasteHTML(x)};Graph.prototype.createLinkForHint=function(x,J){function Q(ea,la){ea.length>la&&
(ea=ea.substring(0,Math.round(la/2))+"..."+ea.substring(ea.length-Math.round(la/4)));return ea}x=null!=x?x:"javascript:void(0);";if(null==J||0==J.length)J=this.isCustomLink(x)?this.getLinkTitle(x):x;var Y=document.createElement("a");Y.setAttribute("rel",this.linkRelation);Y.setAttribute("href",this.getAbsoluteUrl(x));Y.setAttribute("title",Q(this.isCustomLink(x)?this.getLinkTitle(x):x,80));null!=this.linkTarget&&Y.setAttribute("target",this.linkTarget);mxUtils.write(Y,Q(J,40));this.isCustomLink(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 |
EditorUi.prototype.isFormatPanelVisible=function(){var d=this.formatWindow;return null!=d?d.window.isVisible():T.apply(this,arguments)};var G=EditorUi.prototype.refresh;EditorUi.prototype.refresh=function(d){if(null!=this.sketchWrapperElt&&null!=this.sketchWrapperElt.parentNode){d=null!=d?d:!0;if("1"!=urlParams.embedInline){var f=this.container.clientWidth;this.container==document.body&&(f=document.body.clientWidth||document.documentElement.clientWidth);var k=this.getDiagramContainerOffset();var u= | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
E+"px",this.view.backgroundPageShape.node.style.marginTop=L+"px")};var y=mxPopupMenu.prototype.addItem;mxPopupMenu.prototype.addItem=function(E,L,T,G,M,R){var W=y.apply(this,arguments);null==R||R||mxEvent.addListener(W,"mousedown",function(d){mxEvent.consume(d)});return W};var q=mxGraphHandler.prototype.isPropagateSelectionCell;mxGraphHandler.prototype.isPropagateSelectionCell=function(E,L,T){var G=this.graph.model.getParent(E);if(L){var M=this.graph.model.isEdge(E)?null:this.graph.getCellGeometry(E);
M=!this.graph.model.isEdge(G)&&!this.graph.isSiblingSelected(E)&&(null!=M&&M.relative||!this.graph.isContainer(G)||this.graph.isPart(E))}else if(M=q.apply(this,arguments),this.graph.isTableCell(E)||this.graph.isTableRow(E))M=G,this.graph.isTable(M)||(M=this.graph.model.getParent(M)),M=!this.graph.selectionCellsHandler.isHandled(M)||this.graph.isCellSelected(M)&&this.graph.isToggleEvent(T.getEvent())||this.graph.isCellSelected(E)&&!this.graph.isToggleEvent(T.getEvent())||this.graph.isTableCell(E)&&
this.graph.isCellSelected(G);return M};mxPopupMenuHandler.prototype.getCellForPopupEvent=function(E){E=E.getCell();for(var L=this.graph.getModel(),T=L.getParent(E),G=this.graph.view.getState(T),M=this.graph.isCellSelected(E);null!=G&&(L.isVertex(T)||L.isEdge(T));){var R=this.graph.isCellSelected(T);M=M||R;if(R||!M&&(this.graph.isTableCell(E)||this.graph.isTableRow(E)))E=T;T=L.getParent(T)}return E}})();EditorUi=function(b,e,g){mxEventSource.call(this);this.destroyFunctions=[];this.editor=b||new Editor;this.container=e||document.body;var p=this,y=this.editor.graph;y.lightbox=g;var q=y.getGraphBounds;y.getGraphBounds=function(){var P=q.apply(this,arguments),V=this.backgroundImage;if(null!=V&&null!=V.width&&null!=V.height){var l=this.view.translate,A=this.view.scale;P=mxRectangle.fromRectangle(P);P.add(new mxRectangle((l.x+V.x)*A,(l.y+V.y)*A,V.width*A,V.height*A))}return P};y.useCssTransforms&&(this.lazyZoomDelay= | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
Editor.extractGraphModelFromPng=function(b){var e=null;try{var g=b.substring(b.indexOf(",")+1),p=window.atob&&!mxClient.IS_SF?atob(g):Base64.decode(g,!0);EditorUi.parsePng(p,mxUtils.bind(this,function(y,q,E){y=p.substring(y+8,y+8+E);"zTXt"==q?(E=y.indexOf(String.fromCharCode(0)),"mxGraphModel"==y.substring(0,E)&&(y=pako.inflateRaw(Graph.stringToArrayBuffer(y.substring(E+2)),{to:"string"}).replace(/\+/g," "),null!=y&&0<y.length&&(e=y))):"tEXt"==q&&(y=y.split(String.fromCharCode(0)),1<y.length&&("mxGraphModel"==
y[0]||"mxfile"==y[0])&&(e=y[1]));if(null!=e||"IDAT"==q)return!0}))}catch(y){}null!=e&&"%"==e.charAt(0)&&(e=decodeURIComponent(e));null!=e&&"%"==e.charAt(0)&&(e=decodeURIComponent(e));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 |
"base",ma.prototype.base)));return new mxPoint(v.x+Math.min(v.width,t*v.width+B),v.y+v.height-n)},function(v,n){var t=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"position",ma.prototype.position)));this.state.style.base=Math.round(Math.max(0,Math.min(v.width,n.x-v.x-t*v.width)))},!1)];mxUtils.getValue(c.style,mxConstants.STYLE_ROUNDED,!1)&&m.push(pb(c));return m},internalStorage:function(c){var m=[hb(c,["dx","dy"],function(v){var n=Math.max(0,Math.min(v.width,mxUtils.getValue(this.state.style,
"dx",Da.prototype.dx))),t=Math.max(0,Math.min(v.height,mxUtils.getValue(this.state.style,"dy",Da.prototype.dy)));return new mxPoint(v.x+n,v.y+t)},function(v,n){this.state.style.dx=Math.round(Math.max(0,Math.min(v.width,n.x-v.x)));this.state.style.dy=Math.round(Math.max(0,Math.min(v.height,n.y-v.y)))},!1)];mxUtils.getValue(c.style,mxConstants.STYLE_ROUNDED,!1)&&m.push(pb(c));return m},module:function(c){return[hb(c,["jettyWidth","jettyHeight"],function(m){var v=Math.max(0,Math.min(m.width,mxUtils.getValue(this.state.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 |
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 |
function(S){try{f(S.target.result)}catch(da){K({message:mxResources.get("errorLoadingFile")})}});aa.readAsText(ma)}else this.doImportVisio(ma,f,K,u)}catch(S){K(S)}else try{""==ja.responseType||"text"==ja.responseType?K({message:ja.responseText}):(aa=new FileReader,aa.onload=function(){try{K({message:JSON.parse(aa.result).Message})}catch(S){K(S)}},aa.readAsText(ja.response))}catch(S){K({})}});ja.send(H)}else if(F.clear())try{this.doImportVisio(d,f,K,u)}catch(ma){K(ma)}}else K({message:mxResources.get("serviceUnavailableOrBlocked")})}); | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
urlParams.page=L.currentPage;G=null;this.graph.getModel().beginUpdate();try{urlParams.nav=0!=this.graphConfig.nav?"1":"0",this.editor.setGraphXml(this.xmlNode),this.graph.view.scale=this.graphConfig.zoom||1,G=this.setLayersVisible(),this.responsive||(this.graph.border=null!=this.graphConfig.border?this.graphConfig.border:8)}finally{this.graph.getModel().endUpdate()}this.responsive||(this.graph.panningHandler.isForcePanningEvent=function(k){return!mxEvent.isPopupTrigger(k.getEvent())&&"auto"==this.graph.container.style.overflow}, | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
arguments));this.originalClose.apply(this.canvas,arguments)};fa.prototype.quadTo=function(c,m,v,n){this.originalQuadTo.apply(this.canvas,arguments);this.lastX=v;this.lastY=n};fa.prototype.curveTo=function(c,m,v,n,t,B){this.originalCurveTo.apply(this.canvas,arguments);this.lastX=t;this.lastY=B};fa.prototype.arcTo=function(c,m,v,n,t,B,D){this.originalArcTo.apply(this.canvas,arguments);this.lastX=B;this.lastY=D};fa.prototype.lineTo=function(c,m){if(null!=this.lastX&&null!=this.lastY){var v=function(na){return"number"===
typeof na?na?0>na?-1:1:na===na?0:NaN:NaN},n=Math.abs(c-this.lastX),t=Math.abs(m-this.lastY),B=Math.sqrt(n*n+t*t);if(2>B){this.originalLineTo.apply(this.canvas,arguments);this.lastX=c;this.lastY=m;return}var D=Math.round(B/10),ha=this.defaultVariation;5>D&&(D=5,ha/=3);var I=v(c-this.lastX)*n/D;v=v(m-this.lastY)*t/D;n/=B;t/=B;for(B=0;B<D;B++){var va=(Math.random()-.5)*ha;this.originalLineTo.call(this.canvas,I*B+this.lastX-va*t,v*B+this.lastY-va*n)}this.originalLineTo.call(this.canvas,c,m)}else this.originalLineTo.apply(this.canvas, | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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))};mxCellRenderer.registerShape("umlLifeline",Z);mxUtils.extend(ba,mxShape);ba.prototype.width=60;ba.prototype.height=30;ba.prototype.corner=10;ba.prototype.configurePointerEvents=function(c){var m=mxUtils.getValue(this.style,mxConstants.STYLE_SWIMLANE_FILLCOLOR,mxConstants.NONE);null==this.style||null!=m&&m!=mxConstants.NONE&&0!=this.opacity&&0!=this.fillOpacity||"0"!=mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1")||(c.pointerEvents=!1)};ba.prototype.getLabelMargins=function(c){return new mxRectangle(0,
0,c.width-parseFloat(mxUtils.getValue(this.style,"width",this.width)*this.scale),c.height-parseFloat(mxUtils.getValue(this.style,"height",this.height)*this.scale))};ba.prototype.paintBackground=function(c,m,v,n,t){var B=this.corner,D=Math.min(n,Math.max(B,parseFloat(mxUtils.getValue(this.style,"width",this.width)))),ha=Math.min(t,Math.max(1.5*B,parseFloat(mxUtils.getValue(this.style,"height",this.height)))),I=mxUtils.getValue(this.style,mxConstants.STYLE_SWIMLANE_FILLCOLOR,mxConstants.NONE);I!=mxConstants.NONE&& | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
mxUtils.br(d);return{getColor:function(){return C},getTarget:function(){return u.value},focus:function(){u.focus()}}};EditorUi.prototype.createUrlParameters=function(d,f,k,u,z,C,F){F=null!=F?F:[];u&&("https://viewer.diagrams.net"==EditorUi.lightboxHost&&"1"!=urlParams.dev||F.push("lightbox=1"),"auto"!=d&&F.push("target="+d),null!=f&&f!=mxConstants.NONE&&F.push("highlight="+("#"==f.charAt(0)?f.substring(1):f)),null!=z&&0<z.length&&F.push("edit="+encodeURIComponent(z)),C&&F.push("layers=1"),this.editor.graph.foldingEnabled&& | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
ta);mxUtils.extend(Da,mxRectangleShape);Da.prototype.dx=20;Da.prototype.dy=20;Da.prototype.isHtmlAllowed=function(){return!1};Da.prototype.paintForeground=function(c,m,v,n,t){mxRectangleShape.prototype.paintForeground.apply(this,arguments);var B=0;if(this.isRounded){var D=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100;B=Math.max(B,Math.min(n*D,t*D))}D=Math.max(B,Math.min(n,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));B=Math.max(B,Math.min(t, | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
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 |
var F=y.cellEditor.isStopEditingEvent;y.cellEditor.isStopEditingEvent=function(P){return F.apply(this,arguments)||13==P.keyCode&&(!mxClient.IS_SF&&mxEvent.isControlDown(P)||mxClient.IS_MAC&&mxEvent.isMetaDown(P)||mxClient.IS_SF&&mxEvent.isShiftDown(P))};var K=y.isZoomWheelEvent;y.isZoomWheelEvent=function(){return p.isSpaceDown()||K.apply(this,arguments)};var O=!1,H=null,ka=null,fa=null,ca=mxUtils.bind(this,function(){if(null!=this.toolbar&&O!=y.cellEditor.isContentEditing()){for(var P=this.toolbar.container.firstChild, | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
function(Z){return this.outline||null==this.style||"0"==mxUtils.getValue(this.style,"sketch","0")?A.apply(this,arguments):"comic"==mxUtils.getValue(this.style,"sketchStyle","rough")?this.createComicCanvas(Z):this.createRoughCanvas(Z)};var N=mxImageShape.prototype.paintVertexShape;mxImageShape.prototype.paintVertexShape=function(Z,ba,ia,qa,ra){null!=Z.handJiggle&&Z.handJiggle.passThrough||N.apply(this,arguments)};var X=mxShape.prototype.paint;mxShape.prototype.paint=function(Z){var ba=Z.addTolerance, | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
steps:ja.view.gridSteps,color:ja.view.gridColor});Graph.translateDiagram&&(z.diagramLanguage=Graph.diagramLanguage);return{format:f,from:aa,to:S,allPages:da,bg:null!=C?C:mxConstants.NONE,base64:u,embedXml:H,xml:k,filename:null!=d?d:"",extras:JSON.stringify(z),scale:F,border:K,w:fa&&isFinite(fa)?fa:null,h:ca&&isFinite(ca)?ca:null}};EditorUi.prototype.setMode=function(d,f){this.mode=d};EditorUi.prototype.getDiagramId=function(){var d=window.location.hash;null!=d&&0<d.length&&(d=d.substring(1));if(null!= | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
(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=
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- | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
arguments));this.originalClose.apply(this.canvas,arguments)};fa.prototype.quadTo=function(c,m,v,n){this.originalQuadTo.apply(this.canvas,arguments);this.lastX=v;this.lastY=n};fa.prototype.curveTo=function(c,m,v,n,t,B){this.originalCurveTo.apply(this.canvas,arguments);this.lastX=t;this.lastY=B};fa.prototype.arcTo=function(c,m,v,n,t,B,D){this.originalArcTo.apply(this.canvas,arguments);this.lastX=B;this.lastY=D};fa.prototype.lineTo=function(c,m){if(null!=this.lastX&&null!=this.lastY){var v=function(na){return"number"=== | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
R.x+=e,g||(R.width-=e,null!=R.alternateBounds&&(R.alternateBounds.width-=e)),p.setGeometry(M,R)))}if(L||g){var W=this.getCellGeometry(q);null!=W&&(W=W.clone(),W.width+=e,p.setGeometry(q,W))}null!=this.layoutManager&&this.layoutManager.executeLayout(q)}finally{p.endUpdate()}};function TableLayout(b){mxGraphLayout.call(this,b)}TableLayout.prototype=new mxStackLayout;TableLayout.prototype.constructor=TableLayout;TableLayout.prototype.isHorizontal=function(){return!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 |
"auto"==za&&1==wa.length){O.view.validate();var db=new mxHierarchicalLayout(O,"horizontalflow"==za?mxConstants.DIRECTION_WEST:mxConstants.DIRECTION_NORTH);db.intraCellSpacing=ba;db.parallelEdgeSpacing=Z;db.interRankCellSpacing=ia;db.disableEdgeStyle=!1;this.executeLayout(function(){db.execute(O.getDefaultParent(),sa);O.moveCells(sa,xa,Ca)},!0,ra);ra=null}else if("orgchart"==za){O.view.validate();var lb=new mxOrgChartLayout(O,2,ia,ba),kb=lb.isVertexIgnored;lb.isVertexIgnored=function(jb){return kb.apply(this,
arguments)||0>mxUtils.indexOf(C,jb)};this.executeLayout(function(){lb.execute(O.getDefaultParent());Ra()},!0,ra);ra=null}else if("organic"==za||"auto"==za&&sa.length>C.length){O.view.validate();var Pa=new mxFastOrganicLayout(O);Pa.forceConstant=3*ba;Pa.disableEdgeStyle=!1;Pa.resetEdges=!1;var eb=Pa.isVertexIgnored;Pa.isVertexIgnored=function(jb){return eb.apply(this,arguments)||0>mxUtils.indexOf(C,jb)};this.executeLayout(function(){Pa.execute(O.getDefaultParent());Ra()},!0,ra);ra=null}}this.hideDialog()}finally{O.model.endUpdate()}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 |
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 |
Uint8Array.from||(Uint8Array.from=function(){var b=Object.prototype.toString,e=function(p){return"function"===typeof p||"[object Function]"===b.call(p)},g=Math.pow(2,53)-1;return function(p){var y=Object(p);if(null==p)throw new TypeError("Array.from requires an array-like object - not null or undefined");var q=1<arguments.length?arguments[1]:void 0,E;if("undefined"!==typeof q){if(!e(q))throw new TypeError("Array.from: when provided, the second argument must be a function");2<arguments.length&&(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.htmlEntities(mxResources.get("error")+(ma&&ma.message?": "+ma.message:""));this.hasError=!0})):C.innerHTML=mxUtils.htmlEntities(mxResources.get("error"))});fa();this.refreshComments=fa;K=mxUtils.bind(this,function(){function ca(da){var P=ma[da.id];if(null!=P)for(T(da,P),P=0;null!=da.replies&&P<da.replies.length;P++)ca(da.replies[P])}if(this.window.isVisible()){for(var ja=C.querySelectorAll(".geCommentDate"),ma={},aa=0;aa<ja.length;aa++){var S=ja[aa];ma[S.getAttribute("data-commentId")]=S}for(aa= | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
R.x+=e,g||(R.width-=e,null!=R.alternateBounds&&(R.alternateBounds.width-=e)),p.setGeometry(M,R)))}if(L||g){var W=this.getCellGeometry(q);null!=W&&(W=W.clone(),W.width+=e,p.setGeometry(q,W))}null!=this.layoutManager&&this.layoutManager.executeLayout(q)}finally{p.endUpdate()}};function TableLayout(b){mxGraphLayout.call(this,b)}TableLayout.prototype=new mxStackLayout;TableLayout.prototype.constructor=TableLayout;TableLayout.prototype.isHorizontal=function(){return!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 |
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 |
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 |
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(l,A,N){return Editor.extractGraphModel.apply(this,arguments)};var g=Editor.prototype.resetGraph;Editor.prototype.resetGraph=function(){this.graph.mathEnabled="1"==urlParams.math;this.graph.view.x0=null;this.graph.view.y0=null;this.graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&this.graph.isCssTransformsSupported();this.graph.updateCssTransform();g.apply(this,arguments)};var p=Editor.prototype.updateGraphComponents;Editor.prototype.updateGraphComponents=function(){p.apply(this,
arguments);this.graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&this.graph.isCssTransformsSupported();this.graph.updateCssTransform()};Editor.initMath=function(l,A){if("undefined"===typeof window.MathJax&&!mxClient.IS_IE&&!mxClient.IS_IE11){var N=function(){X=null;if(0<Editor.mathJaxQueue.length)Editor.doMathJaxRender(Editor.mathJaxQueue.shift());else Editor.onMathJaxDone()};l=null!=l?l:DRAW_MATH_URL+"/startup.js";Editor.mathJaxQueue=[];var X=null;Editor.doMathJaxRender=function(ba){try{null== | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
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/
2/this.view.scale-this.view.translate.x-x.width/2)),this.snap(Math.round(this.container.clientHeight/2/this.view.scale-this.view.translate.y-x.height/2)))};Graph.prototype.isMouseInsertPoint=function(){return!1};Graph.prototype.addText=function(x,J,Q){var Y=new mxCell;Y.value="Text";Y.geometry=new mxGeometry(0,0,0,0);Y.vertex=!0;if(null!=Q&&this.model.isEdge(Q.cell)){Y.style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];";Y.geometry.relative=!0;Y.connectable=!1;var ea= | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
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 |
GraphViewer.createViewerForElement=function(b,e){var g=b.getAttribute("data-mxgraph");if(null!=g){var p=JSON.parse(g),y=function(q){q=mxUtils.parseXml(q);q=new GraphViewer(b,q.documentElement,p);null!=e&&e(q)};null!=p.url?GraphViewer.getUrl(p.url,function(q){y(q)}):y(p.xml)}}; | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
return z};EditorUi.prototype.getHashValueForPages=function(d,f){var k=0,u=new mxGraphModel,z=new mxCodec;null!=f&&(f.byteCount=0,f.attrCount=0,f.eltCount=0,f.nodeCount=0);for(var C=0;C<d.length;C++){this.updatePageRoot(d[C]);var F=d[C].node.cloneNode(!1);F.removeAttribute("name");u.root=d[C].root;var K=z.encode(u);this.editor.graph.saveViewState(d[C].viewState,K,!0);K.removeAttribute("pageWidth");K.removeAttribute("pageHeight");F.appendChild(K);null!=f&&(f.eltCount+=F.getElementsByTagName("*").length,
f.nodeCount+=F.getElementsByTagName("mxCell").length);k=(k<<5)-k+this.hashValue(F,function(O,H,ka,fa){return!fa||"mxGeometry"!=O.nodeName&&"mxPoint"!=O.nodeName||"x"!=H&&"y"!=H&&"width"!=H&&"height"!=H?fa&&"mxCell"==O.nodeName&&"previous"==H?null:ka:Math.round(ka)},f)<<0}return k};EditorUi.prototype.hashValue=function(d,f,k){var u=0;if(null!=d&&"object"===typeof d&&"number"===typeof d.nodeType&&"string"===typeof d.nodeName&&"function"===typeof d.getAttribute){null!=d.nodeName&&(u^=this.hashValue(d.nodeName, | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
mxResources.get("mermaid")+"...","mermaid");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])+ | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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=
this.rc.generator.ellipse(Z+ia/2,ba+qa/2,ia,qa,this.getStyle(!0,!0)))};l.prototype.roundrect=function(Z,ba,ia,qa,ra,pa){this.passThrough?this.originalRoundrect.apply(this.canvas,arguments):(this.begin(),this.moveTo(Z+ra,ba),this.lineTo(Z+ia-ra,ba),this.quadTo(Z+ia,ba,Z+ia,ba+pa),this.lineTo(Z+ia,ba+qa-pa),this.quadTo(Z+ia,ba+qa,Z+ia-ra,ba+qa),this.lineTo(Z+ra,ba+qa),this.quadTo(Z,ba+qa,Z,ba+qa-pa),this.lineTo(Z,ba+pa),this.quadTo(Z,ba,Z+ra,ba))};l.prototype.drawPath=function(Z){if(0<this.path.length){this.passThrough= | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
"data:page/id,"+k:null==this.getPageById(F)&&delete C.open}}f="data:action/json,"+JSON.stringify(u)}}catch(K){}return f};EditorUi.prototype.isRemoteVisioFormat=function(d){return/(\.v(sd|dx))($|\?)/i.test(d)||/(\.vs(s|x))($|\?)/i.test(d)};EditorUi.prototype.importVisio=function(d,f,k,u,z){var C=mxUtils.bind(this,function(F){this.loadingExtensions=!1;null!=k?k(F):this.handleError(F)});this.createTimeout(null,mxUtils.bind(this,function(F){u=null!=u?u:d.name;var K=mxUtils.bind(this,function(H){F.clear()&& | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
new mxRectangle(0,0,0,Math.max(0,Math.min(c.height,parseFloat(mxUtils.getValue(m.style,"size",ma.prototype.size))*m.view.scale))),m.style),m,v,n)};mxStyleRegistry.putValue("calloutPerimeter",mxPerimeter.CalloutPerimeter);mxPerimeter.ParallelogramPerimeter=function(c,m,v,n){var t="0"!=mxUtils.getValue(m.style,"fixedSize","0"),B=t?K.prototype.fixedSize:K.prototype.size;null!=m&&(B=mxUtils.getValue(m.style,"size",B));t&&(B*=m.view.scale);var D=c.x,ha=c.y,I=c.width,va=c.height;m=null!=m?mxUtils.getValue(m.style,
mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;m==mxConstants.DIRECTION_NORTH||m==mxConstants.DIRECTION_SOUTH?(t=t?Math.max(0,Math.min(va,B)):va*Math.max(0,Math.min(1,B)),ha=[new mxPoint(D,ha),new mxPoint(D+I,ha+t),new mxPoint(D+I,ha+va),new mxPoint(D,ha+va-t),new mxPoint(D,ha)]):(t=t?Math.max(0,Math.min(.5*I,B)):I*Math.max(0,Math.min(1,B)),ha=[new mxPoint(D+t,ha),new mxPoint(D+I,ha),new mxPoint(D+I-t,ha+va),new mxPoint(D,ha+va),new mxPoint(D+t,ha)]);va=c.getCenterX();
c=c.getCenterY();c=new mxPoint(va,c);n&&(v.x<D||v.x>D+I?c.y=v.y:c.x=v.x);return mxUtils.getPerimeterPoint(ha,c,v)};mxStyleRegistry.putValue("parallelogramPerimeter",mxPerimeter.ParallelogramPerimeter);mxPerimeter.TrapezoidPerimeter=function(c,m,v,n){var t="0"!=mxUtils.getValue(m.style,"fixedSize","0"),B=t?O.prototype.fixedSize:O.prototype.size;null!=m&&(B=mxUtils.getValue(m.style,"size",B));t&&(B*=m.view.scale);var D=c.x,ha=c.y,I=c.width,va=c.height;m=null!=m?mxUtils.getValue(m.style,mxConstants.STYLE_DIRECTION, | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
EditorUi.prototype.showBackgroundImageDialog=function(b,e){b=null!=b?b:mxUtils.bind(this,function(p){p=new ChangePageSetup(this,null,p);p.ignoreColor=!0;this.editor.graph.model.execute(p)});var g=mxUtils.prompt(mxResources.get("backgroundImage"),null!=e?e.src:"");null!=g&&0<g.length?(e=new Image,e.onload=function(){b(new mxImage(g,e.width,e.height),!1)},e.onerror=function(){b(null,!0);mxUtils.alert(mxResources.get("fileNotFound"))},e.src=g):b(null)}; | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
function R(aa,S,da){aa=f.getOutgoingTreeEdges(aa);da=f.view.getState(da);var P=[];if(null!=da&&null!=aa){for(var V=0;V<aa.length;V++){var l=f.view.getState(f.model.getTerminal(aa[V],!1));null!=l&&(!S&&Math.min(l.x+l.width,da.x+da.width)>=Math.max(l.x,da.x)||S&&Math.min(l.y+l.height,da.y+da.height)>=Math.max(l.y,da.y))&&P.push(l)}P.sort(function(A,N){return S?A.x+A.width-N.x-N.width:A.y+A.height-N.y-N.height})}return P}function W(aa,S){var da=L(aa),P=S==mxConstants.DIRECTION_EAST||S==mxConstants.DIRECTION_WEST;
(da==mxConstants.DIRECTION_EAST||da==mxConstants.DIRECTION_WEST)==P&&da!=S?d.actions.get("selectParent").funct():da==S?(S=f.getOutgoingTreeEdges(aa),null!=S&&0<S.length&&f.setSelectionCell(f.model.getTerminal(S[0],!1))):(da=f.getIncomingTreeEdges(aa),null!=da&&0<da.length&&(P=R(f.model.getTerminal(da[0],!0),P,aa),aa=f.view.getState(aa),null!=aa&&(aa=mxUtils.indexOf(P,aa),0<=aa&&(aa+=S==mxConstants.DIRECTION_NORTH||S==mxConstants.DIRECTION_WEST?-1:1,0<=aa&&aa<=P.length-1&&f.setSelectionCell(P[aa].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 |
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 |
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,
"labelInHeader",!1)){var v=mxUtils.getValue(this.style,"tabWidth",15)*this.scale;m=mxUtils.getValue(this.style,"tabHeight",15)*this.scale;var n=mxUtils.getValue(this.style,"rounded",!1),t=mxUtils.getValue(this.style,"absoluteArcSize",!1),B=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));t||(B*=Math.min(c.width,c.height));B=Math.min(B,.5*c.width,.5*(c.height-m));n||(B=0);return"left"==mxUtils.getValue(this.style,"tabPosition",this.tabPosition)?new mxRectangle(B,0,Math.min(c.width,c.width-
v),Math.min(c.height,c.height-m)):new mxRectangle(Math.min(c.width,c.width-v),0,B,Math.min(c.height,c.height-m))}return new mxRectangle(0,Math.min(c.height,m),0,0)}return null};mxUtils.extend(u,mxCylinder);u.prototype.arcSize=.1;u.prototype.paintVertexShape=function(c,m,v,n,t){c.translate(m,v);var B=mxUtils.getValue(this.style,"rounded",!1),D=mxUtils.getValue(this.style,"absoluteArcSize",!1);m=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));v=mxUtils.getValue(this.style,"umlStateConnection", | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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 |
Editor.prototype.addMathCss=function(l){l=l.getElementsByTagName("defs");if(null!=l&&0<l.length)for(var A=document.getElementsByTagName("style"),N=0;N<A.length;N++){var X=mxUtils.getTextContent(A[N]);0>X.indexOf("mxPageSelector")&&0<X.indexOf("MathJax")&&l[0].appendChild(A[N].cloneNode(!0))}};Editor.prototype.addFontCss=function(l,A){A=null!=A?A:this.absoluteCssFonts(this.fontCss);if(null!=A){var N=l.getElementsByTagName("defs"),X=l.ownerDocument;0==N.length?(N=null!=X.createElementNS?X.createElementNS(mxConstants.NS_SVG,
"defs"):X.createElement("defs"),null!=l.firstChild?l.insertBefore(N,l.firstChild):l.appendChild(N)):N=N[0];l=null!=X.createElementNS?X.createElementNS(mxConstants.NS_SVG,"style"):X.createElement("style");l.setAttribute("type","text/css");mxUtils.setTextContent(l,A);N.appendChild(l)}};Editor.prototype.isExportToCanvas=function(){return mxClient.IS_CHROMEAPP||this.useCanvasForExport};Editor.prototype.getMaxCanvasScale=function(l,A,N){var X=mxClient.IS_FF?8192:16384;return Math.min(N,Math.min(X/l,X/ | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
"gray";C.statusContainer.style.cursor="default";var ka=C.hideCurrentMenu;C.hideCurrentMenu=function(){ka.apply(this,arguments);this.editor.graph.popupMenuHandler.hideMenu()};var fa=C.descriptorChanged;C.descriptorChanged=function(){fa.apply(this,arguments);var ia=C.getCurrentFile();if(null!=ia&&null!=ia.getTitle()){var qa=ia.getMode();"google"==qa?qa="googleDrive":"github"==qa?qa="gitHub":"gitlab"==qa?qa="gitLab":"onedrive"==qa&&(qa="oneDrive");qa=mxResources.get(qa);K.setAttribute("title",ia.getTitle()+ | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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.addSplitHandler=function(b,e,g,p){function y(R){if(null!=E){var W=new mxPoint(mxEvent.getClientX(R),mxEvent.getClientY(R));p(Math.max(0,L+(e?W.x-E.x:E.y-W.y)-g));mxEvent.consume(R);L!=M()&&(T=!0,G=null)}}function q(R){y(R);E=L=null}var E=null,L=null,T=!0,G=null;mxClient.IS_POINTER&&(b.style.touchAction="none");var M=mxUtils.bind(this,function(){var R=parseInt(e?b.style.left:b.style.bottom);e||(R=R+g-this.footerHeight);return R});mxEvent.addGestureListeners(b,function(R){E=new mxPoint(mxEvent.getClientX(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 |
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 |
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 |
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 |
mxImageShape.prototype.getImageDataUri=function(){var b=this.image;if("data:image/svg+xml;base64,"==b.substring(0,26)&&null!=this.style&&"1"==mxUtils.getValue(this.style,"clipSvg","0")){if(null==this.clippedSvg||this.clippedImage!=b)this.clippedSvg=Graph.clipSvgDataUri(b,!0),this.clippedImage=b;b=this.clippedSvg}return b};(function(){var b=mxResources.get;mxResources.get=function(e,g,p){null==p&&(p=e);return b.apply(this,[e,g,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 |
arguments));this.originalClose.apply(this.canvas,arguments)};fa.prototype.quadTo=function(c,m,v,n){this.originalQuadTo.apply(this.canvas,arguments);this.lastX=v;this.lastY=n};fa.prototype.curveTo=function(c,m,v,n,t,B){this.originalCurveTo.apply(this.canvas,arguments);this.lastX=t;this.lastY=B};fa.prototype.arcTo=function(c,m,v,n,t,B,D){this.originalArcTo.apply(this.canvas,arguments);this.lastX=B;this.lastY=D};fa.prototype.lineTo=function(c,m){if(null!=this.lastX&&null!=this.lastY){var v=function(na){return"number"===
typeof na?na?0>na?-1:1:na===na?0:NaN:NaN},n=Math.abs(c-this.lastX),t=Math.abs(m-this.lastY),B=Math.sqrt(n*n+t*t);if(2>B){this.originalLineTo.apply(this.canvas,arguments);this.lastX=c;this.lastY=m;return}var D=Math.round(B/10),ha=this.defaultVariation;5>D&&(D=5,ha/=3);var I=v(c-this.lastX)*n/D;v=v(m-this.lastY)*t/D;n/=B;t/=B;for(B=0;B<D;B++){var va=(Math.random()-.5)*ha;this.originalLineTo.call(this.canvas,I*B+this.lastX-va*t,v*B+this.lastY-va*n)}this.originalLineTo.call(this.canvas,c,m)}else this.originalLineTo.apply(this.canvas,
arguments);this.lastX=c;this.lastY=m};fa.prototype.destroy=function(){this.canvas.lineTo=this.originalLineTo;this.canvas.moveTo=this.originalMoveTo;this.canvas.close=this.originalClose;this.canvas.quadTo=this.originalQuadTo;this.canvas.curveTo=this.originalCurveTo;this.canvas.arcTo=this.originalArcTo};var kb=mxShape.prototype.beforePaint;mxShape.prototype.beforePaint=function(c){kb.apply(this,arguments);null==c.handJiggle&&(c.handJiggle=this.createHandJiggle(c))};var Pa=mxShape.prototype.afterPaint; | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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 |
A.parentNode.insertBefore(N,A);l=l.split("url(");for(N=1;N<l.length;N++){var X=l[N].indexOf(")");X=Editor.trimCssUrl(l[N].substring(0,X));var U=document.createElement("link");U.setAttribute("rel","preload");U.setAttribute("href",X);U.setAttribute("as","font");U.setAttribute("crossorigin","");A.parentNode.insertBefore(U,A)}}}};Editor.trimCssUrl=function(l){return l.replace(RegExp("^[\\s\"']+","g"),"").replace(RegExp("[\\s\"']+$","g"),"")};Editor.GOOGLE_FONTS="https://fonts.googleapis.com/css?family="; | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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(var ea=0;ea<x.length;ea++){var la=this.model.getParent(x[ea]);if(this.model.isEdge(la)&&0>mxUtils.indexOf(x,la))return null}la=k.apply(this,arguments);var oa=!0;for(ea=0;ea<x.length&&oa;ea++)oa=oa&&this.isTableRow(x[ea]);oa&&(this.isTableCell(la)&&(la=this.model.getParent(la)),this.isTableRow(la)&&(la=this.model.getParent(la)),this.isTable(la)||(la=null));return la};Graph.prototype.click=function(x){mxGraph.prototype.click.call(this,x);this.firstClickState=x.getState();this.firstClickSource=x.getSource()}; | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
mxEvent.consume(aa)))}}catch(P){d.handleError(P)}mxEvent.isConsumed(aa)||H.apply(this,arguments)};var ka=f.connectVertex;f.connectVertex=function(aa,S,da,P,V,l,A){var N=f.getIncomingTreeEdges(aa);if(p(aa)){var X=L(aa),U=X==mxConstants.DIRECTION_EAST||X==mxConstants.DIRECTION_WEST,Z=S==mxConstants.DIRECTION_EAST||S==mxConstants.DIRECTION_WEST;return X==S||0==N.length?M(aa,S):U==Z?G(aa):T(aa,S!=mxConstants.DIRECTION_NORTH&&S!=mxConstants.DIRECTION_WEST)}return ka.apply(this,arguments)};f.getSubtree= | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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)):X=PROXY_URL+"?url="+encodeURIComponent(X)}return X};return l};Editor.createSvgDataUri=function(l){return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(l)))};Editor.prototype.convertImageToDataUri=function(l,A){try{var N=!0,X=window.setTimeout(mxUtils.bind(this,function(){N=!1;A(Editor.svgBrokenImage.src)}),this.timeout);if(/(\.svg)$/i.test(l))mxUtils.get(l,mxUtils.bind(this,function(Z){window.clearTimeout(X);N&&A(Editor.createSvgDataUri(Z.getText()))}),function(){window.clearTimeout(X);
N&&A(Editor.svgBrokenImage.src)});else{var U=new Image;this.crossOriginImages&&(U.crossOrigin="anonymous");U.onload=function(){window.clearTimeout(X);if(N)try{var Z=document.createElement("canvas"),ba=Z.getContext("2d");Z.height=U.height;Z.width=U.width;ba.drawImage(U,0,0);A(Z.toDataURL())}catch(ia){A(Editor.svgBrokenImage.src)}};U.onerror=function(){window.clearTimeout(X);N&&A(Editor.svgBrokenImage.src)};U.src=l}}catch(Z){A(Editor.svgBrokenImage.src)}};Editor.prototype.convertImages=function(l,A, | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
mxUtils.bind(this,function(){this.isEnabled()&&(this.container.style.cursor=O)}));this.popupMenuHandler.autoExpand=!0;this.popupMenuHandler.isSelectOnPopup=function(S){return mxEvent.isMouseEvent(S.getEvent())};var H=this.click;this.click=function(S){var da=null==S.state&&null!=S.sourceState&&this.isCellLocked(this.getLayerForCell(S.sourceState.cell));if(this.isEnabled()&&!da||S.isConsumed())return H.apply(this,arguments);da=da?S.sourceState.cell:S.getCell();null!=da&&(da=this.getClickableLinkForCell(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 |
mxEdgeHandler.prototype.createConstraintHandler=function(){var x=Ba.apply(this,arguments);x.isEnabled=mxUtils.bind(this,function(){return this.state.view.graph.connectionHandler.isEnabled()});return x};var ya=mxEdgeHandler.prototype.init;mxEdgeHandler.prototype.init=function(){ya.apply(this,arguments);var x=mxUtils.bind(this,function(){null!=this.linkHint&&(this.linkHint.style.display=1==this.graph.getSelectionCount()?"":"none");null!=this.labelShape&&(this.labelShape.node.style.display=this.graph.isEnabled()&&
this.graph.getSelectionCount()<this.graph.graphHandler.maxCells?"":"none")});this.changeHandler=mxUtils.bind(this,function(Y,ea){this.updateLinkHint(this.graph.getLinkForCell(this.state.cell),this.graph.getLinksForState(this.state));x();this.redrawHandles()});this.graph.getSelectionModel().addListener(mxEvent.CHANGE,this.changeHandler);this.graph.getModel().addListener(mxEvent.CHANGE,this.changeHandler);var J=this.graph.getLinkForCell(this.state.cell),Q=this.graph.getLinksForState(this.state);if(null!=
J||null!=Q&&0<Q.length)this.updateLinkHint(J,Q),this.redrawHandles()};var Va=mxConnectionHandler.prototype.init;mxConnectionHandler.prototype.init=function(){Va.apply(this,arguments);this.constraintHandler.isEnabled=mxUtils.bind(this,function(){return this.graph.connectionHandler.isEnabled()})};var Wa=mxVertexHandler.prototype.redrawHandles;mxVertexHandler.prototype.redrawHandles=function(){if(null!=this.moveHandles)for(var x=0;x<this.moveHandles.length;x++)null!=this.moveHandles[x]&&(this.moveHandles[x].bounds.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 |
A){null!=l&&(l=null!=l.error?l.error:l,null==l.retry&&(l.retry=A))};Editor.mermaidToDrawio=function(l,A,N){if("function"===typeof mxMermaidToDrawio)return mxMermaidToDrawio(l,A,N)};Editor.configure=function(l){if(null!=l){Editor.config=l;Editor.configVersion=l.version;l.debug&&(urlParams.test="1");null!=l.defaultFonts&&(Menus.prototype.defaultFonts=l.defaultFonts);null!=l.presetColors&&(ColorDialog.prototype.presetColors=l.presetColors);null!=l.defaultColors&&(ColorDialog.prototype.defaultColors= | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
la||ea))};Graph.prototype.createGroupCell=function(){var x=mxGraph.prototype.createGroupCell.apply(this,arguments);x.setStyle("group");return x};Graph.prototype.isExtendParentsOnAdd=function(x){var J=mxGraph.prototype.isExtendParentsOnAdd.apply(this,arguments);if(J&&null!=x&&null!=this.layoutManager){var Q=this.model.getParent(x);null!=Q&&(Q=this.layoutManager.getLayout(Q),null!=Q&&Q.constructor==mxStackLayout&&(J=!1))}return J};Graph.prototype.getPreferredSizeForCell=function(x){var J=mxGraph.prototype.getPreferredSizeForCell.apply(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 |
d.nodeName)k=d;else if("mxfile"==d.nodeName){var u=d.getElementsByTagName("diagram");if(0<u.length){k=u[0];var z=f.getGlobalVariable;f.getGlobalVariable=function(C){return"page"==C?k.getAttribute("name")||mxResources.get("pageWithNumber",[1]):"pagenumber"==C?1:z.apply(this,arguments)}}}null!=k&&(d=Editor.parseDiagramNode(k))}u=this.editor.graph;try{this.editor.graph=f,this.editor.setGraphXml(d)}catch(C){}finally{this.editor.graph=u}return d};EditorUi.prototype.getSvgFileProperties=function(d){return this.getPngFileProperties(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 |
D&&"fold"==B)&&c.lineTo(I,t-ha-I):c.lineTo(0,t-I)};Na.prototype.moveSEInner=function(c,m,v,n,t,B,D,ha,I,va){va?"square"==D||"default"==D&&"square"==B?c.moveTo(n-I,t-I):"rounded"==D||"default"==D&&"rounded"==B||"snip"==D||"default"==D&&"snip"==B?c.moveTo(n-I,t-ha-.5*I):("invRound"==D||"default"==D&&"invRound"==B||"fold"==D||"default"==D&&"fold"==B)&&c.moveTo(n-I,t-ha-I):c.moveTo(n-I,t)};Na.prototype.lineSEInner=function(c,m,v,n,t,B,D,ha,I,va){va?"square"==D||"default"==D&&"square"==B?c.lineTo(n-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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.