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 |
---|---|---|---|---|---|---|---|
va,La.width*va,La.height*va))}return ya};var Ha=ja.getGlobalVariable;ja.getGlobalVariable=function(ya){return"page"==ya?ka.getName():"pagenumber"==ya?ia+1:"pagecount"==ya?null!=g.pages?g.pages.length:1:Ha.apply(this,arguments)};document.body.appendChild(ja.container);g.updatePageRoot(ka);ja.model.setRoot(ka.root)}ma=Ka(ja,ma,ia!=la,ka.getId());ja!=Q&&ja.container.parentNode.removeChild(ja.container)}}else ma=Ka(Q);null==ma||null==ma.wnd?g.handleError({message:mxResources.get("errorUpdatingPreview")}):
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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
|
v.init()}else{var A=function(I){return{id:I.id,isExt:!0,url:I.downloadUrl,title:I.title,imgUrl:I.thumbnailLink,changedBy:I.lastModifyingUserName,lastModifiedOn:I.modifiedDate}};m=new TemplatesDialog(d,function(I,g,x){var F=x.libs,M=x.clibs;d.pickFolder(d.mode,function(Q){d.createFile(g,I,null!=F&&0<F.length?F:null,null,function(){d.hideDialog()},null,Q,null,null!=M&&0<M.length?M:null)},null==d.stateArg||null==d.stateArg.folderId)},null,null,null,"user",function(I,g,x){var F=new Date;F.setDate(F.getDate()-
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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==App.MODE_GITLAB)&&null!=N&&0<N.length&&(H={mode:P,path:decodeURIComponent(N),id:N});null!=H&&(C.style.display="",b.addRecent(H,"Folders"),N=D(H.mode,H.path,H.id,!0),N.parentNode.firstChild!=N&&N.parentNode.insertBefore(N,N.parentNode.firstChild),null!=B&&(B.parentNode.removeChild(B),V=N.getAttribute("value"),y.value=V,B=null,E()))},!0,!0,!0,!0)}function K(){var P=b.getRecent("Folders");if(null!=P&&0<P.length){for(var N=0;N<P.length;N++)D(P[N].mode,P[N].path,P[N].id);C.style.display=""}else C.style.display=
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
"6px"):mxClient.IS_FF&&(y.style.paddingTop="0px",y.style.marginTop="-2px");if(null!=k)for(U=0;U<k.length;U++)mxUtils.br(y),mxUtils.write(y,k[U]);if(null!=e&&null==b[e]){C.style.visibility="hidden";mxUtils.setOpacity(y,10);var G=new Spinner({lines:12,length:12,width:5,radius:10,rotate:0,color:Editor.isDarkMode()?"#c0c0c0":"#000",speed:1.5,trail:60,shadow:!1,hwaccel:!1,top:"40%",zIndex:2E9});G.spin(t);var B=window.setTimeout(function(){null==b[e]&&(G.stop(),t.style.display="none")},3E4);b.addListener("clientLoaded",
mxUtils.bind(this,function(V,R){null!=b[e]&&R.getProperty("client")==b[e]&&(window.clearTimeout(B),mxUtils.setOpacity(y,100),C.style.visibility="",G.stop(),p(),"drive"==e&&null!=K.parentNode&&K.parentNode.removeChild(K))}))}else p();L.appendChild(t)}l=null!=l?l:2;var q=document.createElement("div");q.style.textAlign="center";q.style.whiteSpace="nowrap";q.style.paddingTop="0px";q.style.paddingBottom="20px";var u=document.createElement("div");u.style.border="1px solid #d3d3d3";u.style.borderWidth="1px 0px 1px 0px";
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
libs:ja.getAttribute("libs"),clibs:ja.getAttribute("clibs"),title:ja.getAttribute("title")}),ja=ja.nextSibling;V(Ka)}});var Va=function(ja,da,la){za.style.display="";Ga.stop();I=!1;if(g)g=!1;else if(da)aa.innerText=da;else{la=la||{};da=0;for(var ma in la)da+=la[ma].length;0==ja.length&&0==da?aa.innerText=mxResources.get("noDiagrams"):B(ja,!1,T,0==da?null:la)}};P(W);var Ua=null;mxEvent.addListener(Fa,"keyup",m);mxEvent.addListener(Fa,"search",m);mxEvent.addListener(Fa,"input",m);mxEvent.addListener(na,
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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.shortcut):z.apply(this,arguments)};EditorUi.prototype.toggleFormatPanel=function(J){null!=this.formatWindow?this.formatWindow.window.setVisible(null!=J?J:!this.formatWindow.window.isVisible()):b(this)};EditorUi.prototype.isFormatPanelVisible=function(){return null!=this.formatWindow&&this.formatWindow.window.isVisible()||null==this.formatWindow&&0<this.formatWidth};DiagramFormatPanel.prototype.isMathOptionVisible=function(){return!0};var D=EditorUi.prototype.destroy;EditorUi.prototype.destroy=function(){this.destroyWindows();
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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,!0)}finally{G.model.endUpdate()}}}catch(I){if(p)throw I;this.handleError(I)}return C};EditorUi.prototype.updatePageLinks=function(c,e){for(var k=0;k<e.length;k++)this.updatePageLinksForCell(c,e[k].root),null!=e[k].viewState&&this.updateBackgroundPageLink(c,e[k].viewState.backgroundImage)};EditorUi.prototype.updateBackgroundPageLink=function(c,e){try{if(null!=e&&Graph.isPageLink(e.originalSrc)){var k=c[e.originalSrc.substring(e.originalSrc.indexOf(",")+1)];null!=k&&(e.originalSrc="data:page/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
|
e.parentNode&&e.parentNode.removeChild(e)}))};var E=!1;EditorUi.prototype.initFormatWindow=function(){if(!E&&null!=this.formatWindow){E=!0;var J=this.formatWindow.window.toggleMinimized,c=240;this.formatWindow.window.toggleMinimized=function(){J.apply(this,arguments);this.minimized?(c=parseInt(this.div.style.width),this.div.style.width="140px",this.table.style.width="140px",this.div.style.left=parseInt(this.div.style.left)+c-140+"px"):(this.div.style.width=c+"px",this.table.style.width=this.div.style.width,
this.div.style.left=Math.max(0,parseInt(this.div.style.left)-c+140)+"px");this.fit()};mxEvent.addListener(this.formatWindow.window.title,"dblclick",mxUtils.bind(this,function(e){mxEvent.getSource(e)==this.formatWindow.window.title&&this.formatWindow.window.toggleMinimized()}))}};var U=EditorUi.prototype.init;EditorUi.prototype.init=function(){function J(T,X,Z){var Y=t.menus.get(T),ba=B.addMenu(mxResources.get(T),mxUtils.bind(this,function(){Y.funct.apply(this,arguments)}),G);ba.className="geMenuItem";
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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,
Math.min(T,Math.max(parseInt(fa.value),parseInt(ba.value))));ba.value=Math.max(1,Math.min(T,Math.min(parseInt(fa.value),parseInt(ba.value))))}function M(Ta){function Ka(ya,La,Ca,va){var Ma=ya.useCssTransforms,Oa=ya.currentTranslate,Xa=ya.currentScale,Qa=ya.view.translate,Ra=ya.view.scale;ya.useCssTransforms&&(ya.useCssTransforms=!1,ya.currentTranslate=new mxPoint(0,0),ya.currentScale=1,ya.view.translate=new mxPoint(0,0),ya.view.scale=1);var Pa=ya.getGraphBounds(),Na=0,Ya=0,Wa=Da.get(),ab=1/ya.pageScale,
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
"border-box";k.style.maxHeight="50px";k.style.maxWidth="100%";k.style.paddingLeft="10px";c.appendChild(k);mxClient.IS_FF||"image/png"!=u||null==navigator.clipboard||"function"!==typeof window.ClipboardItem||(e=mxUtils.button(mxResources.get("copy"),function(){var P=b.base64ToBlob(n,"image/png");P=new ClipboardItem({"image/png":P,"text/html":new Blob(['<img src="data:'+u+";base64,"+n+'">'],{type:"text/html"})});navigator.clipboard.write([P]).then(mxUtils.bind(this,function(){b.alert(mxResources.get("copiedToClipboard"))}))["catch"](mxUtils.bind(this,
function(N){b.handleError(N)}))},null,"geBtn"))}q=document.createElement("div");q.style.display="flex";q.style.padding="1px";q.style.alignItems="center";q.style.justifyContent="flex-end";q.style.gridColumn="1";q.style.whiteSpace="nowrap";z=document.createElement("div");z.style.display="grid";z.style.padding="1px";z.style.alignItems="center";z.style.gridColumn="2";z.style.gridAutoColumns="minmax(0,1fr) auto";z.style.gap="6px";mxUtils.write(q,mxResources.get("saveAs")+":");var p=document.createElement("input");
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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}),B=!0);return B};var y=p.stop;p.stop=function(){y.call(this);this.active=!1;null!=p.status&&null!=p.status.parentNode&&p.status.parentNode.removeChild(p.status);p.status=null};p.pause=function(){return function(){}};return p};EditorUi.prototype.isCompatibleString=function(c){try{var e=mxUtils.parseXml(c),k=this.editor.extractGraphModel(e.documentElement,!0);return null!=k&&0==k.getElementsByTagName("parsererror").length}catch(n){}return!1};EditorUi.prototype.isVisioData=function(c){return 8<
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
else{p=this.getServiceCount(t);isLocalStorage&&p++;var B=4>=p?2:6<p?4:3;e=new CreateDialog(this,e,G,mxUtils.bind(this,function(){this.hideDialog()}),mxResources.get("saveAs"),mxResources.get("download"),!1,t,y,null,1<p,B,c,k,n);t=this.isServices(p)?p>B?390:280:160;this.showDialog(e.container,420,t,!0,!0)}e.init()};EditorUi.prototype.openInNewWindow=function(c,e,k){var n=window.open("about:blank");null==n||null==n.document?mxUtils.popup(c,!0):("image/svg+xml"!=e||mxClient.IS_SVG?"image/svg+xml"!=e||
k?(c=k?c:btoa(unescape(encodeURIComponent(c))),n.document.write('<html><img style="max-width:100%;" src="data:'+e+";base64,"+c+'"/></html>')):n.document.write("<html>"+c+"</html>"):n.document.write("<html><pre>"+mxUtils.htmlEntities(c,!1)+"</pre></html>"),n.document.close())};var d=EditorUi.prototype.addChromelessToolbarItems;EditorUi.prototype.isChromelessImageExportEnabled=function(){return"draw.io"!=this.getServiceName()||/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname)};
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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;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
|
"#000000")),xa=mxUtils.setStyle(xa,mxConstants.STYLE_GRADIENTCOLOR,mxUtils.getValue(qa,mxConstants.STYLE_GRADIENTCOLOR,null)),M.getModel().isVertex(Aa[Fa])&&(xa=mxUtils.setStyle(xa,mxConstants.STYLE_FONTCOLOR,mxUtils.getValue(qa,mxConstants.STYLE_FONTCOLOR,null))));M.getModel().setStyle(Aa[Fa],xa)}}finally{M.getModel().endUpdate()}}));ea.className="geStyleButton";ea.style.width="36px";ea.style.height=10>=this.defaultColorSchemes.length?"24px":"30px";ea.style.margin="0px 6px 6px 0px";if(null!=Ba){var ha=
Editor.isDarkMode()?"2px solid":"1px solid";null!=Ba.border&&(ha=Ba.border);null!=Ba.gradient?mxClient.IS_IE&&10>document.documentMode?ea.style.filter="progid:DXImageTransform.Microsoft.Gradient(StartColorStr='"+Ba.fill+"', EndColorStr='"+Ba.gradient+"', GradientType=0)":ea.style.backgroundImage="linear-gradient("+Ba.fill+" 0px,"+Ba.gradient+" 100%)":Ba.fill==mxConstants.NONE?ea.style.background="url('"+Dialog.prototype.noColorImage+"')":ea.style.backgroundColor=""==Ba.fill?mxUtils.getValue(M.defaultVertexStyle,
mxConstants.STYLE_FILLCOLOR,Editor.isDarkMode()?Editor.darkColor:"#ffffff"):Ba.fill||mxUtils.getValue(M.defaultVertexStyle,mxConstants.STYLE_FILLCOLOR,Editor.isDarkMode()?Editor.darkColor:"#ffffff");ea.style.border=Ba.stroke==mxConstants.NONE?ha+" transparent":""==Ba.stroke?ha+" "+mxUtils.getValue(M.defaultVertexStyle,mxConstants.STYLE_STROKECOLOR,Editor.isDarkMode()?"#ffffff":Editor.darkColor):ha+" "+(Ba.stroke||mxUtils.getValue(M.defaultVertexStyle,mxConstants.STYLE_STROKECOLOR,Editor.isDarkMode()?
"#ffffff":Editor.darkColor));null!=Ba.title&&ea.setAttribute("title",Ba.title)}else{ha=mxUtils.getValue(M.defaultVertexStyle,mxConstants.STYLE_FILLCOLOR,"#ffffff");var pa=mxUtils.getValue(M.defaultVertexStyle,mxConstants.STYLE_STROKECOLOR,"#000000");ea.style.backgroundColor=ha;ea.style.border="1px solid "+pa}ea.style.borderRadius="0";Q.appendChild(ea)});Q.innerText="";for(var za=0;za<aa.length;za++)0<za&&0==mxUtils.mod(za,4)&&mxUtils.br(Q),ra(aa[za])});null==this.format.currentScheme?Y(Math.min(T.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
|
"...",c[p])})))};EditorUi.prototype.installFormatToolbar=function(J){var c=this.editor.graph,e=document.createElement("div");e.style.cssText="position:absolute;top:10px;z-index:1;border-radius:4px;box-shadow:0px 0px 3px 1px #d1d1d1;padding:6px;white-space:nowrap;background-color:#fff;transform:translate(-50%, 0);left:50%;";c.getSelectionModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(k,n){0<c.getSelectionCount()?(J.appendChild(e),e.innerHTML="Selected: "+c.getSelectionCount()):null!=
e.parentNode&&e.parentNode.removeChild(e)}))};var E=!1;EditorUi.prototype.initFormatWindow=function(){if(!E&&null!=this.formatWindow){E=!0;var J=this.formatWindow.window.toggleMinimized,c=240;this.formatWindow.window.toggleMinimized=function(){J.apply(this,arguments);this.minimized?(c=parseInt(this.div.style.width),this.div.style.width="140px",this.table.style.width="140px",this.div.style.left=parseInt(this.div.style.left)+c-140+"px"):(this.div.style.width=c+"px",this.table.style.width=this.div.style.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
|
mxEvent.getClientX(H),mxEvent.getClientY(H),this.graph.getSubtree(this.state.cell));this.graph.graphHandler.cellWasClicked=!0;this.graph.isMouseTrigger=mxEvent.isMouseEvent(H);this.graph.isMouseDown=!0;c.hoverIcons.reset();mxEvent.consume(H)})))};var O=mxVertexHandler.prototype.redrawHandles;mxVertexHandler.prototype.redrawHandles=function(){O.apply(this,arguments);null!=this.moveHandle&&(this.moveHandle.style.left=this.state.x+this.state.width+(40>this.state.width?10:0)+2+"px",this.moveHandle.style.top=
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
|
Editor.isDarkMode()?{outBkgClr:Editor.darkColor,cornerClr:Editor.darkColor,strokeClr:"#505759",fontClr:"#BBBBBB",guideClr:"#0088cf"}:{outBkgClr:"#e8e9ed",cornerClr:"#fbfbfb",strokeClr:"#dadce0",fontClr:"#BBBBBB",guideClr:"#0000BB"};U.style[l?"borderRight":"borderBottom"]="0.5px solid "+E.strokeClr;U.style.borderLeft="0.5px solid "+E.strokeClr});this.updateStyle();b.diagramContainer.appendChild(U);mxEvent.disableContextMenu(U);this.editorUiRefresh=b.refresh;b.refresh=function(y){K.editorUiRefresh.apply(b,
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),
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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.length-1);0<K.length&&za(K[E]);if(1<K.length)for(A.removeAttribute("disabled"),A.style.display="",ca=0;ca<K.length;ca++)aa=document.createElement("option"),ra=K[ca].getAttribute("name")||mxResources.get("pageWithNumber",[ca+1]),mxUtils.write(aa,ra),aa.setAttribute("title",ra+" ("+K[ca].getAttribute("id")+")"),aa.setAttribute("value",ca),ca==E&&aa.setAttribute("selected","selected"),A.appendChild(aa);I=function(){try{var ea=parseInt(A.value);E=L=ea;za(K[ea])}catch(ha){A.value=L,b.handleError(ha)}}}else Ba(ra);
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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.getCurrentCellStyle(H).treeMoving);return m}function u(H){var m=!1;null!=H&&(H=k.getParent(H),m=e.view.getState(H),m="tree"==(null!=m?m.style:e.getCellStyle(H)).containerType);return m}function z(H){var m=!1;null!=H&&(H=k.getParent(H),m=e.view.getState(H),e.view.getState(H),m=null!=(null!=m?m.style:e.getCellStyle(H)).childLayout);return m}function D(H){H=e.view.getState(H);if(null!=H){var m=e.getIncomingTreeEdges(H.cell);if(0<m.length&&(m=e.view.getState(m[0]),null!=m&&(m=m.absolutePoints,null!=
m&&0<m.length&&(m=m[m.length-1],null!=m)))){if(m.y==H.y&&Math.abs(m.x-H.getCenterX())<H.width/2)return mxConstants.DIRECTION_SOUTH;if(m.y==H.y+H.height&&Math.abs(m.x-H.getCenterX())<H.width/2)return mxConstants.DIRECTION_NORTH;if(m.x>H.getCenterX())return mxConstants.DIRECTION_WEST}}return mxConstants.DIRECTION_EAST}function L(H,m){m=null!=m?m:!0;e.model.beginUpdate();try{var v=e.model.getParent(H),A=e.getIncomingTreeEdges(H),I=e.cloneCells([A[0],H]);e.model.setTerminal(I[0],e.model.getTerminal(A[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
|
y);window.setTimeout(mxUtils.bind(this,function(){H()}),V)});mxEvent.addListener(R,"click",mxUtils.bind(this,function(v){var A=mxEvent.getSource(v);A!=P&&A!=N?(null!=k&&k(),H(),mxEvent.consume(v)):m()}));window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(R.style,"transform",C)}),V/2);window.setTimeout(m,p?4E3:3E4);B=!0}return B};EditorUi.prototype.setCurrentFile=function(c){null!=c&&(c.opened=new Date);this.currentFile=c};EditorUi.prototype.getCurrentFile=function(){return this.currentFile};
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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.ownerSVGElement.parentNode.insertBefore(this.webKitForceRepaintNode,g.ownerSVGElement))}};var O=Graph.prototype.refresh;Graph.prototype.refresh=function(){O.apply(this,arguments);this.refreshBackgroundImage()};Graph.prototype.refreshBackgroundImage=function(){null!=this.backgroundImage&&null!=this.backgroundImage.originalSrc&&(this.setBackgroundImage(this.backgroundImage),this.view.validateBackgroundImage())};var P=Graph.prototype.loadStylesheet;Graph.prototype.loadStylesheet=function(){P.apply(this,
arguments);this.currentStyle="default-style2"};Graph.prototype.handleCustomLink=function(g){"data:action/json,"==g.substring(0,17)&&(g=JSON.parse(g.substring(17)),null!=g.actions&&this.executeCustomActions(g.actions))};Graph.prototype.executeCustomActions=function(g,x){if(this.executingCustomActions)this.stoppingCustomActions=!0,null!=this.pendingWaitThread&&window.clearTimeout(this.pendingWaitThread),null!=this.pendingExecuteNextAction&&this.pendingExecuteNextAction(),this.fireEvent(new mxEventObject("stopExecutingCustomActions"));
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
delete D[U];return z};EditorUi.prototype.patchViewState=function(b,f){if(null!=b.viewState&&null!=f){b==this.currentPage&&(b.viewState=this.editor.graph.getViewState());for(var l in f)try{this.patchViewStateProperty(b,f,l)}catch(d){}b==this.currentPage&&this.editor.graph.setViewState(b.viewState,!0)}};EditorUi.prototype.patchViewStateProperty=function(b,f,l){b.viewState[l]=JSON.parse(f[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
|
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
|
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));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==
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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<this.pages.length;e++)this.updatePageRoot(this.pages[e]),this.addBasenamesForCell(this.pages[e].root,c);else this.addBasenamesForCell(this.editor.graph.model.getRoot(),c);e=[];for(var k in c)e.push(k);return e};EditorUi.prototype.addBasenamesForCell=function(c,e){function k(y){if(null!=y){var C=y.lastIndexOf(".");0<C&&(y=y.substring(C+1,y.length));null==e[y]&&(e[y]=!0)}}var n=this.editor.graph,p=n.getCellStyle(c);k(mxStencilRegistry.getBasenameForStencil(p[mxConstants.STYLE_SHAPE]));n.model.isEdge(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
|
this.pasteCells(t,k,!0,!0)),!mxEvent.isConsumed(t)){var y=e.container.scrollLeft,C=e.container.scrollTop;window.setTimeout(mxUtils.bind(this,function(){try{e.container.scrollLeft=y,e.container.scrollTop=C,Graph.removePasteFormatting(k.firstChild),this.pasteCells(t,k,!1,!0)}catch(G){this.handleError(G)}}),0)}}catch(G){this.handleError(G)}}),!0);var p=this.isSelectionAllowed;this.isSelectionAllowed=function(t){return mxEvent.getSource(t)==k?!0:p.apply(this,arguments)}};EditorUi.prototype.setCurrentTheme=
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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.patchPages=function(b,f,l,d,q){var u={},z=[],D={},L={},K={},E={};if(null!=d&&null!=d[EditorUi.DIFF_UPDATE])for(var U in d[EditorUi.DIFF_UPDATE])u[U]=d[EditorUi.DIFF_UPDATE][U];if(null!=f[EditorUi.DIFF_REMOVE])for(d=0;d<f[EditorUi.DIFF_REMOVE].length;d++)L[f[EditorUi.DIFF_REMOVE][d]]=!0;if(null!=f[EditorUi.DIFF_INSERT])for(d=0;d<f[EditorUi.DIFF_INSERT].length;d++)D[f[EditorUi.DIFF_INSERT][d].previous]=f[EditorUi.DIFF_INSERT][d];if(null!=f[EditorUi.DIFF_UPDATE])for(U in f[EditorUi.DIFF_UPDATE])d=
f[EditorUi.DIFF_UPDATE][U],null!=d.previous&&(E[d.previous]=U);if(null!=b){var J="";for(d=0;d<b.length;d++){var c=b[d].getId();K[c]=b[d];null!=E[J]||L[c]||null!=f[EditorUi.DIFF_UPDATE]&&null!=f[EditorUi.DIFF_UPDATE][c]&&null!=f[EditorUi.DIFF_UPDATE][c].previous||(E[J]=c);J=c}}var e={},k=mxUtils.bind(this,function(p){var t=null!=p?p.getId():"";if(null!=p&&!e[t]){e[t]=!0;z.push(p);var y=null!=f[EditorUi.DIFF_UPDATE]?f[EditorUi.DIFF_UPDATE][t]:null;null!=y&&(this.updatePageRoot(p),null!=y.name&&p.setName(y.name),
null!=y.view&&this.patchViewState(p,y.view),null!=y.cells&&this.patchPage(p,y.cells,u[p.getId()],q),!l||null==y.cells&&null==y.view||(p.needsUpdate=!0))}p=E[t];null!=p&&(delete E[t],k(K[p]));p=D[t];null!=p&&(delete D[t],n(p))}),n=mxUtils.bind(this,function(p){p=mxUtils.parseXml(p.data).documentElement;p=new DiagramPage(p);this.updatePageRoot(p);var t=K[p.getId()];null==t?k(p):(this.patchPage(t,this.diffPages([t],[p]),u[t.getId()],q),l&&(t.needsUpdate=!0))});k();for(U in E)k(K[E[U]]),delete E[U];for(U in D)n(D[U]),
delete D[U];return z};EditorUi.prototype.patchViewState=function(b,f){if(null!=b.viewState&&null!=f){b==this.currentPage&&(b.viewState=this.editor.graph.getViewState());for(var l in f)try{this.patchViewStateProperty(b,f,l)}catch(d){}b==this.currentPage&&this.editor.graph.setViewState(b.viewState,!0)}};EditorUi.prototype.patchViewStateProperty=function(b,f,l){b.viewState[l]=JSON.parse(f[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
|
t.scrollCellToVisible(t.getSelectionCell())}}}else{N=function(A){var I=m[A];null==I&&(I=new mxCell(A,new mxGeometry(0,0,80,30),"whiteSpace=wrap;html=1;"),I.vertex=!0,m[A]=I,B.push(I));return I};var m={};B=[];for(C=0;C<n.length;C++)if(";"!=n[C].charAt(0)){var v=n[C].split("->");2<=v.length&&(P=N(v[0]),H=N(v[v.length-1]),v=new mxCell(2<v.length?v[1]:"",new mxGeometry),v.edge=!0,P.insertEdge(v,!0),H.insertEdge(v,!1),B.push(v))}if(0<B.length){n=document.createElement("div");n.style.visibility="hidden";
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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.write(n,"?"),mxEvent.addGestureListeners(n,mxUtils.bind(this,function(A){this.openLink(EditorUi.scratchpadHelpLink);mxEvent.consume(A)})),V.insertBefore(n,V.firstChild))}B.appendChild(V);B.style.paddingRight=18*V.childNodes.length+"px"}};EditorUi.prototype.addLibraryEntries=function(c,e){for(var k=0;k<c.length;k++){var n=c[k],p=n.data;if(null!=p){p=this.convertDataUri(p);var t="shape=image;verticalLabelPosition=bottom;verticalAlign=top;imageAspect=0;";"fixed"==n.aspect&&(t+="aspect=fixed;");
e.appendChild(this.sidebar.createVertexTemplate(t+"image="+p,n.w,n.h,"",n.title||"",!1,null,!0))}else null!=n.xml&&(p=this.stringToCells("<"==n.xml.charAt(0)?n.xml:Graph.decompress(n.xml)),0<p.length&&e.appendChild(this.sidebar.createVertexTemplateFromCells(p,n.w,n.h,n.title||"",!0,null,!0)))}};EditorUi.prototype.getResource=function(c){return null!=c?c[mxLanguage]||c.main:null};EditorUi.prototype.footerHeight=0;"1"==urlParams.savesidebar&&(Sidebar.prototype.thumbWidth=64,Sidebar.prototype.thumbHeight=
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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
|
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,
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
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=
g[x[F][Q]];null!=S?""!=S&&M.push(S):M.push(x[F][Q])}x[F]=M}};Graph.prototype.getCellsForAction=function(g,x){x=this.getCellsById(g.cells).concat(this.getCellsForTags(g.tags,null,x));if(null!=g.excludeCells){for(var F=[],M=0;M<x.length;M++)0>g.excludeCells.indexOf(x[M].id)&&F.push(x[M]);x=F}return x};Graph.prototype.getCellsById=function(g){var x=[];if(null!=g)for(var F=0;F<g.length;F++)if("*"==g[F]){var M=this.model.getRoot();x=x.concat(this.model.filterDescendants(function(S){return S!=M},M))}else{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
|
0;S<W.length;S++)W[S].parentNode.removeChild(W[S]);U(g);g.style.opacity="0.5"}else{W=A(O).replies;for(S=0;S<W.length;S++)t.removeChild(W[S]);for(S=0;S<P.length;S++)if(P[S]==O){P.splice(S,1);break}y.style.display=0==t.getElementsByTagName("div").length?"block":"none"}},function(S){E(g);b.handleError(S,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))})})},O.isResolved));c||O.isLocked||0!=H||v(O.isResolved?mxResources.get("reopen"):mxResources.get("resolve"),function(S){function W(){var T=
S.target;T.innerText="";O.isResolved=!O.isResolved;mxUtils.write(T,O.isResolved?mxResources.get("reopen"):mxResources.get("resolve"));for(var X=O.isResolved?"none":"",Z=A(O).replies,Y=Editor.isDarkMode()?"transparent":O.isResolved?"ghostWhite":"white",ba=0;ba<Z.length;ba++){Z[ba].style.backgroundColor=Y;for(var fa=Z[ba].querySelectorAll(".geCommentAction"),ca=0;ca<fa.length;ca++)fa[ca]!=T.parentNode&&(fa[ca].style.display=X);B||(Z[ba].style.display="none")}z()}O.isResolved?I(mxResources.get("reOpened")+
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
Oa+" ("+Xa.length+")",Ra=Oa=mxUtils.htmlEntities(Oa);15<Oa.length&&(Oa=Oa.substring(0,15)+"…");return{lbl:Oa+" ("+Xa.length+")",fullLbl:Qa,lblOnly:Ra}}function oa(Oa,Xa,Qa,Ra,Pa){mxEvent.addListener(Qa,"click",function(){x!=Qa&&(null!=x?(x.style.fontWeight="normal",x.style.textDecoration="none"):(ha.style.display="none",ea.style.minHeight="100%"),x=Qa,x.style.fontWeight="bold",x.style.textDecoration="underline",Ba.scrollTop=0,I&&(g=!0),ra.innerHTML=Xa,za.style.display="none",B(Pa?da[Oa]:Ra?
Ea[Oa][Ra]:ja[Oa],Pa?!1:!0))})}var ia=A.querySelector(".geTemplatesList");if(0<la){var ka="font-weight: bold;background: "+(Editor.isDarkMode()?"#060606":"#f9f9f9")+";padding: 5px 0 5px 0;text-align: center;margin-top: 10px;";la=document.createElement("div");la.style.cssText=ka;mxUtils.write(la,mxResources.get("custom"));ia.appendChild(la);for(var wa in da){la=document.createElement("div");var sa=da[wa];sa=ma(wa,sa);la.className="geTemplateCatLink";la.setAttribute("title",sa.fullLbl);la.innerHTML=
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
mxUtils.bind(this,function(){this.fireEvent(new mxEventObject("darkModeChanged"))}),mxUtils.bind(this,function(e){null!=window.console&&console.error(e);this.editor.setStatus(e.message)}))};EditorUi.prototype.createDarkStyle=function(){var c=document.createElement("link");c.setAttribute("rel","stylesheet");c.setAttribute("href",STYLE_PATH+"/dark.css");c.setAttribute("charset","UTF-8");c.setAttribute("type","text/css");return c};EditorUi.setGraphDarkMode=function(c,e,k){c.view.defaultGridColor=k?mxGraphView.prototype.defaultDarkGridColor:
mxGraphView.prototype.defaultGridColor;c.view.gridColor=c.view.defaultGridColor;c.defaultPageBackgroundColor="1"==urlParams.embedInline?"transparent":k?Editor.darkColor:"#ffffff";c.defaultPageBorderColor=k?"#000000":"#ffffff";c.shapeBackgroundColor=k?Editor.darkColor:"#ffffff";c.shapeForegroundColor=k?Editor.lightColor:"#000000";c.defaultThemeName=k?"darkTheme":"default-style2";c.graphHandler.previewColor=k?"#cccccc":"black";mxGraphHandler.prototype.previewColor=c.graphHandler.previewColor;null!=
e&&(e.style.backgroundColor="1"==urlParams.embedInline?"transparent":k?Editor.darkColor:"#ffffff");c.loadStylesheet();Graph.prototype.defaultPageBackgroundColor=c.defaultPageBackgroundColor;Graph.prototype.defaultPageBorderColor=c.defaultPageBorderColor;Graph.prototype.shapeBackgroundColor=c.shapeBackgroundColor;Graph.prototype.shapeForegroundColor=c.shapeForegroundColor;Graph.prototype.defaultThemeName=c.defaultThemeName};EditorUi.prototype.doSetDarkMode=function(c,e,k){var n=mxUtils.bind(this,function(){if(Editor.darkMode!=
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
Math.round(25*Math.random()))):/\s/.test(p)?k.push(" "):k.push("?"):k.push(e?"0":Math.round(9*Math.random()))}return k.join("")};EditorUi.prototype.anonymizePatch=function(c){if(null!=c[EditorUi.DIFF_INSERT])for(var e=0;e<c[EditorUi.DIFF_INSERT].length;e++)try{var k=mxUtils.parseXml(c[EditorUi.DIFF_INSERT][e].data).documentElement.cloneNode(!1);null!=k.getAttribute("name")&&k.setAttribute("name",this.anonymizeString(k.getAttribute("name")));c[EditorUi.DIFF_INSERT][e].data=mxUtils.getXml(k)}catch(t){c[EditorUi.DIFF_INSERT][e].data=
t.message}if(null!=c[EditorUi.DIFF_UPDATE]){for(var n in c[EditorUi.DIFF_UPDATE]){var p=c[EditorUi.DIFF_UPDATE][n];null!=p.name&&(p.name=this.anonymizeString(p.name));null!=p.cells&&(e=mxUtils.bind(this,function(t){var y=p.cells[t];if(null!=y){for(var C in y)null!=y[C].value&&(y[C].value="["+y[C].value.length+"]"),null!=y[C].xmlValue&&(y[C].xmlValue="["+y[C].xmlValue.length+"]"),null!=y[C].style&&(y[C].style="["+y[C].style.length+"]"),mxUtils.isEmptyObject(y[C])&&delete y[C];mxUtils.isEmptyObject(y)&&
delete p.cells[t]}}),e(EditorUi.DIFF_INSERT),e(EditorUi.DIFF_UPDATE),mxUtils.isEmptyObject(p.cells)&&delete p.cells);mxUtils.isEmptyObject(p)&&delete c[EditorUi.DIFF_UPDATE][n]}mxUtils.isEmptyObject(c[EditorUi.DIFF_UPDATE])&&delete c[EditorUi.DIFF_UPDATE]}return c};EditorUi.prototype.anonymizeAttributes=function(c,e){if(null!=c.attributes)for(var k=0;k<c.attributes.length;k++)"as"!=c.attributes[k].name&&c.setAttribute(c.attributes[k].name,this.anonymizeString(c.attributes[k].value,e));if(null!=c.childNodes)for(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
|
null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))},X,Z)}function ba(){D(ca,aa,function(ra){Y()},!0)}var fa=A().pdiv,ca=b.newComment(S,b.getCurrentUser());ca.pCommentId=O.id;null==O.replies&&(O.replies=[]);var aa=J(ca,O.replies,fa,H+1);W?ba():Y()}if(m||!O.isResolved){y.style.display="none";var g=document.createElement("div");g.className="geCommentContainer";g.setAttribute("data-commentId",O.id);g.style.marginLeft=20*H+5+"px";O.isResolved&&!Editor.isDarkMode()&&(g.style.backgroundColor=
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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 M};Editor.getDiagramNodeXml=function(g){var x=mxUtils.getTextContent(g),F=null;0<x.length?F=Graph.decompress(x):null!=g.firstChild&&(F=mxUtils.getXml(g.firstChild));return F};Editor.extractGraphModelFromPdf=function(g){g=g.substring(g.indexOf(",")+1);g=window.atob&&!mxClient.IS_SF?atob(g):Base64.decode(g,!0);if("%PDF-1.7"==g.substring(0,8)){var x=g.indexOf("EmbeddedFile");if(-1<x){var F=g.indexOf("stream",x)+9;if(0<g.substring(x,F).indexOf("application#2Fvnd.jgraph.mxfile"))return x=g.indexOf("endstream",
F-1),pako.inflateRaw(Graph.stringToArrayBuffer(g.substring(F,x)),{to:"string"})}return null}F=null;x="";for(var M=0,Q=0,S=[],W=null;Q<g.length;){var T=g.charCodeAt(Q);Q+=1;10!=T&&(x+=String.fromCharCode(T));T=="/Subject (%3Cmxfile".charCodeAt(M)?M++:M=0;if(19==M){var X=g.indexOf("%3C%2Fmxfile%3E)",Q)+15;Q-=9;if(X>Q){F=g.substring(Q,X);break}}10==T&&("endobj"==x?W=null:"obj"==x.substring(x.length-3,x.length)||"xref"==x||"trailer"==x?(W=[],S[x.split(" ")[0]]=W):null!=W&&W.push(x),x="")}null==F&&(F=
Editor.extractGraphModelFromXref(S));null!=F&&(F=decodeURIComponent(F.replace(/\\\(/g,"(").replace(/\\\)/g,")")));return F};Editor.extractGraphModelFromXref=function(g){var x=g.trailer,F=null;null!=x&&(x=/.* \/Info (\d+) (\d+) R/g.exec(x.join("\n")),null!=x&&0<x.length&&(x=g[x[1]],null!=x&&(x=/.* \/Subject (\d+) (\d+) R/g.exec(x.join("\n")),null!=x&&0<x.length&&(g=g[x[1]],null!=g&&(g=g.join("\n"),F=g.substring(1,g.length-1))))));return F};Editor.extractParserError=function(g,x){var F=null;g=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
|
mxUtils.bind(this,function(ea){4==ea.readyState&&(200<=ea.status&&299>=ea.status&&"<mxGraphModel"==ea.responseText.substring(0,13)?Ba(ea.responseText,G):this.handleError({message:413==ea.status?mxResources.get("diagramTooLarge"):mxResources.get("unknownError")}))}),""):null!=B&&"function"===typeof B.substring&&this.isLucidChartData(B)?this.convertLucidChart(B,mxUtils.bind(this,function(ea){Ba(ea)}),mxUtils.bind(this,function(ea){this.handleError(ea)})):null==B||"object"!==typeof B||null==B.format||
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",
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
typeof mxMermaidToDrawio)ea=ca=va;va=g.cloneNode(!0);ma.appendChild(va);Ma=function(Pa){M=null!=b.sidebar.tooltip&&"none"!=b.sidebar.tooltip.style.display};Oa=function(Pa){M||y(Ra,mxEvent.getClientX(Pa),mxEvent.getClientY(Pa),Qa,Ca)};mxEvent.addGestureListeners(Qa,Ma,null,Oa);mxEvent.addGestureListeners(va,Ma,null,Oa)},function(va){b.handleError(va)})});Ja.setAttribute("disabled","disabled");Ja.className="geBtn gePrimaryBtn";oa=function(){window.setTimeout(function(){""!=la.value?Ja.removeAttribute("disabled"):
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
"https://app.diagrams.net/";var y=c.editor.getEditBlankUrl;this.editor.getEditBlankUrl=function(A){A=null!=A?A:"";"1"==urlParams.dev&&(A+=(0<A.length?"&":"?")+"dev=1");return y.apply(this,arguments)};var C=e.addClickHandler;e.addClickHandler=function(A,I,g){var x=I;I=function(F,M){if(null==M){var Q=mxEvent.getSource(F);"a"==Q.nodeName.toLowerCase()&&(M=Q.getAttribute("href"))}null!=M&&e.isCustomLink(M)&&(mxEvent.isTouchEvent(F)||!mxEvent.isPopupTrigger(F))&&e.customLinkClicked(M)&&mxEvent.consume(F);
null!=x&&x(F,M)};C.call(this,A,I,g)};u.apply(this,arguments);mxClient.IS_SVG&&this.editor.graph.addSvgShadow(e.view.canvas.ownerSVGElement,null,!0);if(null!=this.menus){var G=Menus.prototype.addPopupMenuItems;this.menus.addPopupMenuItems=function(A,I,g){e.isSelectionEmpty()&&"simple"==Editor.currentTheme&&this.addMenuItems(A,["zoomIn","zoomOut","-"],null,g);G.apply(this,arguments);e.isSelectionEmpty()||null==c.addSelectionToScratchpad||this.addMenuItems(A,["-","addToScratchpad"],null,g);e.isSelectionEmpty()&&
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
F=[];if(0<Q.length){Q=Q.split(" ");for(var S={},W=0;W<Q.length;W++)if(null==x||null!=x[Q[W]])S[Q[W]]=!0,F.push(Q[W]);x=S}else return[]}return F};Graph.prototype.getTagsForCells=function(g){for(var x=[],F={},M=0;M<g.length;M++){var Q=this.getTagsForCell(g[M]);if(0<Q.length){Q=Q.split(" ");for(var S=0;S<Q.length;S++)null==F[Q[S]]&&(F[Q[S]]=!0,x.push(Q[S]))}}return x};Graph.prototype.getTagsForCell=function(g){return this.getAttributeForCell(g,"tags","")};Graph.prototype.addTagsForCells=function(g,x){if(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
|
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
|
ia()},ia=function(){Q=ka;na.className="geTempDlgCreateBtn";da&&(Aa.className="geTempDlgOpenBtn")},ka=Q;Q=null;"boolean"!==typeof da&&(da=ka.isExternal&&U);1==ja?K(ka.url,ka):da?(Aa.className="geTempDlgOpenBtn geTempDlgBtnDisabled geTempDlgBtnBusy",la()):(na.className="geTempDlgCreateBtn geTempDlgBtnDisabled geTempDlgBtnBusy",ja=null==b.mode||b.mode==App.MODE_GOOGLE||b.mode==App.MODE_BROWSER?mxResources.get("diagramName"):mxResources.get("filename"),ja=new FilenameDialog(b,b.defaultFilename+".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
|
this.updateDocumentTitle();this.refresh()}));e.addListener("enabledChanged",mxUtils.bind(this,function(){e.isEnabled()||this.hideShapePicker()}));c=this;mxWindow.prototype.fit=function(){if(Editor.inlineFullscreen||null==c.embedViewport)mxUtils.fit(this.div);else{var A=parseInt(this.div.offsetLeft),I=parseInt(this.div.offsetWidth),g=c.embedViewport.x+c.embedViewport.width,x=parseInt(this.div.offsetTop),F=parseInt(this.div.offsetHeight),M=c.embedViewport.y+c.embedViewport.height;this.div.style.left=
Math.max(c.embedViewport.x,Math.min(A,g-I))+"px";this.div.style.top=Math.max(c.embedViewport.y,Math.min(x,M-F))+"px";this.div.style.height=Math.min(c.embedViewport.height,parseInt(this.div.style.height))+"px";this.div.style.width=Math.min(c.embedViewport.width,parseInt(this.div.style.width))+"px"}};if(!this.editor.chromeless||this.editor.editable)if("simple"==Editor.currentTheme||"sketch"==Editor.currentTheme)H=Editor.currentTheme,Editor.currentTheme="",this.doSetCurrentTheme(H,0,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
|
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?
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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=new mxCodec(mxUtils.createXmlDocument()),C=C.encode(new mxGraphModel(t.root)),this.editor.graph.saveViewState(t.viewState,C,null,n),y=y.cloneNode(!1),mxUtils.setTextContent(y,Graph.compressNode(C))));c(y)}return p};EditorUi.prototype.anonymizeString=function(c,e){for(var k=[],n=0;n<c.length;n++){var p=c.charAt(n);0<=EditorUi.ignoredAnonymizedChars.indexOf(p)?k.push(p):isNaN(parseInt(p))?p.toLowerCase()!=p?k.push(String.fromCharCode(65+Math.round(25*Math.random()))):p.toUpperCase()!=p?k.push(String.fromCharCode(97+
Math.round(25*Math.random()))):/\s/.test(p)?k.push(" "):k.push("?"):k.push(e?"0":Math.round(9*Math.random()))}return k.join("")};EditorUi.prototype.anonymizePatch=function(c){if(null!=c[EditorUi.DIFF_INSERT])for(var e=0;e<c[EditorUi.DIFF_INSERT].length;e++)try{var k=mxUtils.parseXml(c[EditorUi.DIFF_INSERT][e].data).documentElement.cloneNode(!1);null!=k.getAttribute("name")&&k.setAttribute("name",this.anonymizeString(k.getAttribute("name")));c[EditorUi.DIFF_INSERT][e].data=mxUtils.getXml(k)}catch(t){c[EditorUi.DIFF_INSERT][e].data=
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
mxSettings.save())));this.addListener("formatWidthChanged",function(){mxSettings.setFormatWidth(this.formatWidth);mxSettings.save()})}};EditorUi.prototype.copyImage=function(c,e,k){try{null!=navigator.clipboard&&"function"===typeof window.ClipboardItem&&this.spinner.spin(document.body,mxResources.get("exporting"))&&this.editor.exportToCanvas(mxUtils.bind(this,function(n,p){try{this.spinner.stop();var t=this.createImageDataUri(n,e,"png"),y=parseInt(p.getAttribute("width")),C=parseInt(p.getAttribute("height"));
this.writeImageToClipboard(t,y,C,mxUtils.bind(this,function(G){this.handleError(G)}))}catch(G){this.handleError(G)}}),null,null,null,mxUtils.bind(this,function(n){this.spinner.stop();this.handleError(n)}),null,null,null!=k?k:4,null==this.editor.graph.background||this.editor.graph.background==mxConstants.NONE,null,null,null,10,null,null,!1,null,0<c.length?c:null)}catch(n){this.handleError(n)}};EditorUi.prototype.writeImageToClipboard=function(c,e,k,n){var p=this.base64ToBlob(c.substring(c.indexOf(",")+
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
q,z=0;8>z;z++)u=1==(u&1)?3988292384^u>>>1:u>>>1,Editor.crcTable[q]=u;Editor.updateCRC=function(g,x,F,M){for(var Q=0;Q<M;Q++)g=Editor.crcTable[(g^x.charCodeAt(F+Q))&255]^g>>>8;return g};Editor.crc32=function(g){for(var x=-1,F=0;F<g.length;F++)x=x>>>8^Editor.crcTable[(x^g.charCodeAt(F))&255];return(x^-1)>>>0};Editor.writeGraphModelToPng=function(g,x,F,M,Q){function S(Y,ba){var fa=X;X+=ba;return Y.substring(fa,X)}function W(Y){Y=S(Y,4);return Y.charCodeAt(3)+(Y.charCodeAt(2)<<8)+(Y.charCodeAt(1)<<16)+
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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.lightboxHost+"/?client=1"+(null!=e?"&page="+e:"")+(p?"&edit=_blank":"")+(t?"&layers=1":"")+"');}}})(this);"),O+="cursor:pointer;"),c&&(c=parseInt(C.getAttribute("width")),p=parseInt(C.getAttribute("height")),C.setAttribute("viewBox","-0.5 -0.5 "+c+" "+p),O+="max-width:100%;max-height:"+p+"px;",C.removeAttribute("height")),""!=O&&C.setAttribute("style",O),this.editor.addFontCss(C),this.editor.graph.mathEnabled&&this.editor.addMathCss(C),y(mxUtils.getXml(C))};EditorUi.prototype.timeSince=function(c){c=
Math.floor((new Date-c)/1E3);var e=Math.floor(c/31536E3);if(1<e)return e+" "+mxResources.get("years");e=Math.floor(c/2592E3);if(1<e)return e+" "+mxResources.get("months");e=Math.floor(c/86400);if(1<e)return e+" "+mxResources.get("days");e=Math.floor(c/3600);if(1<e)return e+" "+mxResources.get("hours");e=Math.floor(c/60);return 1<e?e+" "+mxResources.get("minutes"):1==e?e+" "+mxResources.get("minute"):null};EditorUi.prototype.decodeNodeIntoGraph=function(c,e){if(null!=c){var k=null;if("diagram"==c.nodeName)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
|
Editor.extractGraphModelFromXref(S));null!=F&&(F=decodeURIComponent(F.replace(/\\\(/g,"(").replace(/\\\)/g,")")));return F};Editor.extractGraphModelFromXref=function(g){var x=g.trailer,F=null;null!=x&&(x=/.* \/Info (\d+) (\d+) R/g.exec(x.join("\n")),null!=x&&0<x.length&&(x=g[x[1]],null!=x&&(x=/.* \/Subject (\d+) (\d+) R/g.exec(x.join("\n")),null!=x&&0<x.length&&(g=g[x[1]],null!=g&&(g=g.join("\n"),F=g.substring(1,g.length-1))))));return F};Editor.extractParserError=function(g,x){var F=null;g=null!=
g?g.getElementsByTagName("parsererror"):null;null!=g&&0<g.length&&(F=x||mxResources.get("invalidChars"),x=g[0].getElementsByTagName("div"),0<x.length&&(F=mxUtils.getTextContent(x[0])));return null!=F?mxUtils.trim(F):F};Editor.addRetryToError=function(g,x){null!=g&&(g=null!=g.error?g.error:g,null==g.retry&&(g.retry=x))};Editor.mermaidToDrawio=function(g,x,F){if("function"===typeof mxMermaidToDrawio)return mxMermaidToDrawio(g,x,F)};Editor.configure=function(g){if(null!=g){Editor.config=g;Editor.configVersion=
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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,"Templates"),function(){xa.style.display="";pa.style.display="";ha.style.left="160px";X(0);ha.scrollTop=0;ha.innerText="";v=0;S!=Ia&&(Ia=S,ta=W,Ea=T,xa.innerText="",R(),S=null)});Q.push(O);k.appendChild(O);var Z=function(da){xa.style.display="none";pa.style.display="none";ha.style.left="30px";X(da?-1:1);null==S&&(S=Ia);ha.scrollTop=0;ha.innerText="";A.spin(ha);var la=function(ma,oa,ia){v=0;A.stop();Ia=ma;ia=ia||{};var ka=0,wa;for(wa in ia)ka+=ia[wa].length;if(oa)ha.innerText=oa;else if(0==ma.length&&
0==ka)ha.innerText=mxResources.get("noDiagrams",null,"No Diagrams Found");else if(ha.innerText="",0<ka){xa.style.display="";ha.style.left="160px";xa.innerText="";Ea=0;ta={"draw.io":ma};for(wa in ia)ta[wa]=ia[wa];R()}else t(!0)};da?J(Y.value,la):U(la)};U&&(O=mxUtils.button(mxResources.get("Recent",null,"Recent"),function(){Z()}),k.appendChild(O),Q.push(O));if(J){O=document.createElement("span");O.style.marginLeft="10px";O.innerText=mxResources.get("search")+":";k.appendChild(O);var Y=document.createElement("input");
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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,
"transition","all 1200ms ease-in-out"),S.shape.node.style.opacity=0);window.setTimeout(function(){S.destroy()},1200)},F));return S};Graph.prototype.addSvgShadow=function(g,x,F,M){F=null!=F?F:!1;M=null!=M?M:!0;var Q=g.ownerDocument,S=null!=Q.createElementNS?Q.createElementNS(mxConstants.NS_SVG,"filter"):Q.createElement("filter");S.setAttribute("id",this.shadowId);var W=null!=Q.createElementNS?Q.createElementNS(mxConstants.NS_SVG,"feGaussianBlur"):Q.createElement("feGaussianBlur");W.setAttribute("in",
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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&&
this.currentPage!=this.pages[0]&&y.push("page-id="+this.currentPage.getId());return y};EditorUi.prototype.createLink=function(c,e,k,n,p,t,y,C,G,B){G=this.createUrlParameters(c,e,k,n,p,t,G);c=this.getCurrentFile();e=!0;null!=y?k="#U"+encodeURIComponent(y):(c=this.getCurrentFile(),C||null==c||c.constructor!=window.DriveFile?k="#R"+encodeURIComponent(k?this.getFileData(!0,null,null,null,null,null,null,!0,null,!1):Graph.compress(mxUtils.getXml(this.editor.getGraphXml()))):(k="#"+c.getHash(),e=!1));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
|
"keys",Ea,"values",Ta,"cells",ba.getSelectionCells()))}finally{ba.getModel().endUpdate()}}function Q(qa,ta,ua){var Da=mxUtils.getOffset(g,!0),Ea=mxUtils.getOffset(qa,!0);ta.style.position="absolute";ta.style.left=Ea.x-Da.x+"px";ta.style.top=Ea.y-Da.y+"px";ta.style.width=qa.offsetWidth+"px";ta.style.height=qa.offsetHeight-(ua?4:0)+"px";ta.style.zIndex=5}function S(qa,ta,ua){var Da=document.createElement("div");Da.style.width="32px";Da.style.height="4px";Da.style.margin="2px";Da.style.border="1px solid black";
Da.style.background=ta&&"none"!=ta?ta:"url('"+Dialog.prototype.noColorImage+"')";btn=mxUtils.button("",mxUtils.bind(Y,function(Ea){this.editorUi.pickColor(ta,function(Ta){Da.style.background="none"==Ta?"url('"+Dialog.prototype.noColorImage+"')":Ta;M(qa,Ta,ua)});mxEvent.consume(Ea)}));btn.style.height="12px";btn.style.width="40px";btn.className="geColorBtn";btn.appendChild(Da);return btn}function W(qa,ta,ua,Da,Ea,Ta,Ka){null!=ta&&(ta=ta.split(","),fa.push({name:qa,values:ta,type:ua,defVal:Da,countProperty: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
|
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
|
return M==m||0==F.length?E(H,m):Q==S?K(H):L(H,m!=mxConstants.DIRECTION_NORTH&&m!=mxConstants.DIRECTION_WEST)}return V.apply(this,arguments)};e.getSubtree=function(H){var m=[H];!q(H)&&!d(H)||z(H)||e.traverse(H,!0,function(v,A){var I=null!=A&&e.isTreeEdge(A);I&&0>mxUtils.indexOf(m,A)&&m.push(A);(null==A||I)&&0>mxUtils.indexOf(m,v)&&m.push(v);return null==A||I});return m};var R=mxVertexHandler.prototype.init;mxVertexHandler.prototype.init=function(){R.apply(this,arguments);(q(this.state.cell)||d(this.state.cell))&&
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
this.model.root||this.model.isVertex(x[T])||this.model.isEdge(x[T])){var X=this.getTagsForCell(x[T]),Z=!1;if(0<X.length&&(X=X.split(" "),X.length>=g.length)){for(var Y=Z=0;Y<X.length&&Z<S;Y++)null!=W[X[Y]]&&Z++;Z=Z==S}Z&&(1!=M||this.isCellVisible(x[T]))&&Q.push(x[T])}}return Q};Graph.prototype.getAllTags=function(){return this.getTagsForCells(this.model.getDescendants(this.model.getRoot()))};Graph.prototype.getCommonTagsForCells=function(g){for(var x=null,F=[],M=0;M<g.length;M++){var Q=this.getTagsForCell(g[M]);
F=[];if(0<Q.length){Q=Q.split(" ");for(var S={},W=0;W<Q.length;W++)if(null==x||null!=x[Q[W]])S[Q[W]]=!0,F.push(Q[W]);x=S}else return[]}return F};Graph.prototype.getTagsForCells=function(g){for(var x=[],F={},M=0;M<g.length;M++){var Q=this.getTagsForCell(g[M]);if(0<Q.length){Q=Q.split(" ");for(var S=0;S<Q.length;S++)null==F[Q[S]]&&(F[Q[S]]=!0,x.push(Q[S]))}}return x};Graph.prototype.getTagsForCell=function(g){return this.getAttributeForCell(g,"tags","")};Graph.prototype.addTagsForCells=function(g,x){if(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
|
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
|
Xa?this.src=Xa:(this.src=Editor.errorImage,this.onerror=null)};mxEvent.addGestureListeners(va,mxUtils.bind(this,function(Na){B(va,null,null,da,wa,ya)}),null,null);mxEvent.addListener(va,"dblclick",function(Na){G();mxEvent.consume(Na)})}else if(!Ha&&null!=da&&0<da.length){var Qa=function(Na){I.setAttribute("disabled","disabled");va.style.backgroundColor="transparent";va.style.border="1px solid transparent";A.spin(ha);La(da,function(Ya,Wa){A.stop();null!=Ya&&(B(va,Ya,la,null,null,ya,Wa),Na&&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
|
this.canvas.begin=this.originalBegin;this.canvas.end=this.originalEnd;this.canvas.rect=this.originalRect;this.canvas.ellipse=this.originalEllipse;this.canvas.roundrect=this.originalRoundrect};mxShape.prototype.createRoughCanvas=function(S){return new g(S,Editor.createRoughCanvas(S),this)};var x=mxShape.prototype.createHandJiggle;mxShape.prototype.createHandJiggle=function(S){return this.outline||null==this.style||"0"==mxUtils.getValue(this.style,"sketch","0")?x.apply(this,arguments):"comic"==mxUtils.getValue(this.style,
"sketchStyle","rough")?this.createComicCanvas(S):this.createRoughCanvas(S)};var F=mxImageShape.prototype.paintVertexShape;mxImageShape.prototype.paintVertexShape=function(S,W,T,X,Z){null!=S.handJiggle&&S.handJiggle.passThrough||F.apply(this,arguments)};var M=mxShape.prototype.paint;mxShape.prototype.paint=function(S){var W=S.addTolerance,T=!0;null!=this.style&&(T="1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1"));if(null!=S.handJiggle&&S.handJiggle.constructor==g&&!this.outline){S.save();
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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("mermaid")+"...","mermaid");J.showDialog(k.container,620,420,!0,!1);k.init()}));var c="horizontalFlow verticalFlow - horizontalTree verticalTree radialTree - organic circle".split(" "),e=function(k,n,p,t){k.addItem(p,null,mxUtils.bind(this,function(){var y=new CreateGraphDialog(J,p,t);J.showDialog(y.container,620,420,!0,!1);y.init()}),n)};this.put("insertLayout",new Menu(mxUtils.bind(this,function(k,n){for(var p=0;p<c.length;p++)"-"==c[p]?k.addSeparator(n):e(k,n,mxResources.get(c[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
|
var Ma=null,Oa=da;null!=ma?va.setAttribute("title",mxResources.get(ma,null,ma)):null!=oa&&0<oa.length&&va.setAttribute("title",oa);if(null!=ka){va.style.display="inline-flex";va.style.justifyContent="center";va.style.alignItems="center";ia=document.createElement("img");ia.setAttribute("src",ka);ia.setAttribute("alt",oa);ia.style.maxWidth=Ga+"px";ia.style.maxHeight=qa+"px";F=ia;var Xa=ka.replace(".drawio.xml","").replace(".drawio","").replace(".xml","");va.appendChild(ia);ia.onerror=function(){this.src!=
Xa?this.src=Xa:(this.src=Editor.errorImage,this.onerror=null)};mxEvent.addGestureListeners(va,mxUtils.bind(this,function(Na){B(va,null,null,da,wa,ya)}),null,null);mxEvent.addListener(va,"dblclick",function(Na){G();mxEvent.consume(Na)})}else if(!Ha&&null!=da&&0<da.length){var Qa=function(Na){I.setAttribute("disabled","disabled");va.style.backgroundColor="transparent";va.style.border="1px solid transparent";A.spin(ha);La(da,function(Ya,Wa){A.stop();null!=Ya&&(B(va,Ya,la,null,null,ya,Wa),Na&&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
|
c.shortcut):z.apply(this,arguments)};EditorUi.prototype.toggleFormatPanel=function(J){null!=this.formatWindow?this.formatWindow.window.setVisible(null!=J?J:!this.formatWindow.window.isVisible()):b(this)};EditorUi.prototype.isFormatPanelVisible=function(){return null!=this.formatWindow&&this.formatWindow.window.isVisible()||null==this.formatWindow&&0<this.formatWidth};DiagramFormatPanel.prototype.isMathOptionVisible=function(){return!0};var D=EditorUi.prototype.destroy;EditorUi.prototype.destroy=function(){this.destroyWindows();
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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==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
|
D.getGlobalVariable=function(X){return"page"==X&&null!=K&&null!=K[E]?K[E].getAttribute("name"):"pagenumber"==X?E+1:"pagecount"==X?null!=K?K.length:1:U.apply(this,arguments)};D.getLinkForCell=function(){return null};Editor.MathJaxRender&&D.model.addListener(mxEvent.CHANGE,mxUtils.bind(this,function(X,Z){b.editor.graph.mathEnabled&&Editor.MathJaxRender(D.container)}));var J={lines:11,length:15,width:6,radius:10,corners:1,rotate:0,direction:1,color:Editor.isDarkMode()?"#c0c0c0":"#000",speed:1.4,trail:60,
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
360,null!=c.pages&&1<c.pages.length?470:390,!0,!0)};this.defaultFilename=mxResources.get("untitledDiagram");var V=e.getExportVariables;e.getExportVariables=function(){var A=V.apply(this,arguments),I=c.getCurrentFile();null!=I&&(A.filename=I.getTitle());A.pagecount=null!=c.pages?c.pages.length:1;A.page=null!=c.currentPage?c.currentPage.getName():"";A.pagenumber=null!=c.pages&&null!=c.currentPage?mxUtils.indexOf(c.pages,c.currentPage)+1:1;return A};var R=e.getGlobalVariable;e.getGlobalVariable=function(A){var I=
c.getCurrentFile();return"filename"==A&&null!=I?I.getTitle():"page"==A&&null!=c.currentPage?c.currentPage.getName():"pagenumber"==A?null!=c.currentPage&&null!=c.pages?mxUtils.indexOf(c.pages,c.currentPage)+1:1:"pagecount"==A?null!=c.pages?c.pages.length:1:R.apply(this,arguments)};var O=null,P=null;this.addListener("fileDescriptorChanged",mxUtils.bind(this,function(){var A=this.getCurrentFile(),I=null!=A&&null!=A.getTitle()?A.getTitle():this.defaultFilename;O!=I&&A==P&&(e.invalidateDescendantsWithPlaceholders(e.model.getRoot()),
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
""),Ea.value=ta,Ea.style.width="96px",Ea.style.borderWidth="0px",Ia.appendChild(Ea)):(Ia.innerHTML=mxUtils.htmlEntities(decodeURIComponent(ta)),mxEvent.addListener(Ia,"click",mxUtils.bind(Y,function(){function Ua(){var da=ja.value;da=0==da.length&&"string"!=Ka?0:da;ua.allowAuto&&(null!=da.trim&&"auto"==da.trim().toLowerCase()?(da="auto",Ka="string"):(da=parseFloat(da),da=isNaN(da)?0:da));null!=ua.min&&da<ua.min?da=ua.min:null!=ua.max&&da>ua.max&&(da=ua.max);da=encodeURIComponent(("int"==Ka?parseInt(da):
da)+"");M(qa,da,ua)}var ja=document.createElement("input");Q(Ia,ja,!0);ja.value=decodeURIComponent(ta);ja.className="gePropEditor";"int"!=Ka&&"float"!=Ka||ua.allowAuto||(ja.type="number",ja.step="int"==Ka?"1":"any",null!=ua.min&&(ja.min=parseFloat(ua.min)),null!=ua.max&&(ja.max=parseFloat(ua.max)));g.appendChild(ja);mxEvent.addListener(ja,"keypress",function(da){13==da.keyCode&&Ua()});ja.focus();mxEvent.addListener(ja,"blur",function(){Ua()})})));ua.isDeletable&&(Ea=mxUtils.button("-",mxUtils.bind(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
|
this.diagramContainer.scrollLeft+=c.x-e.x;this.diagramContainer.scrollTop+=c.x-e.x};EditorUi.prototype.isAutoDarkModeSupported=function(){return null!=window.matchMedia};EditorUi.prototype.isAutoDarkMode=function(c){return!c&&"auto"==urlParams.dark||Editor.isSettingsEnabled()&&("auto"==mxSettings.settings.darkMode||"draw.io"==this.getServiceName()&&"1"!=urlParams.embed&&(!this.editor.chromeless||this.editor.editable)&&null==mxSettings.settings.darkMode)};EditorUi.prototype.setDarkMode=function(c){this.doSetDarkMode(c,
mxUtils.bind(this,function(){this.fireEvent(new mxEventObject("darkModeChanged"))}),mxUtils.bind(this,function(e){null!=window.console&&console.error(e);this.editor.setStatus(e.message)}))};EditorUi.prototype.createDarkStyle=function(){var c=document.createElement("link");c.setAttribute("rel","stylesheet");c.setAttribute("href",STYLE_PATH+"/dark.css");c.setAttribute("charset","UTF-8");c.setAttribute("type","text/css");return c};EditorUi.setGraphDarkMode=function(c,e,k){c.view.defaultGridColor=k?mxGraphView.prototype.defaultDarkGridColor:
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
"Invalid data",toString:function(){return this.message}};};var f=Editor.prototype.getGraphXml;Editor.prototype.getGraphXml=function(g,x){g=null!=g?g:!0;var F=f.apply(this,arguments);null!=this.graph.currentStyle&&"default-style2"!=this.graph.currentStyle&&F.setAttribute("style",this.graph.currentStyle);var M=this.graph.getBackgroundImageObject(this.graph.backgroundImage,x);null!=M&&F.setAttribute("backgroundImage",JSON.stringify(M));F.setAttribute("math",this.graph.mathEnabled?"1":"0");F.setAttribute("shadow",
this.graph.shadowVisible?"1":"0");null!=this.graph.extFonts&&0<this.graph.extFonts.length&&(M=this.graph.extFonts.map(function(Q){return Q.name+"^"+Q.url}),F.setAttribute("extFonts",M.join("|")));return F};Editor.prototype.isDataSvg=function(g){try{var x=mxUtils.parseXml(g).documentElement.getAttribute("content");if(null!=x&&(null!=x&&"<"!=x.charAt(0)&&"%"!=x.charAt(0)&&(x=unescape(window.atob?atob(x):Base64.decode(cont,x))),null!=x&&"%"==x.charAt(0)&&(x=decodeURIComponent(x)),null!=x&&0<x.length)){var F=
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
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
|
g[1].geometry.width)/2:(Q.x+Q.width)/W-S.x+-x.x+10,g[1].geometry.y-=g[1].geometry.height+x.y+40):(g[1].geometry.x=I==mxConstants.DIRECTION_WEST?g[1].geometry.x-(g[1].geometry.width+x.x+40):g[1].geometry.x+(g[1].geometry.width-x.x+40),g[1].geometry.y=null==Q?H.geometry.y+(H.geometry.height-g[1].geometry.height)/2:(Q.y+Q.height)/W-S.y+-x.y+10);return e.addCells(g,v)}finally{e.model.endUpdate()}}function U(H,m,v){H=e.getOutgoingTreeEdges(H);v=e.view.getState(v);var A=[];if(null!=v&&null!=H){for(var I=
0;I<H.length;I++){var g=e.view.getState(e.model.getTerminal(H[I],!1));null!=g&&(!m&&Math.min(g.x+g.width,v.x+v.width)>=Math.max(g.x,v.x)||m&&Math.min(g.y+g.height,v.y+v.height)>=Math.max(g.y,v.y))&&A.push(g)}A.sort(function(x,F){return m?x.x+x.width-F.x-F.width:x.y+x.height-F.y-F.height})}return A}function J(H,m){var v=D(H),A=m==mxConstants.DIRECTION_EAST||m==mxConstants.DIRECTION_WEST;(v==mxConstants.DIRECTION_EAST||v==mxConstants.DIRECTION_WEST)==A&&v!=m?c.actions.get("selectParent").funct():v==
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
"metaEdit","0")?c.showDataDialog(A):k.apply(this,arguments)}}catch(F){c.handleError(F)}};e.getLinkTitle=function(A){return c.getLinkTitle(A)};e.customLinkClicked=function(A){var I=!1;try{c.handleCustomLink(A),I=!0}catch(g){c.handleError(g)}return I};var n=e.parseBackgroundImage;e.parseBackgroundImage=function(A){var I=n.apply(this,arguments);null!=I&&null!=I.src&&Graph.isPageLink(I.src)&&(I={originalSrc:I.src});return I};var p=e.setBackgroundImage;e.setBackgroundImage=function(A){null!=A&&null!=A.originalSrc&&
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
mxDualRuler.prototype.setUnit=function(b){this.vRuler.setUnit(b);this.hRuler.setUnit(b)};mxDualRuler.prototype.setStyle=function(b){this.vRuler.setStyle(b);this.hRuler.setStyle(b)};mxDualRuler.prototype.destroy=function(){this.vRuler.destroy();this.hRuler.destroy();this.ui.refresh=this.editorUiRefresh;mxGuide.prototype.move=this.origGuideMove;mxGuide.prototype.destroy=this.origGuideDestroy;this.ui.getDiagramContainerOffset=this.editorUiGetDiagContOffset};function mxFreehand(b){var f=null!=b.view&&null!=b.view.canvas?b.view.canvas.ownerSVGElement:null;if(null!=b.container&&null!=f){b.addListener(mxEvent.ESCAPE,mxUtils.bind(this,function(){this.stopDrawing()}));var l=mxFreehand.prototype.NORMAL_SMOOTHING,d=null,q=[],u,z=[],D,L=!1,K=!0,E=!0,U=!0,J=!0,c=[],e=!1,k=!1,n=!1,p={size:5,thinning:.5,smoothing:.5,streamline:.5,start:{taper:0,cap:!0},end:{taper:0,cap:!0}},t=!0;this.setClosedPath=function(P){L=P};this.setAutoClose=function(P){K=P};this.setAutoInsert=
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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!=sa&&null!=sa.originalSrc&&(sa=g.createImageForPageLink(sa.originalSrc,ka));ja.background=wa;ja.backgroundImage=null!=sa?new mxImage(sa.src,sa.width,sa.height,sa.x,sa.y):null;ja.pageVisible=da;ja.mathEnabled=oa;var Ja=ja.getGraphBounds;ja.getGraphBounds=function(){var ya=Ja.apply(this,arguments),La=this.backgroundImage;if(null!=La&&null!=La.width&&null!=La.height){var Ca=this.view.translate,va=this.view.scale;ya=mxRectangle.fromRectangle(ya);ya.add(new mxRectangle((Ca.x+La.x)*va,(Ca.y+La.y)*
va,La.width*va,La.height*va))}return ya};var Ha=ja.getGlobalVariable;ja.getGlobalVariable=function(ya){return"page"==ya?ka.getName():"pagenumber"==ya?ia+1:"pagecount"==ya?null!=g.pages?g.pages.length:1:Ha.apply(this,arguments)};document.body.appendChild(ja.container);g.updatePageRoot(ka);ja.model.setRoot(ka.root)}ma=Ka(ja,ma,ia!=la,ka.getId());ja!=Q&&ja.container.parentNode.removeChild(ja.container)}}else ma=Ka(Q);null==ma||null==ma.wnd?g.handleError({message:mxResources.get("errorUpdatingPreview")}):
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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){t=null!=t?t:!0;var G=document.createElement("input");G.style.marginRight="8px";G.style.marginTop="16px";G.setAttribute("type",y?"radio":"checkbox");y="geCheckbox-"+Editor.guid();G.id=y;null!=C&&G.setAttribute("name",C);k&&(G.setAttribute("checked","checked"),G.defaultChecked=!0);n&&G.setAttribute("disabled","disabled");t&&(c.appendChild(G),k=document.createElement("label"),mxUtils.write(k,e),k.setAttribute("for",y),c.appendChild(k),p||mxUtils.br(c));return G};EditorUi.prototype.addEditButton=function(c,
e){var k=this.addCheckbox(c,mxResources.get("edit")+":",!0,null,!0);k.style.marginLeft="24px";var n=this.getCurrentFile(),p="";null!=n&&n.getMode()!=App.MODE_DEVICE&&n.getMode()!=App.MODE_BROWSER&&(p=window.location.href);var t=document.createElement("select");t.style.maxWidth="200px";t.style.width="auto";t.style.marginLeft="8px";t.style.marginRight="10px";t.className="geBtn";n=document.createElement("option");n.setAttribute("value","blank");mxUtils.write(n,mxResources.get("makeCopy"));t.appendChild(n);
n=document.createElement("option");n.setAttribute("value","custom");mxUtils.write(n,mxResources.get("custom")+"...");t.appendChild(n);c.appendChild(t);mxEvent.addListener(t,"change",mxUtils.bind(this,function(){if("custom"==t.value){var y=new FilenameDialog(this,p,mxResources.get("ok"),function(C){null!=C?p=C:t.value="blank"},mxResources.get("url"),null,null,null,null,function(){t.value="blank"});this.showDialog(y.container,300,80,!0,!1);y.init()}}));mxEvent.addListener(k,"change",mxUtils.bind(this,
function(){k.checked&&(null==e||e.checked)?t.removeAttribute("disabled"):t.setAttribute("disabled","disabled")}));mxUtils.br(c);return{getLink:function(){return k.checked?"blank"===t.value?"_blank":p:null},getEditInput:function(){return k},getEditSelect:function(){return t}}};EditorUi.prototype.addLinkSection=function(c,e){function k(){var C=document.createElement("div");C.style.width="100%";C.style.height="100%";C.style.boxSizing="border-box";null!=t&&t!=mxConstants.NONE?(C.style.border="1px solid black",
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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.isAllTagsHidden=function(g){if(null==g||0==g.length||0==this.hiddenTags.length)return!1;g=g.split(" ");if(g.length>this.hiddenTags.length)return!1;for(var x=0;x<g.length;x++)if(0>mxUtils.indexOf(this.hiddenTags,g[x]))return!1;return!0};Graph.prototype.getCellsForTags=function(g,x,F,M){var Q=[];if(null!=g){x=null!=x?x:this.model.getDescendants(this.model.getRoot());for(var S=0,W={},T=0;T<g.length;T++)0<g[T].length&&(W[g[T]]=!0,S++);for(T=0;T<x.length;T++)if(F&&this.model.getParent(x[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.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();
k=e+(" "+(k+"-"+n+"-"+t+"-"+y+"-"+C+"-"+p))}return k=mxResources.get("copyOf",[k])+c};EditorUi.prototype.fileLoaded=function(c,e,k){var n=this.getCurrentFile();this.fileEditable=this.fileLoadedError=null;this.setCurrentFile(null);var p=!1;this.hideDialog();null!=n&&(EditorUi.debug("File.closed",[n]),n.removeListener(this.descriptorChangedListener),n.close());this.editor.graph.model.clear();this.editor.undoManager.clear();var t=mxUtils.bind(this,function(){this.setGraphEnabled(!1);this.setCurrentFile(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
|
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
|
function(c,e,k){var n=new XMLHttpRequest;n.open("POST",OPEN_URL);n.setRequestHeader("Content-Type","application/x-www-form-urlencoded");n.onreadystatechange=function(){e(n)};n.send("format=xml&filename="+encodeURIComponent(k)+"&data="+encodeURIComponent(c));try{EditorUi.logEvent({category:"GLIFFY-IMPORT-FILE",action:"size_"+file.size})}catch(p){}};EditorUi.prototype.isResampleImageSize=function(c,e){e=null!=e?e:this.resampleThreshold;return c>e};EditorUi.prototype.resizeImage=function(c,e,k,n,p,t,
y){p=null!=p?p:this.maxImageSize;var C=Math.max(1,c.width),G=Math.max(1,c.height);if(n&&this.isResampleImageSize(null!=y?y:e.length,t))try{var B=Math.max(C/p,G/p);if(1<B){var V=Math.round(C/B),R=Math.round(G/B),O=document.createElement("canvas");O.width=V;O.height=R;O.getContext("2d").drawImage(c,0,0,V,R);var P=O.toDataURL();if(P.length<e.length){var N=document.createElement("canvas");N.width=V;N.height=R;var H=N.toDataURL();P!==H&&(e=P,C=V,G=R)}}}catch(m){}k(e,C,G)};EditorUi.prototype.extractGraphModelFromPng=
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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],"time",Date.now()-m+" ms","args",arguments);return v});null!=y?(d.diffPages=y,y=null):(y=d.diffPages,d.diffPages=function(){var m=Date.now(),v=y.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.diffPages",[this],"time",Date.now()-m+" ms","args",arguments);return v});null!=C?(d.patchPages=C,C=null):(C=d.patchPages,d.patchPages=function(){var m=Date.now(),v=C.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.patchPages",[this],"time",Date.now()-m+" ms","args",arguments);
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
za.push(ra[Ba]);T.setSelectionCells(za)}function S(ra){T.setHiddenTags(ra?[]:X.slice());Q();T.refresh()}function W(ra,za){Y.innerText="";if(0<ra.length){var Ba=document.createElement("table");Ba.setAttribute("cellpadding","2");Ba.style.boxSizing="border-box";Ba.style.tableLayout="fixed";Ba.style.width="100%";var ea=document.createElement("tbody");if(null!=ra&&0<ra.length)for(var ha=0;ha<ra.length;ha++)(function(pa){function na(){var ta=T.getCellsForTags([pa],null,null,!0);T.isEnabled()?T.setSelectionCells(ta):
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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.styleInput.value=A||"",this.styleInput.style.visibility="visible"):this.styleInput.style.visibility="hidden"})));var m=this.isSelectionAllowed;this.isSelectionAllowed=function(A){return mxEvent.getSource(A)==this.styleInput?!0:m.apply(this,arguments)}}H=document.getElementById("geInfo");null!=H&&H.parentNode.removeChild(H);if(Graph.fileSupport&&(!this.editor.chromeless||this.editor.editable)){var v=null;mxEvent.addListener(e.container,"dragleave",function(A){e.isEnabled()&&(null!=v&&(v.parentNode.removeChild(v),
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
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 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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!=t&&(this.diagramContainer.style.width=Math.max(20,C+mxEvent.getClientX(B)-t)+"px",V=!0);null!=y&&(this.diagramContainer.style.height=Math.max(20,G+mxEvent.getClientY(B)-y)+"px",V=!0);V&&((window.opener||window.parent).postMessage(JSON.stringify({event:"resize",fullscreen:Editor.inlineFullscreen,rect:this.diagramContainer.getBoundingClientRect()}),"*"),this.inlineSizeChanged(),this.refresh())}),function(B){null==t&&null==y||mxEvent.consume(B);y=t=null});document.body.style.backgroundColor="transparent";
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
6)this.curveTo(fa[ca],fa[ca+1],fa[ca+2],fa[ca+3],fa[ca+4],fa[ca+5]);this.lastX=Y;this.lastY=ba}};g.prototype.rect=function(S,W,T,X){this.passThrough?this.originalRect.apply(this.canvas,arguments):(this.path=[],this.nextShape=this.rc.generator.rectangle(S,W,T,X,this.getStyle(!0,!0)))};g.prototype.ellipse=function(S,W,T,X){this.passThrough?this.originalEllipse.apply(this.canvas,arguments):(this.path=[],this.nextShape=this.rc.generator.ellipse(S+T/2,W+X/2,T,X,this.getStyle(!0,!0)))};g.prototype.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
|
f.getCell(e),null!=c&&c!=J&&(J=null));null!=J&&(f.getChildAt(l,D)!=J&&f.add(l,J,D),this.patchCellRecursive(b,f,J,d,q),D++);return e});for(K=[null];0<K.length;)if(E=K.shift(),E=L(null!=E?E.child:null,null!=E?E.insert:!1),U=u[E],null!=U&&(delete u[E],K.push({child:f.getCell(U)})),U=z[E],null!=U&&(delete z[E],K.push({child:this.getCellForJson(U),insert:!0})),0==K.length){for(E in u)K.push({child:f.getCell(u[E])}),delete u[E];for(E in z)K.push({child:this.getCellForJson(z[E]),insert:!0}),delete z[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
|
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(),
t.actions.get("customZoom").funct(),mxEvent.consume(T);else if("geMenuItem"==mxEvent.getSource(T).className||mxEvent.isShiftDown(T))t.hideCurrentMenu(),t.actions.get("smartFit").funct(),mxEvent.consume(T)},v=t.actions.get("zoomIn"),A=t.actions.get("zoomOut"),I=t.actions.get("resetView"),g=t.actions.get("undo"),x=t.actions.get("redo"),F=c("",g.funct,null,mxResources.get("undo")+" ("+g.shortcut+")",g,Editor.undoImage),M=c("",x.funct,null,mxResources.get("redo")+" ("+x.shortcut+")",x,Editor.redoImage),
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
q,z=0;8>z;z++)u=1==(u&1)?3988292384^u>>>1:u>>>1,Editor.crcTable[q]=u;Editor.updateCRC=function(g,x,F,M){for(var Q=0;Q<M;Q++)g=Editor.crcTable[(g^x.charCodeAt(F+Q))&255]^g>>>8;return g};Editor.crc32=function(g){for(var x=-1,F=0;F<g.length;F++)x=x>>>8^Editor.crcTable[(x^g.charCodeAt(F))&255];return(x^-1)>>>0};Editor.writeGraphModelToPng=function(g,x,F,M,Q){function S(Y,ba){var fa=X;X+=ba;return Y.substring(fa,X)}function W(Y){Y=S(Y,4);return Y.charCodeAt(3)+(Y.charCodeAt(2)<<8)+(Y.charCodeAt(1)<<16)+
(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)+
("zTXt"==x?String.fromCharCode(0):"")+M;M=4294967295;M=Editor.updateCRC(M,x,0,4);M=Editor.updateCRC(M,F,0,F.length);Q+=T(F.length)+x+F+T(M^4294967295);Q+=g.substring(X-8,g.length);break}Q+=g.substring(X-8,X-4+Z);S(g,Z);S(g,4)}while(Z);return"data:image/png;base64,"+(window.btoa?btoa(Q):Base64.encode(Q,!0))}};if(window.ColorDialog){FilenameDialog.filenameHelpLink="https://www.drawio.com/doc/faq/save-file-formats";var D=ColorDialog.addRecentColor;ColorDialog.addRecentColor=function(g,x){D.apply(this,
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
EditorUi.prototype.patchPage=function(b,f,l,d){var q=b==this.currentPage?this.editor.graph.model:new mxGraphModel(b.root),u=this.createParentLookup(q,f);q.beginUpdate();try{var z=q.updateEdgeParent,D=new mxDictionary,L=[];q.updateEdgeParent=function(n,p){!D.get(n)&&d&&(D.put(n,!0),L.push(n))};var K=u[""],E=null!=K&&null!=K.inserted?K.inserted[""]:null,U=null;null!=E&&(U=this.getCellForJson(E));if(null==U){var J=null!=K&&null!=K.moved?K.moved[""]:null;null!=J&&(U=q.getCell(J))}null!=U&&(q.setRoot(U),
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
"260px";e.style.textAlign="center";e.style.fontSize="22px";e.style.color="#a0c3ff";mxUtils.write(e,mxResources.get("dragImagesHere"));l.appendChild(e);var k={},n=null,p=null,t=null;U=function(V){"true"!=mxEvent.getSource(V).getAttribute("contentEditable")&&null!=t&&(t(),t=null,mxEvent.consume(V))};mxEvent.addListener(c,"mousedown",U);mxEvent.addListener(c,"pointerdown",U);mxEvent.addListener(c,"touchstart",U);var y=new mxUrlConverter,C=!1;if(null!=d)for(U=0;U<d.length;U++)f=d[U],D(f.data,null,0,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
|
var CommentsWindow=function(b,f,l,d,q,u){function z(){for(var O=t.getElementsByTagName("div"),P=0,N=0;N<O.length;N++)"none"!=O[N].style.display&&O[N].parentNode==t&&P++;y.style.display=0==P?"block":"none"}function D(O,P,N,H){function m(){P.removeChild(I);P.removeChild(g);A.style.display="block";v.style.display="block"}k={div:P,comment:O,saveCallback:N,deleteOnCancel:H};var v=P.querySelector(".geCommentTxt"),A=P.querySelector(".geCommentActionsList"),I=document.createElement("textarea");I.className=
"geCommentEditTxtArea";I.style.minHeight=v.offsetHeight+"px";I.value=O.content;P.insertBefore(I,v);var g=document.createElement("div");g.className="geCommentEditBtns";var x=mxUtils.button(mxResources.get("cancel"),function(){H?(P.parentNode.removeChild(P),z()):m();k=null});x.className="geCommentEditBtn";g.appendChild(x);var F=mxUtils.button(mxResources.get("save"),function(){v.innerText="";O.content=I.value;mxUtils.write(v,O.content);m();N(O);k=null});mxEvent.addListener(I,"keydown",mxUtils.bind(this,
function(M){mxEvent.isConsumed(M)||((mxEvent.isControlDown(M)||mxClient.IS_MAC&&mxEvent.isMetaDown(M))&&13==M.keyCode?(F.click(),mxEvent.consume(M)):27==M.keyCode&&(x.click(),mxEvent.consume(M)))}));F.focus();F.className="geCommentEditBtn gePrimaryBtn";g.appendChild(F);P.insertBefore(g,v);A.style.display="none";v.style.display="none";I.focus()}function L(O,P){P.innerText="";O=new Date(O.modifiedDate);var N=b.timeSince(O);null==N&&(N=mxResources.get("lessThanAMinute"));mxUtils.write(P,mxResources.get("timeAgo",
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
0>Z&&(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
|
top:"40%",zIndex:2E9});g.spin(v);var x=window.setTimeout(function(){null==b[H]&&(g.stop(),v.style.display="none")},3E4);b.addListener("clientLoaded",mxUtils.bind(this,function(){null!=b[H]&&(window.clearTimeout(x),mxUtils.setOpacity(I,100),A.style.visibility="",g.stop(),m())}))}else m();B.appendChild(v);++V==U&&(mxUtils.br(B),V=0)}function t(O){var P=C.value;if(null==O||null!=P&&0<P.length)n&&b.hideDialog(),l(P,O,C)}E="1"==urlParams.noDevice?!1:E;z=null!=z?z:!0;D=null!=D?D:!0;U=null!=U?U:4;n=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
|
0;za<this.customFonts.length;za++)if(this.customFonts[za].name==ca){ra=!1;break}ra&&(this.customFonts.push({name:ca,url:aa}),this.editorUi.fireEvent(new mxEventObject("customFontsChanged","customFonts",this.customFonts)))}finally{T.getModel().endUpdate()}}}));this.editorUi.showDialog(Z.container,380,Editor.enableWebFonts?250:180,!0,!0);Z.init()}),v,null,!0)})))}})();function DiagramPage(b,f){this.node=b;null!=f?this.node.setAttribute("id",f):null==this.getId()&&this.node.setAttribute("id",Editor.guid())}DiagramPage.prototype.node=null;DiagramPage.prototype.root=null;DiagramPage.prototype.viewState=null;DiagramPage.prototype.getId=function(){return this.node.getAttribute("id")};DiagramPage.prototype.getName=function(){return this.node.getAttribute("name")};
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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=
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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=
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
libs:ja.getAttribute("libs"),clibs:ja.getAttribute("clibs"),title:ja.getAttribute("title")}),ja=ja.nextSibling;V(Ka)}});var Va=function(ja,da,la){za.style.display="";Ga.stop();I=!1;if(g)g=!1;else if(da)aa.innerText=da;else{la=la||{};da=0;for(var ma in la)da+=la[ma].length;0==ja.length&&0==da?aa.innerText=mxResources.get("noDiagrams"):B(ja,!1,T,0==da?null:la)}};P(W);var Ua=null;mxEvent.addListener(Fa,"keyup",m);mxEvent.addListener(Fa,"search",m);mxEvent.addListener(Fa,"input",m);mxEvent.addListener(na,
"click",function(ja){C(!1,!1)});U&&mxEvent.addListener(Aa,"click",function(ja){C(!1,!0)});J&&mxEvent.addListener(A.querySelector(".geTempDlgLinkToDiagramBtn"),"click",function(ja){C(!0)});mxEvent.addListener(A.querySelector(".geTempDlgCancelBtn"),"click",function(){null!=l&&l();e||b.hideDialog(!0)})};TemplatesDialog.tagsList={};
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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.