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 |
---|---|---|---|---|---|---|---|
b.container.style.cursor=P?"crosshair":"";b.fireEvent(new mxEventObject("freehandStateChanged"))};this.startDrawing=function(){y(!0)};this.isDrawing=function(){return e};var C=mxUtils.bind(this,function(P){if(d){var N=D.length,H=k&&0<z.length&&null!=D&&2>D.length;H||z.push.apply(z,D);D=[];z.push(null);q.push(d);d=null;(H||E)&&this.stopDrawing();E&&(!H||2<=N)&&this.startDrawing();mxEvent.consume(P)}}),G=new mxCell;G.edge=!0;var B=function(){var P=b.getCurrentCellStyle(G);P=mxUtils.getValue(b.currentVertexStyle,
| 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(null!=t.hoverIcons){var P=t.hoverIcons.update;t.hoverIcons.update=function(){y.freehand.isDrawing()||P.apply(this,arguments)}}if(null!=y.freehand){var N=y.freehand.createStyle;y.freehand.createStyle=function(T){return N.apply(this,arguments)+"sketch=0;"}}t.editor.addListener("statusChanged",mxUtils.bind(this,function(){t.setStatusText(t.editor.getStatus())}));t.setStatusText(t.editor.getStatus());var H=t.menus.get("viewZoom");if(null!=H){var m=function(T){if(mxEvent.isAltDown(T))t.hideCurrentMenu(),
| 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+"&border="+t+"&xml="+encodeURIComponent(B))})}else"png"==k?c.exportImage(p,null==n||"none"==n,!0,!1,!1,t,!0,!1,null,C,y):c.exportImage(p,!1,!0,!1,!1,t,!0,!1,"jpeg",C);else mxUtils.alert(mxResources.get("drawingTooLarge"))}});EditorUi.prototype.getDiagramTextContent=function(){this.editor.graph.setEnabled(!1);var c=this.editor.graph,e="";if(null!=this.pages)for(var k=0;k<this.pages.length;k++){var n=c;this.currentPage!=this.pages[k]&&(n=this.createTemporaryGraph(c.getStylesheet()),this.updatePageRoot(this.pages[k]),
n.model.setRoot(this.pages[k].root));e+=this.pages[k].getName()+" "+n.getIndexableText()+" "}else e=c.getIndexableText();this.editor.graph.setEnabled(!0);return e};EditorUi.prototype.showRemotelyStoredLibrary=function(c){var e={},k=document.createElement("div");k.style.whiteSpace="nowrap";var n=document.createElement("h3");mxUtils.write(n,mxUtils.htmlEntities(c));n.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:12px";k.appendChild(n);var p=document.createElement("div");p.style.cssText=
| 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==B.data&&null==B.url?(B=R(B),Ba(B,G)):this.loadDescriptor(B,mxUtils.bind(this,function(ea){Ba(za(),G)}),mxUtils.bind(this,function(ea){this.handleError(ea,mxResources.get("errorLoadingFile"))}))}}));var y=window.opener||window.parent;t="json"==urlParams.proto?JSON.stringify({event:"init"}):urlParams.ready||"ready";y.postMessage(t,"*");if("json"==urlParams.proto){var C=this.editor.graph.openLink;this.editor.graph.openLink=function(G,B,V){C.apply(this,arguments);y.postMessage(JSON.stringify({event:"openLink",
href:G,target:B,allowOpener:V}),"*")}}};EditorUi.prototype.createEmbedButton=function(c,e,k,n){var p="simple"==Editor.currentTheme||"sketch"==Editor.currentTheme||"min"==Editor.currentTheme,t=document.createElement("button");t.setAttribute("title",c+(null!=k?" ("+k+")":""));t.style.marginLeft="6px";mxUtils.write(t,c);p?(t.className=n?"gePrimaryBtn":"",t.style.marginLeft="8px",t.style.padding="6px"):t.className="geBigButton"+(n?"":" geBigStandardButton");mxEvent.addListener(t,"click",e);return t};
| 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
|
mxResources.get("reconnecting"))?window.location.search=this.getSearch(["url"]):null!=n?this.fileLoaded(n)||t():t()});e?c():this.handleError(C,mxResources.get("errorLoadingFile"),c,!0,null,null,!0)}else t();return p};EditorUi.prototype.getHashValueForPages=function(c,e){var k=0,n=new mxGraphModel,p=new mxCodec;null!=e&&(e.byteCount=0,e.attrCount=0,e.eltCount=0,e.nodeCount=0);for(var t=0;t<c.length;t++){this.updatePageRoot(c[t]);var y=c[t].node.cloneNode(!1);y.removeAttribute("name");n.root=c[t].root;
var C=p.encode(n);this.editor.graph.saveViewState(c[t].viewState,C,!0);C.removeAttribute("pageWidth");C.removeAttribute("pageHeight");y.appendChild(C);null!=e&&(e.eltCount+=y.getElementsByTagName("*").length,e.nodeCount+=y.getElementsByTagName("mxCell").length);k=(k<<5)-k+this.hashValue(y,function(G,B,V,R){return!R||"mxGeometry"!=G.nodeName&&"mxPoint"!=G.nodeName||"x"!=B&&"y"!=B&&"width"!=B&&"height"!=B?R&&"mxCell"==G.nodeName&&"previous"==B?null:V:Math.round(V)},e)<<0}return k};EditorUi.prototype.hashValue=
| 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
|
DiagramFormatPanel.prototype.addOptions=function(g){g=U.apply(this,arguments);var x=this.editorUi,F=x.editor.graph;if(F.isEnabled()){var M=x.getCurrentFile();null!=M&&M.isAutosaveOptional()&&g.appendChild(this.createOption(mxResources.get("autosave"),function(){return x.editor.autosave},function(W){x.editor.setAutosave(W);x.editor.autosave&&M.isModified()&&M.fileChanged()},{install:function(W){this.listener=function(){W(x.editor.autosave)};x.editor.addListener("autosaveChanged",this.listener)},destroy:function(){x.editor.removeListener(this.listener)}}))}if(this.isMathOptionVisible()&&
F.isEnabled()&&"undefined"!==typeof MathJax){var Q=this.createOption(mxResources.get("mathematicalTypesetting"),function(){return F.mathEnabled},function(W){x.actions.get("mathematicalTypesetting").funct()},{install:function(W){this.listener=function(){W(F.mathEnabled)};x.addListener("mathEnabledChanged",this.listener)},destroy:function(){x.removeListener(this.listener)}});g.appendChild(Q);var S=x.menus.createHelpLink("https://www.drawio.com/doc/faq/math-typesetting");S.style.position="relative";
S.style.marginLeft="6px";Q.appendChild(S)}return g};mxCellRenderer.prototype.defaultVertexShape.prototype.customProperties=[{name:"arcSize",dispName:"Arc Size",type:"float",min:0,defVal:mxConstants.LINE_ARCSIZE},{name:"absoluteArcSize",dispName:"Abs. Arc Size",type:"bool",defVal:!1}];mxCellRenderer.defaultShapes.link.prototype.customProperties=[{name:"width",dispName:"Width",type:"float",min:0,defVal:4}];mxCellRenderer.defaultShapes.flexArrow.prototype.customProperties=[{name:"width",dispName:"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
|
v),(g==mxLanguage||""==g&&null==mxLanguage)&&m.addCheckmark(F,Editor.checkmarkImage));return F});A("");m.addSeparator(v);for(var I in mxLanguageMap)A(I)})));var c=Menus.prototype.createMenubar;Menus.prototype.createMenubar=function(m){var v=c.apply(this,arguments);if(("1"!=urlParams.embed||"1"==urlParams.atlas)&&null!=v&&Editor.enableSimpleTheme&&"atlassian"!=d.getServiceName()){var A=this.get("appearance");if(null!=A){var I=v.addMenu("",A.funct);I.setAttribute("title",mxResources.get("appearance"));
I.className="geToolbarButton geAdaptiveAsset";I.style.backgroundPosition="center center";I.style.backgroundRepeat="no-repeat";I.style.backgroundSize="100% 100%";I.style.display="inline-block";I.style.cursor="pointer";I.style.zIndex="1";I.style.position="absolute";I.style.height="18px";I.style.width="18px";"atlas"==Editor.currentTheme?(I.style.filter="invert(100%)",I.style.right="11px",I.style.top="10px"):(I.style.right="10px",I.style.top="5px");document.body.appendChild(I);v.langIcon=I;A=mxUtils.bind(this,
function(){var g=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;I.style.display="atlas"==Editor.currentTheme||"min"==Editor.currentTheme||"sketch"==Editor.currentTheme?"none":"";I.style.backgroundImage="simple"==Editor.currentTheme?750>g?"url("+Editor.thinDoubleArrowRightImage+")":"url("+(Editor.isDarkMode()?Editor.thinDarkImage:Editor.thinLightImage)+")":"url("+(Editor.isDarkMode()?Editor.darkModeImage:Editor.lightModeImage)+")"});this.editorUi.addListener("currentThemeChanged",
A);this.editorUi.addListener("darkModeChanged",A);mxEvent.addListener(window,"resize",A);A()}}return v}}d.customLayoutConfig=[{layout:"mxHierarchicalLayout",config:{orientation:"west",intraCellSpacing:30,interRankCellSpacing:100,interHierarchySpacing:60,parallelEdgeSpacing:10}}];d.actions.addAction("runLayout",function(){d.showCustomLayoutDialog(JSON.stringify(d.customLayoutConfig,null,2))});E=this.get("viewZoom");var e=E.funct;E.funct=mxUtils.bind(this,function(m,v){e.apply(this,arguments);"sketch"!=
| 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
|
href:G,target:B,allowOpener:V}),"*")}}};EditorUi.prototype.createEmbedButton=function(c,e,k,n){var p="simple"==Editor.currentTheme||"sketch"==Editor.currentTheme||"min"==Editor.currentTheme,t=document.createElement("button");t.setAttribute("title",c+(null!=k?" ("+k+")":""));t.style.marginLeft="6px";mxUtils.write(t,c);p?(t.className=n?"gePrimaryBtn":"",t.style.marginLeft="8px",t.style.padding="6px"):t.className="geBigButton"+(n?"":" geBigStandardButton");mxEvent.addListener(t,"click",e);return t};
| 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);else{var G=this[n].apply(this,C);k([G])}}else k(null,"Invalid Call: "+n+" is not found.")}catch(B){k(null,"Invalid Call: An error occurred, "+B.message)}};EditorUi.prototype.openDatabase=function(c,e){if(null==this.database){var k=window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB;if(null!=k)try{var n=k.open("database",2);n.onupgradeneeded=function(p){try{var t=n.result;1>p.oldVersion&&t.createObjectStore("objects",{keyPath:"key"});2>p.oldVersion&&(t.createObjectStore("files",{keyPath:"title"}),
t.createObjectStore("filesInfo",{keyPath:"title"}),EditorUi.migrateStorageFiles=isLocalStorage)}catch(y){null!=e&&e(y)}};n.onsuccess=mxUtils.bind(this,function(p){try{var t=n.result;this.database=t;EditorUi.migrateStorageFiles&&(StorageFile.migrate(t),EditorUi.migrateStorageFiles=!1);"app.diagrams.net"!=location.host||this.drawioMigrationStarted||(this.drawioMigrationStarted=!0,this.getDatabaseItem(".drawioMigrated3",mxUtils.bind(this,function(y){if(!y||"1"==urlParams.forceMigration){var C=document.createElement("iframe");
| 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(g){var x=rough.canvas({getContext:function(){return g}});x.draw=function(F){var M=F.sets||[];F=F.options||this.getDefaultOptions();for(var Q=0;Q<M.length;Q++){var S=M[Q];switch(S.type){case "path":null!=F.stroke&&this._drawToContext(g,S,F);break;case "fillPath":this._drawToContext(g,S,F);break;case "fillSketch":this.fillSketch(g,S,F)}}};x.fillSketch=function(F,M,Q){var S=g.state.strokeColor,W=g.state.strokeWidth,T=g.state.strokeAlpha,X=g.state.dashed,Z=Q.fillWeight;
0>Z&&(Z=Q.strokeWidth/2);g.setStrokeAlpha(g.state.fillAlpha);g.setStrokeColor(Q.fill||"");g.setStrokeWidth(Z);g.setDashed(!1);this._drawToContext(F,M,Q);g.setDashed(X);g.setStrokeWidth(W);g.setStrokeColor(S);g.setStrokeAlpha(T)};x._drawToContext=function(F,M,Q){F.begin();for(var S=0;S<M.ops.length;S++){var W=M.ops[S],T=W.data;switch(W.op){case "move":F.moveTo(T[0],T[1]);break;case "bcurveTo":F.curveTo(T[0],T[1],T[2],T[3],T[4],T[5]);break;case "lineTo":F.lineTo(T[0],T[1])}}F.end();"fillPath"===M.type&&
Q.filled?F.fill():F.stroke()};return x};(function(){function g(S,W,T){this.canvas=S;this.rc=W;this.shape=T;this.canvas.setLineJoin("round");this.canvas.setLineCap("round");this.originalBegin=this.canvas.begin;this.canvas.begin=mxUtils.bind(this,g.prototype.begin);this.originalEnd=this.canvas.end;this.canvas.end=mxUtils.bind(this,g.prototype.end);this.originalRect=this.canvas.rect;this.canvas.rect=mxUtils.bind(this,g.prototype.rect);this.originalRoundrect=this.canvas.roundrect;this.canvas.roundrect=
| 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.handleError({message:mxResources.get("error")+" "+P.getStatus()}))}),mxUtils.bind(this,function(P){this.handleError(P)}))}),R=mxUtils.bind(this,function(){window.clearTimeout(B);B=window.setTimeout(V,G)});this.editor.addListener("pageSelected",mxUtils.bind(this,function(){R();V()}));R();V()}null!=e&&e()});if(null!=c.url&&0<c.url.length){var t=this.editor.getProxiedUrl(c.url);this.editor.loadUrl(t,mxUtils.bind(this,function(y){p(y)}),mxUtils.bind(this,function(y){null!=k&&k(y)}))}else 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
|
e.addListener(mxEvent.SIZE,f);e.container.addEventListener("scroll",d);e.view.addListener("unitChanged",this.unitListener);b.addListener("pageViewChanged",this.pageListener);b.addListener("pageScaleChanged",this.pageListener);b.addListener("pageFormatChanged",this.pageListener);this.setStyle=function(y){E=y;U.style.background=E.bkgClr;n()};this.origGuideMove=mxGuide.prototype.move;mxGuide.prototype.move=function(y,C,G,B){if(l&&4<y.height||!l&&4<y.width){if(null!=K.guidePart)try{c.putImageData(K.guidePart.imgData1,
| 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.error.data[0].reason)||404==G.code||404==G.status)){R="#U"==R.substring(0,2)?R.substring(45,R.lastIndexOf("%26ex")):R.substring(2);this.showError(e,y,mxResources.get("openInNewWindow"),mxUtils.bind(this,function(){this.editor.graph.openLink("https://drive.google.com/open?id="+R);this.handleError(c,e,k,n,p)}),V,mxResources.get("changeUser"),mxUtils.bind(this,function(){function P(){v.innerText="";for(var A=0;A<N.length;A++){var I=document.createElement("option");mxUtils.write(I,N[A].displayName);
I.value=A;v.appendChild(I);I=document.createElement("option");I.innerHTML=" ";mxUtils.write(I,"<"+N[A].email+">");I.setAttribute("disabled","disabled");v.appendChild(I)}I=document.createElement("option");mxUtils.write(I,mxResources.get("addAccount"));I.value=N.length;v.appendChild(I)}var N=this.drive.getUsersList(),H=document.createElement("div"),m=document.createElement("span");m.style.marginTop="6px";mxUtils.write(m,mxResources.get("changeUser")+": ");H.appendChild(m);var v=document.createElement("select");
| 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.style.backgroundImage="url("+mxWindow.prototype.normalizeImage+")",ba.style.backgroundPosition="right 6px center",ba.style.backgroundRepeat="no-repeat",ba.style.paddingRight="22px");return ba}function c(T,X,Z,Y,ba,fa){var ca=document.createElement("a");ca.className="geMenuItem";ca.style.display="inline-block";ca.style.boxSizing="border-box";ca.style.height="30px";ca.style.padding="6px";ca.style.position="relative";ca.style.verticalAlign="top";ca.style.top="0px";null!=t.statusContainer?C.insertBefore(ca,
t.statusContainer):C.appendChild(ca);null!=fa?(ca.style.backgroundImage="url("+fa+")",ca.style.backgroundPosition="center center",ca.style.backgroundRepeat="no-repeat",ca.style.backgroundSize="24px 24px",ca.style.width="34px"):mxUtils.write(ca,T);mxEvent.addListener(ca,mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,function(aa){aa.preventDefault()}));mxEvent.addListener(ca,"click",function(aa){"disabled"!=ca.getAttribute("disabled")&&X(aa);mxEvent.consume(aa)});null==Z&&(ca.style.marginRight=
"4px");null!=Y&&ca.setAttribute("title",Y);null!=ba&&(T=function(){ba.isEnabled()?(ca.removeAttribute("disabled"),ca.style.cursor="pointer"):(ca.setAttribute("disabled","disabled"),ca.style.cursor="default")},ba.addListener("stateChanged",T),y.addListener("enabledChanged",T),T());return ca}function e(T,X,Z){Z=document.createElement("div");Z.className="geMenuItem";Z.style.display="inline-block";Z.style.verticalAlign="top";Z.style.marginRight="6px";Z.style.padding="0 4px 0 4px";Z.style.height="30px";
| 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?x.checked:null,v.value,"embedFonts"==W.value,"lblToSvg"==W.value)}),null,k,n);this.showDialog(k.container,340,R,!0,!0,null,null,null,null,!0);P.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?P.select():document.execCommand("selectAll",!1,null)};EditorUi.prototype.showEmbedImageDialog=function(c,e,k,n,p){var t=document.createElement("div");t.style.whiteSpace="nowrap";var y=this.editor.graph;if(null!=e){var C=document.createElement("h3");mxUtils.write(C,e);C.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:4px";
t.appendChild(C)}var G=this.addCheckbox(t,mxResources.get("fit"),!0),B=this.addCheckbox(t,mxResources.get("shadow"),y.shadowVisible&&n,!n),V=this.addCheckbox(t,k),R=this.addCheckbox(t,mxResources.get("lightbox"),!0),O=this.addEditButton(t,R),P=O.getEditInput(),N=1<y.model.getChildCount(y.model.getRoot()),H=this.addCheckbox(t,mxResources.get("layers"),N,!N);H.style.marginLeft=P.style.marginLeft;H.style.marginBottom="12px";H.style.marginTop="8px";mxEvent.addListener(R,"change",function(){R.checked?
(N&&H.removeAttribute("disabled"),P.removeAttribute("disabled")):(H.setAttribute("disabled","disabled"),P.setAttribute("disabled","disabled"));P.checked&&R.checked?O.getEditSelect().removeAttribute("disabled"):O.getEditSelect().setAttribute("disabled","disabled")});e=new CustomDialog(this,t,mxUtils.bind(this,function(){c(G.checked,B.checked,V.checked,R.checked,O.getLink(),H.checked)}),null,mxResources.get("embed"),p);this.showDialog(e.container,280,300,!0,!0)};EditorUi.prototype.createEmbedImage=
| 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(){b.spinner.stop();d(null);b.showError(mxResources.get("error"),mxResources.get("fileNotFound"),mxResources.get("ok"))}):(b.hideDialog(),d(y,null,null,J,c,e)):(y=b.convertDataUri(y),C=null==C?120:C,G=null==G?100:G,b.hideDialog(),d(y,C,G,J,c,e))},n=function(y,C){if(null!=y){var G=q?null:K.getModel().getGeometry(K.getSelectionCell());null!=G?k(y,G.width,G.height,C):k(y,null,null,C)}else b.hideDialog(),d(null)};this.init=function(){U.focus();if(Graph.fileSupport){U.setAttribute("placeholder",
| 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
|
App.prototype.save=function(b,f){var l=this.getCurrentFile();if(null!=l&&this.spinner.spin(document.body,mxResources.get("saving"))){var d=mxUtils.bind(this,function(q){this.handleError(q)});this.createTimeout(3*this.timeout,mxUtils.bind(this,function(q){this.editor.setStatus("");this.editor.graph.isEditing()&&this.editor.graph.stopEditing();var u=mxUtils.bind(this,function(){q.clear()&&(l.handleFileSuccess(!0),null!=f&&f())}),z=mxUtils.bind(this,function(D){q.clear()&&(l.isModified()&&Editor.addRetryToError(D,
mxUtils.bind(this,function(){this.save(b,f)})),l.handleFileError(D,null==D||"AbortError"!=D.name))});try{b==l.getTitle()?l.save(!0,u,z):l.saveAs(b,u,z)}catch(D){z(D)}}),d)}};App.prototype.getExtensionForService=function(b){b=this.getServiceForName(b);return null!=b?b.extension:".drawio"};
| 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(k){z.value=k.target.result};e.readAsText(c)}},!1));f.appendChild(D);mxEvent.addListener(D,"change",function(){var c=q();if(0==z.value.length||z.value==J)J=c,z.value=J});b.isOffline()||"mermaid"!=l&&"plantUml"!=l||(L=mxUtils.button(mxResources.get("help"),function(){b.openLink("mermaid"==l?"https://mermaid-js.github.io/mermaid/#/":"https://plantuml.com/")}),L.className="geBtn",f.appendChild(L));L=mxUtils.button(mxResources.get("close"),function(){z.value==J?b.hideDialog():b.confirm(mxResources.get("areYouSure"),
| 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)}}catch(n){}};EditorUi.prototype.updatePageLinksForCell=function(c,e){var k=document.createElement("div"),n=this.editor.graph,p=n.getLinkForCell(e);null!=p&&n.setLinkForCell(e,this.updatePageLink(c,p));if(n.isHtmlLabel(e)){k.innerHTML=Graph.sanitizeHtml(n.getLabel(e));for(var t=k.getElementsByTagName("a"),y=!1,C=0;C<t.length;C++)p=t[C].getAttribute("href"),null!=p&&(t[C].setAttribute("href",this.updatePageLink(c,p)),y=!0);y&&n.labelChanged(e,k.innerHTML)}for(C=0;C<n.model.getChildCount(e);C++)this.updatePageLinksForCell(c,
n.model.getChildAt(e,C))};EditorUi.prototype.updatePageLink=function(c,e){if(Graph.isPageLink(e)){var k=c[e.substring(e.indexOf(",")+1)];e=null!=k?"data:page/id,"+k:null}else if("data:action/json,"==e.substring(0,17))try{var n=JSON.parse(e.substring(17));if(null!=n.actions){for(var p=0;p<n.actions.length;p++){var t=n.actions[p];if(null!=t.open&&Graph.isPageLink(t.open)){var y=t.open.substring(t.open.indexOf(",")+1);k=c[y];null!=k?t.open="data:page/id,"+k:null==this.getPageById(y)&&delete t.open}}e=
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
EditorUi.prototype.isRevisionHistoryEnabled=function(){var c=this.getCurrentFile();return null!=c&&(c.constructor==DriveFile&&c.isEditable()||c.constructor==DropboxFile)};EditorUi.prototype.getServiceName=function(){return"draw.io"};EditorUi.prototype.addRemoteServiceSecurityCheck=function(c){c.setRequestHeader("Content-Language","da, mi, en, de-DE")};EditorUi.prototype.loadUrl=function(c,e,k,n,p,t,y,C){EditorUi.logEvent("SHOULD NOT BE CALLED: loadUrl");return this.editor.loadUrl(c,e,k,n,p,t,y,C)};
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
"0"!=urlParams.pv;Graph.prototype.shadowId="dropShadow";Graph.prototype.svgShadowColor="#3D4574";Graph.prototype.svgShadowOpacity="0.4";Graph.prototype.svgShadowBlur="1.7";Graph.prototype.svgShadowSize="3";Graph.prototype.hiddenTags=[];Graph.prototype.defaultMathEnabled=!1;var e=Graph.prototype.init;Graph.prototype.init=function(){function g(Q){x=Q}e.apply(this,arguments);this.hiddenTags=[];window.mxFreehand&&(this.freehand=new mxFreehand(this));var x=null;mxEvent.addListener(this.container,"mouseenter",
g);mxEvent.addListener(this.container,"mousemove",g);mxEvent.addListener(this.container,"mouseleave",function(Q){x=null});this.isMouseInsertPoint=function(){return null!=x};var F=this.getInsertPoint;this.getInsertPoint=function(){return null!=x?this.getPointForEvent(x):F.apply(this,arguments)};var M=this.layoutManager.getLayout;this.layoutManager.getLayout=function(Q){var S=this.graph.getCellStyle(Q);if(null!=S&&"rack"==S.childLayout){var W=new mxStackLayout(this.graph,!1);W.gridSize=null!=S.rackUnitSize?
parseFloat(S.rackUnitSize):"undefined"!==typeof mxRackContainer?mxRackContainer.unitSize:20;W.marginLeft=S.marginLeft||0;W.marginRight=S.marginRight||0;W.marginTop=S.marginTop||0;W.marginBottom=S.marginBottom||0;W.allowGaps=S.allowGaps||0;W.horizontal="1"==mxUtils.getValue(S,"horizontalRack","0");W.resizeParent=!1;W.fill=!0;return W}return M.apply(this,arguments)};this.updateGlobalUrlVariables()};var k=Graph.prototype.postProcessCellStyle;Graph.prototype.postProcessCellStyle=function(g,x){return Graph.processFontStyle(k.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
|
T.fillStyle=W;return T};g.prototype.begin=function(){this.passThrough?this.originalBegin.apply(this.canvas,arguments):this.path=[]};g.prototype.end=function(){this.passThrough&&this.originalEnd.apply(this.canvas,arguments)};g.prototype.addOp=function(){if(null!=this.path&&(this.path.push(arguments[0]),2<arguments.length))for(var S=2;S<arguments.length;S+=2)this.lastX=arguments[S-1],this.lastY=arguments[S],this.path.push(this.canvas.format(this.lastX)),this.path.push(this.canvas.format(this.lastY))};
| 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.state.y+this.state.height+(40>this.state.height?10:0)+2+"px")};var P=mxVertexHandler.prototype.setHandlesVisible;mxVertexHandler.prototype.setHandlesVisible=function(H){P.apply(this,arguments);null!=this.moveHandle&&(this.moveHandle.style.display=H?"":"none")};var N=mxVertexHandler.prototype.destroy;mxVertexHandler.prototype.destroy=function(H,m){N.apply(this,arguments);null!=this.moveHandle&&(this.moveHandle.parentNode.removeChild(this.moveHandle),this.moveHandle=null)}};if("undefined"!==typeof Sidebar){var 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
|
l?E=new mxHierarchicalLayout(u,mxConstants.DIRECTION_WEST):"circle"==l?E=new mxCircleLayout(u):(E=new mxFastOrganicLayout(u,!1),E.forceConstant=80);if(null!=E){var U=function(k,n){u.getModel().beginUpdate();try{null!=k&&k(),E.execute(u.getDefaultParent(),K)}catch(p){throw p;}finally{k=new mxMorphing(u),k.addListener(mxEvent.DONE,mxUtils.bind(this,function(){u.getModel().endUpdate();null!=n&&n()})),k.startAnimation()}},J=mxEdgeHandler.prototype.connect;mxEdgeHandler.prototype.connect=function(k,n,
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
"data:action/json,"+JSON.stringify(n)}}catch(C){}return e};EditorUi.prototype.isRemoteVisioFormat=function(c){return/(\.v(sd|dx))($|\?)/i.test(c)||/(\.vs(s|x))($|\?)/i.test(c)};EditorUi.prototype.importVisio=function(c,e,k,n,p){var t=mxUtils.bind(this,function(y){this.loadingExtensions=!1;null!=k?k(y):this.handleError(y)});this.createTimeout(null,mxUtils.bind(this,function(y){n=null!=n?n:c.name;var C=mxUtils.bind(this,function(B){y.clear()&&t(B)}),G=mxUtils.bind(this,function(){this.loadingExtensions=
| 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
|
R();this.refreshComments=R;C=mxUtils.bind(this,function(){function O(v){var A=N[v.id];if(null!=A)for(L(v,A),A=0;null!=v.replies&&A<v.replies.length;A++)O(v.replies[A])}if(this.window.isVisible()){for(var P=t.querySelectorAll(".geCommentDate"),N={},H=0;H<P.length;H++){var m=P[H];N[m.getAttribute("data-commentId")]=m}for(H=0;H<V.length;H++)O(V[H])}});setInterval(C,6E4);this.refreshCommentsTime=C;this.window=new mxWindow(mxResources.get("comments"),n,f,l,d,q,!0,!0);this.window.minimumSize=new mxRectangle(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(P){E=P};this.setAutoScroll=function(P){U=P};this.setOpenFill=function(P){J=P};this.setStopClickEnabled=function(P){k=P};this.setSelectInserted=function(P){n=P};this.setSmoothing=function(P){l=P};this.setPerfectFreehandMode=function(P){t=P};this.isPerfectFreehandMode=function(){return t};this.setBrushSize=function(P){p.size=P};this.getBrushSize=function(){return p.size};var y=function(P){e=P;b.getRubberband().setEnabled(!P);b.graphHandler.setSelectEnabled(!P);b.graphHandler.setMoveEnabled(!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
|
mxResources.get("download"),!1,!1,y,null,1<G,B,n,t,p);y=this.isServices(G)?4<G?390:280:160;this.showDialog(c.container,420,y,!0,!0)}c.init()};EditorUi.prototype.isServices=function(c){return 1!=c};EditorUi.prototype.getEditBlankXml=function(){return this.getFileData(!0)};EditorUi.prototype.exportFile=function(c,e,k,n,p,t){};EditorUi.prototype.getServiceForName=function(c){return null};EditorUi.prototype.getTitleForService=function(c){return mxResources.get(c)};EditorUi.prototype.pickFolder=function(c,
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
EditorUi.prototype.hideDialog=function(a,b,e){null!=this.dialogs&&0<this.dialogs.length&&(null==e||e==this.dialog.container.firstChild)&&(e=this.dialogs.pop(),0==e.close(a,b)?this.dialogs.push(e):(this.dialog=0<this.dialogs.length?this.dialogs[this.dialogs.length-1]:null,this.editor.fireEvent(new mxEventObject("hideDialog")),null==this.dialog&&null!=this.editor.graph.container&&"hidden"!=this.editor.graph.container.style.visibility&&window.setTimeout(mxUtils.bind(this,function(){null==this.editor||
null!=this.dialogs&&0!=this.dialogs.length||(this.editor.graph.isEditing()&&null!=this.editor.graph.cellEditor.textarea?this.editor.graph.cellEditor.textarea.focus():(mxUtils.clearSelection(),this.editor.graph.container.focus()))}),0)))};
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
EditorUi.prototype.updateDiagram=function(c){function e(I){var g=new mxCellOverlay(I.image||p.warningImage,I.tooltip,I.align,I.valign,I.offset);g.addListener(mxEvent.CLICK,function(x,F){n.alert(I.tooltip)});return g}var k=null,n=this;if(null!=c&&0<c.length&&(k=mxUtils.parseXml(c),c=null!=k?k.documentElement:null,null!=c&&"updates"==c.nodeName)){var p=this.editor.graph,t=p.getModel();t.beginUpdate();var y=null;try{for(c=c.firstChild;null!=c;){if("update"==c.nodeName){var C=t.getCell(c.getAttribute("id"));
| 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.geometry.height+=G.gridSize}finally{G.getModel().endUpdate()}return[p]}}return[]};EditorUi.prototype.formatFileSize=function(c){var e=-1;do c/=1024,e++;while(1024<c);return Math.max(c,.1).toFixed(1)+" kB; MB; GB; TB;PB;EB;ZB;YB".split(";")[e]};EditorUi.prototype.convertDataUri=function(c){if("data:"==c.substring(0,5)){var e=c.indexOf(";");0<e&&(c=c.substring(0,e)+c.substring(c.indexOf(",",e+1)))}return c};EditorUi.prototype.isRemoteFileFormat=function(c,e){return/("contentType":\s*"application\/gliffy\+json")/.test(c)};
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
Menus.prototype.init=function(){function l(m,v,A){this.ui=m;this.previousExtFonts=this.extFonts=v;this.prevCustomFonts=this.customFonts=A}f.apply(this,arguments);var d=this.editorUi,q=d.editor.graph,u=mxUtils.bind(q,q.isEnabled),z=("1"!=urlParams.embed&&"0"!=urlParams.gapi||"1"==urlParams.embed&&"1"==urlParams.gapi)&&mxClient.IS_SVG&&isLocalStorage&&(null==document.documentMode||10<=document.documentMode),D=("1"!=urlParams.embed&&"0"!=urlParams.db||"1"==urlParams.embed&&"1"==urlParams.db)&&mxClient.IS_SVG&&
| 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,"geBtn");b.editor.cancelFirst&&J.appendChild(c);null!=e&&J.appendChild(e);J.appendChild(O);b.editor.cancelFirst||J.appendChild(c);U.appendChild(J);this.init=function(){Editor.selectFilename(p)};this.container=U},CreateDialog=function(b,f,l,d,q,u,z,D,L,K,E,U,J,c,e,k,n){function p(O,P,N,H){function m(){mxEvent.addListener(v,"click",function(){var F=N;if(z){var M=C.value,Q=M.lastIndexOf(".");if(0>f.lastIndexOf(".")&&0>Q){F=null!=F?F:R.value;var S="";F==App.MODE_GOOGLE?S=b.drive.extension:F==App.MODE_GITHUB?
S=b.gitHub.extension:F==App.MODE_GITLAB?S=b.gitLab.extension:F==App.MODE_TRELLO?S=b.trello.extension:F==App.MODE_DROPBOX?S=b.dropbox.extension:F==App.MODE_ONEDRIVE?S=b.oneDrive.extension:F==App.MODE_DEVICE&&(S=".drawio");0<=Q&&(M=M.substring(0,Q));C.value=M+S}}t(N)})}var v=document.createElement("a");v.style.overflow="hidden";var A=document.createElement("img");A.src=O;A.setAttribute("border","0");A.setAttribute("align","absmiddle");A.style.width="60px";A.style.height="60px";A.style.paddingBottom=
| 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
|
g);mxEvent.addListener(this.container,"mousemove",g);mxEvent.addListener(this.container,"mouseleave",function(Q){x=null});this.isMouseInsertPoint=function(){return null!=x};var F=this.getInsertPoint;this.getInsertPoint=function(){return null!=x?this.getPointForEvent(x):F.apply(this,arguments)};var M=this.layoutManager.getLayout;this.layoutManager.getLayout=function(Q){var S=this.graph.getCellStyle(Q);if(null!=S&&"rack"==S.childLayout){var W=new mxStackLayout(this.graph,!1);W.gridSize=null!=S.rackUnitSize?
| 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,null!=C&&n&&(p.shadowVisible=C),this.editor.graph.model.execute(p))});c=new BackgroundImageDialog(this,c,e,k,n);this.showDialog(c.container,400,n?240:220,!0,!0);c.init()};EditorUi.prototype.showLibraryDialog=function(c,e,k,n,p){c=new LibraryDialog(this,c,e,k,n,p);this.showDialog(c.container,640,440,!0,!1,mxUtils.bind(this,function(t){t&&null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.showSplash()}));c.init()};var l=EditorUi.prototype.createFormat;EditorUi.prototype.createFormat=function(c){var e=
l.apply(this,arguments);this.editor.graph.addListener("viewStateChanged",mxUtils.bind(this,function(k){this.editor.graph.isSelectionEmpty()&&e.refresh()}));return e};EditorUi.prototype.handleError=function(c,e,k,n,p,t,y){var C=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},G=null!=c&&null!=c.error?c.error:c;if(null!=c&&("1"==urlParams.test||null!=c.stack)&&null!=c.message)try{y?null!=window.console&&console.error("EditorUi.handleError:",c):EditorUi.logError("Caught: "+
| 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.useCanvasForExport||".png"!=n||(n=".drawio"),".svg"===n||".xml"===n||".html"===n||".png"===n||".drawio"===n)&&(e=k+n)}c=new LocalFile(this,c,null!=urlParams.title?decodeURIComponent(urlParams.title):e,!0);c.getHash=function(){return b};this.fileLoaded(c,!0)?null!=d&&d():U()||this.handleError({message:mxResources.get("fileNotFound")},mxResources.get("errorLoadingFile"))}else U()||this.handleError({message:mxResources.get("fileNotFound")},mxResources.get("errorLoadingFile"))}),mxUtils.bind(this,
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
Editor.onMathJaxDone=function(){};var Q=Editor.prototype.init;Editor.prototype.init=function(){Q.apply(this,arguments);var W=mxUtils.bind(this,function(T,X){null!=this.graph.container&&this.graph.mathEnabled&&Editor.MathJaxRender(this.graph.container)});this.graph.model.addListener(mxEvent.CHANGE,W);this.graph.addListener(mxEvent.REFRESH,W)};x=document.getElementsByTagName("script");if(null!=x&&0<x.length){var S=document.createElement("script");S.setAttribute("type","text/javascript");S.setAttribute("src",
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
return V};EditorUi.prototype.getXmlFileData=function(c,e,k,n){c=null!=c?c:!0;e=null!=e?e:!1;k=null!=k?k:!Editor.defaultCompressed;var p=this.editor.getGraphXml(c,n);if(c&&null!=this.fileNode&&null!=this.currentPage)if(c=function(G){var B=G.getElementsByTagName("mxGraphModel");B=0<B.length?B[0]:null;null==B&&k?(B=mxUtils.trim(mxUtils.getTextContent(G)),G=G.cloneNode(!1),0<B.length&&(B=Graph.decompress(B),null!=B&&0<B.length&&G.appendChild(mxUtils.parseXml(B).documentElement))):null==B||k?G=G.cloneNode(!0):
(G=G.cloneNode(!1),mxUtils.setTextContent(G,Graph.compressNode(B)));p.appendChild(G)},EditorUi.removeChildNodes(this.currentPage.node),mxUtils.setTextContent(this.currentPage.node,Graph.compressNode(p)),p=this.fileNode.cloneNode(!1),e)c(this.currentPage.node);else for(e=0;e<this.pages.length;e++){var t=this.pages[e],y=t.node;if(t!=this.currentPage)if(t.needsUpdate){var C=new mxCodec(mxUtils.createXmlDocument());C=C.encode(new mxGraphModel(t.root));this.editor.graph.saveViewState(t.viewState,C,null,
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
function(g,x,F,M,Q,S,W,T,X,Z){if(null!=F&&null==mxMarker.markers[F]){var Y=this.getPackageForType(F);null!=Y&&mxStencilRegistry.getStencil(Y)}return H.apply(this,arguments)};var m=mxStencil.prototype.drawShape;mxStencil.prototype.drawShape=function(g,x,F,M,Q,S){"1"==mxUtils.getValue(x.style,"lineShape",null)&&g.setFillColor(mxUtils.getValue(x.style,mxConstants.STYLE_STROKECOLOR,this.stroke));return m.apply(this,arguments)};PrintDialog.prototype.create=function(g,x){function F(){fa.value=Math.max(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
|
O=parseFloat(m[0].getAttribute("height")))}k(G.result,R,O)}catch(v){n(v)}};V.src=G.result};G.onerror=function(B){n(B)}}else n(C)};y.onerror=function(C){n(C)};y.send()};EditorUi.prototype.insertAsPreText=function(c,e,k){var n=this.editor.graph,p=null;n.getModel().beginUpdate();try{p=n.insertVertex(null,null,"<pre>"+c+"</pre>",e,k,1,1,"text;html=1;align=left;verticalAlign=top;"),n.updateCellSize(p,!0)}finally{n.getModel().endUpdate()}return p};EditorUi.prototype.insertTextAt=function(c,e,k,n,p,t,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
|
c?c:"",extras:JSON.stringify(p),scale:y,border:C,w:R&&isFinite(R)?R:null,h:O&&isFinite(O)?O:null}};EditorUi.prototype.setMode=function(c,e){this.mode=c};EditorUi.prototype.getDiagramId=function(){var c=window.location.hash;null!=c&&0<c.length&&(c=c.substring(1));if(null!=c&&1<c.length){var e=c.indexOf("#");0<=e&&(c=c.substring(0,e))}return c};EditorUi.prototype.getHashObject=function(){var c=window.location.hash,e={};if(null!=c&&0<c.length){var k=c.lastIndexOf("#");if(0<k){c=decodeURIComponent(c.substring(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
|
Graph.prototype.fitWindow=function(a,b){b=null!=b?b:10;var e=this.container.clientWidth-b,f=this.container.clientHeight-b;this.zoomTo(Math.floor(20*Math.min(e/a.width,f/a.height))/20);if(mxUtils.hasScrollbars(this.container)){var g=this.view.translate;this.container.scrollLeft=(a.x+g.x)*this.view.scale-Math.max((e-a.width*this.view.scale)/2+b/2,0);this.container.scrollTop=(a.y+g.y)*this.view.scale-Math.max((f-a.height*this.view.scale)/2+b/2,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.ui.pages.push(this.ui.createPage());0>mxUtils.indexOf(this.ui.pages,this.ui.currentPage)&&this.ui.selectPage(this.ui.pages[0],!0)}finally{D.container.style.visibility="";D.model.endUpdate();D.cellRenderer.redraw=U;this.changeListenerEnabled=L;l||(q.history=u,q.indexOfNextAdd=z,q.fireEvent(new mxEventObject(mxEvent.CLEAR)));if(null==this.ui.currentPage||this.ui.currentPage.needsUpdate)E!=D.mathEnabled?(this.ui.editor.updateGraphComponents(),D.refresh()):(K!=D.foldingEnabled?D.view.revalidate():
D.view.validate(),D.sizeDidChange());null!=this.sync&&this.isRealtime()&&!d&&(this.sync.snapshot=this.ui.clonePages(this.ui.pages));this.ui.editor.fireEvent(new mxEventObject("pagesPatched","patches",b))}EditorUi.debug("DrawioFile.patch",[this],"patches",b,"resolver",f,"undoable",l)}return b};
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
function(K){return this.isTreeEdge(K)}))};Graph.prototype.getIncomingTreeEdges=function(d,q){return this.getTreeEdges(d,q,!0,!1,!1)};Graph.prototype.getOutgoingTreeEdges=function(d,q){return this.getTreeEdges(d,q,!1,!0,!1)};var f=EditorUi.prototype.init;EditorUi.prototype.init=function(){f.apply(this,arguments);this.editor.isChromelessView()&&!this.editor.editable||this.addTrees()};EditorUi.prototype.addTrees=function(){function d(H){return k.isVertex(H)&&u(H)}function q(H){var m=!1;null!=H&&(m="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
|
n;for(t=0;t<p.length;t++)y.objectStore(p[t]).put(null!=c&&null!=c[t]?{key:c[t],data:e[t]}:e[t])}catch(C){null!=n&&n(C)}}),n)};EditorUi.prototype.removeDatabaseItem=function(c,e,k,n){this.openDatabase(mxUtils.bind(this,function(p){n=n||"objects";Array.isArray(n)||(n=[n],c=[c]);p=p.transaction(n,"readwrite");p.oncomplete=e;p.onerror=k;for(var t=0;t<n.length;t++)p.objectStore(n[t]).delete(c[t])}),k)};EditorUi.prototype.getDatabaseItem=function(c,e,k,n){this.openDatabase(mxUtils.bind(this,function(p){try{n=
n||"objects";var t=p.transaction([n],"readonly").objectStore(n).get(c);t.onsuccess=function(){e(t.result)};t.onerror=k}catch(y){null!=k&&k(y)}}),k)};EditorUi.prototype.getDatabaseItems=function(c,e,k){this.openDatabase(mxUtils.bind(this,function(n){try{k=k||"objects";var p=n.transaction([k],"readonly").objectStore(k).openCursor(IDBKeyRange.lowerBound(0)),t=[];p.onsuccess=function(y){null==y.target.result?c(t):(t.push(y.target.result.value),y.target.result.continue())};p.onerror=e}catch(y){null!=e&&
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
g);x[0].parentNode.appendChild(S)}}};Editor.prototype.csvToArray=function(g){if(0<g.length){var x="",F=[""],M=0,Q=!0,S;g=$jscomp.makeIterator(g);for(S=g.next();!S.done;S=g.next())S=S.value,'"'===S?(Q&&S===x&&(F[M]+=S),Q=!Q):","===S&&Q?S=F[++M]="":F[M]+=S,x=S;return F}return[]};Editor.prototype.getProxiedUrl=function(g){if((/test\.draw\.io$/.test(window.location.hostname)||/app\.diagrams\.net$/.test(window.location.hostname))&&!this.isCorsEnabledForUrl(g)){var x=/(\.v(dx|sdx?))($|\?)/i.test(g)||/(\.vs(x|sx?))($|\?)/i.test(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
|
"4px");null!=Y&&ca.setAttribute("title",Y);null!=ba&&(T=function(){ba.isEnabled()?(ca.removeAttribute("disabled"),ca.style.cursor="pointer"):(ca.setAttribute("disabled","disabled"),ca.style.cursor="default")},ba.addListener("stateChanged",T),y.addListener("enabledChanged",T),T());return ca}function e(T,X,Z){Z=document.createElement("div");Z.className="geMenuItem";Z.style.display="inline-block";Z.style.verticalAlign="top";Z.style.marginRight="6px";Z.style.padding="0 4px 0 4px";Z.style.height="30px";
Z.style.position="relative";Z.style.top="0px";for(var Y=0;Y<T.length;Y++)null!=T[Y]&&(T[Y].style.margin="0px",T[Y].style.boxShadow="none",Z.appendChild(T[Y]));null!=X&&mxUtils.setOpacity(Z,X);null!=t.statusContainer?C.insertBefore(Z,t.statusContainer):C.appendChild(Z);return Z}function k(){for(var T=C.firstChild;null!=T;){var X=T.nextSibling;"geMenuItem"!=T.className&&"geItem"!=T.className||T.parentNode.removeChild(T);T=X}G=C.firstChild;d=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;
| 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.innerText=ka;ia.appendChild(wa);pa.appendChild(ia);mxEvent.addListener(ia,"click",function(){function Ja(){var ya=Ha.querySelector(".geTemplateDrawioCatLink");null!=ya?ya.click():setTimeout(Ja,200)}fa=!0;var Ha=A.querySelector(".geTemplatesList");Ha.style.display="block";Ba.style.width="";Fa.style.display="";Fa.value="";Y=null;Ja()});ca.style.display=ja.length<=la?"none":""}function R(ja,da,la){function ma(Oa,Xa){Oa=mxResources.get(Oa,null,Oa.substring(0,1).toUpperCase()+Oa.substring(1));var Qa=
| 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
|
y.apply(this,arguments);null==x&&null!=this.globalVars&&(x=this.globalVars[g]);return x};Graph.prototype.getDefaultStylesheet=function(){if(null==this.defaultStylesheet){var g=this.themes["default-style2"];this.defaultStylesheet=(new mxCodec(g.ownerDocument)).decode(g)}return this.defaultStylesheet};Graph.prototype.isViewer=function(){return urlParams.viewer};var C=Graph.prototype.getSvg;Graph.prototype.getSvg=function(g,x,F,M,Q,S,W,T,X,Z,Y,ba,fa,ca){var aa=null,ra=null,za=null;ba||null==this.themes||
| 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&&e(O)}}),null,null,null,mxUtils.bind(this,function(V){null!=e&&e(V)}),null,null,n,null,t.shadowVisible,null,t,p,null,null,null,"diagram",null)}catch(V){null!=e&&e(V)}};EditorUi.prototype.getEmbeddedSvg=function(c,e,k,n,p,t,y,C,G,B,V,R,O){C=null!=C?C:!0;V=null!=V?V:0;y=null!=G?G:e.background;y==mxConstants.NONE&&(y=null);t=e.getSvg(y,B,V,null,null,t,null,null,null,e.shadowVisible||R,null,O,"diagram");(e.shadowVisible||R)&&e.addSvgShadow(t,null,null,0==V);null!=c&&t.setAttribute("content",c);null!=
k&&t.setAttribute("resource",k);var P=mxUtils.bind(this,function(N){N=(n?"":Graph.xmlDeclaration+"\n"+Graph.svgFileComment+"\n"+Graph.svgDoctype+"\n")+mxUtils.getXml(N);null!=p&&p(N);return N});e.mathEnabled&&this.editor.addMathCss(t);if(null!=p)this.embedFonts(t,mxUtils.bind(this,function(N){C?this.editor.convertImages(N,mxUtils.bind(this,function(H){P(H)})):P(N)}));else return P(t)};EditorUi.prototype.embedFonts=function(c,e){this.editor.loadFonts(mxUtils.bind(this,function(){try{null!=this.editor.resolvedFontCss&&
| 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){var Fa=N&&this.isResampleImageSize(T.size,V)?Math.min(1,Math.min(n/na,n/Aa)):1;return p(pa,T.type,e+W*g,k+W*g,Math.round(na*Fa),Math.round(Aa*Fa),T.name)}this.handleError({message:mxResources.get("imageTooBig")});return null}))}),N,n,V,T.size)}),mxUtils.bind(this,function(){this.handleError({message:mxResources.get("invalidOrMissingFile")})})))}else Y=Z.target.result,p(Y,T.type,e+W*g,k+W*g,240,160,T.name,function(ha){Q(W,function(){return ha})},T)}catch(ha){Q(W,mxUtils.bind(this,function(){return 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
|
var g=0,x=0;q.view.states.visit(function(F,M){F=!0;m(M.shape)||(console.log("invalid shape",M.cell.id,M.shape),F=!1);m(M.text)||(console.log("invalid text",M.cell.id,M.text),F=!1);F||g++;x++});console.log("states checked",x,"invalid",g)}));d.actions.addAction("testCheckFile",mxUtils.bind(this,function(){var m=null!=d.pages&&null!=d.getCurrentFile()?d.getCurrentFile().getAnonymizedXmlForPages(d.pages):"";m=new TextareaDialog(d,"Paste Data:",m,function(v){if(0<v.length)try{var A=function(M){function Q(aa){if(null==
ca[aa]){if(ca[aa]=!0,null!=T[aa]){for(;0<T[aa].length;){var ra=T[aa].pop();Q(ra)}delete T[aa]}}else mxLog.debug(S+": Visited: "+aa)}var S=M.parentNode.id,W=M.childNodes;M={};for(var T={},X=null,Z={},Y=0;Y<W.length;Y++){var ba=W[Y];if(null!=ba.id&&0<ba.id.length)if(null==M[ba.id]){M[ba.id]=ba.id;var fa=ba.getAttribute("parent");null==fa?null!=X?mxLog.debug(S+": Multiple roots: "+ba.id):X=ba.id:(null==T[fa]&&(T[fa]=[]),T[fa].push(ba.id))}else Z[ba.id]=ba.id}W=Object.keys(Z);0<W.length?(W=S+": "+W.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
|
arguments);q()};q();var J=document.createElement("canvas");J.width=U.offsetWidth;J.height=U.offsetHeight;U.style.overflow="hidden";J.style.position="relative";U.appendChild(J);var c=J.getContext("2d");this.ui=b;var e=b.editor.graph;this.graph=e;this.container=U;this.canvas=J;var k=function(y,C,G,B,V){y=Math.round(y);C=Math.round(C);G=Math.round(G);B=Math.round(B);c.beginPath();c.moveTo(y+.5,C+.5);c.lineTo(G+.5,B+.5);c.stroke();V&&(l?(c.save(),c.translate(y,C),c.rotate(-Math.PI/2),c.fillText(V,0,0),
c.restore()):c.fillText(V,y,C))},n=function(){c.clearRect(0,0,J.width,J.height);c.beginPath();c.lineWidth=.7;c.strokeStyle=E.strokeClr;c.setLineDash([]);c.font="9px Arial";c.textAlign="center";var y=e.view.scale,C=e.view.getBackgroundPageBounds(),G=e.view.translate,B=e.pageVisible;G=B?L+(l?C.y-e.container.scrollTop:C.x-e.container.scrollLeft):L+(l?G.y*y-e.container.scrollTop:G.x*y-e.container.scrollLeft);var V=0;B&&(V=e.getPageLayout(),V=l?V.y*e.pageFormat.height:V.x*e.pageFormat.width);var R;switch(K.unit){case mxConstants.POINTS:var O=
| 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==I.getTerminal(g[x],!0)){I.setTerminal(g[x],H,!0);var F=e.getCellGeometry(g[x]);F.points=null;null!=F.getTerminalPoint(!0)&&F.setTerminalPoint(null,!0)}}finally{I.endUpdate()}return g}}var G={67:c.actions.get("selectChildren"),88:c.actions.get("selectDescendants"),80:c.actions.get("selectParent"),83:c.actions.get("selectSiblings")},B=c.onKeyDown;c.onKeyDown=function(H){try{var m=e.getSelectionCell();if(e.isEnabled()&&!e.isEditing()&&null!=m){var v=mxEvent.isAltDown(H)&&mxEvent.isShiftDown(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
|
F.substring(0,17)&&this.setLinkForCell(x,this.updateCustomLink(g,F));if(this.isHtmlLabel(x)){var M=document.createElement("div");M.innerHTML=Graph.sanitizeHtml(this.getLabel(x));for(var Q=M.getElementsByTagName("a"),S=!1,W=0;W<Q.length;W++)F=Q[W].getAttribute("href"),null!=F&&"data:action/json,"==F.substring(0,17)&&(Q[W].setAttribute("href",this.updateCustomLink(g,F)),S=!0);S&&this.labelChanged(x,M.innerHTML)}};Graph.prototype.updateCustomLink=function(g,x){if("data:action/json,"==x.substring(0,17))try{var F=
JSON.parse(x.substring(17));null!=F.actions&&(this.updateCustomLinkActions(g,F.actions),x="data:action/json,"+JSON.stringify(F))}catch(M){}return x};Graph.prototype.updateCustomLinkActions=function(g,x){for(var F=0;F<x.length;F++){var M=x[F],Q;for(Q in M)this.updateCustomLinkAction(g,M[Q],"cells"),this.updateCustomLinkAction(g,M[Q],"excludeCells")}};Graph.prototype.updateCustomLinkAction=function(g,x,F){if(null!=x&&null!=x[F]){for(var M=[],Q=0;Q<x[F].length;Q++)if("*"==x[F][Q])M.push(x[F][Q]);else{var S=
| 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)for(z=0;z<u.length;z++)u[z].node.style.visibility=d?"visible":"hidden"};var l=mxGuide.prototype.destroy;mxGuide.prototype.destroy=function(){l.call(this);var d=this.guidesArrVer,q=this.guidesArrHor;if(null!=d){for(var u=0;u<d.length;u++)d[u].destroy();this.guidesArrVer=null}if(null!=q){for(u=0;u<q.length;u++)q[u].destroy();this.guidesArrHor=null}}})();function mxRuler(b,f,l,d){function q(){var y=b.diagramContainer;U.style.top=y.offsetTop-L+"px";U.style.left=y.offsetLeft-L+"px";U.style.width=(l?0:y.offsetWidth)+L+"px";U.style.height=(l?y.offsetHeight:0)+L+"px"}function u(y,C,G){if(null!=z)return y;var B;return function(){var V=this,R=arguments,O=G&&!B;clearTimeout(B);B=setTimeout(function(){B=null;G||y.apply(V,R)},C);O&&y.apply(V,R)}}var z=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame,
| 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
|
g.substring(0,34)||"https://fonts.googleapis.com/"===g.substring(0,29)||"https://fonts.gstatic.com/"===g.substring(0,26)};Editor.prototype.createImageUrlConverter=function(){var g=new mxUrlConverter;g.updateBaseUrl();var x=g.convert,F=this;g.convert=function(M){if(null!=M){var Q="http://"==M.substring(0,7)||"https://"==M.substring(0,8);Q&&!navigator.onLine?M=Editor.svgBrokenImage.src:!Q||M.substring(0,g.baseUrl.length)==g.baseUrl||F.crossOriginImages&&F.isCorsEnabledForUrl(M)?"chrome-extension://"==
M.substring(0,19)||mxClient.IS_CHROMEAPP||(M=x.apply(this,arguments)):M=PROXY_URL+"?url="+encodeURIComponent(M)}return M};return g};Editor.createSvgDataUri=function(g){return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(g)))};Editor.prototype.convertImageToDataUri=function(g,x){try{var F=!0,M=window.setTimeout(mxUtils.bind(this,function(){F=!1;x(Editor.svgBrokenImage.src)}),this.timeout);if(/(\.svg)$/i.test(g))mxUtils.get(g,mxUtils.bind(this,function(S){window.clearTimeout(M);F&&x(Editor.createSvgDataUri(S.getText()))}),
| 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,c,mxResources.get("ok"),e);this.showDialog(c.container,k||340,100,!0,!1);c.init()};EditorUi.prototype.confirm=function(c,e,k,n,p,t){c=null!=c?c:"";var y=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},C=Math.min(220,28*Math.ceil(Math.max(1,c.length)/50));c=new ConfirmDialog(this,c,function(){y();null!=e&&e()},function(){y();null!=k&&k()},n,p,null,null,null,null,C);this.showDialog(c.container,340,46+C,!0,t);c.init()};EditorUi.prototype.showBanner=function(c,e,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
|
(new mxXmlRequest(SAVE_URL,"format="+U+"&xml="+encodeURIComponent(K)+"&filename="+encodeURIComponent(b)+(u?"&binary=1":""))).simulate(document,"_blank")}else this.ui.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(K)}));D()}});u?(f=this.ui.getPngFileProperties(this.ui.fileNode),this.ui.getEmbeddedPng(mxUtils.bind(this,function(K){L(K)}),d,this.ui.getCurrentFile()!=this?z:null,f.scale,f.border)):L(z)};
| 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.prev.getId():"";null!=f.page.getName()&&b[L].getName()!=f.page.getName()&&(U.name=f.page.getName());mxUtils.isEmptyObject(U)||(z[K]=U)}delete u[b[L].getId()];D=b[L]}for(K in u)f=u[K],l.push({id:f.page.getId(),data:mxUtils.getXml(f.page.node),previous:null!=f.prev?f.prev.getId():""});mxUtils.isEmptyObject(z)||(q[EditorUi.DIFF_UPDATE]=z);0<d.length&&(q[EditorUi.DIFF_REMOVE]=d);0<l.length&&(q[EditorUi.DIFF_INSERT]=l)}return 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
|
m,mxUtils.bind(this,function(v){null==v||".scratchpad"==m&&v==this.emptyLibraryXml?C.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",funtionName:"getLocalStorageFile",functionArgs:[m]}),"*"):P()}),P)}}catch(v){console.log(v)}}),H=mxUtils.bind(this,function(m){try{this.setDatabaseItem(null,[{title:m.title,size:m.data.length,lastModified:Date.now(),type:m.isLib?"L":"F"},{title:m.title,data:m.data}],P,P,["filesInfo","files"])}catch(v){console.log(v)}});y=mxUtils.bind(this,function(m){try{if(m.source==
| 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
|
{replAllMrk:p,replAllPos:n};E.isCellEditable(M)&&(E.model.setValue(M,H(Q,k,G.value,n-k.length,E.getCurrentCellStyle(M))),x++)}I!=b.currentPage&&b.editor.graph.model.execute(new SelectPage(b,I));mxUtils.write(N,mxResources.get("matchesRepl",[x]))}catch(W){b.handleError(W)}finally{E.getModel().endUpdate(),b.editor.graph.setSelectionCells(g),b.editor.graph.rendering=!0}p++});A.setAttribute("title",mxResources.get("replaceAll"));A.style.float="none";A.style.width="120px";A.style.marginTop="6px";A.style.marginLeft=
| 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.loadFonts=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: loadFonts");return this.editor.loadFonts(c)};EditorUi.prototype.createSvgDataUri=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: createSvgDataUri");return Editor.createSvgDataUri(c)};EditorUi.prototype.embedCssFonts=function(c,e){EditorUi.logEvent("SHOULD NOT BE CALLED: embedCssFonts");return this.editor.embedCssFonts(c,e)};EditorUi.prototype.embedExtFonts=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: embedExtFonts");
return this.editor.embedExtFonts(c)};EditorUi.prototype.exportToCanvas=function(c,e,k,n,p,t,y,C,G,B,V,R,O,P,N,H){EditorUi.logEvent("SHOULD NOT BE CALLED: exportToCanvas");return this.editor.exportToCanvas(c,e,k,n,p,t,y,C,G,B,V,R,O,P,N,H)};EditorUi.prototype.createImageUrlConverter=function(){EditorUi.logEvent("SHOULD NOT BE CALLED: createImageUrlConverter");return this.editor.createImageUrlConverter()};EditorUi.prototype.convertImages=function(c,e,k,n){EditorUi.logEvent("SHOULD NOT BE CALLED: convertImages");
| 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
|
(Y.charCodeAt(0)<<24)}function T(Y){return String.fromCharCode(Y>>24&255,Y>>16&255,Y>>8&255,Y&255)}g=g.substring(g.indexOf(",")+1);g=window.atob?atob(g):Base64.decode(g,!0);var X=0;if(S(g,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=Q&&Q();else if(S(g,4),"IHDR"!=S(g,4))null!=Q&&Q();else{S(g,17);Q=g.substring(0,X);do{var Z=W(g);if("IDAT"==S(g,4)){Q=g.substring(0,X-8);"pHYs"==x&&"dpi"==F?(F=Math.round(M/.0254),F=T(F)+T(F)+String.fromCharCode(1)):F=F+String.fromCharCode(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(){window.clearTimeout(M);F&&x(Editor.svgBrokenImage.src)});else{var Q=new Image;this.crossOriginImages&&(Q.crossOrigin="anonymous");Q.onload=function(){window.clearTimeout(M);if(F)try{var S=document.createElement("canvas"),W=S.getContext("2d");S.height=Q.height;S.width=Q.width;W.drawImage(Q,0,0);x(S.toDataURL())}catch(T){x(Editor.svgBrokenImage.src)}};Q.onerror=function(){window.clearTimeout(M);F&&x(Editor.svgBrokenImage.src)};Q.src=g}}catch(S){x(Editor.svgBrokenImage.src)}};Editor.prototype.convertImages=
| 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.highlightCells=function(g,x,F,M){for(var Q=0;Q<g.length;Q++)this.highlightCell(g[Q],x,F,M)};Graph.prototype.highlightCell=function(g,x,F,M,Q){x=null!=x?x:mxConstants.DEFAULT_VALID_COLOR;F=null!=F?F:1E3;g=this.view.getState(g);var S=null;null!=g&&(Q=null!=Q?Q:4,Q=Math.max(Q+1,mxUtils.getValue(g.style,mxConstants.STYLE_STROKEWIDTH,1)+Q),S=new mxCellHighlight(this,x,Q,!1),null!=M&&(S.opacity=M),S.highlight(g),window.setTimeout(function(){null!=S.shape&&(mxUtils.setPrefixedStyle(S.shape.node.style,
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
l.setCellStyles(mxConstants.STYLE_ROTATION,Number(p.value),[f[y]])}}finally{l.getModel().endUpdate()}});t.className="geBtn gePrimaryBtn";mxEvent.addListener(q,"keypress",function(y){13==y.keyCode&&t.click()});u=document.createElement("div");u.style.marginTop="20px";u.style.textAlign="right";b.editor.cancelFirst?(u.appendChild(d),u.appendChild(t)):(u.appendChild(t),u.appendChild(d));q.appendChild(u);this.container=q},LibraryDialog=function(b,f,l,d,q,u){function z(V){for(V=document.elementFromPoint(V.clientX,
V.clientY);null!=V&&V.parentNode!=c;)V=V.parentNode;var R=null;if(null!=V){var O=c.firstChild;for(R=0;null!=O&&O!=V;)O=O.nextSibling,R++}return R}function D(V,R,O,P,N,H,m,v,A){try{if(b.spinner.stop(),null==R||"image/"==R.substring(0,6))if(null==V&&null!=m||null==k[V]){var I=function(){T.innerText="";T.style.cursor="pointer";T.style.whiteSpace="nowrap";T.style.textOverflow="ellipsis";mxUtils.write(T,null!=X.title&&0<X.title.length?X.title:mxResources.get("untitled"));T.style.color=null==X.title||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
|
else{var wa=function(sa){qa&&b.sidebar.currentElt==da&&ia(sa,mxEvent.getClientX(ma),mxEvent.getClientY(ma));qa=!1;la.src="/images/icon-search.svg"};b.sidebar.hideTooltip();b.sidebar.currentElt=da;qa=!0;la.src="/images/aui-wait.gif";ja.isExt?L(ja,wa,function(){k(mxResources.get("cantLoadPrev"));qa=!1;la.src="/images/icon-search.svg"}):oa(ja.url,wa)}}function y(ja,da,la){if(null!=M){for(var ma=M.className.split(" "),oa=0;oa<ma.length;oa++)if(-1<ma[oa].indexOf("Active")){ma.splice(oa,1);break}M.className=
ma.join(" ")}null!=ja?(M=ja,M.className+=" "+da,Q=la,na.className="geTempDlgCreateBtn"):(Q=M=null,na.className="geTempDlgCreateBtn geTempDlgBtnDisabled")}function C(ja,da){if(null!=Q){var la=function(wa){ka.isExternal?L(ka,function(sa){ma(sa,wa)},oa):ka.url?mxUtils.get(TEMPLATE_PATH+"/"+ka.url,mxUtils.bind(this,function(sa){200<=sa.getStatus()&&299>=sa.getStatus()?ma(sa.getText(),wa):oa()})):ma(b.emptyDiagramXml,wa)},ma=function(wa,sa){e||b.hideDialog(!0);f(wa,sa,ka,da)},oa=function(){k(mxResources.get("cannotLoad"));
| 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(K){return this.isTreeEdge(K)}))};Graph.prototype.getIncomingTreeEdges=function(d,q){return this.getTreeEdges(d,q,!0,!1,!1)};Graph.prototype.getOutgoingTreeEdges=function(d,q){return this.getTreeEdges(d,q,!1,!0,!1)};var f=EditorUi.prototype.init;EditorUi.prototype.init=function(){f.apply(this,arguments);this.editor.isChromelessView()&&!this.editor.editable||this.addTrees()};EditorUi.prototype.addTrees=function(){function d(H){return k.isVertex(H)&&u(H)}function q(H){var m=!1;null!=H&&(m="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
|
0,E.width,E.height),f.style+";rotatable=0;resizable=0;connectable=0;editable=0;movable=0;");J.vertex=!0;U.addCell(J);U.dblClick=function(N,H){if(null!=H&&H!=J)U.setSelectionCell(H);else{H=mxUtils.convertPoint(U.container,mxEvent.getClientX(N),mxEvent.getClientY(N));mxEvent.consume(N);N=U.view.scale;var m=U.view.translate;U.setSelectionCell(u((H.x-3*N)/N-m.x,(H.y-3*N)/N-m.y))}};q=new mxKeyHandler(U);q.bindKey(46,z);q.bindKey(8,z);U.getRubberband().isForceRubberbandEvent=function(N){return 0==N.evt.button&&
(null==N.getCell()||N.getCell()==J)};U.panningHandler.isForcePanningEvent=function(N){return 2==N.evt.button};var c=U.isCellSelectable;U.isCellSelectable=function(N){return N==J?!1:c.apply(this,arguments)};U.getLinkForCell=function(){return null};var e=U.view.getState(J);E=U.getAllConnectionConstraints(e);for(var k=0;null!=E&&k<E.length;k++){var n=U.getConnectionPoint(e,E[k]);u(n.x-3,n.y-3,E[k])}U.fit(8);U.center();k=b.createToolbarButton(Editor.zoomInImage,mxResources.get("zoomIn"),function(){U.zoomIn()},
| 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(Q){this.spinner.stop();x(Graph.xmlDeclaration+"\n"+Graph.svgDoctype+"\n"+mxUtils.getXml(Q))})))}else P=O+".svg",g=this.getFileData(!1,!0,null,mxUtils.bind(this,function(Q){this.spinner.stop();x(Q)}),n)}}catch(Q){this.handleError(Q)}};EditorUi.prototype.createDownloadRequest=function(c,e,k,n,p,t,y,C,G,B,V,R,O){c=this.downloadRequestBuilder(c,e,k,n,p,t,y,C,G,B,V,R,O);e="";for(var P in c)k=c[P],null!=k&&(e+=P+"="+encodeURIComponent(k)+"&");return new mxXmlRequest(EXPORT_URL,
e)};EditorUi.prototype.downloadRequestBuilder=function(c,e,k,n,p,t,y,C,G,B,V,R,O){var P=this.editor.graph,N=P.getGraphBounds();k=this.getFileData(!0,null,null,null,k,0==t?!1:"xmlpng"!=e,null,null,null,!Editor.defaultCompressed,"pdf"==e);var H=null,m=null,v=null;if(N.width*N.height>MAX_AREA||k.length>MAX_REQUEST_SIZE)throw{message:mxResources.get("drawingTooLarge")};B=B?"1":"0";"pdf"==e&&(null!=V?(H=V.from,m=V.to):0==t&&(v="1"));"xmlpng"==e&&(B="1",e="png");if(("xmlpng"==e||"svg"==e)&&null!=this.pages&&
| 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
|
"cells",[O]))}finally{G.getModel().endUpdate()}G.setSelectionCell(O)}))}else{c=Graph.zapGremlins(mxUtils.trim(c));if(this.isCompatibleString(c))return this.importXml(c,e,k,t,null,C);if(0<c.length)if(this.isLucidChartData(c))this.convertLucidChart(c,mxUtils.bind(this,function(O){this.editor.graph.setSelectionCells(this.importXml(O,e,k,t,null,C))}),mxUtils.bind(this,function(O){this.handleError(O)}));else{G=this.editor.graph;p=null;G.getModel().beginUpdate();try{p=G.insertVertex(G.getDefaultParent(),
| 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.formatElt.style.width)}function f(J,c){function e(p,t){var y=J.menus.get(p);p=k.addMenu(t,mxUtils.bind(this,function(){y.funct.apply(this,arguments)}));p.style.cssText="position:absolute;border-width:1px;cusor:pointer;border-style:none;height:24px;bottom:0px;text-align:center;padding:8px 6px 0 6px;border-top-style:solid;width:50%;height:32px;box-sizing:border-box;font-size:11px;";p.className="geTitle";c.appendChild(p);return p}var k=new Menubar(J,c);if(Editor.enableCustomLibraries&&("1"!=urlParams.embed||
"1"==urlParams.libraries))if(null!=J.actions.get("newLibrary")){var n=document.createElement("div");n.style.cssText="position:absolute;border-width:1px;cusor:pointer;border-style:none;height:24px;bottom:0px;text-align:center;padding:8px 6px 0 6px;border-top-style:solid;width:50%;height:32px;box-sizing:border-box;font-size:11px;";n.className="geTitle";mxUtils.write(n,mxResources.get("newLibrary"));c.appendChild(n);mxEvent.addListener(n,"click",this.actions.get("newLibrary").funct);n=n.cloneNode(!1);
n.style.left="50%";n.style.borderLeftStyle="solid";mxUtils.write(n,mxResources.get("openLibrary"));c.appendChild(n);mxEvent.addListener(n,"click",this.actions.get("openLibrary").funct)}else n=e("newLibrary",mxResources.get("newLibrary")),n.style.fontSize="11px",n.style.left="0",n=e("openLibraryFrom",mxResources.get("openLibraryFrom")),n.style.borderLeftStyle="solid",n.style.fontSize="11px",n.style.left="50%";c.appendChild(J.sidebar.container);c.style.overflow="hidden"}function l(J,c){if(EditorUi.windowed){var e=
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
document.execCommand("copy");this.alert(mxResources.get("copiedToClipboard"));n.value=t}catch(y){this.handleError(y)}}));p.setAttribute("title","copy");p.className="geBtn";k.appendChild(p)}),!0,null,null,"https://www.drawio.com/doc/faq/apply-layouts");this.showDialog(e.container,620,460,!0,!0);e.init()}))};EditorUi.prototype.loadOrgChartLayouts=function(c){this.createTimeout(null,mxUtils.bind(this,function(e){var k=mxUtils.bind(this,function(){this.loadingOrgChart=!1;e.clear()&&(Graph.layoutNames.push("mxOrgChartLayout"),
this.spinner.stop(),c())}),n=mxUtils.bind(this,function(p){this.loadingOrgChart=!1;e.clear()&&this.handleError(p)});"undefined"!==typeof mxOrgChartLayout||this.loadingOrgChart||this.isOffline(!0)?k():this.spinner.spin(document.body,mxResources.get("loading"))&&(this.loadingOrgChart=!0,"1"==urlParams.dev?mxscript("js/orgchart/bridge.min.js",function(){mxscript("js/orgchart/bridge.collections.min.js",function(){mxscript("js/orgchart/OrgChart.Layout.min.js",function(){mxscript("js/orgchart/mxOrgChartLayout.js",
k,null,null,null,n)},null,null,null,n)},null,null,null,n)},null,null,null,n):mxscript(DRAWIO_BASE_URL+"/js/orgchart.min.js",k,null,null,null,n))}),onerror)};EditorUi.prototype.importCsv=function(c,e){this.loadOrgChartLayouts(mxUtils.bind(this,function(){this.doImportCsv(c,e)}))};EditorUi.prototype.doImportCsv=function(c,e){try{var k=c.split("\n"),n=[],p=[],t=[],y={};if(0<k.length){var C={},G=this.editor.graph,B=null,V=null,R=null,O=null,P=null,N=null,H=null,m="whiteSpace=wrap;html=1;",v=null,A=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
|
t.defaultLibraryName=mxResources.get("untitledLibrary");var C=document.createElement("div");C.className="geMenubarContainer";var G=null,B=new Menubar(t,C);t.statusContainer=t.createStatusContainer();t.statusContainer.style.position="relative";t.statusContainer.style.maxWidth="";t.statusContainer.style.color="gray";t.statusContainer.style.cursor="default";var V=t.hideCurrentMenu;t.hideCurrentMenu=function(){V.apply(this,arguments);this.editor.graph.popupMenuHandler.hideMenu()};var R=t.descriptorChanged;
| 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
|
H.readAsText(N)}else this.doImportVisio(N,e,C,n)}catch(m){C(m)}else try{""==P.responseType||"text"==P.responseType?C({message:P.responseText}):(H=new FileReader,H.onload=function(){try{C({message:JSON.parse(H.result).Message})}catch(m){C(m)}},H.readAsText(P.response))}catch(m){C({})}});P.send(B)}else if(y.clear())try{this.doImportVisio(c,e,C,n)}catch(N){C(N)}}else C({message:mxResources.get("serviceUnavailableOrBlocked")})});this.doImportVisio||this.loadingExtensions||this.isOffline(!0)?G():(this.loadingExtensions=
| 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
|
mxConstants.STYLE_STROKECOLOR,mxUtils.getValue(P,mxConstants.STYLE_STROKECOLOR,"#000"));"default"==P&&(P=b.shapeForegroundColor);return P};this.createStyle=function(P){var N=";fillColor=none;";t&&(N=";lineShape=1;");return mxConstants.STYLE_SHAPE+"="+P+N};this.stopDrawing=function(){if(0<q.length){if(t){for(var P=[],N=0;N<z.length;N++)null!=z[N]&&P.push([z[N].x,z[N].y]);P=PerfectFreehand.getStroke(P,p);z=[];for(N=0;N<P.length;N++)z.push({x:P[N][0],y:P[N][1]});z.push(null)}P=z[0].x;var H=z[0].x,m=
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
1));try{e=JSON.parse(c)}catch(n){}}}return e};EditorUi.prototype.updateHashObject=function(){if(null!=this.currentFile&&""!=this.currentFile.getHash()&&null!=this.currentPage&&0<this.getSelectedPageIndex()){var c=this.getHashObject();c.pageId=this.currentPage.getId();this.setHashObject(c)}else this.setHashObject(null)};EditorUi.prototype.setHashObject=function(c){if(Editor.enableHashObjects){var e=window.location.hash;if(null==e||""==e)e="#";var k=e.lastIndexOf("#");0<k&&(e=e.substring(0,k));try{null==
c||mxUtils.isEmptyObject(c)||(e=e+"#"+encodeURIComponent(JSON.stringify(c)))}catch(n){}window.location.hash=e}};EditorUi.prototype.loadDescriptor=function(c,e,k){var n=window.location.hash,p=mxUtils.bind(this,function(y){var C=null!=c.data?c.data:"";null!=y&&0<y.length&&(0<C.length&&(C+="\n"),C+=y);y=new LocalFile(this,"csv"!=c.format&&0<C.length?C:this.emptyDiagramXml,null!=urlParams.title?decodeURIComponent(urlParams.title):this.defaultFilename,!0);y.getHash=function(){return n};this.fileLoaded(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
|
m);var X=mxUtils.bind(this,function(Z,Y,ba){T.innerText="";mxUtils.write(T,Math.round(100*t.editor.graph.view.scale*(null!=ba?ba:1))+"%")});t.editor.graph.view.addListener(mxEvent.EVENT_SCALE,X);t.editor.addListener("resetGraphView",X);t.editor.addListener("pageSelected",X);t.editor.graph.addListener("zoomPreview",mxUtils.bind(this,function(Z,Y){X(Z,Y,Y.getProperty("factor"))}))})(S);var W=t.setGraphEnabled;t.setGraphEnabled=function(){W.apply(this,arguments);null!=this.tabContainer&&(S.style.visibility=
this.tabContainer.style.visibility,this.diagramContainer.style.bottom="0"!=urlParams.pages&&"hidden"!=this.tabContainer.style.visibility?this.tabContainerHeight+"px":"0px")}}p.appendChild(C);p.appendChild(t.diagramContainer);n.appendChild(p);t.updateTabContainer();!EditorUi.windowed&&1E3<=d&&b(this,!0);p.appendChild(t.tabContainer);k();mxEvent.addListener(window,"resize",function(){k();null!=t.sidebarWindow&&t.sidebarWindow.window.fit();null!=t.formatWindow&&t.formatWindow.window.fit();null!=t.actions.outlineWindow&&
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
S[W];S.stroke!=mxConstants.NONE&&null!=S.stroke||delete this.nextShape.options.stroke;S.filled||delete this.nextShape.options.fill;this.passThrough=!0;this.rc.draw(this.nextShape);this.passThrough=!1}};g.prototype.stroke=function(){this.passThrough?this.originalStroke.apply(this.canvas,arguments):this.drawPath(this.getStyle(!0,!1))};g.prototype.fill=function(){this.passThrough?this.originalFill.apply(this.canvas,arguments):this.drawPath(this.getStyle(!1,!0))};g.prototype.fillAndStroke=function(){this.passThrough?
| 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
|
focus:function(){n.focus()}}};EditorUi.prototype.createUrlParameters=function(c,e,k,n,p,t,y){y=null!=y?y:[];n&&("https://viewer.diagrams.net"==EditorUi.lightboxHost&&"1"!=urlParams.dev||y.push("lightbox=1"),"auto"!=c&&y.push("target="+c),null!=e&&e!=mxConstants.NONE&&y.push("highlight="+("#"==e.charAt(0)?e.substring(1):e)),null!=p&&0<p.length&&y.push("edit="+encodeURIComponent(p)),t&&y.push("layers=1"),this.editor.graph.foldingEnabled&&y.push("nav=1"));k&&null!=this.currentPage&&null!=this.pages&&
| 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.x,u.y),b.editor.graph.fireEvent(new mxEventObject("cellsInserted","cells",O))}finally{b.editor.graph.getModel().endUpdate()}b.editor.graph.setSelectionCells(O);b.editor.graph.scrollCellToVisible(b.editor.graph.getSelectionCell());t.destroy();n.parentNode.removeChild(n)}}}function q(){return"list"==D.value?"Person\n-name: String\n-birthDate: Date\n--\n+getName(): String\n+setName(String): void\n+isBirthday(): boolean\n\nAddress\n-street: String\n-city: String\n-state: String":"mermaid"==D.value||
| 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
|
ma.join(" ")}null!=ja?(M=ja,M.className+=" "+da,Q=la,na.className="geTempDlgCreateBtn"):(Q=M=null,na.className="geTempDlgCreateBtn geTempDlgBtnDisabled")}function C(ja,da){if(null!=Q){var la=function(wa){ka.isExternal?L(ka,function(sa){ma(sa,wa)},oa):ka.url?mxUtils.get(TEMPLATE_PATH+"/"+ka.url,mxUtils.bind(this,function(sa){200<=sa.getStatus()&&299>=sa.getStatus()?ma(sa.getText(),wa):oa()})):ma(b.emptyDiagramXml,wa)},ma=function(wa,sa){e||b.hideDialog(!0);f(wa,sa,ka,da)},oa=function(){k(mxResources.get("cannotLoad"));
| 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
|
}finally{e.getModel().endUpdate()}t&&(e.setSelectionCell(k),e.scrollCellToVisible(k))}};l=mxUtils.button(mxResources.get("preview"),function(){c(E,U,!1)});l.className="geBtn";L.appendChild(l);l=mxUtils.button(mxResources.get("apply"),function(){c(b.editor.graph,f,!0)});l.className="geBtn gePrimaryBtn";L.appendChild(l);b.editor.cancelFirst||L.appendChild(q);D.appendChild(L);z.appendChild(D);u.appendChild(z);this.container=u},CustomDialog=function(b,f,l,d,q,u,z,D,L,K,E,U){var J=document.createElement("div");
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
}finally{e.getModel().endUpdate()}t&&(e.setSelectionCell(k),e.scrollCellToVisible(k))}};l=mxUtils.button(mxResources.get("preview"),function(){c(E,U,!1)});l.className="geBtn";L.appendChild(l);l=mxUtils.button(mxResources.get("apply"),function(){c(b.editor.graph,f,!0)});l.className="geBtn gePrimaryBtn";L.appendChild(l);b.editor.cancelFirst||L.appendChild(q);D.appendChild(L);z.appendChild(D);u.appendChild(z);this.container=u},CustomDialog=function(b,f,l,d,q,u,z,D,L,K,E,U){var J=document.createElement("div");
J.appendChild(f);var c=document.createElement("div");c.style.marginTop=null!=U?U:"30px";c.style.textAlign="center";null!=z&&c.appendChild(z);b.isOffline()||null==u||(f=mxUtils.button(mxResources.get("help"),function(){b.openLink(u)}),f.className="geBtn",c.appendChild(f));L=mxUtils.button(L||mxResources.get("cancel"),function(){b.hideDialog();null!=d&&d()});L.className="geBtn";D&&(L.style.display="none");b.editor.cancelFirst&&c.appendChild(L);q=mxUtils.button(q||mxResources.get("ok"),mxUtils.bind(this,
function(){K||b.hideDialog(null,null,this.container);if(null!=l){var e=l();if("string"===typeof e){b.showError(mxResources.get("error"),e);return}}K&&b.hideDialog(null,null,this.container)}));c.appendChild(q);q.className="geBtn gePrimaryBtn";b.editor.cancelFirst||c.appendChild(L);if(null!=E)for(D=0;D<E.length;D++)(function(e,k,n){e=mxUtils.button(e,function(p){k(p)});null!=n&&e.setAttribute("title",n);e.className="geBtn";c.appendChild(e)})(E[D][0],E[D][1],E[D][2]);J.appendChild(c);this.cancelBtn=
L;this.okButton=q;this.container=J},TemplatesDialog=function(b,f,l,d,q,u,z,D,L,K,E,U,J,c,e){function k(ja){xa.innerText=ja;xa.style.display="block";setTimeout(function(){xa.style.display="none"},4E3)}function n(){null!=x&&(x.style.fontWeight="normal",x.style.textDecoration="none",F=x,x=null)}function p(ja,da,la,ma,oa,ia,ka){if(-1<ja.className.indexOf("geTempDlgRadioBtnActive"))return!1;ja.className+=" geTempDlgRadioBtnActive";A.querySelector(".geTempDlgRadioBtn[data-id="+ma+"]").className="geTempDlgRadioBtn "+
| 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!=aa&&(this.shapeBackgroundColor=za,this.shapeForegroundColor=ra,this.stylesheet=aa,this.refresh());return Ba};var G=mxCellRenderer.prototype.destroy;mxCellRenderer.prototype.destroy=function(g){G.apply(this,arguments);null!=g.secondLabel&&(g.secondLabel.destroy(),g.secondLabel=null)};mxCellRenderer.prototype.getShapesForState=function(g){return[g.shape,g.text,g.secondLabel,g.control]};var B=mxGraphView.prototype.resetValidationState;mxGraphView.prototype.resetValidationState=function(){B.apply(this,
arguments);this.enumerationState=0};var V=mxGraphView.prototype.stateValidated;mxGraphView.prototype.stateValidated=function(g){null!=g.shape&&this.redrawEnumerationState(g);return V.apply(this,arguments)};mxGraphView.prototype.createEnumerationValue=function(g){g=decodeURIComponent(mxUtils.getValue(g.style,"enumerateValue",""));""==g&&(g=++this.enumerationState);return'<div style="padding:2px;border:1px solid gray;background:yellow;border-radius:2px;">'+mxUtils.htmlEntities(g)+"</div>"};mxGraphView.prototype.redrawEnumerationState=
| 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(){window.openFile=null});if(!e){var p=this.dialog,t=p.close;this.dialog.close=mxUtils.bind(this,function(y){Editor.useLocalStorage=n;t.apply(p,arguments);y&&null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.showSplash()})}}};EditorUi.prototype.importZipFile=function(c,e,k){var n=this,p=mxUtils.bind(this,function(){this.loadingExtensions=!1;"undefined"!==typeof JSZip?JSZip.loadAsync(c).then(function(t){if(mxUtils.isEmptyObject(t.files))k();else{var y=0,C,G=!1;t.forEach(function(B,V){B=
V.name.toLowerCase();"diagram/diagram.xml"==B?(G=!0,V.async("string").then(function(R){0==R.indexOf("<mxfile ")?e(R):k()})):0==B.indexOf("versions/")&&(B=parseInt(B.substr(9)),B>y&&(y=B,C=V))});0<y?C.async("string").then(function(B){(new XMLHttpRequest).upload&&n.isRemoteFileFormat(B,c.name)?n.isOffline()?n.showError(mxResources.get("error"),mxResources.get("notInOffline"),null,k):n.parseFileData(B,mxUtils.bind(this,function(V){4==V.readyState&&(200<=V.status&&299>=V.status?e(V.responseText):k())}),
c.name):k()}):G||k()}},function(t){k(t)}):k()});"undefined"!==typeof JSZip||this.loadingExtensions||this.isOffline(!0)?p():(this.loadingExtensions=!0,mxscript("js/extensions.min.js",p,null,null,null,k))};EditorUi.prototype.importFile=function(c,e,k,n,p,t,y,C,G,B,V,R){B=null!=B?B:!0;var O=!1,P=null,N=mxUtils.bind(this,function(H){var m=null;null!=H&&"<mxlibrary"==H.substring(0,10)?this.loadLibrary(new LocalLibrary(this,H,y)):m=this.importXml(H,k,n,B,null,null!=R?mxEvent.isControlDown(R):null);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
|
g.prototype.lineTo=function(S,W){this.passThrough?this.originalLineTo.apply(this.canvas,arguments):(this.addOp(this.lineOp,S,W),this.lastX=S,this.lastY=W)};g.prototype.moveTo=function(S,W){this.passThrough?this.originalMoveTo.apply(this.canvas,arguments):(this.addOp(this.moveOp,S,W),this.lastX=S,this.lastY=W,this.firstX=S,this.firstY=W)};g.prototype.close=function(){this.passThrough?this.originalClose.apply(this.canvas,arguments):this.addOp(this.closeOp)};g.prototype.quadTo=function(S,W,T,X){this.passThrough?
this.originalQuadTo.apply(this.canvas,arguments):(this.addOp(this.quadOp,S,W,T,X),this.lastX=T,this.lastY=X)};g.prototype.curveTo=function(S,W,T,X,Z,Y){this.passThrough?this.originalCurveTo.apply(this.canvas,arguments):(this.addOp(this.curveOp,S,W,T,X,Z,Y),this.lastX=Z,this.lastY=Y)};g.prototype.arcTo=function(S,W,T,X,Z,Y,ba){if(this.passThrough)this.originalArcTo.apply(this.canvas,arguments);else{var fa=mxUtils.arcToCurves(this.lastX,this.lastY,S,W,T,X,Z,Y,ba);if(null!=fa)for(var ca=0;ca<fa.length;ca+=
| 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.getTextContent(x[F]);0>M.indexOf("mxPageSelector")&&0<M.indexOf("MathJax")&&g[0].appendChild(x[F].cloneNode(!0))}};Editor.prototype.addFontCss=function(g,x){x=null!=x?x:this.absoluteCssFonts(this.fontCss);if(null!=x){var F=g.getElementsByTagName("defs"),M=g.ownerDocument;0==F.length?(F=null!=M.createElementNS?M.createElementNS(mxConstants.NS_SVG,"defs"):M.createElement("defs"),null!=g.firstChild?g.insertBefore(F,g.firstChild):g.appendChild(F)):F=F[0];g=null!=M.createElementNS?M.createElementNS(mxConstants.NS_SVG,
"style"):M.createElement("style");g.setAttribute("type","text/css");mxUtils.setTextContent(g,x);F.appendChild(g)}};Editor.prototype.isExportToCanvas=function(){return mxClient.IS_CHROMEAPP||this.useCanvasForExport};Editor.prototype.getMaxCanvasScale=function(g,x,F){var M=mxClient.IS_FF?8192:16384;return Math.min(F,Math.min(M/g,M/x))};Editor.prototype.exportToCanvas=function(g,x,F,M,Q,S,W,T,X,Z,Y,ba,fa,ca,aa,ra,za,Ba){try{S=null!=S?S:!0;W=null!=W?W:!0;ba=null!=ba?ba:this.graph;fa=null!=fa?fa:0;var ea=
| 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[k].parentNode&&"root"!=e[k].parentNode.nodeName&&null!=e[k].parentNode.parentNode&&(e[k].setAttribute("id",e[k].parentNode.getAttribute("id")),e[k].parentNode.parentNode.replaceChild(e[k],e[k].parentNode));return c};EditorUi.prototype.synchronizeCurrentFile=function(c){var e=this.getCurrentFile();null!=e&&(e.savingFile?this.handleError({message:mxResources.get("busy")}):!c&&e.invalidChecksum?e.handleFileError(null,!0):this.spinner.spin(document.body,mxResources.get("updatingDocument"))&&(e.clearAutosave(),
this.editor.setStatus(""),c?e.reloadFile(mxUtils.bind(this,function(){e.handleFileSuccess("manual"==DrawioFile.SYNC)}),mxUtils.bind(this,function(k){e.handleFileError(k,!0)})):e.synchronizeFile(mxUtils.bind(this,function(){e.handleFileSuccess("manual"==DrawioFile.SYNC)}),mxUtils.bind(this,function(k){e.handleFileError(k,!0)}))))};EditorUi.prototype.getFileData=function(c,e,k,n,p,t,y,C,G,B,V){p=null!=p?p:!0;t=null!=t?t:!1;B=null!=B?B:!Editor.defaultCompressed;var R=this.editor.graph;if(e||!c&&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
|
O.value;O.parentNode.removeChild(O);P.parentNode.removeChild(P)}catch(N){b.handleError(N)}t.innerHTML='<div style="padding-top:10px;text-align:center;"><img src="'+IMAGE_PATH+'/spin.gif" valign="middle"> '+mxUtils.htmlEntities(mxResources.get("loading"))+"...</div>";e=b.canReplyToReplies();b.commentsSupported()?b.getComments(function(N){function H(m){if(null!=m){m.sort(function(A,I){return new Date(A.modifiedDate)-new Date(I.modifiedDate)});for(var v=0;v<m.length;v++)H(m[v].replies)}}N.sort(function(m,
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
y);ImageDialog.filePicked=function(H){H.action==google.picker.Action.PICKED&&null!=H.docs[0].thumbnails&&(H=H.docs[0].thumbnails[H.docs[0].thumbnails.length-1],null!=H&&(J.value=H.url,y()));J.focus()};D.appendChild(U);D.appendChild(c);mxUtils.br(D);mxUtils.br(D);K?(U.setAttribute("checked","checked"),U.checked=!0):(E.setAttribute("checked","checked"),E.checked=!0);!L&&U.checked&&(mxUtils.write(n,mxResources.get("pageNotFound")),n.setAttribute("disabled","disabled"),n.setAttribute("selected","selected"),
| 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
|
g.setAttribute("title",mxResources.get("preview"));g.className="geActiveButton";g.style.position="absolute";g.style.cursor="default";g.style.padding="8px";g.style.right="0px";g.style.top="0px";var x=!1,F=null,M=!1;if(U||J){var Q=[],S=null,W=null,T=null,X=function(da){I.setAttribute("disabled","disabled");for(var la=0;la<Q.length;la++)Q[la].className=la==da?"geBtn gePrimaryBtn":"geBtn"};N=!0;k=document.createElement("div");k.style.whiteSpace="nowrap";k.style.height="30px";P.appendChild(k);O=mxUtils.button(mxResources.get("Templates",
| 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(P){E=P};this.setAutoScroll=function(P){U=P};this.setOpenFill=function(P){J=P};this.setStopClickEnabled=function(P){k=P};this.setSelectInserted=function(P){n=P};this.setSmoothing=function(P){l=P};this.setPerfectFreehandMode=function(P){t=P};this.isPerfectFreehandMode=function(){return t};this.setBrushSize=function(P){p.size=P};this.getBrushSize=function(){return p.size};var y=function(P){e=P;b.getRubberband().setEnabled(!P);b.graphHandler.setSelectEnabled(!P);b.graphHandler.setMoveEnabled(!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
|
null}u(U)}));l=!0}}catch(R){l=!1,null!=z&&z!=this.editor.graph&&null!=z.container.parentNode&&z.container.parentNode.removeChild(z.container)}l||window.clearTimeout(q);return l};App.prototype.createBackground=function(){var b=this.createDiv("background");b.style.position="absolute";b.style.background="white";b.style.left="0px";b.style.top="0px";b.style.bottom="0px";b.style.right="0px";mxUtils.setOpacity(b,100);return 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
|
ma.join(" ")}null!=ja?(M=ja,M.className+=" "+da,Q=la,na.className="geTempDlgCreateBtn"):(Q=M=null,na.className="geTempDlgCreateBtn geTempDlgBtnDisabled")}function C(ja,da){if(null!=Q){var la=function(wa){ka.isExternal?L(ka,function(sa){ma(sa,wa)},oa):ka.url?mxUtils.get(TEMPLATE_PATH+"/"+ka.url,mxUtils.bind(this,function(sa){200<=sa.getStatus()&&299>=sa.getStatus()?ma(sa.getText(),wa):oa()})):ma(b.emptyDiagramXml,wa)},ma=function(wa,sa){e||b.hideDialog(!0);f(wa,sa,ka,da)},oa=function(){k(mxResources.get("cannotLoad"));
| 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))};var n=mxSvgCanvas2D.prototype.updateTextNodes;mxSvgCanvas2D.prototype.updateTextNodes=function(g,x,F,M,Q,S,W,T,X,Z,Y){n.apply(this,arguments);Graph.processFontAttributes(Y)};var p=mxText.prototype.redraw;mxText.prototype.redraw=function(){p.apply(this,arguments);null!=this.node&&"DIV"==this.node.nodeName&&Graph.processFontAttributes(this.node)};Graph.prototype.createTagsDialog=function(g,x,F,M){function Q(){for(var ra=T.getSelectionCells(),za=[],Ba=0;Ba<ra.length;Ba++)T.isCellVisible(ra[Ba])&&
| 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.nodeName&&(y=c.hasAttribute("max-scale")?parseFloat(c.getAttribute("max-scale")):1);c=c.nextSibling}}finally{t.endUpdate()}null!=y&&this.chromelessResize&&this.chromelessResize(!0,y)}return k};EditorUi.prototype.getCopyFilename=function(c,e){var k=null!=c&&null!=c.getTitle()?c.getTitle():this.defaultFilename;c="";var n=k.lastIndexOf(".");0<=n&&(c=k.substring(n),k=k.substring(0,n));if(e){e=k;var p=new Date;k=p.getFullYear();n=p.getMonth()+1;var t=p.getDate(),y=p.getHours(),C=p.getMinutes();p=p.getSeconds();
| 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
|
g=null!=g?g:DRAW_MATH_URL+"/startup.js";Editor.mathJaxQueue=[];var M=null;Editor.doMathJaxRender=function(W){try{null==M?(MathJax.typesetClear([W]),MathJax.typeset([W]),F()):M!=W&&Editor.mathJaxQueue.push(W)}catch(T){MathJax.typesetClear([W]),null!=T.retry?(M=W,T.retry.then(function(){MathJax.typesetPromise([W]).then(F)["catch"](function(X){console.log("Error in MathJax.typesetPromise: "+X.toString());F()})})["catch"](function(X){console.log("Error in MathJax.retry: "+X.toString());F()})):null!=window.console&&
console.log("Error in MathJax.typeset: "+T.toString())}};window.MathJax=null!=x?x:{options:{skipHtmlTags:{"[+]":["text"]}},loader:{load:["html"==urlParams["math-output"]?"output/chtml":"output/svg","input/tex","input/asciimath","ui/safe"]},startup:{pageReady:function(){for(var W=0;W<Editor.mathJaxQueue.length;W++)Editor.doMathJaxRender(Editor.mathJaxQueue[W])}}};Editor.MathJaxRender=function(W){"undefined"!==typeof MathJax&&"function"===typeof MathJax.typeset?Editor.doMathJaxRender(W):Editor.mathJaxQueue.push(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
|
g.length&&0<x.length){this.model.beginUpdate();try{for(var F=0;F<g.length;F++){for(var M=this.getTagsForCell(g[F]),Q=M.split(" "),S=!1,W=0;W<x.length;W++){var T=mxUtils.trim(x[W]);""!=T&&0>mxUtils.indexOf(Q,T)&&(M=0<M.length?M+" "+T:T,S=!0)}S&&this.setAttributeForCell(g[F],"tags",M)}}finally{this.model.endUpdate()}}};Graph.prototype.removeTagsForCells=function(g,x){if(0<g.length&&0<x.length){this.model.beginUpdate();try{for(var F=0;F<g.length;F++){var M=this.getTagsForCell(g[F]);if(0<M.length){for(var Q=
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.