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
c?c=v:c.add(v))}this.bounds=null!=c?c:new mxRectangle};b.prototype.paintVertexShape=function(c,m,v,p,t){this.paintTableLine(c,this.line,0,0)};b.prototype.paintTableLine=function(c,m,v,p){if(null!=m){var t=null;c.begin();for(var C=0;C<m.length;C++){var D=m[C];null!=D&&(null==t?c.moveTo(D.x+v,D.y+p):null!=t&&c.lineTo(D.x+v,D.y+p));t=D}c.end();c.stroke()}};b.prototype.intersectsRectangle=function(c){var m=!1;if(mxShape.prototype.intersectsRectangle.apply(this,arguments)&&null!=this.line)for(var v=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
d;this.editor.updateGraphComponents();this.editor.graph.refresh();this.editor.graph.defaultMathEnabled=d;this.fireEvent(new mxEventObject("mathEnabledChanged"))};EditorUi.prototype.isMathEnabled=function(d){return this.editor.graph.mathEnabled};EditorUi.prototype.isStandaloneApp=function(){return mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||this.isOfflineApp()};EditorUi.prototype.isOfflineApp=function(){return"1"==urlParams.offline};EditorUi.prototype.isOffline=function(d){return this.isOfflineApp()|| !navigator.onLine||!d&&("1"==urlParams.stealth||"1"==urlParams.lockdown)};EditorUi.prototype.isExternalDataComms=function(){return"1"!=urlParams.offline&&!this.isOffline()&&!this.isOfflineApp()};EditorUi.prototype.createSpinner=function(d,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
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special 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.saveCanvas=function(d,f,k,u,z){var B="jpeg"==k?"jpg":k;u=this.getBaseFilename(u)+(null!=f?".drawio":"")+"."+B;d=this.createImageDataUri(d,f,k,z);this.saveData(u,B,d.substring(d.lastIndexOf(",")+1),"image/"+k,!0)};EditorUi.prototype.isLocalFileSave=function(){return"remote"!=urlParams.save&&(mxClient.IS_IE||"undefined"!==typeof window.Blob&&"undefined"!==typeof window.URL)&&9!=document.documentMode&&8!=document.documentMode&&7!=document.documentMode||this.isOfflineApp()||mxClient.IS_IOS};
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.installResizeHandler=function(b,e,g){e&&(b.window.setSize=function(y,q){if(!this.minimized){var E=window.innerHeight||document.body.clientHeight||document.documentElement.clientHeight;y=Math.min(y,(window.innerWidth||document.body.clientWidth||document.documentElement.clientWidth)-this.getX());q=Math.min(q,E-this.getY())}mxWindow.prototype.setSize.apply(this,arguments)});b.window.setLocation=function(y,q){var E=window.innerWidth||document.body.clientWidth||document.documentElement.clientWidth, L=window.innerHeight||document.body.clientHeight||document.documentElement.clientHeight,T=parseInt(this.div.style.width),G=parseInt(this.div.style.height);y=Math.max(0,Math.min(y,E-T));q=Math.max(0,Math.min(q,L-G));this.getX()==y&&this.getY()==q||mxWindow.prototype.setLocation.apply(this,arguments);e&&!this.minimized&&this.setSize(T,G)};var n=mxUtils.bind(this,function(){var y=b.window.getX(),q=b.window.getY();b.window.setLocation(y,q)});mxEvent.addListener(window,"resize",n);b.destroy=function(){mxEvent.removeListener(window, "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
Editor.prototype.loadFonts=function(l){null!=this.fontCss&&null==this.resolvedFontCss?this.embedCssFonts(this.fontCss,mxUtils.bind(this,function(A){this.resolvedFontCss=A;null!=l&&l()})):null!=l&&l()};Editor.prototype.createGoogleFontCache=function(){var l={},A;for(A in Graph.fontMapping)Graph.isCssFontUrl(A)&&(l[A]=Graph.fontMapping[A]);return l};Editor.prototype.embedExtFonts=function(l){var A=this.graph.getCustomFonts();if(0<A.length){var O=[],X=0;null==this.cachedGoogleFonts&&(this.cachedGoogleFonts=
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.changeHandler=null)}}();(function(){function b(c,m,v){mxShape.call(this);this.line=c;this.stroke=m;this.strokewidth=null!=v?v:1;this.updateBoundsFromLine()}function e(){mxSwimlane.call(this)}function g(){mxSwimlane.call(this)}function n(){mxCylinder.call(this)}function y(){mxConnector.call(this)}function q(){mxCylinder.call(this)}function E(){mxActor.call(this)}function L(){mxCylinder.call(this)}function T(){mxCylinder.call(this)}function G(){mxCylinder.call(this)}function M(){mxCylinder.call(this)}function R(){mxShape.call(this)}
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.getImageForPage=function(b,e,g){g=null!=g?g:this.editor.graph;var n=g.getGlobalVariable,y=this.createTemporaryGraph(g.getStylesheet());y.defaultPageBackgroundColor=g.defaultPageBackgroundColor;y.shapeBackgroundColor=g.shapeBackgroundColor;y.shapeForegroundColor=g.shapeForegroundColor;var q=this.getPageIndex(null!=e?e:this.currentPage);y.getGlobalVariable=function(L){return"pagenumber"==L?q+1:"page"==L&&null!=e?e.getName():n.apply(this,arguments)};document.body.appendChild(y.container); this.updatePageRoot(b);y.model.setRoot(b.root);b=Graph.foreignObjectWarningText;Graph.foreignObjectWarningText="";g=y.getSvg(null,null,null,null,null,null,null,null,null,null,null,!0);var E=y.getGraphBounds();document.body.removeChild(y.container);Graph.foreignObjectWarningText=b;return new mxImage(Editor.createSvgDataUri(mxUtils.getXml(g)),E.width,E.height,E.x,E.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
U.push(A[ia])}}return U};Graph.prototype.getAllTags=function(){return this.getTagsForCells(this.model.getDescendants(this.model.getRoot()))};Graph.prototype.getCommonTagsForCells=function(l){for(var A=null,O=[],X=0;X<l.length;X++){var U=this.getTagsForCell(l[X]);O=[];if(0<U.length){U=U.split(" ");for(var aa={},ba=0;ba<U.length;ba++)if(null==A||null!=A[U[ba]])aa[U[ba]]=!0,O.push(U[ba]);A=aa}else return[]}return O};Graph.prototype.getTagsForCells=function(l){for(var A=[],O={},X=0;X<l.length;X++){var U= this.getTagsForCell(l[X]);if(0<U.length){U=U.split(" ");for(var aa=0;aa<U.length;aa++)null==O[U[aa]]&&(O[U[aa]]=!0,A.push(U[aa]))}}return A};Graph.prototype.getTagsForCell=function(l){return this.getAttributeForCell(l,"tags","")};Graph.prototype.addTagsForCells=function(l,A){if(0<l.length&&0<A.length){this.model.beginUpdate();try{for(var O=0;O<l.length;O++){for(var X=this.getTagsForCell(l[O]),U=X.split(" "),aa=!1,ba=0;ba<A.length;ba++){var ia=mxUtils.trim(A[ba]);""!=ia&&0>mxUtils.indexOf(U,ia)&&(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
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
k():u(100);mxEvent.consume(A)}));mxEvent.addListener(this.chromelessToolbar,"mouseleave",mxUtils.bind(this,function(A){mxEvent.isTouchEvent(A)||u(30)}));var N=b.getTolerance();b.addMouseListener({startX:0,startY:0,scrollLeft:0,scrollTop:0,mouseDown:function(A,O){this.startX=O.getGraphX();this.startY=O.getGraphY();this.scrollLeft=b.container.scrollLeft;this.scrollTop=b.container.scrollTop},mouseMove:function(A,O){},mouseUp:function(A,O){mxEvent.isTouchEvent(O.getEvent())&&Math.abs(this.scrollLeft-
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!=Fa&&(sa[ua].setAttribute("rel",this.linkRelation),sa[ua].setAttribute("href",Fa),null!=J&&mxEvent.addGestureListeners(sa[ua],null,null,J))}});this.model.addListener(mxEvent.CHANGE,Y);Y();var fa=this.container.style.cursor,la=this.getTolerance(),oa=this,wa={currentState:null,currentLink:null,currentTarget:null,highlight:null!=x&&""!=x&&x!=mxConstants.NONE?new mxCellHighlight(oa,x,4):null,startX:0,startY:0,scrollLeft:0,scrollTop:0,updateCurrentState:function(sa){var ua=sa.sourceState;if(null== ua||null==oa.getLinkForCell(ua.cell))sa=oa.getCellAt(sa.getGraphX(),sa.getGraphY(),null,null,null,function(Fa,Ua,Ra){return null==oa.getLinkForCell(Fa.cell)}),ua=null==ua||oa.model.isAncestor(sa,ua.cell)?oa.view.getState(sa):null;ua!=this.currentState&&(null!=this.currentState&&this.clear(),this.currentState=ua,null!=this.currentState&&this.activate(this.currentState))},mouseDown:function(sa,ua){this.startX=ua.getGraphX();this.startY=ua.getGraphY();this.scrollLeft=oa.container.scrollLeft;this.scrollTop=
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);
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=Graph.prototype.shadowId;Graph.prototype.shadowId="lightboxDropShadow";var y=new EditorUi(new Editor(!0),document.createElement("div"),!0);this.darkMode&&y.setDarkMode(!0);y.editor.editBlankUrl=this.editBlankUrl;y.editor.graph.shadowId="lightboxDropShadow";Graph.prototype.shadowId=n;y.refresh=function(){};var q=mxUtils.bind(this,function(W){27==W.keyCode&&y.destroy()}),E=this.initialOverflow,L=y.destroy;y.destroy=function(){null==b&&(mxEvent.removeListener(document.documentElement,"keydown",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
function(l,A,O){if(null!=A){var X=function(aa){if(null!=aa)if(O)for(var ba=0;ba<aa.length;ba++)A[aa[ba].name]=aa[ba];else for(var ia in A){var qa=!1;for(ba=0;ba<aa.length;ba++)if(aa[ba].name==ia&&aa[ba].type==A[ia].type){qa=!0;break}qa||delete A[ia]}},U=this.editorUi.editor.graph.view.getState(l);null!=U&&null!=U.shape&&(U.shape.commonCustomPropAdded||(U.shape.commonCustomPropAdded=!0,U.shape.customProperties=U.shape.customProperties||[],U.cell.vertex?Array.prototype.push.apply(U.shape.customProperties,
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.loadFonts=function(l){null!=this.fontCss&&null==this.resolvedFontCss?this.embedCssFonts(this.fontCss,mxUtils.bind(this,function(A){this.resolvedFontCss=A;null!=l&&l()})):null!=l&&l()};Editor.prototype.createGoogleFontCache=function(){var l={},A;for(A in Graph.fontMapping)Graph.isCssFontUrl(A)&&(l[A]=Graph.fontMapping[A]);return l};Editor.prototype.embedExtFonts=function(l){var A=this.graph.getCustomFonts();if(0<A.length){var O=[],X=0;null==this.cachedGoogleFonts&&(this.cachedGoogleFonts=
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){return n.apply(this,arguments)||this.graph.isEdgeIgnored(x)};var y=mxConnectionHandler.prototype.isCreateTarget;mxConnectionHandler.prototype.isCreateTarget=function(x){return this.graph.isCloneEvent(x)!=y.apply(this,arguments)};mxConstraintHandler.prototype.createHighlightShape=function(){var x=new mxEllipse(null,this.highlightColor,this.highlightColor,0);x.opacity=mxConstants.HIGHLIGHT_OPACITY;return x};mxConnectionHandler.prototype.livePreview=!0;mxConnectionHandler.prototype.cursor=
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
"gray";B.statusContainer.style.cursor="default";var ka=B.hideCurrentMenu;B.hideCurrentMenu=function(){ka.apply(this,arguments);this.editor.graph.popupMenuHandler.hideMenu()};var ea=B.descriptorChanged;B.descriptorChanged=function(){ea.apply(this,arguments);var ia=B.getCurrentFile();if(null!=ia&&null!=ia.getTitle()){var qa=ia.getMode();"google"==qa?qa="googleDrive":"github"==qa?qa="gitHub":"gitlab"==qa?qa="gitLab":"onedrive"==qa&&(qa="oneDrive");qa=mxResources.get(qa);K.setAttribute("title",ia.getTitle()+
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;q.cellEditor.isContentEditing()?document.execCommand("paste",!1,null):E=g.apply(this,arguments);b.updatePasteActionStates();return E};var n=this.editor.graph.cellEditor.startEditing;this.editor.graph.cellEditor.startEditing=function(){n.apply(this,arguments);b.updatePasteActionStates()};var y=this.editor.graph.cellEditor.stopEditing;this.editor.graph.cellEditor.stopEditing=function(q,E){y.apply(this,arguments);b.updatePasteActionStates()};this.updatePasteActionStates()};
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
eb){eb=PrintDialog.createPrintPreview(Pa,pb,ob,0,gb,tb,hb);eb.pageSelector=!1;eb.mathEnabled=!1;Aa.checked&&(eb.isCellVisible=function(vb){return Pa.isCellSelected(vb)});gb=l.getCurrentFile();null!=gb&&(eb.title=gb.getTitle());var Db=eb.writeHead;eb.writeHead=function(vb){Db.apply(this,arguments);mxClient.IS_GC&&(vb.writeln('<style type="text/css">'),vb.writeln("@media print {"),vb.writeln(".MathJax svg { shape-rendering: crispEdges; }"),vb.writeln("}"),vb.writeln("</style>"));null!=l.editor.fontCss&&
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.page&&(this.page=this.ui.currentPage);if(this.page!=this.ui.currentPage){if(null!=this.page.viewState){this.ignoreColor||(this.page.viewState.background=this.color);if(!this.ignoreImage){var l=this.image;null!=l&&null!=l.src&&Graph.isPageLink(l.src)&&(l={originalSrc:l.src});this.page.viewState.backgroundImage=l}null!=this.format&&(this.page.viewState.pageFormat=this.format);null!=this.mathEnabled&&(this.page.viewState.mathEnabled=this.mathEnabled);null!=this.shadowVisible&&(this.page.viewState.shadowVisible= this.shadowVisible)}}else da.apply(this,arguments),null!=this.mathEnabled&&this.mathEnabled!=this.ui.isMathEnabled()&&(this.ui.setMathEnabled(this.mathEnabled),this.mathEnabled=!this.mathEnabled),null!=this.shadowVisible&&this.shadowVisible!=this.ui.editor.graph.shadowVisible&&(this.ui.editor.graph.setShadowVisible(this.shadowVisible),this.shadowVisible=!this.shadowVisible)};Editor.prototype.useCanvasForExport=!1;try{var P=document.createElement("canvas"),V=new Image;V.onload=function(){try{P.getContext("2d").drawImage(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(){var b=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(g){return window.setTimeout(g,20)},e=function(g,n){function y(){this.q=[];this.add=function(k){this.q.push(k)};var d,f;this.call=function(){d=0;for(f=this.q.length;d<f;d++)this.q[d].call()}}function q(d,f){return d.currentStyle?d.currentStyle[f]:window.getComputedStyle?window.getComputedStyle(d,null).getPropertyValue(f):d.style[f]}function E(d,f){if(!d.resizedAttached)d.resizedAttached=
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
U.push(A[ia])}}return U};Graph.prototype.getAllTags=function(){return this.getTagsForCells(this.model.getDescendants(this.model.getRoot()))};Graph.prototype.getCommonTagsForCells=function(l){for(var A=null,O=[],X=0;X<l.length;X++){var U=this.getTagsForCell(l[X]);O=[];if(0<U.length){U=U.split(" ");for(var aa={},ba=0;ba<U.length;ba++)if(null==A||null!=A[U[ba]])aa[U[ba]]=!0,O.push(U[ba]);A=aa}else return[]}return O};Graph.prototype.getTagsForCells=function(l){for(var A=[],O={},X=0;X<l.length;X++){var U=
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
"change",K);mxEvent.addListener(q,"change",K);mxEvent.addListener(L,"change",function(N){B="custom"==L.value;K(N,!0)});K();return{set:function(N){g=N;y(null,null,!0)},get:function(){return F},widthInput:R,heightInput:W}};
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
type:"bool",getDefaultValue:function(l,A){var O=1==l.vertices.length&&0==l.edges.length?l.vertices[0]:null;A=A.editorUi.editor.graph;return null!=O&&(A.isContainer(O)&&"0"!=l.style.collapsible||!A.isContainer(O)&&"1"==l.style.collapsible)},isVisible:function(l,A){return 1==l.vertices.length&&0==l.edges.length}},{name:"recursiveResize",dispName:"Resize Children",type:"bool",defVal:!0,isVisible:function(l,A){return 1==l.vertices.length&&0==l.edges.length&&!A.editorUi.editor.graph.isSwimlane(l.vertices[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
J){var Q=null!=J&&mxEvent.isShiftDown(J);if(Q||null!=window.getSelection&&null!=window.getSelection().containsNode){var Y=!0;this.graph.processElements(this.textarea,function(fa){Q||window.getSelection().containsNode(fa,!0)?(fa.removeAttribute("align"),fa.style.textAlign=null):Y=!1});Y&&this.graph.cellEditor.setAlign(x)}document.execCommand("justify"+x.toLowerCase(),!1,null)};mxCellEditor.prototype.saveSelection=function(){if(window.getSelection){var x=window.getSelection();if(x.getRangeAt&&x.rangeCount){for(var J= [],Q=0,Y=x.rangeCount;Q<Y;++Q)J.push(x.getRangeAt(Q));return J}}else if(document.selection&&document.selection.createRange)return document.selection.createRange();return null};mxCellEditor.prototype.restoreSelection=function(x){try{if(x)if(window.getSelection){sel=window.getSelection();sel.removeAllRanges();for(var J=0,Q=x.length;J<Q;++J)sel.addRange(x[J])}else document.selection&&x.select&&x.select()}catch(Y){}};var u=mxCellRenderer.prototype.initializeLabel;mxCellRenderer.prototype.initializeLabel=
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.createRoughCanvas=function(l){var A=rough.canvas({getContext:function(){return l}});A.draw=function(O){var X=O.sets||[];O=O.options||this.getDefaultOptions();for(var U=0;U<X.length;U++){var aa=X[U];switch(aa.type){case "path":null!=O.stroke&&this._drawToContext(l,aa,O);break;case "fillPath":this._drawToContext(l,aa,O);break;case "fillSketch":this.fillSketch(l,aa,O)}}};A.fillSketch=function(O,X,U){var aa=l.state.strokeColor,ba=l.state.strokeWidth,ia=l.state.strokeAlpha,qa=l.state.dashed,ra= U.fillWeight;0>ra&&(ra=U.strokeWidth/2);l.setStrokeAlpha(l.state.fillAlpha);l.setStrokeColor(U.fill||"");l.setStrokeWidth(ra);l.setDashed(!1);this._drawToContext(O,X,U);l.setDashed(qa);l.setStrokeWidth(ba);l.setStrokeColor(aa);l.setStrokeAlpha(ia)};A._drawToContext=function(O,X,U){O.begin();for(var aa=0;aa<X.ops.length;aa++){var ba=X.ops[aa],ia=ba.data;switch(ba.op){case "move":O.moveTo(ia[0],ia[1]);break;case "bcurveTo":O.curveTo(ia[0],ia[1],ia[2],ia[3],ia[4],ia[5]);break;case "lineTo":O.lineTo(ia[0], ia[1])}}O.end();"fillPath"===X.type&&U.filled?O.fill():O.stroke()};return A};(function(){function l(aa,ba,ia){this.canvas=aa;this.rc=ba;this.shape=ia;this.canvas.setLineJoin("round");this.canvas.setLineCap("round");this.originalBegin=this.canvas.begin;this.canvas.begin=mxUtils.bind(this,l.prototype.begin);this.originalEnd=this.canvas.end;this.canvas.end=mxUtils.bind(this,l.prototype.end);this.originalRect=this.canvas.rect;this.canvas.rect=mxUtils.bind(this,l.prototype.rect);this.originalRoundrect=
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.getValue(J,mxConstants.STYLE_ELBOW,mxConstants.ELBOW_HORIZONTAL)==mxConstants.ELBOW_HORIZONTAL?mxConstants.ELBOW_VERTICAL:mxConstants.ELBOW_HORIZONTAL;this.setCellStyles(mxConstants.STYLE_ELBOW,J,[x])}};Graph.prototype.isValidRoot=function(x){for(var J=this.model.getChildCount(x),Q=0,Y=0;Y<J;Y++){var fa=this.model.getChildAt(x,Y);this.model.isVertex(fa)&&(fa=this.getCellGeometry(fa),null==fa||fa.relative||Q++)}return 0<Q||this.isContainer(x)};Graph.prototype.isValidDropTarget=function(x,J, Q){for(var Y=this.getCurrentCellStyle(x),fa=!0,la=!0,oa=0;oa<J.length&&la;oa++)fa=fa&&this.isTable(J[oa]),la=la&&this.isTableRow(J[oa]);return!this.isCellLocked(x)&&(1==J.length&&null!=Q&&mxEvent.isShiftDown(Q)&&!mxEvent.isControlDown(Q)&&!mxEvent.isAltDown(Q)||this.isTargetShape(x,J,Q)||("1"!=mxUtils.getValue(Y,"part","0")||this.isContainer(x))&&"0"!=mxUtils.getValue(Y,"dropTarget","1")&&(mxGraph.prototype.isValidDropTarget.apply(this,arguments)||this.isContainer(x))&&!this.isTableRow(x)&&(!this.isTable(x)|| la||fa))};Graph.prototype.createGroupCell=function(){var x=mxGraph.prototype.createGroupCell.apply(this,arguments);x.setStyle("group");return x};Graph.prototype.isExtendParentsOnAdd=function(x){var J=mxGraph.prototype.isExtendParentsOnAdd.apply(this,arguments);if(J&&null!=x&&null!=this.layoutManager){var Q=this.model.getParent(x);null!=Q&&(Q=this.layoutManager.getLayout(Q),null!=Q&&Q.constructor==mxStackLayout&&(J=!1))}return J};Graph.prototype.getPreferredSizeForCell=function(x){var J=mxGraph.prototype.getPreferredSizeForCell.apply(this,
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.getPngFileProperties=function(d){var f=1,k=0;if(null!=d){if(d.hasAttribute("scale")){var u=parseFloat(d.getAttribute("scale"));!isNaN(u)&&0<u&&(f=u)}d.hasAttribute("border")&&(u=parseInt(d.getAttribute("border")),!isNaN(u)&&0<u&&(k=u))}return{scale:f,border:k}};EditorUi.prototype.getEmbeddedPng=function(d,f,k,u,z){try{var B=this.editor.graph,F=null!=B.themes&&"darkTheme"==B.defaultThemeName,K=null;if(null!=k&&0<k.length)B=this.createTemporaryGraph(F?B.getDefaultStylesheet():B.getStylesheet()),
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
qa);B.editor.addListener("resetGraphView",qa);B.editor.addListener("pageSelected",qa);B.editor.graph.addListener("zoomPreview",mxUtils.bind(this,function(ra,pa){qa(ra,pa,pa.getProperty("factor"))}))})(aa);var ba=B.setGraphEnabled;B.setGraphEnabled=function(){ba.apply(this,arguments);null!=this.tabContainer&&(aa.style.visibility=this.tabContainer.style.visibility,this.diagramContainer.style.bottom="0"!=urlParams.pages&&"hidden"!=this.tabContainer.style.visibility?this.tabContainerHeight+"px":"0px")}}z.appendChild(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
if(W==g.getChildAt(n,q+T)&&null!=d&&1==mxUtils.getValue(d.style,"colspan",1)&&1==mxUtils.getValue(d.style,"rowspan",1))T++;else break}M==G*T-1&&(b.mergeCell=e[0],b.colspan=T,b.rowspan=G)}}};EditorUi.prototype.windowResized=function(){window.setTimeout(mxUtils.bind(this,function(){null!=this.editor.graph&&this.refresh()}),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
F.freehand){var ma=F.freehand.createStyle;F.freehand.createStyle=function(ia){return ma.apply(this,arguments)+"sketch=0;"}}B.editor.addListener("statusChanged",mxUtils.bind(this,function(){B.setStatusText(B.editor.getStatus())}));B.setStatusText(B.editor.getStatus());var Z=B.menus.get("viewZoom");if(null!=Z){var S=function(ia){if(mxEvent.isAltDown(ia))B.hideCurrentMenu(),B.actions.get("customZoom").funct(),mxEvent.consume(ia);else if("geMenuItem"==mxEvent.getSource(ia).className||mxEvent.isShiftDown(ia))B.hideCurrentMenu(), B.actions.get("smartFit").funct(),mxEvent.consume(ia)},da=B.actions.get("zoomIn"),P=B.actions.get("zoomOut"),V=B.actions.get("resetView"),l=B.actions.get("undo"),A=B.actions.get("redo"),O=d("",l.funct,null,mxResources.get("undo")+" ("+l.shortcut+")",l,Editor.undoImage),X=d("",A.funct,null,mxResources.get("redo")+" ("+A.shortcut+")",A,Editor.redoImage),U=d("",S,!0,mxResources.get("fit")+" ("+Editor.ctrlKey+"+H)",V,Editor.zoomFitImage);K.style.cssText="position:absolute;left:0px;right:0px;top:0px;height:30px;padding:8px;text-align:left;white-space:nowrap;";
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!=G){var M=new ConnectionPointsDialog(n,G);n.showDialog(M.container,350,450,!0,!1,function(){M.destroy()});M.init()}},null,null,"Alt+Shift+Q").isEnabled=E};Actions.prototype.addAction=function(b,e,g,n,y){if("..."==b.substring(b.length-3)){b=b.substring(0,b.length-3);var q=mxResources.get(b)+"..."}else q=mxResources.get(b);return this.put(b,new Action(q,e,g,n,y))};Actions.prototype.put=function(b,e){return this.actions[b]=e};Actions.prototype.get=function(b){return this.actions[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
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, d,".scratchpad"))})):this.closeLibrary(this.scratchpad))};EditorUi.prototype.createLibraryDataFromImages=function(d){if(!Editor.defaultCompressed)for(var f=0;f<d.length;f++)null!=d[f].xml&&"<"!=d[f].xml.charAt(0)&&(d[f].xml=mxUtils.trim(Graph.decompress(d[f].xml)));f=mxUtils.createXmlDocument();var k=f.createElement("mxlibrary");mxUtils.setTextContent(k,JSON.stringify(d,null,2));f.appendChild(k);return mxUtils.getXml(f,"\n")};EditorUi.prototype.closeLibrary=function(d){null!=d&&(this.removeLibrarySidebar(d.getHash()),
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
U&&U(Va)}});this.embedExtFonts(mxUtils.bind(this,function(Va){try{null!=Va&&this.addFontCss(Da,Va),this.loadFonts(ya)}catch(Wa){null!=U&&U(Wa)}}))}catch(Va){null!=U&&U(Va)}}),O,pa)}catch(Da){null!=U&&U(Da)}};Editor.crcTable=[];for(var y=0;256>y;y++)for(var q=y,E=0;8>E;E++)q=1==(q&1)?3988292384^q>>>1:q>>>1,Editor.crcTable[y]=q;Editor.updateCRC=function(l,A,O,X){for(var U=0;U<X;U++)l=Editor.crcTable[(l^A.charCodeAt(O+U))&255]^l>>>8;return l};Editor.crc32=function(l){for(var A=-1,O=0;O<l.length;O++)A= A>>>8^Editor.crcTable[(A^l.charCodeAt(O))&255];return(A^-1)>>>0};Editor.writeGraphModelToPng=function(l,A,O,X,U){function aa(pa,xa){var Ca=qa;qa+=xa;return pa.substring(Ca,qa)}function ba(pa){pa=aa(pa,4);return pa.charCodeAt(3)+(pa.charCodeAt(2)<<8)+(pa.charCodeAt(1)<<16)+(pa.charCodeAt(0)<<24)}function ia(pa){return String.fromCharCode(pa>>24&255,pa>>16&255,pa>>8&255,pa&255)}l=l.substring(l.indexOf(",")+1);l=window.atob?atob(l):Base64.decode(l,!0);var qa=0;if(aa(l,8)!=String.fromCharCode(137)+"PNG"+
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.addTabListeners=function(b,e){mxEvent.disableContextMenu(e);var g=this.editor.graph;mxEvent.addListener(e,"dblclick",mxUtils.bind(this,function(T){this.renamePage(b);mxEvent.consume(T)}));var n=document.createElement("div");n.className="geTabMenuButton";n.style.backgroundImage="url("+mxWindow.prototype.minimizeImage+")";n.style.backgroundPosition="center center";n.style.backgroundRepeat="no-repeat";n.style.backgroundSize="10px";e.appendChild(n);var y=!1,q=!1,E=mxUtils.bind(this, function(T){y=null!=this.currentMenu;q=b==this.currentPage;g.isMouseDown||q||this.selectPage(b);this.scrollToPage()}),L=mxUtils.bind(this,function(T){if(g.isEnabled()&&!g.isMouseDown&&(q&&(mxEvent.isTouchEvent(T)||mxEvent.getSource(T)==n)||mxEvent.isPopupTrigger(T))&&(g.popupMenuHandler.hideMenu(),this.hideCurrentMenu(),!mxEvent.isTouchEvent(T)||!y)){var G=new mxPopupMenu(this.createPageMenu(b));G.div.className+=" geMenubarMenu";G.smartSeparators=!0;G.showDisabled=!0;G.autoExpand=!0;G.hideMenu=mxUtils.bind(this, function(){mxPopupMenu.prototype.hideMenu.apply(G,arguments);this.resetCurrentMenu();G.destroy()});var M=mxEvent.getClientX(T),R=mxEvent.getClientY(T);G.popup(M,R,null,T);this.setCurrentMenu(G,e)}mxEvent.consume(T)});mxEvent.addGestureListeners(n,E,null,L);mxEvent.addGestureListeners(e,E,null,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
EditorUi.prototype.createImageForPageLink=function(b,e,g){var n=b.indexOf(","),y=null;0<n&&(n=this.getPageById(b.substring(n+1)),null!=n&&n!=e&&(y=this.getImageForPage(n,e,g),y.originalSrc=b));null==y&&(y={originalSrc:b});return 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
0,z.x,z.y));null!=z&&u.appendChild(this.sidebar.createVertexTemplateFromCells([k],z.width,z.height,"",!0,!1,null,!1,mxUtils.bind(this,function(B){if(!mxEvent.isShiftDown(B)||null==g&&R.isSelectionEmpty()){var F=R.cloneCell(k);if(null!=n)n(F);else{var K=T([F]);R.model.isEdge(F)?F.geometry.translate(K.x,K.y):(F.geometry.x=K.x,F.geometry.y=K.y);R.model.beginUpdate();try{R.addCell(F),R.model.isVertex(F)&&R.isAutoSizeCell(F)&&R.updateCellSize(F)}finally{R.model.endUpdate()}R.setSelectionCell(F);R.scrollCellToVisible(F); M&&R.startEditing(F);null!=d.hoverIcons&&d.hoverIcons.update(R.view.getState(F))}}else F=R.getEditableCells(null!=g?[g]:R.getSelectionCells()),R.updateShapes(k,F);null!=q&&q(B);mxEvent.consume(B)}),25,25,null,null,g))});for(G=0;G<(L?Math.min(E.length,4):E.length);G++)y(E[G]);E=W.offsetTop+W.clientHeight-(R.container.scrollTop+R.container.offsetHeight);0<E&&(W.style.top=Math.max(R.container.scrollTop+22,e-E)+"px");E=W.offsetLeft+W.clientWidth-(R.container.scrollLeft+R.container.offsetWidth);0<E&&(W.style.left=
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.getChildCells(Q,!0);if(1>=fa.length)J.remove(Q);else{this.isTableRow(Y)||(Y=fa[fa.length-1]);J.remove(Y);x=0;var la=this.getCellGeometry(Y);null!=la&&(x=la.height);var oa=this.getCellGeometry(Q);null!=oa&&(oa=oa.clone(),oa.height-=x,J.setGeometry(Q,oa))}}finally{J.endUpdate()}};Graph.prototype.insertRow=function(x,J){for(var Q=x.tBodies[0],Y=Q.rows[0].cells,fa=x=0;fa<Y.length;fa++){var la=Y[fa].getAttribute("colspan");x+=null!=la?parseInt(la):1}J=Q.insertRow(J);for(fa=0;fa<x;fa++)mxUtils.br(J.insertCell(-1)); 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
function(){d(N.checked,H.checked,ka.checked,ea.checked,ca.getLink(),Z.checked)}),null,mxResources.get("embed"),z);this.showDialog(f.container,280,300,!0,!0)};EditorUi.prototype.createEmbedImage=function(d,f,k,u,z,B,F,K){function N(ja){var ma=" ",Z="";u&&(ma=" onclick=\"(function(img){if(img.wnd!=null&&!img.wnd.closed){img.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==img.wnd){img.wnd.postMessage(decodeURIComponent(img.getAttribute('src')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);img.wnd=window.open('"+ EditorUi.lightboxHost+"/?client=1"+(null!=ka?"&page="+ka:"")+(z?"&edit=_blank":"")+(B?"&layers=1":"")+"');}})(this);\"",Z+="cursor:pointer;");d&&(Z+="max-width:100%;");var S="";k&&(S=' width="'+Math.round(H.width)+'" height="'+Math.round(H.height)+'"');F('<img src="'+ja+'"'+S+(""!=Z?' style="'+Z+'"':"")+ma+"/>")}var H=this.editor.graph.getGraphBounds(),ka=this.getSelectedPageIndex();if(this.isExportToCanvas())this.editor.exportToCanvas(mxUtils.bind(this,function(ja){var ma=u?this.getFileData(!0):
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
mxEdgeHandler.prototype.snapToTerminals=!0;mxGraphHandler.prototype.guidesEnabled=!0;mxGraphHandler.prototype.removeEmptyParents=!0;mxRubberband.prototype.fadeOut=!0;mxGuide.prototype.isEnabledForEvent=function(x){return!mxEvent.isAltDown(x)};var g=mxGraphLayout.prototype.isVertexIgnored;mxGraphLayout.prototype.isVertexIgnored=function(x){return g.apply(this,arguments)||this.graph.isTableRow(x)||this.graph.isTableCell(x)};var n=mxGraphLayout.prototype.isEdgeIgnored;mxGraphLayout.prototype.isEdgeIgnored=
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.prototype.redrawPath=function(c,m,v,p,t){c.setStrokeWidth(1);c.setFillColor(this.stroke);m=p/5;c.rect(0,0,m,t);c.fillAndStroke();c.rect(2*m,0,m,t);c.fillAndStroke();c.rect(4*m,0,m,t);c.fillAndStroke()};mxCellRenderer.registerShape("parallelMarker",ka);ea.prototype.moveTo=function(c,m){this.originalMoveTo.apply(this.canvas,arguments);this.lastX=c;this.lastY=m;this.firstX=c;this.firstY=m};ea.prototype.close=function(){null!=this.firstX&&null!=this.firstY&&(this.lineTo(this.firstX,this.firstY),this.originalClose.apply(this.canvas, arguments));this.originalClose.apply(this.canvas,arguments)};ea.prototype.quadTo=function(c,m,v,p){this.originalQuadTo.apply(this.canvas,arguments);this.lastX=v;this.lastY=p};ea.prototype.curveTo=function(c,m,v,p,t,C){this.originalCurveTo.apply(this.canvas,arguments);this.lastX=t;this.lastY=C};ea.prototype.arcTo=function(c,m,v,p,t,C,D){this.originalArcTo.apply(this.canvas,arguments);this.lastX=C;this.lastY=D};ea.prototype.lineTo=function(c,m){if(null!=this.lastX&&null!=this.lastY){var v=function(na){return"number"===
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=PROXY_URL+"?url="+encodeURIComponent(l)+"&"+O+(A?"&base64=1":"")}return l};Editor.prototype.isCorsEnabledForUrl=function(l){if(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||l.substring(0,window.location.origin.length)==window.location.origin)return!0;null!=urlParams.cors&&null==this.corsRegExp&&(this.corsRegExp=new RegExp(decodeURIComponent(urlParams.cors)));return null!=this.corsRegExp&&this.corsRegExp.test(l)||"https://raw.githubusercontent.com/"===l.substring(0,34)||"https://fonts.googleapis.com/"=== l.substring(0,29)||"https://fonts.gstatic.com/"===l.substring(0,26)};Editor.prototype.createImageUrlConverter=function(){var l=new mxUrlConverter;l.updateBaseUrl();var A=l.convert,O=this;l.convert=function(X){if(null!=X){var U="http://"==X.substring(0,7)||"https://"==X.substring(0,8);U&&!navigator.onLine?X=Editor.svgBrokenImage.src:!U||X.substring(0,l.baseUrl.length)==l.baseUrl||O.crossOriginImages&&O.isCorsEnabledForUrl(X)?"chrome-extension://"==X.substring(0,19)||mxClient.IS_CHROMEAPP||(X=A.apply(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
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
mxEvent.addListener(e,"mouseenter",mxUtils.bind(this,function(ea){q(100)}));mxEvent.addListener(e,"mousemove",mxUtils.bind(this,function(ea){q(100);mxEvent.consume(ea)}));mxEvent.addListener(e,"mouseleave",mxUtils.bind(this,function(ea){mxEvent.isTouchEvent(ea)||q(30)}));var E=this.graph,L=E.getTolerance();E.addMouseListener({startX:0,startY:0,scrollLeft:0,scrollTop:0,mouseDown:function(ea,ca){this.startX=ca.getGraphX();this.startY=ca.getGraphY();this.scrollLeft=E.container.scrollLeft;this.scrollTop= E.container.scrollTop},mouseMove:function(ea,ca){},mouseUp:function(ea,ca){mxEvent.isTouchEvent(ca.getEvent())&&Math.abs(this.scrollLeft-E.container.scrollLeft)<L&&Math.abs(this.scrollTop-E.container.scrollTop)<L&&Math.abs(this.startX-ca.getGraphX())<L&&Math.abs(this.startY-ca.getGraphY())<L&&(0<parseFloat(e.style.opacity||0)?y():q(30))}})}for(var T=this.toolbarItems,G=0,M=mxUtils.bind(this,function(ea,ca,ja,ma){ea=this.createToolbarButton(ea,ca,ja,ma);e.appendChild(ea);G++;return ea}),R=null,W=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
B&&u.apply(this,arguments)}),N=mxUtils.bind(this,function(){window.clearTimeout(F);B&&z.apply(this,arguments)});k=k||{};k.callbackId=this.remoteInvokeCallbacks.length;this.remoteInvokeCallbacks.push({callback:K,error:N});d=JSON.stringify({event:"remoteInvoke",funtionName:d,functionArgs:f,msgMarkers:k});null!=this.remoteWin?this.remoteWin.postMessage(d,"*"):this.remoteInvokeQueue.push(d)};EditorUi.prototype.handleRemoteInvoke=function(d,f){var k=mxUtils.bind(this,function(H,ka){var ea={event:"remoteInvokeResponse", msgMarkers:d.msgMarkers};null!=ka?ea.error={errResp:ka}:null!=H&&(ea.resp=H);this.remoteWin.postMessage(JSON.stringify(ea),"*")});try{var u=d.funtionName,z=this.remoteInvokableFns[u];if(null!=z&&"function"===typeof this[u]){if(z.allowedDomains){for(var B=!1,F=0;F<z.allowedDomains.length;F++)if(f=="https://"+z.allowedDomains[F]){B=!0;break}if(!B){k(null,"Invalid Call: "+u+" is not allowed.");return}}var K=d.functionArgs;Array.isArray(K)||(K=[]);if(z.isAsync)K.push(function(){k(Array.prototype.slice.apply(arguments))}), K.push(function(H){k(null,H||"Unkown Error")}),this[u].apply(this,K);else{var N=this[u].apply(this,K);k([N])}}else k(null,"Invalid Call: "+u+" is not found.")}catch(H){k(null,"Invalid Call: An error occurred, "+H.message)}};EditorUi.prototype.openDatabase=function(d,f){if(null==this.database){var k=window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB;if(null!=k)try{var u=k.open("database",2);u.onupgradeneeded=function(z){try{var B=u.result;1>z.oldVersion&&B.createObjectStore("objects",{keyPath:"key"});
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.createSelectionState=function(){for(var b=this.editor.graph,e=b.getSelectionCells(),g=this.initSelectionState(),n=!0,y=0;y<e.length;y++){var q=b.getCurrentCellStyle(e[y]);"0"!=mxUtils.getValue(q,mxConstants.STYLE_EDITABLE,"1")&&(this.updateSelectionStateForCell(g,e[y],e,n),n=!1)}this.updateSelectionStateForTableCells(g);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
Graph=function(b,e,g,n,y,q){mxGraph.call(this,b,e,g,n);this.themes=y||this.defaultThemes;this.currentEdgeStyle=mxUtils.clone(this.defaultEdgeStyle);this.currentVertexStyle=mxUtils.clone(this.defaultVertexStyle);this.standalone=null!=q?q:!1;b=this.baseUrl;e=b.indexOf("//");this.domainPathUrl=this.domainUrl="";0<e&&(e=b.indexOf("/",e+2),0<e&&(this.domainUrl=b.substring(0,e)),e=b.lastIndexOf("/"),0<e&&(this.domainPathUrl=b.substring(0,e+1)));this.isHtmlLabel=function(S){S=this.getCurrentCellStyle(S); return null!=S?"1"==S.html||"wrap"==S[mxConstants.STYLE_WHITE_SPACE]:!1};if(this.immediateHandling){var E=null,L=null,T=null,G=null,M=!1;this.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(S,da){if("mouseDown"==da.getProperty("eventName")&&this.isEnabled()){S=da.getProperty("event");var P=S.getState();da=this.view.scale;if(!mxEvent.isAltDown(S.getEvent())&&null!=P&&!this.panningHandler.isActive()&&!mxEvent.isControlDown(S.getEvent())){var V=this.selectionCellsHandler.getHandler(P.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
function(c,m,v,p,t){mxEllipse.prototype.paintVertexShape.apply(this,arguments);c.setShadow(!1);c.begin();"vertical"==mxUtils.getValue(this.style,"line")?(c.moveTo(m+p/2,v),c.lineTo(m+p/2,v+t)):(c.moveTo(m,v+t/2),c.lineTo(m+p,v+t/2));c.end();c.stroke()};mxCellRenderer.registerShape("lineEllipse",ua);mxUtils.extend(Fa,mxActor);Fa.prototype.redrawPath=function(c,m,v,p,t){m=Math.min(p,t/2);c.moveTo(0,0);c.lineTo(p-m,0);c.quadTo(p,0,p,t/2);c.quadTo(p,t,p-m,t);c.lineTo(0,t);c.close();c.end()};mxCellRenderer.registerShape("delay",
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,m,.5*(v+p)));c.push(new mxConnectionConstraint(new mxPoint(1,1),!1));c.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));c.push(new mxConnectionConstraint(new mxPoint(0,1),!1));c.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));m>=2*p&&c.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));return c};z.prototype.getConstraints=function(c,m,v){c=[];var p=Math.max(0,Math.min(m,Math.min(v,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));c.push(new mxConnectionConstraint(new mxPoint(1, 0),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(m+p),0));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,p,0));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*p,.5*p));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,p));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.5*(v+p)));c.push(new mxConnectionConstraint(new mxPoint(0,1),!1));c.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));c.push(new mxConnectionConstraint(new mxPoint(1, 1),!1));c.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));m>=2*p&&c.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));return c};n.prototype.getConstraints=function(c,m,v){c=[];var p=Math.max(0,Math.min(m,Math.min(v,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(m-p),0));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,m-p,0));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
function(S){try{f(S.target.result)}catch(da){K({message:mxResources.get("errorLoadingFile")})}});Z.readAsText(ma)}else this.doImportVisio(ma,f,K,u)}catch(S){K(S)}else try{""==ja.responseType||"text"==ja.responseType?K({message:ja.responseText}):(Z=new FileReader,Z.onload=function(){try{K({message:JSON.parse(Z.result).Message})}catch(S){K(S)}},Z.readAsText(ja.response))}catch(S){K({})}});ja.send(H)}else if(F.clear())try{this.doImportVisio(d,f,K,u)}catch(ma){K(ma)}}else K({message:mxResources.get("serviceUnavailableOrBlocked")})});
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
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
PrintDialog.createPrintPreview=function(b,e,g,n,y,q,E){e=new mxPrintPreview(b,e,g,n,y,q);e.title=mxResources.get("preview");e.addPageCss=!mxClient.IS_SF;e.printBackgroundImage=!0;e.autoOrigin=E;b=b.background;if(null==b||""==b||b==mxConstants.NONE)b="#ffffff";e.backgroundColor=b;var L=e.writeHead;e.writeHead=function(T){L.apply(this,arguments);T.writeln('<style type="text/css">');T.writeln("@media screen {");T.writeln(" body > div { padding:30px;box-sizing:content-box; }");T.writeln("}");T.writeln("</style>")}; return e};PrintDialog.previewEnabled=!0;
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.canvas.curveTo=this.originalCurveTo;this.canvas.arcTo=this.originalArcTo;this.canvas.close=this.originalClose;this.canvas.fill=this.originalFill;this.canvas.stroke=this.originalStroke;this.canvas.fillAndStroke=this.originalFillAndStroke;this.canvas.begin=this.originalBegin;this.canvas.end=this.originalEnd;this.canvas.rect=this.originalRect;this.canvas.ellipse=this.originalEllipse;this.canvas.roundrect=this.originalRoundrect};mxShape.prototype.createRoughCanvas=function(aa){return new l(aa,Editor.createRoughCanvas(aa), this)};var A=mxShape.prototype.createHandJiggle;mxShape.prototype.createHandJiggle=function(aa){return this.outline||null==this.style||"0"==mxUtils.getValue(this.style,"sketch","0")?A.apply(this,arguments):"comic"==mxUtils.getValue(this.style,"sketchStyle","rough")?this.createComicCanvas(aa):this.createRoughCanvas(aa)};var O=mxImageShape.prototype.paintVertexShape;mxImageShape.prototype.paintVertexShape=function(aa,ba,ia,qa,ra){null!=aa.handJiggle&&aa.handJiggle.passThrough||O.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
u.getAttribute("placeholders"));null!=G&&mxEvent.isShiftDown(G)||k.setAttribute("label",q.convertValueToString(f));W.setValue(f,k)}G=null!=M?M:G;var W=q.getModel();if(q.isEnabled()&&!q.isSelectionEmpty()&&null!=n.copiedValue){W.beginUpdate();try{var d=q.getEditableCells(q.getSelectionCells());if(0==d.length)R(W.getRoot(),n.copiedValue);else for(M=0;M<d.length;M++)R(d[M],n.copiedValue)}finally{W.endUpdate()}}},null,null,"Alt+Shift+E");this.addAction("delete",function(G,M){G=null!=M?M:G;null!=G&&mxEvent.isShiftDown(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
mxUtils.bind(this,function(){this.isEnabled()&&(this.container.style.cursor=N)}));this.popupMenuHandler.autoExpand=!0;this.popupMenuHandler.isSelectOnPopup=function(S){return mxEvent.isMouseEvent(S.getEvent())};var H=this.click;this.click=function(S){var da=null==S.state&&null!=S.sourceState&&this.isCellLocked(this.getLayerForCell(S.sourceState.cell));if(this.isEnabled()&&!da||S.isConsumed())return H.apply(this,arguments);da=da?S.sourceState.cell:S.getCell();null!=da&&(da=this.getClickableLinkForCell(da), null!=da&&(this.isCustomLink(da)?this.customLinkClicked(da):this.openLink(da)))};this.tooltipHandler.getStateForEvent=function(S){return S.sourceState};var ka=this.tooltipHandler.show;this.tooltipHandler.show=function(){ka.apply(this,arguments);if(null!=this.div)for(var S=this.div.getElementsByTagName("a"),da=0;da<S.length;da++)null!=S[da].getAttribute("href")&&null==S[da].getAttribute("target")&&S[da].setAttribute("target","_blank")};this.tooltipHandler.getStateForEvent=function(S){return S.sourceState};
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
O&&A(Editor.svgBrokenImage.src)});else{var U=new Image;this.crossOriginImages&&(U.crossOrigin="anonymous");U.onload=function(){window.clearTimeout(X);if(O)try{var aa=document.createElement("canvas"),ba=aa.getContext("2d");aa.height=U.height;aa.width=U.width;ba.drawImage(U,0,0);A(aa.toDataURL())}catch(ia){A(Editor.svgBrokenImage.src)}};U.onerror=function(){window.clearTimeout(X);O&&A(Editor.svgBrokenImage.src)};U.src=l}}catch(aa){A(Editor.svgBrokenImage.src)}};Editor.prototype.convertImages=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
EditorUi.prototype.clonePages=function(b){for(var e=[],g=[],n=0;n<b.length;n++)try{g.push(this.clonePage(b[n]))}catch(y){e.push(mxResources.get("pageWithNumber",[n+1])+" ("+b[n].getName()+"): "+y.message)}if(0<e.length)throw Error(e.join("\n"));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
function(c,m,v,p,t,C,D,ha,I,va){if(!va)c.lineTo(I,t);else if("square"==D||"default"==D&&"square"==C)c.lineTo(I,t-I);else if("rounded"==D||"default"==D&&"rounded"==C)c.arcTo(ha-.5*I,ha-.5*I,0,0,0,ha+.5*I,t-I);else if("invRound"==D||"default"==D&&"invRound"==C)c.arcTo(ha+I,ha+I,0,0,1,ha+I,t-I);else if("snip"==D||"default"==D&&"snip"==C)c.lineTo(ha+.5*I,t-I);else if("fold"==D||"default"==D&&"fold"==C)c.lineTo(I+ha,t-ha-I),c.lineTo(I+ha,t-I)};Na.prototype.moveSWInner=function(c,m,v,p,t,C,D,ha,I,va){va? "square"==D||"default"==D&&"square"==C?c.moveTo(I,t-I):"rounded"==D||"default"==D&&"rounded"==C||"snip"==D||"default"==D&&"snip"==C?c.moveTo(I,t-ha-.5*I):("invRound"==D||"default"==D&&"invRound"==C||"fold"==D||"default"==D&&"fold"==C)&&c.moveTo(I,t-ha-I):c.moveTo(0,t-I)};Na.prototype.lineSWInner=function(c,m,v,p,t,C,D,ha,I,va){va?"square"==D||"default"==D&&"square"==C?c.lineTo(I,t-I):"rounded"==D||"default"==D&&"rounded"==C||"snip"==D||"default"==D&&"snip"==C?c.lineTo(I,t-ha-.5*I):("invRound"==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
c.begin();c.moveTo(m+D,v);c.lineTo(m+p,v);c.lineTo(m+p,v+t);c.lineTo(m,v+t);c.lineTo(m,v+ha);c.stroke()};mxCellRenderer.registerShape("umlFrame",ba);mxPerimeter.CenterPerimeter=function(c,m,v,p){return new mxPoint(c.getCenterX(),c.getCenterY())};mxStyleRegistry.putValue("centerPerimeter",mxPerimeter.CenterPerimeter);mxPerimeter.LifelinePerimeter=function(c,m,v,p){p=aa.prototype.size;null!=m&&(p=mxUtils.getValue(m.style,"size",p)*m.view.scale);m=parseFloat(m.style[mxConstants.STYLE_STROKEWIDTH]||1)* m.view.scale/2-1;v.x<c.getCenterX()&&(m=-1*(m+1));return new mxPoint(c.getCenterX()+m,Math.min(c.y+c.height,Math.max(c.y+p,v.y)))};mxStyleRegistry.putValue("lifelinePerimeter",mxPerimeter.LifelinePerimeter);mxPerimeter.OrthogonalPerimeter=function(c,m,v,p){p=!0;return mxPerimeter.RectanglePerimeter.apply(this,arguments)};mxStyleRegistry.putValue("orthogonalPerimeter",mxPerimeter.OrthogonalPerimeter);mxPerimeter.BackbonePerimeter=function(c,m,v,p){p=parseFloat(m.style[mxConstants.STYLE_STROKEWIDTH]||
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
new Uint8Array(N)}return new Blob(z,{type:f})};EditorUi.prototype.saveLocalFile=function(d,f,k,u,z,B,F,K){B=null!=B?B:!1;F=null!=F?F:"vsdx"!=z&&(!mxClient.IS_IOS||!navigator.standalone);var N=mxUtils.bind(this,function(ka,ea,ca,ja){try{if("_blank"==ea)if(null!=k&&"image/"==k.substring(0,6))this.openInNewWindow(d,k,u);else if(null!=k&&"text/html"==k.substring(0,9)){var ma=new EmbedDialog(this,d);this.showDialog(ma.container,450,240,!0,!0);ma.init()}else{var Z=window.open("about:blank");null==Z?mxUtils.popup(d, !0):(Z.document.write("<pre>"+mxUtils.htmlEntities(d,!1)+"</pre>"),Z.document.close())}else if(ea==App.MODE_DEVICE||"download"==ea)this.doSaveLocalFile(d,ka,k,u,null,K);else if(null!=ka&&0<ka.length){var S=mxUtils.bind(this,function(da){try{this.exportFile(d,ka,k,u,ea,da)}catch(P){this.handleError(P)}});null!=ja?S(ja):this.pickFolder(ea,S)}}catch(da){this.handleError(da)}});if("1"==urlParams["save-dialog"])z=[],B||z.push(App.MODE_BROWSER),F||z.push("_blank"),f=new SaveDialog(this,f,mxUtils.bind(this, function(ka,ea,ca){N(ka.value,ea,ka,ca);this.hideDialog()}),z,d,k,u),this.showDialog(f.container,420,100,!0,!1,mxUtils.bind(this,function(){this.hideDialog()}));else{z=this.getServiceCount(B);isLocalStorage&&z++;var H=4>=z?2:6<z?4:3;f=new CreateDialog(this,f,N,mxUtils.bind(this,function(){this.hideDialog()}),mxResources.get("saveAs"),mxResources.get("download"),!1,B,F,null,1<z,H,d,k,u);B=this.isServices(z)?z>H?390:280:160;this.showDialog(f.container,420,B,!0,!0)}f.init()};EditorUi.prototype.openInNewWindow=
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.removePasteFormatting=function(b,e){for(;null!=b;){null!=b.firstChild&&Graph.removePasteFormatting(b.firstChild,!0);var g=b.nextSibling;if(b.nodeType==mxConstants.NODETYPE_ELEMENT&&null!=b.style){b.style.whiteSpace="";"#000000"==b.style.color&&(b.style.color="");if("SPAN"==b.nodeName&&"Apple-tab-span"==b.className){var n=Graph.createTabNode(4);b.parentNode.replaceChild(n,b);b=n}if("P"==b.nodeName&&"p1"==b.className){for(;null!=b.firstChild;)b.parentNode.insertBefore(b.firstChild,b);null!=g&& "P"==g.nodeName&&"p1"==g.className&&b.parentNode.insertBefore(b.ownerDocument.createElement("br"),b);b.parentNode.removeChild(b)}e||null==b.innerHTML||(n=Graph.createTabNode(4),b.innerHTML=b.innerHTML.replace(/\t/g,n.outerHTML))}b=g}};Graph.createTabNode=function(b){var e="\t";if(null!=b)for(e="";0<b;)e+=" ",b--;b=document.createElement("span");b.style.whiteSpace="pre";b.appendChild(document.createTextNode(e));return b};Graph.sanitizeHtml=function(b,e){return Graph.domPurify(b,!1)};
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
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, function(B){try{z=z||"objects";Array.isArray(z)||(z=[z],d=[d],f=[f]);var F=B.transaction(z,"readwrite");F.oncomplete=k;F.onerror=u;for(B=0;B<z.length;B++)F.objectStore(z[B]).put(null!=d&&null!=d[B]?{key:d[B],data:f[B]}:f[B])}catch(K){null!=u&&u(K)}}),u)};EditorUi.prototype.removeDatabaseItem=function(d,f,k,u){this.openDatabase(mxUtils.bind(this,function(z){u=u||"objects";Array.isArray(u)||(u=[u],d=[d]);z=z.transaction(u,"readwrite");z.oncomplete=f;z.onerror=k;for(var B=0;B<u.length;B++)z.objectStore(u[B]).delete(d[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
Za.prototype.origPaintEdgeShape.apply(this,[c,p,v]);3<=c.state.strokeWidth&&(p=mxUtils.getValue(this.style,"fillColor",null),null!=p&&(c.setStrokeColor(p),c.setStrokeWidth(c.state.strokeWidth-2),c.setDashed(t,C),Za.prototype.origPaintEdgeShape.apply(this,[c,m,v])))};mxCellRenderer.registerShape("filledEdge",Za);"undefined"!==typeof StyleFormatPanel&&function(){var c=StyleFormatPanel.prototype.getCustomColors;StyleFormatPanel.prototype.getCustomColors=function(){var m=this.editorUi.getSelectionState(), v=c.apply(this,arguments);"umlFrame"==m.style.shape&&v.push({title:mxResources.get("laneColor"),key:"swimlaneFillColor",defaultValue:"default"});return v}}();mxMarker.addMarker("dash",function(c,m,v,p,t,C,D,ha,I,va){var na=t*(D+I+1),bb=C*(D+I+1);return function(){c.begin();c.moveTo(p.x-na/2-bb/2,p.y-bb/2+na/2);c.lineTo(p.x+bb/2-3*na/2,p.y-3*bb/2-na/2);c.stroke()}});mxMarker.addMarker("box",function(c,m,v,p,t,C,D,ha,I,va){var na=t*(D+I+1),bb=C*(D+I+1),qb=p.x+na/2,fb=p.y+bb/2;p.x-=na;p.y-=bb;return function(){c.begin();
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,t){mxRhombus.prototype.paintVertexShape.apply(this,arguments);c.setShadow(!1);c.begin();c.moveTo(m,v+t/2);c.lineTo(m+p,v+t/2);c.end();c.stroke()};mxCellRenderer.registerShape("sortShape",la);mxUtils.extend(oa,mxEllipse);oa.prototype.paintVertexShape=function(c,m,v,p,t){c.begin();c.moveTo(m,v);c.lineTo(m+p,v);c.lineTo(m+p/2,v+t/2);c.close();c.fillAndStroke();c.begin();c.moveTo(m,v+t);c.lineTo(m+p,v+t);c.lineTo(m+p/2,v+t/2);c.close();c.fillAndStroke()};mxCellRenderer.registerShape("collate",oa);mxUtils.extend(wa,
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(G){return this.isTreeEdge(G)}))};Graph.prototype.getIncomingTreeEdges=function(n,y){return this.getTreeEdges(n,y,!0,!1,!1)};Graph.prototype.getOutgoingTreeEdges=function(n,y){return this.getTreeEdges(n,y,!1,!0,!1)};var e=EditorUi.prototype.init;EditorUi.prototype.init=function(){e.apply(this,arguments);this.editor.isChromelessView()&&!this.editor.editable||this.addTrees()};EditorUi.prototype.addTrees=function(){function n(Z){return k.isVertex(Z)&&q(Z)}function y(Z){var S=!1;null!=Z&&(S="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
40;aa.prototype.isHtmlAllowed=function(){return!1};aa.prototype.getLabelBounds=function(c){var m=Math.max(0,Math.min(c.height,parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale));return new mxRectangle(c.x,c.y,c.width,m)};aa.prototype.paintBackground=function(c,m,v,p,t){var C=Math.max(0,Math.min(t,parseFloat(mxUtils.getValue(this.style,"size",this.size)))),D=mxUtils.getValue(this.style,"participant");null==D||null==this.state?mxRectangleShape.prototype.paintBackground.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
X[ba]();null!=ra&&(qa=qa.concat(ra))}}finally{V.getModel().endUpdate()}}B(qa)}}),aa=0;aa<A;aa++)mxUtils.bind(this,function(ba){var ia=d[ba];if(null!=ia){var qa=new FileReader;qa.onload=mxUtils.bind(this,function(ra){if(null==F||F(ia))try{if("image/"==ia.type.substring(0,6))if("image/svg"==ia.type.substring(0,9)){var pa=Graph.clipSvgDataUri(ra.target.result),xa=pa.indexOf(","),Ca=decodeURIComponent(escape(atob(pa.substring(xa+1)))),Aa=mxUtils.parseXml(Ca),za=Aa.getElementsByTagName("svg");if(0<za.length){var Ma=
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;this.indent=2;this.rectOutline="single"}function Za(){mxConnector.call(this)}function cb(c,m,v,p,t,C,D,ha,I,va){D+=I;var na=p.clone();p.x-=t*(2*D+I);p.y-=C*(2*D+I);t*=D+I;C*=D+I;return function(){c.ellipse(na.x-t-D,na.y-C-D,2*D,2*D);va?c.fillAndStroke():c.stroke()}}mxUtils.extend(b,mxShape);b.prototype.updateBoundsFromLine=function(){var c=null;if(null!=this.line)for(var m=0;m<this.line.length;m++){var v=this.line[m];null!=v&&(v=new mxRectangle(v.x,v.y,this.strokewidth,this.strokewidth),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
this.div.style.left=Math.max(0,parseInt(this.div.style.left)-d+140)+"px");this.fit()};mxEvent.addListener(this.formatWindow.window.title,"dblclick",mxUtils.bind(this,function(f){mxEvent.getSource(f)==this.formatWindow.window.title&&this.formatWindow.window.toggleMinimized()}))}};var R=EditorUi.prototype.init;EditorUi.prototype.init=function(){function W(ia,qa,ra){var pa=B.menus.get(ia),xa=H.addMenu(mxResources.get(ia),mxUtils.bind(this,function(){pa.funct.apply(this,arguments)}),N);xa.className="geMenuItem"; xa.style.display="inline-block";xa.style.boxSizing="border-box";xa.style.top="6px";xa.style.marginRight="6px";xa.style.height="30px";xa.style.paddingTop="6px";xa.style.paddingBottom="6px";xa.style.cursor="pointer";xa.setAttribute("title",mxResources.get(ia));B.menus.menuCreated(pa,xa,"geMenuItem");null!=ra?(xa.style.backgroundImage="url("+ra+")",xa.style.backgroundPosition="center center",xa.style.backgroundRepeat="no-repeat",xa.style.backgroundSize="24px 24px",xa.style.width="34px",xa.innerText= ""):qa||(xa.style.backgroundImage="url("+mxWindow.prototype.normalizeImage+")",xa.style.backgroundPosition="right 6px center",xa.style.backgroundRepeat="no-repeat",xa.style.paddingRight="22px");return xa}function d(ia,qa,ra,pa,xa,Ca){var Aa=document.createElement("a");Aa.className="geMenuItem";Aa.style.display="inline-block";Aa.style.boxSizing="border-box";Aa.style.height="30px";Aa.style.padding="6px";Aa.style.position="relative";Aa.style.verticalAlign="top";Aa.style.top="0px";null!=B.statusContainer?
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.getCurrentCellStyle(Z).treeMoving);return S}function q(Z){var S=!1;null!=Z&&(Z=k.getParent(Z),S=f.view.getState(Z),S="tree"==(null!=S?S.style:f.getCellStyle(Z)).containerType);return S}function E(Z){var S=!1;null!=Z&&(Z=k.getParent(Z),S=f.view.getState(Z),f.view.getState(Z),S=null!=(null!=S?S.style:f.getCellStyle(Z)).childLayout);return S}function L(Z){Z=f.view.getState(Z);if(null!=Z){var S=f.getIncomingTreeEdges(Z.cell);if(0<S.length&&(S=f.view.getState(S[0]),null!=S&&(S=S.absolutePoints,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
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); this.container.scrollTop+=Math.round((O.y-U)*this.view.scale);this.autoTranslate=!1;return}}ca.apply(this,arguments)}else this.fireEvent(new mxEventObject(mxEvent.SIZE,"bounds",this.getGraphBounds()))}}}var ja=b.view.getBackgroundPane(),ma=b.view.getDrawPane();b.cumulativeZoomFactor=1;var Z=null,S=null,da=null,P=null,V=null,l=function(A){null!=Z&&window.clearTimeout(Z);0<=A&&window.setTimeout(function(){if(!b.isMouseDown||P)Z=window.setTimeout(mxUtils.bind(this,function(){b.isFastZoomEnabled()&&(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
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
mxShape.prototype.afterPaint=function(c){Pa.apply(this,arguments);null!=c.handJiggle&&(c.handJiggle.destroy(),delete c.handJiggle)};mxShape.prototype.createComicCanvas=function(c){return new ea(c,mxUtils.getValue(this.style,"jiggle",Editor.sketchDefaultJiggle))};mxShape.prototype.createHandJiggle=function(c){return this.outline||null==this.style||"0"==mxUtils.getValue(this.style,"comic","0")?null:this.createComicCanvas(c)};var eb=mxRectangleShape.prototype.isHtmlAllowed;mxRectangleShape.prototype.isHtmlAllowed=
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.length&&(208==d.charCodeAt(0)&&207==d.charCodeAt(1)&&17==d.charCodeAt(2)&&224==d.charCodeAt(3)&&161==d.charCodeAt(4)&&177==d.charCodeAt(5)&&26==d.charCodeAt(6)&&225==d.charCodeAt(7)||80==d.charCodeAt(0)&&75==d.charCodeAt(1)&&3==d.charCodeAt(2)&&4==d.charCodeAt(3)||80==d.charCodeAt(0)&&75==d.charCodeAt(1)&&3==d.charCodeAt(2)&&6==d.charCodeAt(3))};EditorUi.prototype.isRemoteVisioData=function(d){return 8<d.length&&(208==d.charCodeAt(0)&&207==d.charCodeAt(1)&&17==d.charCodeAt(2)&&224==d.charCodeAt(3)&& 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=
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
xa=Array(pa.length);for(var Ca=0;Ca<pa.length;Ca++)xa[Ca]=String.fromCharCode(pa[Ca]);xa=xa.join("")}aa=null!=aa?aa:"data:image/png;base64,";xa=aa+Editor.base64Encode(xa)}A(xa)}}else null!=O&&(0==pa.getStatus()?O({message:mxResources.get("accessDenied")},pa):404==pa.getStatus()?O({message:mxResources.get("fileNotFound"),code:pa.getStatus()},pa):O({message:this.getErrorMessage(pa)},pa))}),function(pa){null!=O&&O({message:mxResources.get("error")+" "+pa.getStatus()})},qa,this.timeout,function(){U&&
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.getIndexableText=function(b){b=null!=b?b:this.model.getDescendants(this.model.root);for(var e=document.createElement("div"),g=[],n,y=0;y<b.length;y++)if(n=b[y],this.model.isVertex(n)||this.model.isEdge(n))this.isHtmlLabel(n)?(e.innerHTML=Graph.sanitizeHtml(this.getLabel(n)),n=mxUtils.extractTextWithWhitespace([e])):n=this.getLabel(n),n=mxUtils.trim(n.replace(/[\x00-\x1F\x7F-\x9F]|\s+/g," ")),0<n.length&&g.push(n);return g.join(" ")};
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.updateSelectionStateForTableCells=function(b){if(1<b.cells.length&&b.cell){var e=mxUtils.sortCells(b.cells),g=this.editor.graph.model,n=g.getParent(e[0]),y=g.getParent(n);if(null!=n&&null!=y){for(var q=n.getIndex(e[0]),E=y.getIndex(n),L=null,T=1,G=1,M=0,R=E<y.getChildCount()-1?g.getChildAt(g.getChildAt(y,E+1),q):null;M<e.length-1;){var W=e[++M];null==R||R!=W||null!=L&&T!=L||(L=T,T=0,G++,n=g.getParent(R),R=E+G<y.getChildCount()?g.getChildAt(g.getChildAt(y,E+G),q):null);var d=this.editor.graph.view.getState(W); if(W==g.getChildAt(n,q+T)&&null!=d&&1==mxUtils.getValue(d.style,"colspan",1)&&1==mxUtils.getValue(d.style,"rowspan",1))T++;else break}M==G*T-1&&(b.mergeCell=e[0],b.colspan=T,b.rowspan=G)}}};EditorUi.prototype.windowResized=function(){window.setTimeout(mxUtils.bind(this,function(){null!=this.editor.graph&&this.refresh()}),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);m+=C;v+=C;p-=2*C;t-=2*C;0<p&&0<t&&(c.setShadow(!1),ib.apply(this,[c,m,v,p,t]))}};mxUtils.extend(P,mxRectangleShape);P.prototype.isHtmlAllowed=function(){return!1};P.prototype.getLabelBounds=function(c){if(1==this.style["double"]){var m=(Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||0))*this.scale;return new mxRectangle(c.x+m,c.y+m,c.width-2*m,c.height-2*m)}return c};P.prototype.paintForeground=function(c,m,v,p,t){if(null!=this.style){if(!this.outline&&1==this.style["double"]){var C= Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||0);m+=C;v+=C;p-=2*C;t-=2*C;0<p&&0<t&&mxRectangleShape.prototype.paintBackground.apply(this,arguments)}c.setDashed(!1);C=0;do{var D=mxCellRenderer.defaultShapes[this.style["symbol"+C]];if(null!=D){var ha=this.style["symbol"+C+"Align"],I=this.style["symbol"+C+"VerticalAlign"],va=this.style["symbol"+C+"Width"],na=this.style["symbol"+C+"Height"],bb=this.style["symbol"+C+"Spacing"]||0,qb=this.style["symbol"+C+"VSpacing"]|| bb,fb=this.style["symbol"+C+"ArcSpacing"];null!=fb&&(fb*=this.getArcSize(p+this.strokewidth,t+this.strokewidth),bb+=fb,qb+=fb);fb=m;var Ga=v;fb=ha==mxConstants.ALIGN_CENTER?fb+(p-va)/2:ha==mxConstants.ALIGN_RIGHT?fb+(p-va-bb):fb+bb;Ga=I==mxConstants.ALIGN_MIDDLE?Ga+(t-na)/2:I==mxConstants.ALIGN_BOTTOM?Ga+(t-na-qb):Ga+qb;c.save();ha=new D;ha.style=this.style;D.prototype.paintVertexShape.call(ha,c,fb,Ga,va,na);c.restore()}C++}while(null!=D)}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
mxSettings.settings.sketchMode:this.getDefaultSketchMode()),null!=mxSettings.settings.sidebarTitles&&(Sidebar.prototype.sidebarTitles=mxSettings.settings.sidebarTitles),this.formatWidth=mxSettings.getFormatWidth());y.apply(this,arguments)};var q=EditorUi.prototype.init;EditorUi.prototype.init=function(){mxStencilRegistry.allowEval=mxStencilRegistry.allowEval&&!this.isOfflineApp();var d=this,f=this.editor.graph;Graph.touchStyle&&(f.panningHandler.isPanningTrigger=function(P){var V=P.getEvent();return null== P.getState()&&!mxEvent.isMouseEvent(V)&&!f.freehand.isDrawing()||mxEvent.isPopupTrigger(V)&&(null==P.getState()||mxEvent.isControlDown(V)||mxEvent.isShiftDown(V))});f.cellEditor.editPlantUmlData=function(P,V,l){var A=JSON.parse(l);V=new TextareaDialog(d,mxResources.get("plantUml")+":",A.data,function(O){null!=O&&d.spinner.spin(document.body,mxResources.get("inserting"))&&d.generatePlantUmlImage(O,A.format,function(X,U,aa){d.spinner.stop();f.getModel().beginUpdate();try{if("txt"==A.format)f.labelChanged(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
Qa=[],Oa=0;Oa<Ma.length;Oa++)ia.isCellVisible(Ma[Oa])&&Qa.push(Ma[Oa]);ia.setSelectionCells(Qa)}function aa(Ma){ia.setHiddenTags(Ma?[]:qa.slice());U();ia.refresh()}function ba(Ma,Qa){pa.innerText="";if(0<Ma.length){var Oa=document.createElement("table");Oa.setAttribute("cellpadding","2");Oa.style.boxSizing="border-box";Oa.style.tableLayout="fixed";Oa.style.width="100%";var ta=document.createElement("tbody");if(null!=Ma&&0<Ma.length)for(var Da=0;Da<Ma.length;Da++)(function(Ba){function ya(){var Ka= ia.getCellsForTags([Ba],null,null,!0);ia.isEnabled()?ia.setSelectionCells(Ka):ia.highlightCells(Ka,null,null,70)}var Va=0>mxUtils.indexOf(ia.hiddenTags,Ba),Wa=document.createElement("tr"),La=document.createElement("td");La.style.align="center";La.style.width="16px";var $a=document.createElement("img");$a.setAttribute("src",Va?Editor.visibleImage:Editor.hiddenImage);$a.setAttribute("title",mxResources.get(Va?"hideIt":"show",[Ba]));mxUtils.setOpacity($a,Va?75:25);$a.style.verticalAlign="middle";$a.style.cursor=
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.getCellsForUngroup=function(E){E=n.apply(this,arguments);for(var L=[],T=0;T<E.length;T++)this.isTable(E[T])||this.isTableRow(E[T])||this.isTableCell(E[T])||L.push(E[T]);return L};Graph.prototype.updateCssTransform=function(){var E=this.view.getDrawPane();if(null!=E)if(E=E.parentNode,this.useCssTransforms){var L=E.getAttribute("transform");E.setAttribute("transformOrigin","0 0");var T=Math.round(100*this.currentScale)/100;E.setAttribute("transform","scale("+T+","+T+")translate("+Math.round(100*
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
document.body.removeChild(e),document.body.removeChild(g),document.body.style.overflow=E,GraphViewer.resizeSensorEnabled=!0,L.apply(this,arguments))};var T=y.editor.graph,G=T.container;G.style.overflow="hidden";this.lightboxChrome&&null==b?(G.style.border="1px solid #c0c0c0",G.style.margin="40px",mxEvent.addListener(document.documentElement,"keydown",q)):(e.style.display="none",g.style.display="none");var M=this;T.getImageFromBundles=function(W){return M.getImageUrl(W)};var R=y.createTemporaryGraph;
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.arrayBufferToString=function(b){var e="";b=new Uint8Array(b);for(var g=b.byteLength,n=0;n<g;n++)e+=String.fromCharCode(b[n]);return e};Graph.stringToArrayBuffer=function(b){return Uint8Array.from(b,function(e){return e.charCodeAt(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
function(d,f,k,u,z,B,F,K){EditorUi.logEvent("SHOULD NOT BE CALLED: loadUrl");return this.editor.loadUrl(d,f,k,u,z,B,F,K)};EditorUi.prototype.loadFonts=function(d){EditorUi.logEvent("SHOULD NOT BE CALLED: loadFonts");return this.editor.loadFonts(d)};EditorUi.prototype.createSvgDataUri=function(d){EditorUi.logEvent("SHOULD NOT BE CALLED: createSvgDataUri");return Editor.createSvgDataUri(d)};EditorUi.prototype.embedCssFonts=function(d,f){EditorUi.logEvent("SHOULD NOT BE CALLED: embedCssFonts");return this.editor.embedCssFonts(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
wa),sa,this);this.fireEvent(new mxEventObject(mxEvent.CELLS_ADDED,"cells",sa))}finally{Y.endUpdate()}return la};Graph.prototype.insertImage=function(x,J,Q){if(null!=x&&null!=this.cellEditor.textarea){for(var Y=this.cellEditor.textarea.getElementsByTagName("img"),fa=[],la=0;la<Y.length;la++)fa.push(Y[la]);document.execCommand("insertimage",!1,x);x=this.cellEditor.textarea.getElementsByTagName("img");if(x.length==fa.length+1)for(la=x.length-1;0<=la;la--)if(0==la||x[la]!=fa[la-1]){x[la].setAttribute("width",
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.setScrollbars=function(b){var e=this.editor.graph,g=e.container.style.overflow;e.scrollbars=b;this.editor.updateGraphComponents();g!=e.container.style.overflow&&(e.container.scrollTop=0,e.container.scrollLeft=0,e.view.scaleAndTranslate(1,0,0),this.resetScrollbars());this.fireEvent(new mxEventObject("scrollbarsChanged"))};
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
f.getCurrentCellStyle(Z).treeMoving);return S}function q(Z){var S=!1;null!=Z&&(Z=k.getParent(Z),S=f.view.getState(Z),S="tree"==(null!=S?S.style:f.getCellStyle(Z)).containerType);return S}function E(Z){var S=!1;null!=Z&&(Z=k.getParent(Z),S=f.view.getState(Z),f.view.getState(Z),S=null!=(null!=S?S.style:f.getCellStyle(Z)).childLayout);return S}function L(Z){Z=f.view.getState(Z);if(null!=Z){var S=f.getIncomingTreeEdges(Z.cell);if(0<S.length&&(S=f.view.getState(S[0]),null!=S&&(S=S.absolutePoints,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
DrawioFile.prototype.saveFile=function(b,e,g,n){};DrawioFile.prototype.getFileUrl=function(){return null};DrawioFile.prototype.getFolderUrl=function(b){return null};DrawioFile.prototype.getPublicUrl=function(b){b(null)};DrawioFile.prototype.isRestricted=function(){return DrawioFile.RESTRICT_EXPORT};DrawioFile.prototype.isModified=function(){return this.modified};DrawioFile.prototype.getShadowModified=function(){return this.shadowModified};
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.changeHandler=null)}}();(function(){function b(c,m,v){mxShape.call(this);this.line=c;this.stroke=m;this.strokewidth=null!=v?v:1;this.updateBoundsFromLine()}function e(){mxSwimlane.call(this)}function g(){mxSwimlane.call(this)}function n(){mxCylinder.call(this)}function y(){mxConnector.call(this)}function q(){mxCylinder.call(this)}function E(){mxActor.call(this)}function L(){mxCylinder.call(this)}function T(){mxCylinder.call(this)}function G(){mxCylinder.call(this)}function M(){mxCylinder.call(this)}function R(){mxShape.call(this)}
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*A.height*O.height)};b.getPreferredPageSize=function(A,O,X){A=this.getPageLayout();O=this.getPageSize();return new mxRectangle(0,0,A.width*O.width,A.height*O.height)};var e=null,g=this;if(this.editor.isChromelessView()){this.chromelessResize=e=mxUtils.bind(this,function(A,O,X,U){if(null!=b.container&&!b.isViewer()){X=null!=X?X:0;U=null!=U?U:0;var aa=b.pageVisible?b.view.getBackgroundPageBounds():b.getGraphBounds(),ba=mxUtils.hasScrollbars(b.container),ia=b.view.translate,qa=b.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
arguments):this.addOp(this.closeOp)};l.prototype.quadTo=function(aa,ba,ia,qa){this.passThrough?this.originalQuadTo.apply(this.canvas,arguments):(this.addOp(this.quadOp,aa,ba,ia,qa),this.lastX=ia,this.lastY=qa)};l.prototype.curveTo=function(aa,ba,ia,qa,ra,pa){this.passThrough?this.originalCurveTo.apply(this.canvas,arguments):(this.addOp(this.curveOp,aa,ba,ia,qa,ra,pa),this.lastX=ra,this.lastY=pa)};l.prototype.arcTo=function(aa,ba,ia,qa,ra,pa,xa){if(this.passThrough)this.originalArcTo.apply(this.canvas,
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.soundex=function(b){if(null==b||0==b.length)return"";var e=[],g=1;e[0]=b[0].toUpperCase();for(var n=1,y=b.length;n<y;n++){var q=b[n].toUpperCase().charCodeAt(0)-65;if(0<=q&&25>=q&&"0"!="01230120022455012603010202"[q]&&("01230120022455012603010202"[q]!=e[g-1]&&(e[g]="01230120022455012603010202"[q],g++),3<g))break}if(3>=g)for(;3>=g;)e[g]="0",g++;return e.join("")};
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.isShiftDown(R)?n.gridSize:null,!0)}:function(){e(R.keyCode,mxEvent.isShiftDown(R)?n.gridSize:null)}}return T.apply(this,arguments)};y.bindAction=mxUtils.bind(this,function(R,W,d,f){var k=this.actions.get(d);null!=k&&(d=function(){k.isEnabled()&&k.funct.apply(this,arguments)},W?f?y.bindControlShiftKey(R,d):y.bindControlKey(R,d):f?y.bindShiftKey(R,d):y.bindKey(R,d))});var G=this,M=y.escape;y.escape=function(R){M.apply(this,arguments)};y.enter=function(){};y.bindControlShiftKey(36,function(){n.exitGroup()});
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.createEdgeWipeAnimation=function(b,e){var g=b.absolutePoints.slice(),n=b.segments,y=b.length,q=g.length;return{execute:mxUtils.bind(this,function(E,L){if(null!=b.shape){var T=[g[0]];L=E/L;e||(L=1-L);for(var G=y*L,M=1;M<q;M++)if(G<=n[M-1]){T.push(new mxPoint(g[M-1].x+(g[M].x-g[M-1].x)*G/n[M-1],g[M-1].y+(g[M].y-g[M-1].y)*G/n[M-1]));break}else G-=n[M-1],T.push(g[M]);b.shape.points=T;b.shape.redraw();0==E&&Graph.setOpacityForNodes(this.getNodesForCells([b.cell]),1);null!=b.text&&null!= b.text.node&&(b.text.node.style.opacity=L)}}),stop:mxUtils.bind(this,function(){null!=b.shape&&(b.shape.points=g,b.shape.redraw(),null!=b.text&&null!=b.text.node&&(b.text.node.style.opacity=""),Graph.setOpacityForNodes(this.getNodesForCells([b.cell]),e?1: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.path.push(this.canvas.format(this.lastX)),this.path.push(this.canvas.format(this.lastY))};l.prototype.lineTo=function(aa,ba){this.passThrough?this.originalLineTo.apply(this.canvas,arguments):(this.addOp(this.lineOp,aa,ba),this.lastX=aa,this.lastY=ba)};l.prototype.moveTo=function(aa,ba){this.passThrough?this.originalMoveTo.apply(this.canvas,arguments):(this.addOp(this.moveOp,aa,ba),this.lastX=aa,this.lastY=ba,this.firstX=aa,this.firstY=ba)};l.prototype.close=function(){this.passThrough?this.originalClose.apply(this.canvas,
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.pages[0]:null;null==ma||this.currentPage==ma?ea.setBackgroundImage(this.editor.graph.backgroundImage):null!=ma.viewState&&null!=ma.viewState&&ea.setBackgroundImage(ma.viewState.backgroundImage);ea.getGlobalVariable=function(Z){return"page"==Z&&null!=ma?ma.getName():"pagenumber"==Z?1:ja.apply(this,arguments)};document.body.appendChild(ea.container);null!=ma&&ea.model.setRoot(ma.root)}}F=null!=F?F:this.getXmlFileData(z,B,H,ka);N=null!=N?N:this.getCurrentFile();d=this.createFileData(F,ea,N,window.location.href,
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,t){m=t*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));c.moveTo(0,0);c.lineTo(p,0);c.lineTo(p,t-m/2);c.quadTo(3*p/4,t-1.4*m,p/2,t-m/2);c.quadTo(p/4,t-m*(1-1.4),0,t-m/2);c.lineTo(0,m/2);c.close();c.end()};mxCellRenderer.registerShape("document",F);var lb=mxCylinder.prototype.getCylinderSize;mxCylinder.prototype.getCylinderSize=function(c,m,v,p){var t=mxUtils.getValue(this.style,"size");return null!=t?p*Math.max(0,Math.min(1,t)):lb.apply(this,arguments)};mxCylinder.prototype.getLabelMargins=
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