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 |
---|---|---|---|---|---|---|---|
d);null!=k&&B.setAttribute("resource",k);var ja=mxUtils.bind(this,function(ma){ma=(u?"":Graph.xmlDeclaration+"\n"+Graph.svgFileComment+"\n"+Graph.svgDoctype+"\n")+mxUtils.getXml(ma);null!=z&&z(ma);return ma});f.mathEnabled&&this.editor.addMathCss(B);if(null!=z)this.embedFonts(B,mxUtils.bind(this,function(ma){K?this.editor.convertImages(ma,mxUtils.bind(this,function(Z){ja(Z)})):ja(ma)}));else return ja(B)};EditorUi.prototype.embedFonts=function(d,f){this.editor.loadFonts(mxUtils.bind(this,function(){try{null!=
this.editor.resolvedFontCss&&this.editor.addFontCss(d,this.editor.resolvedFontCss),this.editor.embedExtFonts(mxUtils.bind(this,function(k){try{null!=k&&this.editor.addFontCss(d,k),f(d)}catch(u){f(d)}}))}catch(k){f(d)}}))};EditorUi.prototype.exportImage=function(d,f,k,u,z,B,F,K,N,H,ka,ea,ca){N=null!=N?N:"png";if(this.spinner.spin(document.body,mxResources.get("exporting"))){var ja=this.editor.graph.isSelectionEmpty();k=null!=k?k:ja;null==this.thumbImageCache&&(this.thumbImageCache={});try{this.editor.exportToCanvas(mxUtils.bind(this,
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
!navigator.onLine||!d&&("1"==urlParams.stealth||"1"==urlParams.lockdown)};EditorUi.prototype.isExternalDataComms=function(){return"1"!=urlParams.offline&&!this.isOffline()&&!this.isOfflineApp()};EditorUi.prototype.createSpinner=function(d,f,k){var u=null==d||null==f;k=null!=k?k:24;var z=new Spinner({lines:12,length:k,width:Math.round(k/3),radius:Math.round(k/2),rotate:0,color:Editor.isDarkMode()?"#c0c0c0":"#000",speed:1.5,trail:60,shadow:!1,hwaccel:!1,zIndex:2E9}),B=z.spin;z.spin=function(K,N){var H=
!1;this.active||(B.call(this,K),this.active=!0,null!=N&&(u&&(f=Math.max(document.body.clientHeight||0,document.documentElement.clientHeight||0)/2,d=document.body.clientWidth/2-2),H=document.createElement("div"),H.style.position="absolute",H.style.whiteSpace="nowrap",H.style.background="#4B4243",H.style.color="white",H.style.fontFamily=Editor.defaultHtmlFont,H.style.fontSize="9pt",H.style.padding="6px",H.style.paddingLeft="10px",H.style.paddingRight="10px",H.style.zIndex=2E9,H.style.left=Math.max(0,
d)+"px",H.style.top=Math.max(0,f+70)+"px",mxUtils.setPrefixedStyle(H.style,"borderRadius","6px"),mxUtils.setPrefixedStyle(H.style,"transform","translate(-50%,-50%)"),Editor.isDarkMode()||mxUtils.setPrefixedStyle(H.style,"boxShadow","2px 2px 3px 0px #ddd"),"..."!=N.substring(N.length-3,N.length)&&"!"!=N.charAt(N.length-1)&&(N+="..."),H.innerHTML=N,K.appendChild(H),z.status=H),this.pause=mxUtils.bind(this,function(){var ka=function(){};this.active&&(ka=mxUtils.bind(this,function(){this.spin(K,N)}));
this.stop();return ka}),H=!0);return H};var F=z.stop;z.stop=function(){F.call(this);this.active=!1;null!=z.status&&null!=z.status.parentNode&&z.status.parentNode.removeChild(z.status);z.status=null};z.pause=function(){return function(){}};return z};EditorUi.prototype.isCompatibleString=function(d){try{var f=mxUtils.parseXml(d),k=this.editor.extractGraphModel(f.documentElement,!0);return null!=k&&0==k.getElementsByTagName("parsererror").length}catch(u){}return!1};EditorUi.prototype.isVisioData=function(d){return 8<
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
!1;mxRubberband.prototype.cancel=function(){this.isActive()&&(this.cancelled=!0,this.reset())};mxRubberband.prototype.mouseUp=function(x,J){if(this.cancelled)this.cancelled=!1,J.consume();else{var Q=null!=this.div&&"none"!=this.div.style.display,Y=null,fa=null,la=x=null;null!=this.first&&null!=this.currentX&&null!=this.currentY&&(Y=this.first.x,fa=this.first.y,x=(this.currentX-Y)/this.graph.view.scale,la=(this.currentY-fa)/this.graph.view.scale,mxEvent.isAltDown(J.getEvent())||(x=this.graph.snap(x),
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
mxUtils.bind(this,ea.prototype.curveTo);this.originalArcTo=this.canvas.arcTo;this.canvas.arcTo=mxUtils.bind(this,ea.prototype.arcTo)}function ca(){mxRectangleShape.call(this)}function ja(){mxRectangleShape.call(this)}function ma(){mxActor.call(this)}function Z(){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 O(){mxEllipse.call(this)}
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
0),!1,null,0,v-p));return c};La.prototype.getConstraints=function(c,m,v){c=[];var p=v*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth",Wa.prototype.arrowWidth)))),t=m*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowSize",Wa.prototype.arrowSize))));p=(v-p)/2;c.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t,0));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*m,p));c.push(new mxConnectionConstraint(new mxPoint(0,
0),!1,null,m-t,0));c.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,m-t,v));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*m,v-p));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t,v));return c};Ua.prototype.getConstraints=function(c,m,v){c=[];var p=Math.min(v,m),t=Math.max(0,Math.min(p,p*parseFloat(mxUtils.getValue(this.style,"size",this.size))));p=(v-t)/2;var C=p+t,D=(m-t)/2;t=D+t;c.push(new mxConnectionConstraint(new mxPoint(0,
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
0);c.quadTo(p-2*m,t/2,p,t);c.lineTo(m,t);c.quadTo(m-2*m,t/2,m,0);c.close();c.end()};mxCellRenderer.registerShape("dataStorage",$a);mxUtils.extend(Ea,mxActor);Ea.prototype.redrawPath=function(c,m,v,p,t){c.moveTo(0,0);c.quadTo(p,0,p,t/2);c.quadTo(p,t,0,t);c.close();c.end()};mxCellRenderer.registerShape("or",Ea);mxUtils.extend(Ka,mxActor);Ka.prototype.redrawPath=function(c,m,v,p,t){c.moveTo(0,0);c.quadTo(p,0,p,t/2);c.quadTo(p,t,0,t);c.quadTo(p/2,t/2,0,0);c.close();c.end()};mxCellRenderer.registerShape("xor",
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
Graph.rewritePageLinks=function(b){function e(n,y){var q=n.getAttribute(y);null!=q&&Graph.isPageLink(q)&&n.setAttribute(y,"#"+q.substring(q.indexOf(":")+1))}b=b.getElementsByTagName("a");for(var g=0;g<b.length;g++)e(b[g],"href"),e(b[g],"xlink:href")};Graph.isLink=function(b){return null!=b&&Graph.linkPattern.test(b)};
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
function Y(){mxEllipse.call(this)}function fa(){mxEllipse.call(this)}function la(){mxRhombus.call(this)}function oa(){mxEllipse.call(this)}function wa(){mxEllipse.call(this)}function sa(){mxEllipse.call(this)}function ua(){mxEllipse.call(this)}function Fa(){mxActor.call(this)}function Ua(){mxActor.call(this)}function Ra(){mxActor.call(this)}function Na(c,m,v,p){mxShape.call(this);this.bounds=c;this.fill=m;this.stroke=v;this.strokewidth=null!=p?p:1;this.rectStyle="square";this.size=10;this.absoluteCornerSize=
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
Graph.fadeNodes=function(b,e,g,n,y){y=null!=y?y:1E3;Graph.setTransitionForNodes(b,null);Graph.setOpacityForNodes(b,e);window.setTimeout(function(){Graph.setTransitionForNodes(b,"all "+y+"ms ease-in-out");Graph.setOpacityForNodes(b,g);window.setTimeout(function(){Graph.setTransitionForNodes(b,null);null!=n&&n()},y)},0)};Graph.removeKeys=function(b,e){for(var g in b)e(g)&&delete b[g]};
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
var z=f.removeCells;f.removeCells=function(Z,S){S=null!=S?S:!0;null==Z&&(Z=this.getDeletableCells(this.getSelectionCells()));S&&(Z=this.getDeletableCells(this.addAllEdges(Z)));for(var da=[],P=0;P<Z.length;P++){var V=Z[P];k.isEdge(V)&&q(V)&&(da.push(V),V=k.getTerminal(V,!1));if(n(V)){var l=[];f.traverse(V,!0,function(A,O){var X=null!=O&&f.isTreeEdge(O);X&&l.push(O);(null==O||X)&&l.push(A);return null==O||X});0<l.length&&(da=da.concat(l),V=f.getIncomingTreeEdges(Z[P]),Z=Z.concat(V))}else null!=V&&da.push(Z[P])}Z=
da;return z.apply(this,arguments)};d.hoverIcons.getStateAt=function(Z,S,da){return n(Z.cell)?null:this.graph.view.getState(this.graph.getCellAt(S,da))};var B=f.duplicateCells;f.duplicateCells=function(Z,S){Z=null!=Z?Z:this.getSelectionCells();for(var da=Z.slice(0),P=0;P<da.length;P++){var V=f.view.getState(da[P]);if(null!=V&&n(V.cell)){var l=f.getIncomingTreeEdges(V.cell);for(V=0;V<l.length;V++)mxUtils.remove(l[V],Z)}}this.model.beginUpdate();try{var A=B.call(this,Z,S);if(A.length==Z.length)for(P=
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
0>mxUtils.indexOf(EditorUi.mermaidDiagramTypes,u)&&(f="classDiagram\n"+f);EditorUi.debug("EditorUi.extractMermaidDeclaration","\nlines:",k,"\ntype:",u,"\nvalue:",d,"\ntext:",f);return f};EditorUi.prototype.removeMermaidComments=function(d){d=d.split("\n");for(var f=[],k=0;k<d.length;k++)"%%"!=d[k].substring(0,2)&&f.push(d[k]);return f.join("\n")};EditorUi.prototype.generateMermaidImage=function(d,f,k,u,z){d=this.removeMermaidComments(d);var B=mxUtils.bind(this,function(K){this.loadingMermaid=!1;null!=
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
EditorUi.prototype.hideDialog=function(b,e,g){null!=this.dialogs&&0<this.dialogs.length&&(null==g||g==this.dialog.container.firstChild)&&(g=this.dialogs.pop(),0==g.close(b,e)?this.dialogs.push(g):(this.dialog=0<this.dialogs.length?this.dialogs[this.dialogs.length-1]:null,this.editor.fireEvent(new mxEventObject("hideDialog")),null==this.dialog&&null!=this.editor.graph.container&&"hidden"!=this.editor.graph.container.style.visibility&&window.setTimeout(mxUtils.bind(this,function(){null==this.editor||
null!=this.dialogs&&0!=this.dialogs.length||(this.editor.graph.isEditing()&&null!=this.editor.graph.cellEditor.textarea?this.editor.graph.cellEditor.textarea.focus():(mxUtils.clearSelection(),this.editor.graph.container.focus()))}),0)))};
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
mxSettings.save()}}"undefined"!==typeof window.EditDataDialog&&(EditDataDialog.getDisplayIdForCell=function(l,A){var O=null;null!=l.editor.graph.getModel().getParent(A)?O=A.getId():null!=l.currentPage&&(O=l.currentPage.getId());return O});if(null!=window.StyleFormatPanel){var G=Format.prototype.init;Format.prototype.init=function(){G.apply(this,arguments);this.editorUi.editor.addListener("fileLoaded",this.update)};var M=Format.prototype.refresh;Format.prototype.refresh=function(){null!=this.editorUi.getCurrentFile()||
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
x&&(new mxCodec(x.ownerDocument)).decode(x,this.getStylesheet())};Graph.prototype.createCellLookup=function(x,J){J=null!=J?J:{};for(var Q=0;Q<x.length;Q++){var Y=x[Q];J[mxObjectIdentity.get(Y)]=Y.getId();for(var fa=this.model.getChildCount(Y),la=0;la<fa;la++)this.createCellLookup([this.model.getChildAt(Y,la)],J)}return J};Graph.prototype.createCellMapping=function(x,J,Q){Q=null!=Q?Q:{};for(var Y in x){var fa=J[Y];null==Q[fa]&&(Q[fa]=x[Y].getId()||"")}return Q};Graph.prototype.importGraphModel=function(x,
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
da.resp&&0<da.resp.length&&null!=da.resp[0]?Z(da.resp[0]):ja())}}catch(P){console.log(P)}});window.addEventListener("message",F)}})));d(B);B.onversionchange=function(){B.close()}}catch(F){null!=f?f(F):null!=window.console&&console.warn(F)}});u.onerror=f;u.onblocked=function(){}}catch(z){null!=f?f(z):null!=window.console&&console.error(z)}else null!=f&&f(Error("IndexedDB not supported"))}else d(this.database)};EditorUi.prototype.setDatabaseItem=function(d,f,k,u,z){this.openDatabase(mxUtils.bind(this,
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
k&&k()};EditorUi.prototype.alert=function(d,f,k){d=new ErrorDialog(this,null,d,mxResources.get("ok"),f);this.showDialog(d.container,k||340,100,!0,!1);d.init()};EditorUi.prototype.confirm=function(d,f,k,u,z,B){d=null!=d?d:"";var F=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},K=Math.min(220,28*Math.ceil(Math.max(1,d.length)/50));d=new ConfirmDialog(this,d,function(){F();null!=f&&f()},function(){F();null!=k&&k()},u,z,null,null,null,null,K);this.showDialog(d.container,
340,46+K,!0,B);d.init()};EditorUi.prototype.showBanner=function(d,f,k,u,z,B,F,K,N){var H=!1;if(!(this.bannerShowing||this["hideBanner"+d]||isLocalStorage&&null!=mxSettings.settings&&null!=mxSettings.settings["close"+d])){B=null!=B?B:"bottom:10px;left:50%;";F=null!=F?F:"translate(-50%,120%)";K=null!=K?K:"translate(-50%,0%)";var ka=z?500:1E3;H=z?"padding:4px;border-radius:6px;font-size:11px;height:12px;font-weight:normal;":"font-size:16px;padding:18px 34px 12px 20px;font-weight:bold;";var ea=document.createElement("div");
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
Graph.prototype.createTable=function(b,e,g,n,y,q,E,L,T){g=null!=g?g:60;n=null!=n?n:40;q=null!=q?q:30;L=null!=L?L:"shape=tableRow;horizontal=0;startSize=0;swimlaneHead=0;swimlaneBody=0;strokeColor=inherit;top=0;left=0;bottom=0;right=0;collapsible=0;dropTarget=0;fillColor=none;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;";T=null!=T?T:"shape=partialRectangle;html=1;whiteSpace=wrap;connectable=0;strokeColor=inherit;overflow=hidden;fillColor=none;top=0;left=0;bottom=0;right=0;pointerEvents=1;";return this.createParent(this.createVertex(null,
null,null!=y?y:"",0,0,e*g,b*n+(null!=y?q:0),null!=E?E:"shape=table;startSize="+(null!=y?q:"0")+";container=1;collapsible=0;childLayout=tableLayout;"),this.createParent(this.createVertex(null,null,"",0,0,e*g,n,L),this.createVertex(null,null,"",0,0,g,n,T),e,g,0),b,0,n)};
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
null;EditorUi.prototype.shareCursorPosition=!0;EditorUi.prototype.showRemoteCursors=!0;(function(){EditorUi.prototype.useCanvasForExport=!1;EditorUi.prototype.jpgSupported=!1;try{var d=document.createElement("canvas");EditorUi.prototype.canvasSupported=!(!d.getContext||!d.getContext("2d"))}catch(z){}try{var f=document.createElement("canvas"),k=new Image;k.onload=function(){try{f.getContext("2d").drawImage(k,0,0);var z=f.toDataURL("image/png");EditorUi.prototype.useCanvasForExport=null!=z&&6<z.length}catch(B){}};
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
K.y)||W}M.routedPoints=d;return W}return!1};var q=mxConnector.prototype.paintLine;mxConnector.prototype.paintLine=function(M,R,W){this.routedPoints=null!=this.state?this.state.routedPoints:null;if(this.outline||null==this.state||null==this.style||null==this.state.routedPoints||0==this.state.routedPoints.length)q.apply(this,arguments);else{var d=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2,f=(parseInt(mxUtils.getValue(this.style,"jumpSize",Graph.defaultJumpSize))-
2)/2+this.strokewidth,k=mxUtils.getValue(this.style,"jumpStyle","none"),u=!0,z=null,B=null,F=[],K=null;M.begin();for(var N=0;N<this.state.routedPoints.length;N++){var H=this.state.routedPoints[N],ka=new mxPoint(H.x/this.scale,H.y/this.scale);0==N?ka=R[0]:N==this.state.routedPoints.length-1&&(ka=R[R.length-1]);var ea=!1;if(null!=z&&1==H.type){var ca=this.state.routedPoints[N+1];H=ca.x/this.scale-ka.x;ca=ca.y/this.scale-ka.y;H=H*H+ca*ca;null==K&&(K=new mxPoint(ka.x-z.x,ka.y-z.y),B=Math.sqrt(K.x*K.x+
K.y*K.y),0<B?(K.x=K.x*f/B,K.y=K.y*f/B):K=null);H>f*f&&0<B&&(H=z.x-ka.x,ca=z.y-ka.y,H=H*H+ca*ca,H>f*f&&(ea=new mxPoint(ka.x-K.x,ka.y-K.y),H=new mxPoint(ka.x+K.x,ka.y+K.y),F.push(ea),this.addPoints(M,F,W,d,!1,null,u),F=0>Math.round(K.x)||0==Math.round(K.x)&&0>=Math.round(K.y)?1:-1,u=!1,"sharp"==k?(M.lineTo(ea.x-K.y*F,ea.y+K.x*F),M.lineTo(H.x-K.y*F,H.y+K.x*F),M.lineTo(H.x,H.y)):"line"==k?(M.moveTo(ea.x+K.y*F,ea.y-K.x*F),M.lineTo(ea.x-K.y*F,ea.y+K.x*F),M.moveTo(H.x-K.y*F,H.y+K.x*F),M.lineTo(H.x+K.y*F,
H.y-K.x*F),M.moveTo(H.x,H.y)):"arc"==k?(F*=1.3,M.curveTo(ea.x-K.y*F,ea.y+K.x*F,H.x-K.y*F,H.y+K.x*F,H.x,H.y)):(M.moveTo(H.x,H.y),u=!0),F=[H],ea=!0))}else K=null;ea||(F.push(ka),z=ka)}this.addPoints(M,F,W,d,!1,null,u);M.stroke()}};var E=mxGraphView.prototype.getFixedTerminalPoint;mxGraphView.prototype.getFixedTerminalPoint=function(M,R,W,d){return null!=R&&"centerPerimeter"==R.style[mxConstants.STYLE_PERIMETER]?new mxPoint(R.getCenterX(),R.getCenterY()):E.apply(this,arguments)};var L=mxGraphView.prototype.updateFloatingTerminalPoint;
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
function W(){mxShape.call(this)}function d(c,m,v,p){mxShape.call(this);this.bounds=c;this.fill=m;this.stroke=v;this.strokewidth=null!=p?p:1}function f(){mxActor.call(this)}function k(){mxCylinder.call(this)}function u(){mxCylinder.call(this)}function z(){mxActor.call(this)}function B(){mxActor.call(this)}function F(){mxActor.call(this)}function K(){mxActor.call(this)}function N(){mxActor.call(this)}function H(){mxActor.call(this)}function ka(){mxActor.call(this)}function ea(c,m){this.canvas=c;this.canvas.setLineJoin("round");
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
this.editor.getEditBlankUrl=function(P){P=null!=P?P:"";"1"==urlParams.dev&&(P+=(0<P.length?"&":"?")+"dev=1");return F.apply(this,arguments)};var K=f.addClickHandler;f.addClickHandler=function(P,V,l){var A=V;V=function(O,X){if(null==X){var U=mxEvent.getSource(O);"a"==U.nodeName.toLowerCase()&&(X=U.getAttribute("href"))}null!=X&&f.isCustomLink(X)&&(mxEvent.isTouchEvent(O)||!mxEvent.isPopupTrigger(O))&&f.customLinkClicked(X)&&mxEvent.consume(O);null!=A&&A(O,X)};K.call(this,P,V,l)};q.apply(this,arguments);
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
TableLayout.prototype.isVertexIgnored=function(b){return!this.graph.getModel().isVertex(b)||!this.graph.isCellVisible(b)};TableLayout.prototype.getSize=function(b,e){for(var g=0,n=0;n<b.length;n++)if(!this.isVertexIgnored(b[n])){var y=this.graph.getCellGeometry(b[n]);null!=y&&(g+=e?y.width:y.height)}return g};
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
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,B,F,K,N,H,ka,ea,ca,ja,ma,Z){EditorUi.logEvent("SHOULD NOT BE CALLED: exportToCanvas");return this.editor.exportToCanvas(d,f,k,u,z,B,F,K,N,H,ka,ea,ca,ja,ma,Z)};EditorUi.prototype.createImageUrlConverter=function(){EditorUi.logEvent("SHOULD NOT BE CALLED: createImageUrlConverter");return this.editor.createImageUrlConverter()};
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
0,0,parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale)};ma.prototype.isRoundable=function(){return!0};ma.prototype.redrawPath=function(c,m,v,p,t){m=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;v=Math.max(0,Math.min(t,parseFloat(mxUtils.getValue(this.style,"size",this.size))));var C=p*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"position",this.position)))),D=p*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"position2",
this.position2)))),ha=Math.max(0,Math.min(p,parseFloat(mxUtils.getValue(this.style,"base",this.base))));this.addPoints(c,[new mxPoint(0,0),new mxPoint(p,0),new mxPoint(p,t-v),new mxPoint(Math.min(p,C+ha),t-v),new mxPoint(D,t),new mxPoint(Math.max(0,C),t-v),new mxPoint(0,t-v)],this.isRounded,m,!0,[4])};mxCellRenderer.registerShape("callout",ma);mxUtils.extend(Z,mxActor);Z.prototype.size=.2;Z.prototype.fixedSize=20;Z.prototype.isRoundable=function(){return!0};Z.prototype.redrawPath=function(c,m,v,p,
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
ka.height;if(0==ea&&0==ca){var ja=N.result,ma=ja.indexOf(","),Z=decodeURIComponent(escape(atob(ja.substring(ma+1)))),S=mxUtils.parseXml(Z).getElementsByTagName("svg");0<S.length&&(ea=parseFloat(S[0].getAttribute("width")),ca=parseFloat(S[0].getAttribute("height")))}k(N.result,ea,ca)}catch(da){u(da)}};ka.src=N.result};N.onerror=function(H){u(H)}}else u(K)};F.onerror=function(K){u(K)};F.send()};EditorUi.prototype.insertAsPreText=function(d,f,k){var u=this.editor.graph,z=null;u.getModel().beginUpdate();
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
this.connectionHandler.isOutlineConnectEvent;this.connectionHandler.isOutlineConnectEvent=function(S){return mxEvent.isShiftDown(S.getEvent())&&mxEvent.isAltDown(S.getEvent())?!1:null!=this.currentState&&S.getState()==this.currentState&&2E3<u||(null==this.currentState||"0"!=mxUtils.getValue(this.currentState.style,"outlineConnect","1"))&&B.apply(this,arguments)};var F=this.isToggleEvent;this.isToggleEvent=function(S){return F.apply(this,arguments)||!mxClient.IS_CHROMEOS&&mxEvent.isShiftDown(S)};var K=
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
EditorUi.prototype.openLocalFile=function(d,f,k,u,z){var B=this.getCurrentFile(),F=mxUtils.bind(this,function(){window.openFile=null;if(null==f&&null!=this.getCurrentFile()&&this.isDiagramEmpty()){var K=mxUtils.parseXml(d);null!=K&&(this.editor.setGraphXml(K.documentElement),this.editor.graph.selectAll())}else this.fileLoaded(new LocalFile(this,d,f||this.defaultFilename,k,u,z))});if(null!=d&&0<d.length)null==B||!B.isModified()&&(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||null!=u)?F():(mxClient.IS_CHROMEAPP||
EditorUi.isElectronApp||null!=u)&&null!=B&&B.isModified()?this.confirm(mxResources.get("allChangesLost"),null,F,mxResources.get("cancel"),mxResources.get("discardChanges")):(window.openFile=new OpenFile(function(){window.openFile=null}),window.openFile.setData(d,f),window.openWindow(this.getUrl(),null,mxUtils.bind(this,function(){null!=B&&B.isModified()?this.confirm(mxResources.get("allChangesLost"),null,F,mxResources.get("cancel"),mxResources.get("discardChanges")):F()})));else throw Error(mxResources.get("notADiagramFile"));
};EditorUi.prototype.getBasenames=function(){var d={};if(null!=this.pages)for(var f=0;f<this.pages.length;f++)this.updatePageRoot(this.pages[f]),this.addBasenamesForCell(this.pages[f].root,d);else this.addBasenamesForCell(this.editor.graph.model.getRoot(),d);f=[];for(var k in d)f.push(k);return f};EditorUi.prototype.addBasenamesForCell=function(d,f){function k(F){if(null!=F){var K=F.lastIndexOf(".");0<K&&(F=F.substring(K+1,F.length));null==f[F]&&(f[F]=!0)}}var u=this.editor.graph,z=u.getCellStyle(d);
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
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 n=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=
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
function(M){y.apply(this,arguments);this.graph.model.isEdge(M.cell)&&1!=M.style[mxConstants.STYLE_CURVED]&&this.updateLineJumps(M)};mxGraphView.prototype.updateLineJumps=function(M){var R=M.absolutePoints;if(Graph.lineJumpsEnabled){var W=null!=M.routedPoints,d=null;if(null!=R&&null!=this.validEdges&&"none"!==mxUtils.getValue(M.style,"jumpStyle","none")){var f=function(ja,ma,Z){var S=new mxPoint(ma,Z);S.type=ja;d.push(S);S=null!=M.routedPoints?M.routedPoints[d.length-1]:null;return null==S||S.type!=
ja||S.x!=ma||S.y!=Z},k=.5*this.scale;W=!1;d=[];for(var u=0;u<R.length-1;u++){for(var z=R[u+1],B=R[u],F=[],K=R[u+2];u<R.length-2&&mxUtils.ptSegDistSq(B.x,B.y,K.x,K.y,z.x,z.y)<1*this.scale*this.scale;)z=K,u++,K=R[u+2];W=f(0,B.x,B.y)||W;for(var N=0;N<this.validEdges.length;N++){var H=this.validEdges[N],ka=H.absolutePoints;if(null!=ka&&mxUtils.intersects(M,H)&&"1"!=H.style.noJump)for(H=0;H<ka.length-1;H++){var ea=ka[H+1],ca=ka[H];for(K=ka[H+2];H<ka.length-2&&mxUtils.ptSegDistSq(ca.x,ca.y,K.x,K.y,ea.x,
ea.y)<1*this.scale*this.scale;)ea=K,H++,K=ka[H+2];K=mxUtils.intersection(B.x,B.y,z.x,z.y,ca.x,ca.y,ea.x,ea.y);if(null!=K&&(Math.abs(K.x-B.x)>k||Math.abs(K.y-B.y)>k)&&(Math.abs(K.x-z.x)>k||Math.abs(K.y-z.y)>k)){ea=K.x-B.x;ca=K.y-B.y;K={distSq:ea*ea+ca*ca,x:K.x,y:K.y};for(ea=0;ea<F.length;ea++)if(F[ea].distSq>K.distSq){F.splice(ea,0,K);K=null;break}null==K||0!=F.length&&F[F.length-1].x===K.x&&F[F.length-1].y===K.y||F.push(K)}}}for(H=0;H<F.length;H++)W=f(1,F[H].x,F[H].y)||W}K=R[R.length-1];W=f(0,K.x,
K.y)||W}M.routedPoints=d;return W}return!1};var q=mxConnector.prototype.paintLine;mxConnector.prototype.paintLine=function(M,R,W){this.routedPoints=null!=this.state?this.state.routedPoints:null;if(this.outline||null==this.state||null==this.style||null==this.state.routedPoints||0==this.state.routedPoints.length)q.apply(this,arguments);else{var d=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2,f=(parseInt(mxUtils.getValue(this.style,"jumpSize",Graph.defaultJumpSize))-
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
mxClient.IS_IE||mxClient.IS_IE11||mxClient.IS_FF&&mxClient.IS_WIN?"gray dotted 1px":""};var F=mxCellEditor.prototype.installListeners;mxCellEditor.prototype.installListeners=function(x){function J(fa,la){la.originalNode=fa;fa=fa.firstChild;for(var oa=la.firstChild;null!=fa&&null!=oa;)J(fa,oa),fa=fa.nextSibling,oa=oa.nextSibling;return la}function Q(fa,la){if(null!=fa)if(la.originalNode!=fa)Y(fa);else for(fa=fa.firstChild,la=la.firstChild;null!=fa;){var oa=fa.nextSibling;null==la?Y(fa):(Q(fa,la),la=
la.nextSibling);fa=oa}}function Y(fa){for(var la=fa.firstChild;null!=la;){var oa=la.nextSibling;Y(la);la=oa}1==fa.nodeType&&("BR"===fa.nodeName||null!=fa.firstChild)||3==fa.nodeType&&0!=mxUtils.trim(mxUtils.getTextContent(fa)).length?(3==fa.nodeType&&mxUtils.setTextContent(fa,mxUtils.getTextContent(fa).replace(/\n|\r/g,"")),1==fa.nodeType&&(fa.removeAttribute("style"),fa.removeAttribute("class"),fa.removeAttribute("width"),fa.removeAttribute("cellpadding"),fa.removeAttribute("cellspacing"),fa.removeAttribute("border"))):
fa.parentNode.removeChild(fa)}F.apply(this,arguments);7!==document.documentMode&&8!==document.documentMode&&mxEvent.addListener(this.textarea,"paste",mxUtils.bind(this,function(fa){var la=J(this.textarea,this.textarea.cloneNode(!0));window.setTimeout(mxUtils.bind(this,function(){null!=this.textarea&&(0<=this.textarea.innerHTML.indexOf("<o:OfficeDocumentSettings>")||0<=this.textarea.innerHTML.indexOf("\x3c!--[if !mso]>")?Q(this.textarea,la):Graph.removePasteFormatting(this.textarea.firstChild))}),
0)}))};mxCellEditor.prototype.toggleViewMode=function(){var x=this.graph.view.getState(this.editingCell);if(null!=x){var J=null!=x&&"0"!=mxUtils.getValue(x.style,"nl2Br","1"),Q=this.saveSelection();if(this.codeViewMode){wa=mxUtils.extractTextWithWhitespace(this.textarea.childNodes);0<wa.length&&"\n"==wa.charAt(wa.length-1)&&(wa=wa.substring(0,wa.length-1));wa=Graph.sanitizeHtml(J?wa.replace(/\n/g,"<br/>"):wa,!0);this.textarea.className="mxCellEditor geContentEditable";sa=mxUtils.getValue(x.style,
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
Editor.prototype.createUndoManager=function(){var b=this.graph,e=new mxUndoManager;this.undoListener=function(n,y){e.undoableEditHappened(y.getProperty("edit"))};var g=mxUtils.bind(this,function(n,y){this.undoListener.apply(this,arguments)});b.getModel().addListener(mxEvent.UNDO,g);b.getView().addListener(mxEvent.UNDO,g);g=function(n,y){n=b.getSelectionCellsForChanges(y.getProperty("edit").changes,function(E){return!(E instanceof mxChildChange)});if(0<n.length){b.getModel();y=[];for(var q=0;q<n.length;q++)null!=
b.view.getState(n[q])&&y.push(n[q]);b.setSelectionCells(y)}};e.addListener(mxEvent.UNDO,g);e.addListener(mxEvent.REDO,g);return e};Editor.prototype.initStencilRegistry=function(){};Editor.prototype.destroy=function(){null!=this.graph&&(this.graph.destroy(),this.graph=null)};OpenFile=function(b){this.consumer=this.producer=null;this.done=b;this.args=null};OpenFile.prototype.setConsumer=function(b){this.consumer=b;this.execute()};OpenFile.prototype.setData=function(){this.args=arguments;this.execute()};
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
15;R.prototype.paintVertexShape=function(c,m,v,p,t){var C=Math.max(.01,Math.min(94,parseFloat(mxUtils.getValue(this.style,"isoAngle",this.isoAngle))))*Math.PI/200;C=Math.min(p*Math.tan(C),.5*t);c.translate(m,v);c.begin();c.moveTo(.5*p,0);c.lineTo(p,C);c.lineTo(p,t-C);c.lineTo(.5*p,t);c.lineTo(0,t-C);c.lineTo(0,C);c.close();c.fillAndStroke();c.setShadow(!1);c.begin();c.moveTo(0,C);c.lineTo(.5*p,2*C);c.lineTo(p,C);c.moveTo(.5*p,2*C);c.lineTo(.5*p,t);c.stroke()};mxCellRenderer.registerShape("isoCube2",
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
d,f,k,u,z,K,H);ea!=this.editor.graph&&ea.container.parentNode.removeChild(ea.container);return d};EditorUi.prototype.getHtml=function(d,f,k,u,z,B){B=null!=B?B:!0;var F=null,K=EditorUi.drawHost+"/js/embed-static.min.js";if(null!=f){F=B?f.getGraphBounds():f.getBoundingBox(f.getSelectionCells());var N=f.view.scale;B=Math.floor(F.x/N-f.view.translate.x);N=Math.floor(F.y/N-f.view.translate.y);F=f.background;null==z&&(f=this.getBasenames().join(";"),0<f.length&&(K=EditorUi.drawHost+"/embed.js?s="+f));d.setAttribute("x0",
B);d.setAttribute("y0",N)}null!=d&&(d.setAttribute("pan","1"),d.setAttribute("zoom","1"),d.setAttribute("resize","0"),d.setAttribute("fit","0"),d.setAttribute("border","20"),d.setAttribute("links","1"),null!=u&&d.setAttribute("edit",u));null!=z&&(z=z.replace(/&/g,"&"));d=null!=d?Graph.zapGremlins(mxUtils.getXml(d)):"";u=Graph.compress(d);Graph.decompress(u)!=d&&(u=encodeURIComponent(d));return(null==z?'\x3c!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=5,IE=9" ><![endif]--\x3e\n':"")+
"<!DOCTYPE html>\n<html"+(null!=z?' xmlns="http://www.w3.org/1999/xhtml">':">")+"\n<head>\n"+(null==z?null!=k?"<title>"+mxUtils.htmlEntities(k)+"</title>\n":"":"<title>draw.io</title>\n")+(null!=z?'<meta http-equiv="refresh" content="0;URL=\''+z+"'\"/>\n":"")+"</head>\n<body"+(null==z&&null!=F&&F!=mxConstants.NONE?' style="background-color:'+F+';">':">")+'\n<div class="mxgraph" style="position:relative;overflow:auto;width:100%;">\n<div style="width:1px;height:1px;overflow:hidden;">'+u+"</div>\n</div>\n"+
(null==z?'<script type="text/javascript" src="'+K+'">\x3c/script>':'<a style="position:absolute;top:50%;left:50%;margin-top:-128px;margin-left:-64px;" href="'+z+'" target="_blank"><img border="0" src="'+EditorUi.drawHost+'/images/drawlogo128.png"/></a>')+"\n</body>\n</html>\n"};EditorUi.prototype.getHtml2=function(d,f,k,u,z){f=window.DRAWIO_VIEWER_URL||EditorUi.drawHost+"/js/viewer-static.min.js";null!=z&&(z=z.replace(/&/g,"&"));d={highlight:"#0000ff",nav:this.editor.graph.foldingEnabled,resize:!0,
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
[];this.traverse(y,!0,mxUtils.bind(this,function(L,T){var G=null!=T&&this.isTreeEdge(T);G&&q.push(T);L==y||null!=T&&!G||q.push(L);return(null==T||G)&&(L==y||!this.model.isCollapsed(L))}));this.model.setCollapsed(y,n);for(var E=0;E<q.length;E++)this.model.setVisible(q[E],!n)}finally{this.model.endUpdate()}};Graph.prototype.isTreeEdge=function(n){return!this.isEdgeIgnored(n)};Graph.prototype.getTreeEdges=function(n,y,q,E,L,T){return this.model.filterCells(this.getEdges(n,y,q,E,L,T),mxUtils.bind(this,
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
"keydown",mxUtils.bind(this,function(X){mxEvent.isConsumed(X)||((mxEvent.isControlDown(X)||mxClient.IS_MAC&&mxEvent.isMetaDown(X))&&13==X.keyCode?(O.click(),mxEvent.consume(X)):27==X.keyCode&&(A.click(),mxEvent.consume(X)))}));O.focus();O.className="geCommentEditBtn gePrimaryBtn";l.appendChild(O);ja.insertBefore(l,da);P.style.display="none";da.style.display="none";V.focus()}function T(ca,ja){ja.innerText="";ca=new Date(ca.modifiedDate);var ma=b.timeSince(ca);null==ma&&(ma=mxResources.get("lessThanAMinute"));
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,Z,S){function da(aa,ba,ia){var qa=document.createElement("li");
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
function(M){y.apply(this,arguments);this.graph.model.isEdge(M.cell)&&1!=M.style[mxConstants.STYLE_CURVED]&&this.updateLineJumps(M)};mxGraphView.prototype.updateLineJumps=function(M){var R=M.absolutePoints;if(Graph.lineJumpsEnabled){var W=null!=M.routedPoints,d=null;if(null!=R&&null!=this.validEdges&&"none"!==mxUtils.getValue(M.style,"jumpStyle","none")){var f=function(ja,ma,Z){var S=new mxPoint(ma,Z);S.type=ja;d.push(S);S=null!=M.routedPoints?M.routedPoints[d.length-1]:null;return null==S||S.type!=
ja||S.x!=ma||S.y!=Z},k=.5*this.scale;W=!1;d=[];for(var u=0;u<R.length-1;u++){for(var z=R[u+1],B=R[u],F=[],K=R[u+2];u<R.length-2&&mxUtils.ptSegDistSq(B.x,B.y,K.x,K.y,z.x,z.y)<1*this.scale*this.scale;)z=K,u++,K=R[u+2];W=f(0,B.x,B.y)||W;for(var N=0;N<this.validEdges.length;N++){var H=this.validEdges[N],ka=H.absolutePoints;if(null!=ka&&mxUtils.intersects(M,H)&&"1"!=H.style.noJump)for(H=0;H<ka.length-1;H++){var ea=ka[H+1],ca=ka[H];for(K=ka[H+2];H<ka.length-2&&mxUtils.ptSegDistSq(ca.x,ca.y,K.x,K.y,ea.x,
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
null!=V[l][EditorUi.DIFF_REMOVE]&&0<=mxUtils.indexOf(V[l][EditorUi.DIFF_REMOVE],P)){f.refreshBackgroundImage();break}}}));var B=f.getBackgroundImageObject;f.getBackgroundImageObject=function(P,V){var l=B.apply(this,arguments);if(null!=l&&null!=l.originalSrc)if(!V)l={src:l.originalSrc};else if(V&&null!=this.themes&&"darkTheme"==this.defaultThemeName){var A=this.stylesheet,O=this.shapeForegroundColor,X=this.shapeBackgroundColor;this.stylesheet=this.getDefaultStylesheet();this.shapeBackgroundColor="#ffffff";
this.shapeForegroundColor="#000000";l=d.createImageForPageLink(l.originalSrc);this.shapeBackgroundColor=X;this.shapeForegroundColor=O;this.stylesheet=A}return l};this.isOffline()||"undefined"===typeof window.EditDataDialog||(EditDataDialog.placeholderHelpLink="https://www.drawio.com/doc/faq/predefined-placeholders");if(/viewer\.diagrams\.net$/.test(window.location.hostname)||/embed\.diagrams\.net$/.test(window.location.hostname))this.editor.editBlankUrl="https://app.diagrams.net/";var F=d.editor.getEditBlankUrl;
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
ya.prototype.redrawPath=function(c,m,v,p,t){c.moveTo(0,0);c.lineTo(0,t);c.end();c.moveTo(p,0);c.lineTo(p,t);c.end();c.moveTo(0,t/2);c.lineTo(p,t/2);c.end()};mxCellRenderer.registerShape("crossbar",ya);mxUtils.extend(Va,mxActor);Va.prototype.dx=20;Va.prototype.dy=20;Va.prototype.redrawPath=function(c,m,v,p,t){m=Math.max(0,Math.min(p,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));v=Math.max(0,Math.min(t,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));parseFloat(mxUtils.getValue(this.style,
"size",this.size));var C=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(0,0),new mxPoint(p,0),new mxPoint(p,v),new mxPoint((p+m)/2,v),new mxPoint((p+m)/2,t),new mxPoint((p-m)/2,t),new mxPoint((p-m)/2,v),new mxPoint(0,v)],this.isRounded,C,!0);c.end()};mxCellRenderer.registerShape("tee",Va);mxUtils.extend(Wa,mxActor);Wa.prototype.arrowWidth=.3;Wa.prototype.arrowSize=.2;Wa.prototype.redrawPath=function(c,m,v,p,t){var C=t*Math.max(0,Math.min(1,
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
function X(){mxShape.call(this)}function U(){mxShape.call(this)}function aa(){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);
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
function X(){mxShape.call(this)}function U(){mxShape.call(this)}function aa(){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);
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
arguments);this.lastX=c;this.lastY=m};ea.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;
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
ra(pa.responseText,"text/xml"):this.handleError({message:mxResources.get(413==pa.status?"drawingTooLarge":"invalidOrMissingFile")},mxResources.get("errorLoadingFile")))})):(this.spinner.stop(),this.showError(mxResources.get("error"),mxResources.get("notInOffline"))):ra(V,l)}}));P.stopPropagation();P.preventDefault()})),mxEvent.addListener(N,"dragleave",function(P){N.style.cursor="";N.style.backgroundColor="";P.stopPropagation();P.preventDefault()}));ea=ea.cloneNode(!1);ea.setAttribute("src",Editor.editImage);
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
L.appendChild(T);q.appendChild(L);y.appendChild(q);n.appendChild(y);this.container=n};PrintDialog.printPreview=function(b){try{null!=b.wnd&&window.setTimeout(function(){b.wnd.focus();b.wnd.print();b.wnd.close()},500)}catch(e){}};
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
arguments):this.drawPath(this.getStyle(!0,!1))};l.prototype.fill=function(){this.passThrough?this.originalFill.apply(this.canvas,arguments):this.drawPath(this.getStyle(!1,!0))};l.prototype.fillAndStroke=function(){this.passThrough?this.originalFillAndStroke.apply(this.canvas,arguments):this.drawPath(this.getStyle(!0,!0))};l.prototype.destroy=function(){this.canvas.lineTo=this.originalLineTo;this.canvas.moveTo=this.originalMoveTo;this.canvas.close=this.originalClose;this.canvas.quadTo=this.originalQuadTo;
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
Graph.prototype.getDefaultTranslate=function(b){var e=this.getPagePadding(),g=this.getPageSize();return new mxPoint(e.x-b.x*g.width,e.y-b.y*g.height)};Graph.prototype.updateMinimumSize=function(){var b=this.getPageLayout(),e=this.getPagePadding(),g=this.getPageSize(),n=Math.ceil(2*e.x+b.width*g.width);b=Math.ceil(2*e.y+b.height*g.height);if(null==this.minimumGraphSize||this.minimumGraphSize.width!=n||this.minimumGraphSize.height!=b)this.minimumGraphSize=new mxRectangle(0,0,n,b)};
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
TableLayout.prototype.isVertexIgnored=function(b){return!this.graph.getModel().isVertex(b)||!this.graph.isCellVisible(b)};TableLayout.prototype.getSize=function(b,e){for(var g=0,n=0;n<b.length;n++)if(!this.isVertexIgnored(b[n])){var y=this.graph.getCellGeometry(b[n]);null!=y&&(g+=e?y.width:y.height)}return g};
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
!0;za.prototype.paintVertexShape=function(c,m,v,p,t){var C=Math.min(4,Math.min(p/5,t/5));0<p&&0<t&&(c.ellipse(m+C,v+C,p-2*C,t-2*C),c.fillAndStroke());c.setShadow(!1);this.outerStroke&&(c.ellipse(m,v,p,t),c.stroke())};mxCellRenderer.registerShape("endState",za);mxUtils.extend(Ma,za);Ma.prototype.outerStroke=!1;mxCellRenderer.registerShape("startState",Ma);mxUtils.extend(Qa,mxArrowConnector);Qa.prototype.defaultWidth=4;Qa.prototype.isOpenEnded=function(){return!0};Qa.prototype.getEdgeWidth=function(){return mxUtils.getNumber(this.style,
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
EditorUi.prototype.readGraphModelFromClipboardWithType=function(b,e){navigator.clipboard.read().then(mxUtils.bind(this,function(g){if(null!=g&&0<g.length&&"html"==e&&0<=mxUtils.indexOf(g[0].types,"text/html"))g[0].getType("text/html").then(mxUtils.bind(this,function(n){n.text().then(mxUtils.bind(this,function(y){try{var q=this.parseHtmlData(y),E="text/plain"!=q.getAttribute("data-type")?q.innerHTML:mxUtils.trim(null==q.innerText?mxUtils.getTextContent(q):q.innerText);try{var L=E.lastIndexOf("%3E");
0<=L&&L<E.length-3&&(E=E.substring(0,L+3))}catch(M){}try{var T=q.getElementsByTagName("span"),G=null!=T&&0<T.length?mxUtils.trim(decodeURIComponent(T[0].textContent)):decodeURIComponent(E);this.isCompatibleString(G)&&(E=G)}catch(M){}}catch(M){}b(this.isCompatibleString(E)?E:null)}))["catch"](function(y){b(null)})}))["catch"](function(n){b(null)});else if(null!=g&&0<g.length&&"text"==e&&0<=mxUtils.indexOf(g[0].types,"text/plain"))g[0].getType("text/plain").then(function(n){n.text().then(function(y){b(y)})["catch"](function(){b(null)})})["catch"](function(){b(null)});
else b(null)}))["catch"](function(g){b(null)})};
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
l);mxEvent.addListener(this.container,"mousemove",l);mxEvent.addListener(this.container,"mouseleave",function(U){A=null});this.isMouseInsertPoint=function(){return null!=A};var O=this.getInsertPoint;this.getInsertPoint=function(){return null!=A?this.getPointForEvent(A):O.apply(this,arguments)};var X=this.layoutManager.getLayout;this.layoutManager.getLayout=function(U){var aa=this.graph.getCellStyle(U);if(null!=aa&&"rack"==aa.childLayout){var ba=new mxStackLayout(this.graph,!1);ba.gridSize=null!=aa.rackUnitSize?
parseFloat(aa.rackUnitSize):"undefined"!==typeof mxRackContainer?mxRackContainer.unitSize:20;ba.marginLeft=aa.marginLeft||0;ba.marginRight=aa.marginRight||0;ba.marginTop=aa.marginTop||0;ba.marginBottom=aa.marginBottom||0;ba.allowGaps=aa.allowGaps||0;ba.horizontal="1"==mxUtils.getValue(aa,"horizontalRack","0");ba.resizeParent=!1;ba.fill=!0;return ba}return X.apply(this,arguments)};this.updateGlobalUrlVariables()};var k=Graph.prototype.postProcessCellStyle;Graph.prototype.postProcessCellStyle=function(l,
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
this.direction==mxConstants.DIRECTION_EAST||this.direction==mxConstants.DIRECTION_WEST)return m*=p,new mxRectangle(c.x,c.y+m,v,p-2*m);m*=v;return new mxRectangle(c.x+m,c.y,v-2*m,p)}return c};mxCellRenderer.registerShape("tape",B);mxUtils.extend(F,mxActor);F.prototype.size=.3;F.prototype.getLabelMargins=function(c){return mxUtils.getValue(this.style,"boundedLbl",!1)?new mxRectangle(0,0,0,parseFloat(mxUtils.getValue(this.style,"size",this.size))*c.height):null};F.prototype.redrawPath=function(c,m,v,
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
function(d){if("data:"==d.substring(0,5)){var f=d.indexOf(";");0<f&&(d=d.substring(0,f)+d.substring(d.indexOf(",",f+1)))}return d};EditorUi.prototype.isRemoteFileFormat=function(d,f){return/("contentType":\s*"application\/gliffy\+json")/.test(d)};EditorUi.prototype.isLucidChartData=function(d){return null!=d&&('{"state":"{\\"Properties\\":'==d.substring(0,26)||'{"Properties":'==d.substring(0,14))};EditorUi.prototype.importLocalFile=function(d,f){if(d&&Graph.fileSupport){if(null==this.importFileInputElt){var k=
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
"resize",n);b.window.destroy();null!=g&&g()}};function ChangeGridColor(b,e){this.ui=b;this.color=e}ChangeGridColor.prototype.execute=function(){var b=this.ui.editor.graph.view.gridColor;this.ui.setGridColor(this.color);this.color=b};(function(){var b=new mxObjectCodec(new ChangeGridColor,["ui"]);mxCodecRegistry.register(b)})();
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
function W(){mxShape.call(this)}function d(c,m,v,p){mxShape.call(this);this.bounds=c;this.fill=m;this.stroke=v;this.strokewidth=null!=p?p:1}function f(){mxActor.call(this)}function k(){mxCylinder.call(this)}function u(){mxCylinder.call(this)}function z(){mxActor.call(this)}function B(){mxActor.call(this)}function F(){mxActor.call(this)}function K(){mxActor.call(this)}function N(){mxActor.call(this)}function H(){mxActor.call(this)}function ka(){mxActor.call(this)}function ea(c,m){this.canvas=c;this.canvas.setLineJoin("round");
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
p=0;p<this.line.length&&!m;p++){var t=this.line[p];null!=t&&null!=v&&(m=mxUtils.rectangleIntersectsSegment(c,v,t));v=t}return m};mxCellRenderer.registerShape("tableLine",b);mxUtils.extend(e,mxSwimlane);e.prototype.getLabelBounds=function(c){return 0==this.getTitleSize()?mxShape.prototype.getLabelBounds.apply(this,arguments):mxSwimlane.prototype.getLabelBounds.apply(this,arguments)};e.prototype.paintVertexShape=function(c,m,v,p,t){var C=null!=this.state?this.state.view.graph.isCellCollapsed(this.state.cell):
!1,D=this.isHorizontal(),ha=this.getTitleSize();0==ha||this.outline?sa.prototype.paintVertexShape.apply(this,arguments):(mxSwimlane.prototype.paintVertexShape.apply(this,arguments),c.translate(-m,-v));C||this.outline||!(D&&ha<t||!D&&ha<p)||this.paintForeground(c,m,v,p,t)};e.prototype.paintForeground=function(c,m,v,p,t){if(null!=this.state){var C=this.flipH,D=this.flipV;if(this.direction==mxConstants.DIRECTION_NORTH||this.direction==mxConstants.DIRECTION_SOUTH){var ha=C;C=D;D=ha}c.rotate(-this.getShapeRotation(),
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
function(){null!=this.sidebarWindow&&(this.sidebarWindow.destroy(),this.sidebarWindow=null);null!=this.formatWindow&&(this.formatWindow.destroy(),this.formatWindow=null);null!=this.freehandWindow&&(this.freehandWindow.destroy(),this.freehandWindow=null);null!=this.actions.outlineWindow&&(this.actions.outlineWindow.destroy(),this.actions.outlineWindow=null);null!=this.actions.layersWindow&&(this.actions.layersWindow.destroy(),this.actions.layersWindow=null);null!=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=
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
EditorUi.prototype.extractMermaidMindmap=function(d){for(0<d[1].indexOf("orientation")&&d.splice(1,1);1<d.length&&""==d[1];)d.splice(1,1);for(var f=[],k=2;k<d.length;k++){var u=mxUtils.trim(d[k]);"["!=u&&"]"!=u&&"%%"!=u.substring(0,2)&&"##"!=u.substring(0,2)&&(u=d[k].replace(/[-|>]/g," "),""!=mxUtils.trim(u)&&" "==u.charAt(0)&&f.push(u))}return"mindmap\nroot(("+mxUtils.trim(d[1])+"))\n"+f.join("\n")};EditorUi.prototype.extractMermaidDeclaration=function(d){"o\n\n"==d.substring(0,3)&&(d=d.substring(3));
var f=d.split("```");f=1<f.length?f:d.split("<pre>");f=1<f.length?f:d.split("~~~");f=1<f.length?f:d.split("%%");f=1<f.length?f:d.split("(Begins)");f=mxUtils.trim(1>=f.length?d:f[1]);var k=f.split("\n");if(0<k.length&&"mermaid"==mxUtils.trim(k[0])||1<k.length&&0<=mxUtils.indexOf(EditorUi.mermaidDiagramTypes,k[1]))k.shift(),f=mxUtils.trim(k.join("\n")),k=f.split("\n");var u=k[0].split(" ")[0].replace(/:$/,"");try{"mindmap"==u&&2<k.length&&(f=this.extractMermaidMindmap(k))}catch(z){}"@"!=u.charAt(0)&&
0>mxUtils.indexOf(EditorUi.mermaidDiagramTypes,u)&&(f="classDiagram\n"+f);EditorUi.debug("EditorUi.extractMermaidDeclaration","\nlines:",k,"\ntype:",u,"\nvalue:",d,"\ntext:",f);return f};EditorUi.prototype.removeMermaidComments=function(d){d=d.split("\n");for(var f=[],k=0;k<d.length;k++)"%%"!=d[k].substring(0,2)&&f.push(d[k]);return f.join("\n")};EditorUi.prototype.generateMermaidImage=function(d,f,k,u,z){d=this.removeMermaidComments(d);var B=mxUtils.bind(this,function(K){this.loadingMermaid=!1;null!=
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
l.text,l.secondLabel,l.control]};var H=mxGraphView.prototype.resetValidationState;mxGraphView.prototype.resetValidationState=function(){H.apply(this,arguments);this.enumerationState=0};var ka=mxGraphView.prototype.stateValidated;mxGraphView.prototype.stateValidated=function(l){null!=l.shape&&this.redrawEnumerationState(l);return ka.apply(this,arguments)};mxGraphView.prototype.createEnumerationValue=function(l){l=decodeURIComponent(mxUtils.getValue(l.style,"enumerateValue",""));""==l&&(l=++this.enumerationState);
return'<div style="padding:2px;border:1px solid gray;background:yellow;border-radius:2px;">'+mxUtils.htmlEntities(l)+"</div>"};mxGraphView.prototype.redrawEnumerationState=function(l){var A="1"==mxUtils.getValue(l.style,"enumerate",0);A&&null==l.secondLabel?(l.secondLabel=new mxText("",new mxRectangle,mxConstants.ALIGN_LEFT,mxConstants.ALIGN_BOTTOM),l.secondLabel.size=12,l.secondLabel.state=l,l.secondLabel.dialect=mxConstants.DIALECT_STRICTHTML,this.graph.cellRenderer.initializeLabel(l,l.secondLabel)):
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
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(fa,la){fa.length>la&&
(fa=fa.substring(0,Math.round(la/2))+"..."+fa.substring(fa.length-Math.round(la/4)));return fa}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)&&
mxEvent.addListener(Y,"click",mxUtils.bind(this,function(fa){this.customLinkClicked(x);mxEvent.consume(fa)}));return Y};Graph.prototype.initTouch=function(){this.connectionHandler.marker.isEnabled=function(){return null!=this.graph.connectionHandler.first};this.addListener(mxEvent.START_EDITING,function(la,oa){this.popupMenuHandler.hideMenu()});var x=this.updateMouseEvent;this.updateMouseEvent=function(la){la=x.apply(this,arguments);if(mxEvent.isTouchEvent(la.getEvent())&&null==la.getState()){var oa=
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
Math.max(1,Math.min(ia,Math.max(parseInt(Ca.value),parseInt(xa.value))));xa.value=Math.max(1,Math.min(ia,Math.min(parseInt(Ca.value),parseInt(xa.value))))}function X(Y){function fa(Pa,eb,jb,ib){var mb=Pa.useCssTransforms,wb=Pa.currentTranslate,xb=Pa.currentScale,rb=Pa.view.translate,nb=Pa.view.scale;Pa.useCssTransforms&&(Pa.useCssTransforms=!1,Pa.currentTranslate=new mxPoint(0,0),Pa.currentScale=1,Pa.view.translate=new mxPoint(0,0),Pa.view.scale=1);var ub=Pa.getGraphBounds(),gb=0,tb=0,ob=J.get(),
pb=1/Pa.pageScale,hb=Oa.checked;if(hb){pb=parseInt(Ka.value);var Ab=parseInt(x.value);pb=Math.min(ob.height*Ab/(ub.height/Pa.view.scale),ob.width*pb/(ub.width/Pa.view.scale))}else pb=parseInt(Qa.value)/(100*Pa.pageScale),isNaN(pb)&&(la=1/Pa.pageScale,Qa.value="100 %");ob=mxRectangle.fromRectangle(ob);ob.width=Math.ceil(ob.width*la);ob.height=Math.ceil(ob.height*la);pb*=la;!hb&&Pa.pageVisible?(ub=Pa.getPageLayout(),gb-=ub.x*ob.width,tb-=ub.y*ob.height):hb=!0;ib=null!=ib?"page/id,"+ib:null;if(null==
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
mxEvent.isMetaDown(J.getEvent())};var Z=mxVertexHandler.prototype.isRotationHandleVisible;mxVertexHandler.prototype.isRotationHandleVisible=function(){return Z.apply(this,arguments)&&!this.graph.isTableCell(this.state.cell)&&!this.graph.isTableRow(this.state.cell)&&!this.graph.isTable(this.state.cell)};mxVertexHandler.prototype.getSizerBounds=function(){return this.graph.isTableCell(this.state.cell)?this.graph.view.getState(this.graph.model.getParent(this.graph.model.getParent(this.state.cell))):
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
return J.cells[0]};Graph.prototype.deleteRow=function(x,J){x.tBodies[0].deleteRow(J)};Graph.prototype.insertColumn=function(x,J){var Q=x.tHead;if(null!=Q)for(var Y=0;Y<Q.rows.length;Y++){var fa=document.createElement("th");Q.rows[Y].appendChild(fa);mxUtils.br(fa)}x=x.tBodies[0];for(Q=0;Q<x.rows.length;Q++)Y=x.rows[Q].insertCell(J),mxUtils.br(Y);return x.rows[0].cells[0<=J?J:x.rows[0].cells.length-1]};Graph.prototype.deleteColumn=function(x,J){if(0<=J){x=x.tBodies[0].rows;for(var Q=0;Q<x.length;Q++)x[Q].cells.length>
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
0),new mxPoint(p-m,0),new mxPoint(p,.5*t),new mxPoint(p-m,t),new mxPoint(m,t),new mxPoint(0,.5*t)],this.isRounded,v,!0)};mxCellRenderer.registerShape("hexagon",S);mxUtils.extend(da,mxRectangleShape);da.prototype.isHtmlAllowed=function(){return!1};da.prototype.paintForeground=function(c,m,v,p,t){var C=Math.min(p/5,t/5)+1;c.begin();c.moveTo(m+p/2,v+C);c.lineTo(m+p/2,v+t-C);c.moveTo(m+C,v+t/2);c.lineTo(m+p-C,v+t/2);c.end();c.stroke();mxRectangleShape.prototype.paintForeground.apply(this,arguments)};
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
EditorUi.prototype.open=function(){try{null!=window.opener&&null!=window.opener.openFile&&window.opener.openFile.setConsumer(mxUtils.bind(this,function(b,e){try{var g=mxUtils.parseXml(b);this.editor.setGraphXml(g.documentElement);this.editor.setModified(!1);this.editor.undoManager.clear();null!=e&&(this.editor.setFilename(e),this.updateDocumentTitle())}catch(n){mxUtils.alert(mxResources.get("invalidOrMissingFile")+": "+n.message)}}))}catch(b){}this.editor.graph.view.validate();this.editor.graph.sizeDidChange();
this.editor.fireEvent(new mxEventObject("resetGraphView"))};EditorUi.prototype.showPopupMenu=function(b,e,g,n){this.editor.graph.popupMenuHandler.hideMenu();var y=new mxPopupMenu(b);y.div.className+=" geMenubarMenu";y.smartSeparators=!0;y.showDisabled=!0;y.autoExpand=!0;y.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(y,arguments);y.destroy()});y.popup(e,g,null,n);this.setCurrentMenu(y)};
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
(S.state=null);return S};var ma=this.isCellSelectable;this.isCellSelectable=function(S){return ma.apply(this,arguments)&&!this.isCellLocked(this.getLayerForCell(S))};this.isCellLocked=function(S){for(;null!=S;){if("1"==mxUtils.getValue(this.getCurrentCellStyle(S),"locked","0"))return!0;S=this.model.getParent(S)}return!1};var Z=null;this.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(S,da){"mouseDown"==da.getProperty("eventName")&&(S=da.getProperty("event").getState(),Z=null==S||this.isSelectionEmpty()||
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
"<pre>"+X+"</pre>"),f.updateCellSize(P,!0);else{f.setCellStyles("image",d.convertDataUri(X),[P]);var ba=f.model.getGeometry(P);null!=ba&&(ba=ba.clone(),ba.width=U,ba.height=aa,f.cellsResized([P],[ba],!1))}f.setAttributeForCell(P,"plantUmlData",JSON.stringify({data:O,format:A.format}))}finally{f.getModel().endUpdate()}},function(X){d.handleError(X)})},null,null,400,220);d.showDialog(V.container,420,300,!0,!0);V.init()};f.cellEditor.editMermaidData=function(P,V,l){var A=JSON.parse(l);V=new TextareaDialog(d,
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
this.linkHint&&"none"!=this.linkHint.style.display&&null!=this.graph.graphHandler&&null!=this.graph.graphHandler.first&&(this.linkHint.style.display="none")};var aa=mxEdgeHandler.prototype.mouseUp;mxEdgeHandler.prototype.mouseUp=function(x,J){aa.apply(this,arguments);null!=this.linkHint&&"none"==this.linkHint.style.display&&(this.linkHint.style.display="")};mxEdgeHandler.prototype.updateHint=function(x,J){null==this.hint&&(this.hint=b(),this.state.view.graph.container.appendChild(this.hint));var Q=
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
this.scale,0,0,0):null};M.prototype.getLabelMargins=function(c){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var m=mxUtils.getValue(this.style,"size",15);return new mxRectangle(0,Math.min(c.height*this.scale,m*this.scale),0,Math.max(0,m*this.scale))}return null};mxUtils.extend(K,mxActor);K.prototype.size=.2;K.prototype.fixedSize=20;K.prototype.isRoundable=function(){return!0};K.prototype.redrawPath=function(c,m,v,p,t){m="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(p,parseFloat(mxUtils.getValue(this.style,
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
EditorUi.prototype.showTextDialog=function(d,f){d=new TextareaDialog(this,d,f,null,null,mxResources.get("close"));this.showDialog(d.container,620,460,!0,!0,null,null,null,null,!0);d.init();document.execCommand("selectall",!1,null)};EditorUi.prototype.doSaveLocalFile=function(d,f,k,u,z,B){"text/xml"!=k||/(\.drawio)$/i.test(f)||/(\.xml)$/i.test(f)||/(\.svg)$/i.test(f)||/(\.html)$/i.test(f)||(f=f+"."+(null!=B?B:"drawio"));if(window.Blob&&navigator.msSaveOrOpenBlob)d=u?this.base64ToBlob(d,k):new Blob([d],
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
ia.type,f+ba*l,k+ba*l,240,160,ia.name,function(ra){U(ba,function(){return ra})},ia):"image"==ia.type.substring(0,5)||"application/pdf"==ia.type?qa.readAsDataURL(ia):qa.readAsText(ia)}})(aa)});if(Z){Z=[];for(da=0;da<d.length;da++)Z.push(d[da]);d=Z;this.confirmImageResize(function(V){ma=V;P()},N)}else P()};EditorUi.prototype.isBlankFile=function(){return null!=this.pages&&1==this.pages.length&&this.isDiagramEmpty()&&this.currentPage.getName()==mxResources.get("pageWithNumber",[1])};EditorUi.prototype.confirmImageResize=
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
Math.round(2*p)/c.view.scale-v})},wb=function(c,m,v,p,t){return hb(c,m,function(C){var D=c.absolutePoints;if(null!=D&&0<D.length){var ha=D.length-1;C=c.view.translate;var I=c.view.scale,va=v?D[0]:D[ha];D=v?D[1]:D[ha-1];ha=D.x-va.x;var na=D.y-va.y,bb=Math.sqrt(ha*ha+na*na);va=p.call(this,bb,ha/bb,na/bb,va,D);return new mxPoint(va.x/I-C.x,va.y/I-C.y)}return null},function(C,D,ha){var I=c.absolutePoints,va=I.length-1;C=c.view.translate;var na=c.view.scale,bb=v?I[0]:I[va];I=v?I[1]:I[va-1];va=I.x-bb.x;
var qb=I.y-bb.y,fb=Math.sqrt(va*va+qb*qb);D.x=(D.x+C.x)*na;D.y=(D.y+C.y)*na;t.call(this,fb,va/fb,qb/fb,bb,I,D,ha)})},xb=function(c,m){return function(v){return[wb(v,["startWidth"],!0,function(p,t,C,D,ha){ha=mxUtils.getNumber(v.style,"startWidth",c)*v.view.scale+m;return new mxPoint(D.x+t*p/4+C*ha/2,D.y+C*p/4-t*ha/2)},function(p,t,C,D,ha,I){p=Math.sqrt(mxUtils.ptSegDistSq(D.x,D.y,ha.x,ha.y,I.x,I.y));v.style.startWidth=Math.round(2*p)/v.view.scale-m})]}},rb=function(c){return function(m){return[hb(m,
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
"default"==D&&"invRound"==C||"fold"==D||"default"==D&&"fold"==C)&&c.lineTo(I,t-ha-I):c.lineTo(0,t-I)};Na.prototype.moveSEInner=function(c,m,v,p,t,C,D,ha,I,va){va?"square"==D||"default"==D&&"square"==C?c.moveTo(p-I,t-I):"rounded"==D||"default"==D&&"rounded"==C||"snip"==D||"default"==D&&"snip"==C?c.moveTo(p-I,t-ha-.5*I):("invRound"==D||"default"==D&&"invRound"==C||"fold"==D||"default"==D&&"fold"==C)&&c.moveTo(p-I,t-ha-I):c.moveTo(p-I,t)};Na.prototype.lineSEInner=function(c,m,v,p,t,C,D,ha,I,va){va?"square"==
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
B(K),K==F)this.hideDialog();else{if(0<K.length){var N=JSON.parse(K);localStorage.setItem(f,JSON.stringify(N))}else localStorage.removeItem(f);this.hideDialog();this.alert(mxResources.get("restartForChangeRequired"))}}catch(H){this.handleError(H)}}),null,mxResources.get("close"),null,null,null,!0,null,null,z,k,u);this.showDialog(d.container,620,460,!0,!1);d.init()};EditorUi.prototype.showBackgroundImageDialog=function(d,f,k,u){d=null!=d?d:mxUtils.bind(this,function(z,B,F,K){B||(z=new ChangePageSetup(this,
u?F:null,z),z.ignoreColor=!u,null!=K&&u&&(z.shadowVisible=K),this.editor.graph.model.execute(z))});d=new BackgroundImageDialog(this,d,f,k,u);this.showDialog(d.container,400,u?240:220,!0,!0);d.init()};EditorUi.prototype.showLibraryDialog=function(d,f,k,u,z){d=new LibraryDialog(this,d,f,k,u,z);this.showDialog(d.container,640,440,!0,!1,mxUtils.bind(this,function(B){B&&null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.showSplash()}));d.init()};var g=EditorUi.prototype.createFormat;EditorUi.prototype.createFormat=
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
m),c.curveTo(0,2*m,p,2*m,p,m),C||(c.stroke(),c.begin()),c.translate(0,m/2),c.moveTo(0,m),c.curveTo(0,2*m,p,2*m,p,m),C||(c.stroke(),c.begin()),c.translate(0,-m);C||(c.moveTo(0,m),c.curveTo(0,-m/3,p,-m/3,p,m),c.lineTo(p,t-m),c.curveTo(p,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=
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
EditorUi.prototype.executeLayout=function(b,e,g){var n=this.editor.graph;n.getModel().beginUpdate();try{b()}catch(y){throw y;}finally{this.allowAnimation&&e&&n.isEnabled()?(b=new mxMorphing(n),b.addListener(mxEvent.DONE,mxUtils.bind(this,function(){n.getModel().endUpdate();null!=g&&g()})),b.startAnimation()):(n.getModel().endUpdate(),null!=g&&g())}};
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
mxSelectionCellsHandler.prototype.getHandledSelectionCells=function(){function x(wa){Q.get(wa)||(Q.put(wa,!0),fa.push(wa))}for(var J=ea.apply(this,arguments),Q=new mxDictionary,Y=this.graph.model,fa=[],la=0;la<J.length;la++){var oa=J[la];this.graph.isTableCell(oa)?x(Y.getParent(Y.getParent(oa))):this.graph.isTableRow(oa)&&x(Y.getParent(oa));x(oa)}return fa};var ca=mxVertexHandler.prototype.isGhostPreview;mxVertexHandler.prototype.isGhostPreview=function(){return ca.apply(this,arguments)&&!this.graph.isTable(this.state.cell)&&
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
this.currentPage;mxUtils.post(d.update,"xml="+encodeURIComponent(mxUtils.getXml(this.editor.getGraphXml())),mxUtils.bind(this,function(ja){ca===this.currentPage&&(200<=ja.getStatus()&&300>=ja.getStatus()?(this.updateDiagram(ja.getText()),ea()):this.handleError({message:mxResources.get("error")+" "+ja.getStatus()}))}),mxUtils.bind(this,function(ja){this.handleError(ja)}))}),ea=mxUtils.bind(this,function(){window.clearTimeout(H);H=window.setTimeout(ka,N)});this.editor.addListener("pageSelected",mxUtils.bind(this,
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
T)/G);return new mxRectangle(this.scale*(this.translate.x+M*R),this.scale*(this.translate.y+W*G),this.scale*(Math.ceil(Math.max(1,L+E.width/this.scale)/R)-M)*R,this.scale*(Math.ceil(Math.max(1,T+E.height/this.scale)/G)-W)*G)};var n=mxGraph.prototype.panGraph;mxGraph.prototype.panGraph=function(E,L){n.apply(this,arguments);this.dialect==mxConstants.DIALECT_SVG||null==this.view.backgroundPageShape||this.useScrollbarsForPanning&&mxUtils.hasScrollbars(this.container)||(this.view.backgroundPageShape.node.style.marginLeft=
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);
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
W.formatElt.style.width)}function e(W,d){function f(z,B){var F=W.menus.get(z);z=k.addMenu(B,mxUtils.bind(this,function(){F.funct.apply(this,arguments)}));z.style.cssText="position:absolute;border-width:1px;cusor:pointer;border-style:none;height:24px;bottom:0px;text-align:center;padding:8px 6px 0 6px;border-top-style:solid;width:50%;height:32px;box-sizing:border-box;font-size:11px;";z.className="geTitle";d.appendChild(z);return z}var k=new Menubar(W,d);if(Editor.enableCustomLibraries&&("1"!=urlParams.embed||
"1"==urlParams.libraries))if(null!=W.actions.get("newLibrary")){var u=document.createElement("div");u.style.cssText="position:absolute;border-width:1px;cusor:pointer;border-style:none;height:24px;bottom:0px;text-align:center;padding:8px 6px 0 6px;border-top-style:solid;width:50%;height:32px;box-sizing:border-box;font-size:11px;";u.className="geTitle";mxUtils.write(u,mxResources.get("newLibrary"));d.appendChild(u);mxEvent.addListener(u,"click",this.actions.get("newLibrary").funct);u=u.cloneNode(!1);
u.style.left="50%";u.style.borderLeftStyle="solid";mxUtils.write(u,mxResources.get("openLibrary"));d.appendChild(u);mxEvent.addListener(u,"click",this.actions.get("openLibrary").funct)}else u=f("newLibrary",mxResources.get("newLibrary")),u.style.fontSize="11px",u.style.left="0",u=f("openLibraryFrom",mxResources.get("openLibraryFrom")),u.style.borderLeftStyle="solid",u.style.fontSize="11px",u.style.left="50%";d.appendChild(W.sidebar.container);d.style.overflow="hidden"}function g(W,d){if(EditorUi.windowed){var f=
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
'")}\n')})(A[aa].name,A[aa].url);U()}else l()};Editor.prototype.addMathCss=function(l){l=l.getElementsByTagName("defs");if(null!=l&&0<l.length)for(var A=document.getElementsByTagName("style"),O=0;O<A.length;O++){var X=mxUtils.getTextContent(A[O]);0>X.indexOf("mxPageSelector")&&0<X.indexOf("MathJax")&&l[0].appendChild(A[O].cloneNode(!0))}};Editor.prototype.addFontCss=function(l,A){A=null!=A?A:this.absoluteCssFonts(this.fontCss);if(null!=A){var O=l.getElementsByTagName("defs"),X=l.ownerDocument;0==
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
"size",this.fixedSize)))):p*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));v=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(0,t),new mxPoint(m,0),new mxPoint(p,0),new mxPoint(p-m,t)],this.isRounded,v,!0);c.end()};mxCellRenderer.registerShape("parallelogram",K);mxUtils.extend(N,mxActor);N.prototype.size=.2;N.prototype.fixedSize=20;N.prototype.isRoundable=function(){return!0};N.prototype.redrawPath=function(c,
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
b.container.scrollLeft)<N&&Math.abs(this.scrollTop-b.container.scrollTop)<N&&Math.abs(this.startX-O.getGraphX())<N&&Math.abs(this.startY-O.getGraphY())<N&&(0<parseFloat(g.chromelessToolbar.style.opacity||0)?k():u(30))}})}this.editor.editable||this.addChromelessClickHandler()}else if(this.editor.extendCanvas){var H=b.view.validate,ka=new mxPoint,ea=null;b.view.validate=function(){if(null!=b.container&&mxUtils.hasScrollbars(b.container)){if(null!=g.currentPage&&ea!=g.currentPage){ea=g.currentPage;var A=
b.getBoundingBoxFromGeometry(b.model.getCells(),!0);null==A&&(A=new mxRectangle(b.view.translate.x*b.view.scale,b.view.translate.y*b.view.scale));A=b.getPageLayout(A,ka,1);var O=b.getDefaultTranslate(A);this.x0=A.x;this.y0=A.y;if(O.x!=this.translate.x||O.y!=this.translate.y)this.invalidate(),this.translate.x=O.x,this.translate.y=O.y}O=b.getPagePadding();var X=b.getPageSize();A=O.x-(this.x0||0)*X.width;O=O.y-(this.y0||0)*X.height;if(this.translate.x!=A||this.translate.y!=O)this.invalidate(),this.translate.x=
A,this.translate.y=O}H.apply(this,arguments)};if(!b.isViewer()){var ca=b.sizeDidChange;b.sizeDidChange=function(){if(null!=this.container&&mxUtils.hasScrollbars(this.container)){this.updateMinimumSize();if(!this.autoTranslate){var A=this.getPageLayout(),O=this.getDefaultTranslate(A),X=this.view.translate.x,U=this.view.translate.y;if(O.x!=X||O.y!=U){this.view.x0=A.x;this.view.y0=A.y;this.autoTranslate=!0;this.view.setTranslate(O.x,O.y);this.container.scrollLeft+=Math.round((O.x-X)*this.view.scale);
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
this.getCursorForMouseEvent=function(S){var da=null==S.state&&null!=S.sourceState&&this.isCellLocked(S.sourceState.cell);return this.getCursorForCell(da?S.sourceState.cell:S.getCell())};var ea=this.getCursorForCell;this.getCursorForCell=function(S){if(!this.isEnabled()||this.isCellLocked(S)){if(null!=this.getClickableLinkForCell(S))return"pointer";if(this.isCellLocked(S))return"default"}return ea.apply(this,arguments)};this.selectRegion=function(S,da){var P=mxEvent.isAltDown(da)?S:null;S=this.getCells(S.x,
S.y,S.width,S.height,null,null,P,null,!0);if(this.isToggleEvent(da))for(P=0;P<S.length;P++)this.selectCellForEvent(S[P],da);else this.selectCellsForEvent(S,da);return S};var ca=this.graphHandler.shouldRemoveCellsFromParent;this.graphHandler.shouldRemoveCellsFromParent=function(S,da,P){return this.graph.isCellSelected(S)?!1:ca.apply(this,arguments)};var ja=this.updateMouseEvent;this.updateMouseEvent=function(S){S=ja.apply(this,arguments);null!=S.state&&this.isCellLocked(this.getLayerForCell(S.getCell()))&&
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
arguments)};this.connectionHandler.insertEdge=function(S,da,P,V,l,A){var O=mxConnectionHandler.prototype.insertEdge.apply(this,arguments);null!=V&&this.graph.applyNewEdgeStyle(V,[O]);return O};var f=new mxRubberband(this);this.getRubberband=function(){return f};var k=(new Date).getTime(),u=0,z=this.connectionHandler.mouseMove;this.connectionHandler.mouseMove=function(){var S=this.currentState;z.apply(this,arguments);S!=this.currentState?(k=(new Date).getTime(),u=0):u=(new Date).getTime()-k};var B=
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
W.apply(this,arguments);if(Editor.enableCustomProperties){for(var A={},O=l.vertices,X=l.edges,U=0;U<O.length;U++)this.findCommonProperties(O[U],A,0==U);for(U=0;U<X.length;U++)this.findCommonProperties(X[U],A,0==O.length&&0==U);null!=Object.getOwnPropertyNames&&0<Object.getOwnPropertyNames(A).length&&this.container.appendChild(this.addProperties(this.createPanel(),A,l))}};var d=StyleFormatPanel.prototype.addStyleOps;StyleFormatPanel.prototype.addStyleOps=function(l){var A=this.editorUi.getSelectionState();
1==A.cells.length?this.addActions(l,["copyStyle","pasteStyle"]):1<=A.cells.length&&this.addActions(l,["pasteStyle","pasteData"]);return d.apply(this,arguments)};EditorUi.prototype.propertiesCollapsed=!0;StyleFormatPanel.prototype.addProperties=function(l,A,O){function X(Ea,Ka,x,J){xa.getModel().beginUpdate();try{var Q=[],Y=[];if(null!=x.index){for(var fa=[],la=x.parentRow.nextSibling;la&&la.getAttribute("data-pName")==Ea;)fa.push(la.getAttribute("data-pValue")),la=la.nextSibling;x.index<fa.length?
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
E.style.overflow="visible";this.graph.fit=function(){};this.graph.sizeDidChange=function(){var k=this.view.graphBounds,u=this.view.translate;E.setAttribute("viewBox",k.x+u.x-this.panDx+" "+(k.y+u.y-this.panDy)+" "+(k.width+1)+" "+(k.height+1));this.container.style.backgroundColor=E.style.backgroundColor;this.fireEvent(new mxEventObject(mxEvent.SIZE,"bounds",k))}}this.graphConfig.move&&(this.graph.isMoveCellsEvent=function(k){return!0});this.lightboxClickEnabled&&(b.style.cursor="pointer");this.editor=
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"}});var n=this.dateFormatCache,y=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,q=/[^-+\dA-Z]/g,E=function(z,B){z=String(z);for(B=B||2;z.length<B;)z="0"+z;return z};1!=arguments.length||"[object String]"!=Object.prototype.toString.call(b)||
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
161==d.charCodeAt(4)&&177==d.charCodeAt(5)&&26==d.charCodeAt(6)&&225==d.charCodeAt(7)||60==d.charCodeAt(0)&&63==d.charCodeAt(1)&&120==d.charCodeAt(2)&&109==d.charCodeAt(3)&&108==d.charCodeAt(3))};var b=EditorUi.prototype.createKeyHandler;EditorUi.prototype.createKeyHandler=function(d){var f=b.apply(this,arguments);if(!this.editor.chromeless||this.editor.editable){var k=f.getFunction,u=this.editor.graph,z=this;f.getFunction=function(B){if(u.isSelectionEmpty()&&null!=z.pages&&0<z.pages.length){var F=
z.getSelectedPageIndex();if(mxEvent.isShiftDown(B)){if(37==B.keyCode)return function(){0<F&&z.movePage(F,F-1)};if(38==B.keyCode)return function(){0<F&&z.movePage(F,0)};if(39==B.keyCode)return function(){F<z.pages.length-1&&z.movePage(F,F+1)};if(40==B.keyCode)return function(){F<z.pages.length-1&&z.movePage(F,z.pages.length-1)}}else if(mxEvent.isControlDown(B)||mxClient.IS_MAC&&mxEvent.isMetaDown(B)){if(37==B.keyCode)return function(){0<F&&z.selectNextPage(!1)};if(38==B.keyCode)return function(){0<
F&&z.selectPage(z.pages[0])};if(39==B.keyCode)return function(){F<z.pages.length-1&&z.selectNextPage(!0)};if(40==B.keyCode)return function(){F<z.pages.length-1&&z.selectPage(z.pages[z.pages.length-1])}}}return!(65<=B.keyCode&&90>=B.keyCode)||u.isSelectionEmpty()||mxEvent.isAltDown(B)||mxEvent.isShiftDown(B)||mxEvent.isControlDown(B)||mxClient.IS_MAC&&mxEvent.isMetaDown(B)?k.apply(this,arguments):null}}return f};var e=EditorUi.prototype.extractGraphModelFromHtml;EditorUi.prototype.extractGraphModelFromHtml=
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
m,v,p,t,D,ab,I,na,Ia,Ha)),c.stroke()):(c.begin(),C.moveSW(c,m,v,p,t,D,Ta,I,Ia),C.paintLeft(c,m,v,p,t,D,Ta,I,Ga),C.lineNWInner(c,m,v,p,t,D,Ta,I,na,Ga,Ha),C.paintLeftInner(c,m,v,p,t,D,ab,I,na,Ia,Ha),c.close(),c.fillAndStroke());c.begin();C.paintFolds(c,m,v,p,t,D,Ta,Xa,Ya,ab,I,Ga,Ja,Ia,Ha);c.stroke()};Na.prototype.moveNW=function(c,m,v,p,t,C,D,ha,I){"square"==D||"default"==D&&"square"==C||!I?c.moveTo(0,0):c.moveTo(0,ha)};Na.prototype.moveNE=function(c,m,v,p,t,C,D,ha,I){"square"==D||"default"==D&&"square"==
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
function(d){if(("simple"==d||"sketch"==d)&&null==this.sketchMainMenuElt){this.sketchMainMenuElt=document.createElement("div");this.sketchMainMenuElt.style.cssText="position:absolute;padding:9px 12px;overflow:hidden;white-space:nowrap;user-select:none;box-sizing:border-box;";var f=this.createMenu("simple"==d?"view":"diagram","simple"==d?Editor.thinViewImage:Editor.menuImage);this.sketchMainMenuElt.appendChild(f);"simple"==d?(this.sketchMainMenuElt.className="geToolbarContainer geSimpleMainMenu",this.sketchMainMenuElt.style.display=
"flex",this.sketchMainMenuElt.style.height="52px",this.sketchMainMenuElt.style.justifyContent="start",this.sketchMainMenuElt.style.alignItems="center",this.sketchMainMenuElt.style.top="0px",this.sketchMainMenuElt.style.left="0px",this.sketchMainMenuElt.style.right="0px",this.sketchMainMenuElt.style.gap="10px",f.style.flexShrink="0",f.style.opacity="0.7"):(this.sketchMainMenuElt.appendChild(this.createMenuItem("delete",Editor.trashImage)),this.sketchMainMenuElt.appendChild(this.createMenuItem("undo",
Editor.undoImage)),this.sketchMainMenuElt.appendChild(this.createMenuItem("redo",Editor.redoImage)),this.sketchMainMenuElt.className="geToolbarContainer",this.sketchMainMenuElt.style.borderRadius="4px",this.sketchMainMenuElt.style.height="44px",this.sketchMainMenuElt.style.left="10px",this.sketchMainMenuElt.style.top="10px",this.sketchMainMenuElt.style.zIndex="1");this.sketchWrapperElt.appendChild(this.sketchMainMenuElt)}};EditorUi.prototype.isPageMenuVisible=function(){return null!=this.pages&&("0"!=
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
DrawioFile.prototype.updateFile=function(b,e,g,n,y){null!=g&&g()||(EditorUi.debug("DrawioFile.updateFile",[this],"immediate",y,"invalidChecksum",this.invalidChecksum),this.ui.getCurrentFile()!=this||this.invalidChecksum?null!=e&&e():this.getLatestVersion(mxUtils.bind(this,function(q){try{null!=g&&g()||(EditorUi.debug("DrawioFile.updateFile",[this],"invalidChecksum",this.invalidChecksum,"latestFile",[q]),this.ui.getCurrentFile()!=this||this.invalidChecksum?null!=e&&e():null!=q?this.mergeFile(q,b,e,
n,y):this.reloadFile(b,e))}catch(E){null!=e&&e(E)}}),e))};
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
this.formatWindow;null!=f?f.window.setVisible(null!=d?d:!this.isFormatPanelVisible()):L.apply(this,arguments)};EditorUi.prototype.toggleShapesPanel=function(d){var f=EditorUi.prototype.hsplitPosition;0==f&&(f=134);var k=this.hsplitPosition,u=mxUtils.bind(this,function(){this.hsplitPosition=z;this.refresh();this.diagramContainer.scrollLeft-=k-this.hsplitPosition}),z=d?f:0;mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform",0==z?"translateX(0)":"translateX(-100%)");0!=z&&u();window.setTimeout(mxUtils.bind(this,
function(){mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform",0==z?"translateX(-100%)":"translateX(0)");mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transition","transform 0.3s ease-in-out");mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform-origin","top left");window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transition",null);mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform",null);mxUtils.setPrefixedStyle(this.sidebarContainer.style,
"transform-origin",null);0==z&&u()}),300)}),10)};EditorUi.prototype.isShapesPanelVisible=function(){return 0<this.hsplitPosition};var T=EditorUi.prototype.isFormatPanelVisible;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=
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
0);B+=parseFloat(M.style[d?mxConstants.STYLE_SOURCE_PERIMETER_SPACING:mxConstants.STYLE_TARGET_PERIMETER_SPACING]||0);f=this.getPerimeterPoint(R,f,0==u&&k,B);0!=u&&(B=Math.cos(u),F=Math.sin(u),f=mxUtils.getRotatedPoint(f,B,F,z));M.setAbsoluteTerminalPoint(this.snapToAnchorPoint(M,R,W,d,f),d)}};mxGraphView.prototype.snapToAnchorPoint=function(M,R,W,d,f){if(null!=R&&null!=M){M=this.graph.getAllConnectionConstraints(R);d=W=null;if(null!=M)for(var k=0;k<M.length;k++){var u=this.graph.getConnectionPoint(R,
M[k]);if(null!=u){var z=(u.x-f.x)*(u.x-f.x)+(u.y-f.y)*(u.y-f.y);if(null==d||z<d)W=u,d=z}}null!=W&&(f=W)}return f};var T=mxStencil.prototype.evaluateTextAttribute;mxStencil.prototype.evaluateTextAttribute=function(M,R,W){var d=T.apply(this,arguments);"1"==M.getAttribute("placeholders")&&null!=W.state&&(d=W.state.view.graph.replacePlaceholders(W.state.cell,d));return d};var G=mxCellRenderer.prototype.createShape;mxCellRenderer.prototype.createShape=function(M){if(null!=M.style&&"undefined"!==typeof pako){var R=
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
0;u^=f}return u};EditorUi.prototype.descriptorChanged=function(){};EditorUi.prototype.restoreLibraries=function(){};EditorUi.prototype.saveLibrary=function(d,f,k,u,z,B,F){};EditorUi.prototype.isScratchpadEnabled=function(){return isLocalStorage||mxClient.IS_CHROMEAPP};EditorUi.prototype.toggleScratchpad=function(){this.isScratchpadEnabled()&&(null==this.scratchpad?StorageFile.getFileContent(this,".scratchpad",mxUtils.bind(this,function(d){null==d&&(d=this.emptyLibraryXml);this.loadLibrary(new StorageLibrary(this,
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
HoverIcons.prototype.createArrow=function(b,e,g){var n=null;n=mxUtils.createImage(b.src);n.style.width=b.width+"px";n.style.height=b.height+"px";n.style.padding=this.tolerance+"px";null!=e&&n.setAttribute("title",e);n.style.position="absolute";n.style.cursor=this.cssCursor;mxEvent.addGestureListeners(n,mxUtils.bind(this,function(y){null==this.currentState||this.isResetEvent(y)||(this.mouseDownPoint=mxUtils.convertPoint(this.graph.container,mxEvent.getClientX(y),mxEvent.getClientY(y)),this.drag(y,
this.mouseDownPoint.x,this.mouseDownPoint.y),this.activeArrow=n,this.setDisplay("none"),mxEvent.consume(y))}));mxEvent.redirectMouseEvents(n,this.graph,this.currentState);mxEvent.addListener(n,"mouseenter",mxUtils.bind(this,function(y){mxEvent.isMouseEvent(y)&&(null!=this.activeArrow&&this.activeArrow!=n&&mxUtils.setOpacity(this.activeArrow,this.inactiveOpacity),this.graph.connectionHandler.constraintHandler.reset(),mxUtils.setOpacity(n,100),this.activeArrow=n,this.fireEvent(new mxEventObject("focus",
"arrow",n,"direction",g,"event",y)))}));mxEvent.addListener(n,"mouseleave",mxUtils.bind(this,function(y){mxEvent.isMouseEvent(y)&&this.fireEvent(new mxEventObject("blur","arrow",n,"direction",g,"event",y));this.graph.isMouseDown||this.resetActiveArrow()}));return n};HoverIcons.prototype.resetActiveArrow=function(){null!=this.activeArrow&&(mxUtils.setOpacity(this.activeArrow,this.inactiveOpacity),this.activeArrow=null)};
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
Editor=function(b,e,g,n,y){mxEventSource.call(this);this.chromeless=null!=b?b:this.chromeless;this.initStencilRegistry();this.graph=n||this.createGraph(e,g);this.editable=null!=y?y:!b;this.undoManager=this.createUndoManager();this.status="";this.getOrCreateFilename=function(){return this.filename||mxResources.get("drawing",[Editor.pageCounter])+".xml"};this.getFilename=function(){return this.filename};this.setStatus=function(q,E){this.status=q;this.statusFunction=E;this.fireEvent(new mxEventObject("statusChanged"))};
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
function(M){y.apply(this,arguments);this.graph.model.isEdge(M.cell)&&1!=M.style[mxConstants.STYLE_CURVED]&&this.updateLineJumps(M)};mxGraphView.prototype.updateLineJumps=function(M){var R=M.absolutePoints;if(Graph.lineJumpsEnabled){var W=null!=M.routedPoints,d=null;if(null!=R&&null!=this.validEdges&&"none"!==mxUtils.getValue(M.style,"jumpStyle","none")){var f=function(ja,ma,Z){var S=new mxPoint(ma,Z);S.type=ja;d.push(S);S=null!=M.routedPoints?M.routedPoints[d.length-1]:null;return null==S||S.type!=
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
"javascript:void(0);"))}};Graph.prototype.createSvgCanvas=function(x){x=new mxSvgCanvas2D(x);x.minStrokeWidth=this.cellRenderer.minSvgStrokeWidth;x.pointerEvents=!0;return x};Graph.prototype.getSelectedTextBlocks=function(){function x(oa){if(oa.firstChild)return oa.firstChild;for(;oa;){if(oa.nextSibling)return oa.nextSibling;oa=oa.parentNode}}function J(oa){var wa=oa.startContainer,sa=oa.endContainer;oa=oa.commonAncestorContainer;var ua=[],Fa;for(Fa=wa.parentNode;Fa&&(ua.push(Fa),Fa!=oa);Fa=Fa.parentNode);
ua.reverse();for(Fa=wa;Fa&&(ua.push(Fa),Fa!=sa);Fa=x(Fa));return ua}var Q=[this.getSelectedElement()];if(window.getSelection){var Y=window.getSelection();Y.getRangeAt&&Y.rangeCount&&(Q=J(Y.getRangeAt(0)))}Y=[];for(var fa=0;fa<Q.length;fa++)for(var la=Q[fa];null!=this.cellEditor.textarea&&this.cellEditor.textarea.contains(la)&&la!=this.cellEditor.textarea&&null!=la.parentNode;)if(la.nodeType==mxConstants.NODETYPE_ELEMENT&&"block"==mxUtils.getCurrentStyle(la).display){0>mxUtils.indexOf(Y,la)&&Y.push(la);
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
oa)*ia,Q)),Fa=-Math.round(Q-mxUtils.mod((la-wa)*ia,Q));ua<La;ua+=Q)for(var Ua=Fa;Ua<$a;Ua+=Q)Ea.drawImage(sa,ua/ia,Ua/ia);Va()}catch(Ra){null!=U&&U(Ra)}};sa.onerror=function(ua){null!=U&&U(ua)};sa.src=J}else Va()}catch(ua){null!=U&&U(ua)}});Ba.onerror=function(Va){null!=U&&U(Va)};ra&&this.graph.addSvgShadow(Da);this.graph.mathEnabled&&this.addMathCss(Da);var ya=mxUtils.bind(this,function(){try{null!=this.resolvedFontCss&&this.addFontCss(Da,this.resolvedFontCss),Ba.src=Editor.createSvgDataUri(mxUtils.getXml(Da))}catch(Va){null!=
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
function W(){mxShape.call(this)}function d(c,m,v,p){mxShape.call(this);this.bounds=c;this.fill=m;this.stroke=v;this.strokewidth=null!=p?p:1}function f(){mxActor.call(this)}function k(){mxCylinder.call(this)}function u(){mxCylinder.call(this)}function z(){mxActor.call(this)}function B(){mxActor.call(this)}function F(){mxActor.call(this)}function K(){mxActor.call(this)}function N(){mxActor.call(this)}function H(){mxActor.call(this)}function ka(){mxActor.call(this)}function ea(c,m){this.canvas=c;this.canvas.setLineJoin("round");
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
"https://fonts.googleapis.com/css?family=";Editor.GUID_ALPHABET="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_";Editor.GUID_LENGTH=20;Editor.guid=function(l){l=null!=l?l:Editor.GUID_LENGTH;for(var A=[],O=0;O<l;O++)A.push(Editor.GUID_ALPHABET.charAt(Math.floor(Math.random()*Editor.GUID_ALPHABET.length)));return A.join("")};Editor.updateStatusInterval=1E4;Editor.prototype.appName="draw.io";Editor.prototype.diagramFileTypes=[{description:"diagramXmlDesc",extension:"drawio",mimeType:"text/xml"},
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.