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 |
---|---|---|---|---|---|---|---|
null!=x&&(this.diagramContainer.style.width=Math.max(20,G+mxEvent.getClientX(F)-x)+"px",U=!0);null!=B&&(this.diagramContainer.style.height=Math.max(20,I+mxEvent.getClientY(F)-B)+"px",U=!0);U&&((window.opener||window.parent).postMessage(JSON.stringify({event:"resize",fullscreen:Editor.inlineFullscreen,rect:this.diagramContainer.getBoundingClientRect()}),"*"),this.inlineSizeChanged(),this.refresh())}),function(F){null==x&&null==B||mxEvent.consume(F);B=x=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 |
Menus.prototype.init=function(){function f(p,y,C){this.ui=p;this.previousExtFonts=this.extFonts=y;this.prevCustomFonts=this.customFonts=C}e.apply(this,arguments);var c=this.editorUi,k=c.editor.graph,m=mxUtils.bind(k,k.isEnabled),u=("1"!=urlParams.embed&&"0"!=urlParams.gapi||"1"==urlParams.embed&&"1"==urlParams.gapi)&&mxClient.IS_SVG&&isLocalStorage&&(null==document.documentMode||10<=document.documentMode),v=("1"!=urlParams.embed&&"0"!=urlParams.db||"1"==urlParams.embed&&"1"==urlParams.db)&&mxClient.IS_SVG&& | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
p);var X=mxUtils.bind(this,function(Z,Y,aa){S.innerText="";mxUtils.write(S,Math.round(100*x.editor.graph.view.scale*(null!=aa?aa:1))+"%")});x.editor.graph.view.addListener(mxEvent.EVENT_SCALE,X);x.editor.addListener("resetGraphView",X);x.editor.addListener("pageSelected",X);x.editor.graph.addListener("zoomPreview",mxUtils.bind(this,function(Z,Y){X(Z,Y,Y.getProperty("factor"))}))})(W);var V=x.setGraphEnabled;x.setGraphEnabled=function(){V.apply(this,arguments);null!=this.tabContainer&&(W.style.visibility=
this.tabContainer.style.visibility,this.diagramContainer.style.bottom="0"!=urlParams.pages&&"hidden"!=this.tabContainer.style.visibility?this.tabContainerHeight+"px":"0px")}}t.appendChild(G);t.appendChild(x.diagramContainer);q.appendChild(t);x.updateTabContainer();!EditorUi.windowed&&1E3<=c&&b(this,!0);t.appendChild(x.tabContainer);n();mxEvent.addListener(window,"resize",function(){n();null!=x.sidebarWindow&&x.sidebarWindow.window.fit();null!=x.formatWindow&&x.formatWindow.window.fit();null!=x.actions.outlineWindow&& | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
46;EditorUi.prototype.footerHeight=0;Graph.prototype.editAfterInsert=!mxClient.IS_IOS&&!mxClient.IS_ANDROID;Editor.styleElt=document.createElement("style");Editor.styleElt.type="text/css";Editor.styleElt.innerHTML=Editor.createMinimalCss();document.getElementsByTagName("head")[0].appendChild(Editor.styleElt);Editor.prototype.isChromelessView=function(){return!1};Graph.prototype.isLightboxView=function(){return!1};var k=EditorUi.prototype.refresh;EditorUi.prototype.refresh=function(H){k.apply(this,
arguments);null!=this.tabContainer&&(this.tabContainer.style.right="62px",this.diagramContainer.style.bottom=this.tabContainerHeight+"px")};var m=EditorUi.prototype.updateActionStates;EditorUi.prototype.updateActionStates=function(){m.apply(this,arguments);this.menus.get("save").setEnabled(null!=this.getCurrentFile()||"1"==urlParams.embed)};var u=Menus.prototype.addShortcut;Menus.prototype.addShortcut=function(H,d){null!=d.shortcut&&900>c&&!mxClient.IS_IOS?H.firstChild.nextSibling.setAttribute("title", | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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.isObjectEqual=function(b,e,f){if(null==b&&null==e)return!0;if(null!=b?null==e:null!=e)return!1;var c=function(k,m){return null==f||f[k]!=m?!0===m?1:m:void 0};return JSON.stringify(b,c)==JSON.stringify(e,c)};var mxSettings={currentVersion:18,defaultFormatWidth:600>screen.width?"0":"240",key:Editor.settingsKey,getLanguage:function(){return mxSettings.settings.language},setLanguage:function(b){mxSettings.settings.language=b},isMainSettings:function(){return".drawio-config"==mxSettings.key},getMainSettings:function(){var b=localStorage.getItem(".drawio-config");null==b?(b=mxSettings.getDefaults(),delete b.isNew):(b=JSON.parse(b),b.version=mxSettings.currentVersion);return b},getUi:function(){return mxSettings.isMainSettings()? | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
parentRow:Qa,isDeletable:!0,flipBkg:Ha}));btn=mxUtils.button("+",mxUtils.bind(Y,function(Ra){for(var Ia=Qa,Va=0;null!=Ia.nextSibling;)if(Ia.nextSibling.getAttribute("data-pName")==pa)Ia=Ia.nextSibling,Va++;else break;var Ua={type:va,parentRow:Qa,index:Va,isDeletable:!0,defVal:Ga,countProperty:Ea};Va=Z(pa,"",Ua,0==Va%2,Ha);O(pa,Ga,Ua);Ia.parentNode.insertBefore(Va,Ia.nextSibling);mxEvent.consume(Ra)}));btn.style.height="16px";btn.style.width="25px";btn.className="geColorBtn";return btn}function S(pa,
ra,va,Ga,Ea,Qa,Ha){if(0<Ea){var Ra=Array(Ea);ra=null!=ra?ra.split(","):[];for(var Ia=0;Ia<Ea;Ia++)Ra[Ia]=null!=ra[Ia]?ra[Ia]:null!=Ga?Ga:"";ca.push({name:pa,values:Ra,type:va,defVal:Ga,parentRow:Qa,flipBkg:Ha,size:Ea})}return document.createElement("div")}function X(pa,ra,va){var Ga=document.createElement("input");Ga.type="checkbox";Ga.checked="1"==ra;mxEvent.addListener(Ga,"change",function(){O(pa,Ga.checked?"1":"0",va)});return Ga}function Z(pa,ra,va,Ga,Ea){var Qa=va.dispName,Ha=va.type,Ra=document.createElement("tr"); | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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.setAttribute("title",mxResources.get("preview"));l.className="geActiveButton";l.style.position="absolute";l.style.cursor="default";l.style.padding="8px";l.style.right="0px";l.style.top="0px";var z=!1,J=null,O=!1;if(L||H){var T=[],W=null,V=null,S=null,X=function(fa){K.setAttribute("disabled","disabled");for(var ma=0;ma<T.length;ma++)T[ma].className=ma==fa?"geBtn gePrimaryBtn":"geBtn"};P=!0;n=document.createElement("div");n.style.whiteSpace="nowrap";n.style.height="30px";Q.appendChild(n);N=mxUtils.button(mxResources.get("Templates", | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
Graph.prototype.highlightCells=function(l,z,J,O){for(var T=0;T<l.length;T++)this.highlightCell(l[T],z,J,O)};Graph.prototype.highlightCell=function(l,z,J,O,T){z=null!=z?z:mxConstants.DEFAULT_VALID_COLOR;J=null!=J?J:1E3;l=this.view.getState(l);var W=null;null!=l&&(T=null!=T?T:4,T=Math.max(T+1,mxUtils.getValue(l.style,mxConstants.STYLE_STROKEWIDTH,1)+T),W=new mxCellHighlight(this,z,T,!1),null!=O&&(W.opacity=O),W.highlight(l),window.setTimeout(function(){null!=W.shape&&(mxUtils.setPrefixedStyle(W.shape.node.style, | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
R();this.refreshComments=R;G=mxUtils.bind(this,function(){function N(y){var C=P[y.id];if(null!=C)for(E(y,C),C=0;null!=y.replies&&C<y.replies.length;C++)N(y.replies[C])}if(this.window.isVisible()){for(var Q=x.querySelectorAll(".geCommentDate"),P={},M=0;M<Q.length;M++){var p=Q[M];P[p.getAttribute("data-commentId")]=p}for(M=0;M<U.length;M++)N(U[M])}});setInterval(G,6E4);this.refreshCommentsTime=G;this.window=new mxWindow(mxResources.get("comments"),q,e,f,c,k,!0,!0);this.window.minimumSize=new mxRectangle(0, | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
mxAsyncCanvas.prototype.setFontFamily=function(b){this.state.fontFamily=b};mxAsyncCanvas.prototype.setFontStyle=function(b){this.state.fontStyle=b};mxAsyncCanvas.prototype.rect=function(b,e,f,c){};mxAsyncCanvas.prototype.roundrect=function(b,e,f,c,k,m){};mxAsyncCanvas.prototype.ellipse=function(b,e,f,c){};mxAsyncCanvas.prototype.rewriteImageSource=function(b){if("http://"==b.substring(0,7)||"https://"==b.substring(0,8))b="/proxy?url="+encodeURIComponent(b);return b}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
g(B)}}),g)};EditorUi.prototype.getDatabaseItemKeys=function(d,g,n){this.openDatabase(mxUtils.bind(this,function(q){try{n=n||"objects";var t=q.transaction([n],"readonly").objectStore(n).getAllKeys();t.onsuccess=function(){d(t.result)};t.onerror=g}catch(x){null!=g&&g(x)}}),g)};EditorUi.prototype.commentsSupported=function(){var d=this.getCurrentFile();return null!=d?d.commentsSupported():!1};EditorUi.prototype.commentsRefreshNeeded=function(){var d=this.getCurrentFile();return null!=d?d.commentsRefreshNeeded(): | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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(ma.url,ma.libs,ma.title,ma.tooltip?ma.tooltip:ma.title,ma.select,ma.imgUrl,ma.info,ma.onClick,ma.preview,ma.noImg,ma.clibs);fa&&ma.click();fa=!1}}function B(fa,ma,na,oa,ia,ka){if(null!=fa&&mxUtils.isAncestorNode(document.body,oa)){fa=mxUtils.parseXml(fa);fa=Editor.parseDiagramNode(fa.documentElement);var xa=new mxCodec(fa.ownerDocument),ua=new mxGraphModel;xa.decode(fa,ua);fa=ua.root.getChildAt(0).children;b.sidebar.createTooltip(oa,fa,Math.min((window.innerWidth||document.documentElement.clientWidth||
document.body.clientWidth)-80,1E3),Math.min((window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight)-80,800),null!=ia?mxResources.get(ia):null,!0,new mxPoint(ma,na),!0,function(){O=null!=b.sidebar.tooltip&&"none"!=b.sidebar.tooltip.style.display;null!=ka&&F(oa,null,null,ka,infoObj,clibs)},!0,!1)}}function G(){var fa=document.createElement("div");fa.style.position="absolute";fa.style.overflow="visible";fa.style.left="8px";fa.style.right="8px";fa.style.bottom="8px";fa.style.top= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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.fitDiagramToWindow=function(){var a=this.editor.graph,b=a.isSelectionEmpty()?mxRectangle.fromRectangle(a.getGraphBounds()):a.getBoundingBox(a.getSelectionCells()),e=a.view.translate,f=a.view.scale;b.x=b.x/f-e.x;b.y=b.y/f-e.y;b.width/=f;b.height/=f;null!=a.backgroundImage&&b.add(new mxRectangle(0,0,a.backgroundImage.width,a.backgroundImage.height));0==b.width||0==b.height?(a.zoomTo(1),this.resetScrollbars()):(e=Editor.fitWindowBorders,null!=e&&(b.x-=e.x,b.y-=e.y,b.width+=e.width+
e.x,b.height+=e.height+e.y),a.fitWindow(b))};EditorUi.prototype.hasScrollbars=function(){return this.editor.graph.scrollbars}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
arguments);k()};k();var H=document.createElement("canvas");H.width=L.offsetWidth;H.height=L.offsetHeight;L.style.overflow="hidden";H.style.position="relative";L.appendChild(H);var d=H.getContext("2d");this.ui=b;var g=b.editor.graph;this.graph=g;this.container=L;this.canvas=H;var n=function(B,G,I,F,U){B=Math.round(B);G=Math.round(G);I=Math.round(I);F=Math.round(F);d.beginPath();d.moveTo(B+.5,G+.5);d.lineTo(I+.5,F+.5);d.stroke();U&&(f?(d.save(),d.translate(B,G),d.rotate(-Math.PI/2),d.fillText(U,0,0),
d.restore()):d.fillText(U,B,G))},q=function(){d.clearRect(0,0,H.width,H.height);d.beginPath();d.lineWidth=.7;d.strokeStyle=A.strokeClr;d.setLineDash([]);d.font="9px Arial";d.textAlign="center";var B=g.view.scale,G=g.view.getBackgroundPageBounds(),I=g.view.translate,F=g.pageVisible;I=F?E+(f?G.y-g.container.scrollTop:G.x-g.container.scrollLeft):E+(f?I.y*B-g.container.scrollTop:I.x*B-g.container.scrollLeft);var U=0;F&&(U=g.getPageLayout(),U=f?U.y*g.pageFormat.height:U.x*g.pageFormat.width);var R;switch(D.unit){case mxConstants.POINTS:var 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 |
DriveClient.prototype.authorize=function(f,c,k,m,u){this.isExtAuth&&!f?window.parent.driveAuth(mxUtils.bind(this,function(v){this.updateAuthInfo(v,!0,!0,c,k)}),k):(new mxXmlRequest(this.redirectUri+"?getState=1",null,"GET")).send(mxUtils.bind(this,function(v){200<=v.getStatus()&&299>=v.getStatus()?this.authorizeStep2(v.getText(),f,c,k,m,u):null!=k&&k(v)}),k)};DriveClient.prototype.updateAuthInfo=function(f,c,k,m,u){b=f.access_token;delete f.access_token;f.expires=Date.now()+1E3*parseInt(f.expires_in);
f.remember=c;this.resetTokenRefresh(f);this.authCalled=!0;if(k||null==this.user){var v=JSON.stringify(f);this.updateUser(mxUtils.bind(this,function(){var E=JSON.parse(v);this.setPersistentToken(E,!c);null!=m&&m()}),u)}else null!=m&&(this.setPersistentToken(f,!c),m())};DriveClient.prototype.authorizeStep2=function(f,c,k,m,u,v){try{null!=this.ui.stateArg&&null!=this.ui.stateArg.userId&&(this.userId=this.ui.stateArg.userId,null!=this.user&&this.user.id!=this.userId&&(this.user=null));if(null==this.userId){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 |
arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()};var E=ColorDialog.resetRecentColors;ColorDialog.resetRecentColors=function(){E.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()}}"undefined"!==typeof window.EditDataDialog&&(EditDataDialog.getDisplayIdForCell=function(l,z){var J=null;null!=l.editor.graph.getModel().getParent(z)?J=z.getId():null!=l.currentPage&&(J=l.currentPage.getId());return J});if(null!=window.StyleFormatPanel){var D= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
Math.round(25*Math.random()))):/\s/.test(t)?n.push(" "):n.push("?"):n.push(g?"0":Math.round(9*Math.random()))}return n.join("")};EditorUi.prototype.anonymizePatch=function(d){if(null!=d[EditorUi.DIFF_INSERT])for(var g=0;g<d[EditorUi.DIFF_INSERT].length;g++)try{var n=mxUtils.parseXml(d[EditorUi.DIFF_INSERT][g].data).documentElement.cloneNode(!1);null!=n.getAttribute("name")&&n.setAttribute("name",this.anonymizeString(n.getAttribute("name")));d[EditorUi.DIFF_INSERT][g].data=mxUtils.getXml(n)}catch(x){d[EditorUi.DIFF_INSERT][g].data=
x.message}if(null!=d[EditorUi.DIFF_UPDATE]){for(var q in d[EditorUi.DIFF_UPDATE]){var t=d[EditorUi.DIFF_UPDATE][q];null!=t.name&&(t.name=this.anonymizeString(t.name));null!=t.cells&&(g=mxUtils.bind(this,function(x){var B=t.cells[x];if(null!=B){for(var G in B)null!=B[G].value&&(B[G].value="["+B[G].value.length+"]"),null!=B[G].xmlValue&&(B[G].xmlValue="["+B[G].xmlValue.length+"]"),null!=B[G].style&&(B[G].style="["+B[G].style.length+"]"),mxUtils.isEmptyObject(B[G])&&delete B[G];mxUtils.isEmptyObject(B)&&
delete t.cells[x]}}),g(EditorUi.DIFF_INSERT),g(EditorUi.DIFF_UPDATE),mxUtils.isEmptyObject(t.cells)&&delete t.cells);mxUtils.isEmptyObject(t)&&delete d[EditorUi.DIFF_UPDATE][q]}mxUtils.isEmptyObject(d[EditorUi.DIFF_UPDATE])&&delete d[EditorUi.DIFF_UPDATE]}return d};EditorUi.prototype.anonymizeAttributes=function(d,g){if(null!=d.attributes)for(var n=0;n<d.attributes.length;n++)"as"!=d.attributes[n].name&&d.setAttribute(d.attributes[n].name,this.anonymizeString(d.attributes[n].value,g));if(null!=d.childNodes)for(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 |
D)}};GitLabClient.prototype.saveFile=function(e,f,c,k,m){var u=e.meta.org,v=e.meta.repo,E=e.meta.ref,D=e.meta.path,A=mxUtils.bind(this,function(H,d){this.writeFile(u,v,E,D,m,d,H,mxUtils.bind(this,function(g){delete e.meta.isNew;this.getFile(u+"/"+v+"/"+E+"/"+D,mxUtils.bind(this,function(n){n.getData()==e.getData()?f(n.getCurrentEtag()):f({content:e.getCurrentEtag()})}),c,null,null,e.meta.refPos)}),c)}),L=mxUtils.bind(this,function(){if(this.ui.useCanvasForExport&&/(\.png)$/i.test(D)){var H=this.ui.getPngFileProperties(this.ui.fileNode); | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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+8,T=(z.y+C.lastCursor.y)*J-12,W=C.cursor.getElementsByTagName("img")[0];K?(mxUtils.setPrefixedStyle(C.cursor.style,"transition","all 900ms ease-out"),mxUtils.setPrefixedStyle(W.style,"transition","all 900ms ease-out"),window.setTimeout(l,0)):(mxUtils.setPrefixedStyle(C.cursor.style,"transition",null),mxUtils.setPrefixedStyle(W.style,"transition",null),l())}}function u(C,K){try{var l=function(){if(null==g[J]){var Y=B[J];null==Y&&(Y=L%d.length,B[J]=Y,L++);var aa=d[Y];Y=11<Y?"black":"white";g[J]={cursor:document.createElement("div"),
color:aa,selection:{}};t[K]=J;O=g[J].cursor;O.style.pointerEvents="none";O.style.position="absolute";O.style.display="none";O.style.opacity="0.9";var ca=document.createElement("img");mxUtils.setPrefixedStyle(ca.style,"transform","rotate(-45deg)translateX(-14px)");ca.setAttribute("src",Graph.createSvgImage(8,12,'<path d="M 4 0 L 8 12 L 4 10 L 0 12 Z" stroke="'+aa+'" fill="'+aa+'"/>').src);ca.style.width="10px";O.appendChild(ca);ca=document.createElement("div");ca.style.backgroundColor=aa;ca.style.color=
Y;ca.style.fontSize="9pt";ca.style.padding="3px 7px";ca.style.marginTop="8px";ca.style.borderRadius="10px";ca.style.maxWidth="100px";ca.style.overflow="hidden";ca.style.textOverflow="ellipsis";ca.style.whiteSpace="nowrap";mxUtils.write(ca,z);O.appendChild(ca);b.diagramContainer.appendChild(O)}else O=g[J].cursor;T=g[J].selection};if(!N){C=JSON.parse(C);null!=C.bytes&&(C=e.stringToObject(C.bytes));Q&&"cursor"!=C.type&&EditorUi.debug("P2PCollab: msg received",[C]);if(null!=K){if(C.from==G||q[C.from]>= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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[z[J][T]];null!=W?""!=W&&O.push(W):O.push(z[J][T])}z[J]=O}};Graph.prototype.getCellsForAction=function(l,z){z=this.getCellsById(l.cells).concat(this.getCellsForTags(l.tags,null,z));if(null!=l.excludeCells){for(var J=[],O=0;O<z.length;O++)0>l.excludeCells.indexOf(z[O].id)&&J.push(z[O]);z=J}return z};Graph.prototype.getCellsById=function(l){var z=[];if(null!=l)for(var J=0;J<l.length;J++)if("*"==l[J]){var O=this.model.getRoot();z=z.concat(this.model.filterDescendants(function(W){return W!=O},O))}else{var T=
this.model.getCell(l[J]);null!=T&&z.push(T)}return z};var P=Graph.prototype.isCellVisible;Graph.prototype.isCellVisible=function(l){return P.apply(this,arguments)&&!this.isAllTagsHidden(this.getTagsForCell(l))};Graph.prototype.setHiddenTags=function(l){this.hiddenTags=l;this.fireEvent(new mxEventObject("hiddenTagsChanged"))};Graph.prototype.toggleHiddenTag=function(l){var z=mxUtils.indexOf(this.hiddenTags,l);0>z?this.hiddenTags.push(l):0<=z&&this.hiddenTags.splice(z,1);this.fireEvent(new mxEventObject("hiddenTagsChanged"))}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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.parseXml(z).documentElement;return"mxfile"==J.nodeName||"mxGraphModel"==J.nodeName}}catch(O){}return!1};Editor.prototype.extractGraphModel=function(l,z,J){return Editor.extractGraphModel.apply(this,arguments)};var f=Editor.prototype.resetGraph;Editor.prototype.resetGraph=function(){this.graph.mathEnabled="1"==urlParams.math;this.graph.view.x0=null;this.graph.view.y0=null;this.graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&this.graph.isCssTransformsSupported();this.graph.updateCssTransform();
f.apply(this,arguments)};var c=Editor.prototype.updateGraphComponents;Editor.prototype.updateGraphComponents=function(){c.apply(this,arguments);this.graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&this.graph.isCssTransformsSupported();this.graph.updateCssTransform()};Editor.initMath=function(l,z){if("undefined"===typeof window.MathJax&&!mxClient.IS_IE&&!mxClient.IS_IE11){var J=function(){O=null;if(0<Editor.mathJaxQueue.length)Editor.doMathJaxRender(Editor.mathJaxQueue.shift());else Editor.onMathJaxDone()}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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.stringify(c)+"\r\n---------314159265358979323846\r\nContent-Type: application/octect-stream\r\nContent-Transfer-Encoding: base64\r\n\r\n"+(null!=k?u?k:!window.btoa||mxClient.IS_IE||mxClient.IS_IE11?Base64.encode(k):Graph.base64EncodeUnicode(k):"")+"\r\n---------314159265358979323846--"};m||(f.fullUrl+="&newRevision=false");E&&(f.fullUrl+="&pinned=true");return f};DriveClient.prototype.createLinkPicker=function(){var f=e.linkPicker;if(null==f||e.linkPickerToken!=b){e.linkPickerToken=b;f=(new google.picker.DocsView(google.picker.ViewId.FOLDERS)).setParent("root").setIncludeFolders(!0).setSelectFolderEnabled(!0);
var c=(new google.picker.DocsView).setIncludeFolders(!0).setSelectFolderEnabled(!0),k=(new google.picker.DocsView).setIncludeFolders(!0).setEnableDrives(!0).setSelectFolderEnabled(!0);f=(new google.picker.PickerBuilder).setAppId(this.appId).setLocale(mxLanguage).setOAuthToken(e.linkPickerToken).enableFeature(google.picker.Feature.SUPPORT_DRIVES).addView(f).addView(c).addView(k).addView(google.picker.ViewId.RECENTLY_PICKED)}return f};DriveClient.prototype.pickFile=function(f,c,k){this.filePickerCallback= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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()-p+" ms","args",arguments);return y});null!=B?(c.diffPages=B,B=null):(B=c.diffPages,c.diffPages=function(){var p=Date.now(),y=B.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.diffPages",[this],"time",Date.now()-p+" ms","args",arguments);return y});null!=G?(c.patchPages=G,G=null):(G=c.patchPages,c.patchPages=function(){var p=Date.now(),y=G.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.patchPages",[this],"time",Date.now()-p+" 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 |
function(W,V,S,X,Z,Y){this.passThrough?this.originalRoundrect.apply(this.canvas,arguments):(this.begin(),this.moveTo(W+Z,V),this.lineTo(W+S-Z,V),this.quadTo(W+S,V,W+S,V+Y),this.lineTo(W+S,V+X-Y),this.quadTo(W+S,V+X,W+S-Z,V+X),this.lineTo(W+Z,V+X),this.quadTo(W,V+X,W,V+X-Y),this.lineTo(W,V+Y),this.quadTo(W,V,W+Z,V))};l.prototype.drawPath=function(W){if(0<this.path.length){this.passThrough=!0;try{this.rc.path(this.path.join(" "),W)}catch(S){}this.passThrough=!1}else if(null!=this.nextShape){for(var V in W)this.nextShape.options[V]=
W[V];W.stroke!=mxConstants.NONE&&null!=W.stroke||delete this.nextShape.options.stroke;W.filled||delete this.nextShape.options.fill;this.passThrough=!0;this.rc.draw(this.nextShape);this.passThrough=!1}};l.prototype.stroke=function(){this.passThrough?this.originalStroke.apply(this.canvas,arguments):this.drawPath(this.getStyle(!0,!1))};l.prototype.fill=function(){this.passThrough?this.originalFill.apply(this.canvas,arguments):this.drawPath(this.getStyle(!1,!0))};l.prototype.fillAndStroke=function(){this.passThrough? | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
method:"PUT",contentType:"application/json; charset=UTF-8",params:c}};DriveClient.prototype.getLibrary=function(f,c,k){return this.getFile(f,c,k,!0,!0)};DriveClient.prototype.loadDescriptor=function(f,c,k,m){this.executeRequest({url:"/files/"+f+"?supportsAllDrives=true&fields="+(null!=m?m:this.allFields)},c,k)};DriveClient.prototype.listFiles=function(f,c,k,m,u){this.executeRequest({url:"/files?supportsAllDrives=true&includeItemsFromAllDrives=true&q="+encodeURIComponent("(mimeType contains '"+this.xmlMimeType+ | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
allowedDomains:["app.diagrams.net"]},setMigratedFlag:{isAsync:!1,allowedDomains:["app.diagrams.net"]}};EditorUi.prototype.remoteInvokeCallbacks=[];EditorUi.prototype.remoteInvokeQueue=[];EditorUi.prototype.handleRemoteInvokeReady=function(d){this.remoteWin=d;for(var g=0;g<this.remoteInvokeQueue.length;g++)d.postMessage(this.remoteInvokeQueue[g],"*");this.remoteInvokeQueue=[]};EditorUi.prototype.handleRemoteInvokeResponse=function(d){var g=d.msgMarkers,n=this.remoteInvokeCallbacks[g.callbackId];if(null==
n)throw Error("No callback for "+(null!=g?g.callbackId:"null"));d.error?n.error&&n.error(d.error.errResp):n.callback&&n.callback.apply(this,d.resp);this.remoteInvokeCallbacks[g.callbackId]=null};EditorUi.prototype.remoteInvoke=function(d,g,n,q,t){var x=!0,B=window.setTimeout(mxUtils.bind(this,function(){x=!1;t({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout")})}),this.timeout),G=mxUtils.bind(this,function(){window.clearTimeout(B);x&&q.apply(this,arguments)}),I=mxUtils.bind(this,function(){window.clearTimeout(B); | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
A.code=null);D(A)})))};GitHubClient.prototype.checkExists=function(e,f,c){var k=e.split("/"),m=k[0],u=k[1],v=k[2];e=k.slice(3,k.length).join("/");this.getSha(m,u,e,v,mxUtils.bind(this,function(E){if(f){var D=this.ui.spinner.pause();this.ui.confirm(mxResources.get("replaceIt",[e]),function(){D();c(!0,E)},function(){D();c(!1)})}else this.ui.spinner.stop(),this.ui.showError(mxResources.get("error"),mxResources.get("fileExists"),mxResources.get("ok"),function(){c(!1)})}),mxUtils.bind(this,function(E){c(!0)}),
!0)};GitHubClient.prototype.saveFile=function(e,f,c,k,m){var u=e.meta.org,v=e.meta.repo,E=e.meta.ref,D=e.meta.path,A=mxUtils.bind(this,function(H,d){this.writeFile(u,v,E,D,m,d,H,mxUtils.bind(this,function(g){delete e.meta.isNew;f(JSON.parse(g.getText()).content.sha)}),mxUtils.bind(this,function(g){c(g)}))}),L=mxUtils.bind(this,function(){if(this.ui.useCanvasForExport&&/(\.png)$/i.test(D)){var H=this.ui.getPngFileProperties(this.ui.fileNode);this.ui.getEmbeddedPng(mxUtils.bind(this,function(d){A(e.meta.sha, | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
wa,La.width*wa,La.height*wa))}return Aa};var Ja=ja.getGlobalVariable;ja.getGlobalVariable=function(Aa){return"page"==Aa?ka.getName():"pagenumber"==Aa?ia+1:"pagecount"==Aa?null!=l.pages?l.pages.length:1:Ja.apply(this,arguments)};document.body.appendChild(ja.container);l.updatePageRoot(ka);ja.model.setRoot(ka.root)}na=Ha(ja,na,ia!=ma,ka.getId());ja!=T&&ja.container.parentNode.removeChild(ja.container)}}else na=Ha(T);null==na||null==na.wnd?l.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(){b.spinner.stop();if(null==b.linkPicker){var B=b.drive.createLinkPicker();b.linkPicker=B.setCallback(function(G){LinkDialog.filePicked(G)}).build()}b.linkPicker.setVisible(!0)}))});"undefined"!=typeof Dropbox&&"undefined"!=typeof Dropbox.choose&&v(IMAGE_PATH+"/dropbox-logo.svg",mxResources.get("dropbox"),function(){Dropbox.choose({linkType:"direct",cancel:function(){},success:function(B){A.value=B[0].link;A.focus()}})});null!=b.oneDrive&&v(IMAGE_PATH+"/onedrive-logo.svg",mxResources.get("oneDrive"), | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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.customFontElements={};Graph.recentCustomFonts={};Graph.isGoogleFontUrl=function(l){return l.substring(0,Editor.GOOGLE_FONTS.length)==Editor.GOOGLE_FONTS};Graph.isCssFontUrl=function(l){return Graph.isGoogleFontUrl(l)};Graph.createFontElement=function(l,z){var J=Graph.fontMapping[z];null==J&&Graph.isCssFontUrl(z)?(l=document.createElement("link"),l.setAttribute("rel","stylesheet"),l.setAttribute("type","text/css"),l.setAttribute("charset","UTF-8"),l.setAttribute("href",z)):(null==J&&(J='@font-face {\nfont-family: "'+
l+'";\nsrc: url("'+z+'");\n}'),l=document.createElement("style"),mxUtils.write(l,J));return l};Graph.addFont=function(l,z,J){if(null!=l&&0<l.length&&null!=z&&0<z.length){var O=l.toLowerCase();if("helvetica"!=O&&"arial"!=l&&"sans-serif"!=O){var T=Graph.customFontElements[O];null!=T&&T.url!=z&&(T.elt.parentNode.removeChild(T.elt),T=null);null==T?(T=z,"http:"==z.substring(0,5)&&(T=PROXY_URL+"?url="+encodeURIComponent(z)),T={name:l,url:z,elt:Graph.createFontElement(l,T)},Graph.customFontElements[O]=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 |
function(l,z){Graph.addFont(l,z);document.execCommand("fontname",!1,l);if(null!=z){var J=this.cellEditor.textarea.getElementsByTagName("font");z=Graph.getFontUrl(l,z);for(var O=0;O<J.length;O++)J[O].getAttribute("face")==l&&J[O].getAttribute("data-font-src")!=z&&J[O].setAttribute("data-font-src",z)}};var x=Graph.prototype.isFastZoomEnabled;Graph.prototype.isFastZoomEnabled=function(){return x.apply(this,arguments)&&(!this.shadowVisible||!mxClient.IS_SF)};Graph.prototype.updateGlobalUrlVariables=function(){this.globalVars=
Editor.globalVars;if(null!=urlParams.vars)try{this.globalVars=null!=this.globalVars?mxUtils.clone(this.globalVars):{};var l=JSON.parse(decodeURIComponent(urlParams.vars));if(null!=l)for(var z in l)this.globalVars[z]=l[z]}catch(J){null!=window.console&&console.log("Error in vars URL parameter: "+J)}};Graph.prototype.getExportVariables=function(){return null!=this.globalVars?mxUtils.clone(this.globalVars):{}};var B=Graph.prototype.getGlobalVariable;Graph.prototype.getGlobalVariable=function(l){var z= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
"cells",[N]))}finally{I.getModel().endUpdate()}I.setSelectionCell(N)}))}else{d=Graph.zapGremlins(mxUtils.trim(d));if(this.isCompatibleString(d))return this.importXml(d,g,n,x,null,G);if(0<d.length)if(this.isLucidChartData(d))this.convertLucidChart(d,mxUtils.bind(this,function(N){this.editor.graph.setSelectionCells(this.importXml(N,g,n,x,null,G))}),mxUtils.bind(this,function(N){this.handleError(N)}));else{I=this.editor.graph;t=null;I.getModel().beginUpdate();try{t=I.insertVertex(I.getDefaultParent(), | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
"";S.style.textOverflow="";S.style.whiteSpace="";S.style.cursor="text";S.style.color="";S.setAttribute("contentEditable","true");mxUtils.setPrefixedStyle(S.style,"user-select","text");S.focus();document.execCommand("selectAll",!1,null);x=function(){S.removeAttribute("contentEditable");S.style.cursor="pointer";X.title=S.innerHTML;K()};mxEvent.consume(ca)}};mxEvent.addListener(S,"click",W);mxEvent.addListener(O,"dblclick",W);d.appendChild(O);mxEvent.addListener(O,"dragstart",function(ca){null==U&&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 |
typeof mxMermaidToDrawio)ea=da=wa;wa=l.cloneNode(!0);na.appendChild(wa);Ma=function(Pa){O=null!=b.sidebar.tooltip&&"none"!=b.sidebar.tooltip.style.display};Oa=function(Pa){O||B(Ta,mxEvent.getClientX(Pa),mxEvent.getClientY(Pa),Sa,Da)};mxEvent.addGestureListeners(Sa,Ma,null,Oa);mxEvent.addGestureListeners(wa,Ma,null,Oa)},function(wa){b.handleError(wa)})});Ka.setAttribute("disabled","disabled");Ka.className="geBtn gePrimaryBtn";oa=function(){window.setTimeout(function(){""!=ma.value?Ka.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 |
this.model.root||this.model.isVertex(z[S])||this.model.isEdge(z[S])){var X=this.getTagsForCell(z[S]),Z=!1;if(0<X.length&&(X=X.split(" "),X.length>=l.length)){for(var Y=Z=0;Y<X.length&&Z<W;Y++)null!=V[X[Y]]&&Z++;Z=Z==W}Z&&(1!=O||this.isCellVisible(z[S]))&&T.push(z[S])}}return T};Graph.prototype.getAllTags=function(){return this.getTagsForCells(this.model.getDescendants(this.model.getRoot()))};Graph.prototype.getCommonTagsForCells=function(l){for(var z=null,J=[],O=0;O<l.length;O++){var T=this.getTagsForCell(l[O]);
J=[];if(0<T.length){T=T.split(" ");for(var W={},V=0;V<T.length;V++)if(null==z||null!=z[T[V]])W[T[V]]=!0,J.push(T[V]);z=W}else return[]}return J};Graph.prototype.getTagsForCells=function(l){for(var z=[],J={},O=0;O<l.length;O++){var T=this.getTagsForCell(l[O]);if(0<T.length){T=T.split(" ");for(var W=0;W<T.length;W++)null==J[T[W]]&&(J[T[W]]=!0,z.push(T[W]))}}return z};Graph.prototype.getTagsForCell=function(l){return this.getAttributeForCell(l,"tags","")};Graph.prototype.addTagsForCells=function(l,z){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 |
function AspectDialog(b,e,f,c,k){this.aspect={pageId:e||(b.pages?b.pages[0].getId():null),layerIds:f||[]};e=document.createElement("div");var m=document.createElement("h5");m.style.margin="0 0 10px";mxUtils.write(m,mxResources.get("pages"));e.appendChild(m);f=document.createElement("div");f.className="geAspectDlgList";e.appendChild(f);m=document.createElement("h5");m.style.margin="0 0 10px";mxUtils.write(m,mxResources.get("layers"));e.appendChild(m);m=document.createElement("div");m.className="geAspectDlgList"; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
window.console&&console.error(J,C,K)}}function k(C){if(b.shareCursorPosition&&!A.isMouseDown){var K=mxUtils.getOffset(A.container),l=A.view.translate,z=A.view.scale,J=null!=b.currentPage?b.currentPage.getId():null;c("cursor",{pageId:J,x:Math.round((C.getX()-K.x+A.container.scrollLeft)/z-l.x),y:Math.round((C.getY()-K.y+A.container.scrollTop)/z-l.y)})}}function m(C,K){var l=null!=b.currentPage?b.currentPage.getId():null;if(null!=C&&null!=C.cursor&&null!=C.lastCursor)if(null!=C.lastCursor.hide||!b.isShowRemoteCursors()|| | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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.isExportToCanvas=function(){return this.editor.isExportToCanvas()};EditorUi.prototype.createImageDataUri=function(d,g,n,q){d=d.toDataURL("image/"+n);if(null!=d&&6<d.length)null!=g&&(d=Editor.writeGraphModelToPng(d,"tEXt","mxfile",encodeURIComponent(g))),0<q&&(d=Editor.writeGraphModelToPng(d,"pHYs","dpi",q));else throw{message:mxResources.get("unknownError")};return d};EditorUi.prototype.saveCanvas=function(d,g,n,q,t){var x="jpeg"==n?"jpg":n;q=this.getBaseFilename(q)+(null!=g?".drawio":
"")+"."+x;d=this.createImageDataUri(d,g,n,t);this.saveData(q,x,d.substring(d.lastIndexOf(",")+1),"image/"+n,!0)};EditorUi.prototype.isLocalFileSave=function(){return"remote"!=urlParams.save&&(mxClient.IS_IE||"undefined"!==typeof window.Blob&&"undefined"!==typeof window.URL)&&9!=document.documentMode&&8!=document.documentMode&&7!=document.documentMode||this.isOfflineApp()||mxClient.IS_IOS};EditorUi.prototype.showTextDialog=function(d,g){d=new TextareaDialog(this,d,g,null,null,mxResources.get("close")); | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
Ga.style.background=ra&&"none"!=ra?ra:"url('"+Dialog.prototype.noColorImage+"')";btn=mxUtils.button("",mxUtils.bind(Y,function(Ea){this.editorUi.pickColor(ra,function(Qa){Ga.style.background="none"==Qa?"url('"+Dialog.prototype.noColorImage+"')":Qa;O(pa,Qa,va)});mxEvent.consume(Ea)}));btn.style.height="12px";btn.style.width="40px";btn.className="geColorBtn";btn.appendChild(Ga);return btn}function V(pa,ra,va,Ga,Ea,Qa,Ha){null!=ra&&(ra=ra.split(","),ca.push({name:pa,values:ra,type:va,defVal:Ga,countProperty:Ea,
parentRow:Qa,isDeletable:!0,flipBkg:Ha}));btn=mxUtils.button("+",mxUtils.bind(Y,function(Ra){for(var Ia=Qa,Va=0;null!=Ia.nextSibling;)if(Ia.nextSibling.getAttribute("data-pName")==pa)Ia=Ia.nextSibling,Va++;else break;var Ua={type:va,parentRow:Qa,index:Va,isDeletable:!0,defVal:Ga,countProperty:Ea};Va=Z(pa,"",Ua,0==Va%2,Ha);O(pa,Ga,Ua);Ia.parentNode.insertBefore(Va,Ia.nextSibling);mxEvent.consume(Ra)}));btn.style.height="16px";btn.style.width="25px";btn.className="geColorBtn";return btn}function S(pa, | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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.style.display="none";m=mxUtils.button(m||mxResources.get("edit"),function(){c.apply(this,[L.value])});m.className="geBtn gePrimaryBtn";d=document.createElement("div");d.style.position="absolute";d.style.bottom="30px";d.style.right="40px";d.style.textAlign="right";g=document.createElement("div");g.className="geToolbarContainer";g.style.cssText="box-shadow:none !important;background-color:transparent;padding:2px;border-style:none !important;bottom:30px;";this.init=function(){function R(M){if(null!=
M){var p=M.getAttribute("background");if(null==p||""==p||p==mxConstants.NONE)p=Editor.isDarkMode()?"transparent":"#ffffff";q.style.backgroundColor=p;(new mxCodec(M.ownerDocument)).decode(M,t.getModel());t.maxFitScale=1;t.fit(8);t.center()}return M}function N(M){null!=M&&(M=R(Editor.parseDiagramNode(M)));return M}mxEvent.addListener(U,"change",function(M){G=parseInt(U.value);N(I[G]);mxEvent.consume(M)});if("mxfile"==B.nodeName){var Q=B.getElementsByTagName("diagram");I=[];for(var P=0;P<Q.length;P++)I.push(Q[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 |
"geCommentActionLnk";mxUtils.write(Z,W);X.appendChild(Z);mxEvent.addListener(Z,"click",function(Y){V(Y,N);Y.preventDefault();mxEvent.consume(Y)});T.appendChild(X);S&&(X.style.display="none")}function C(){function W(X){V.push(S);if(null!=X.replies)for(var Z=0;Z<X.replies.length;Z++)S=S.nextSibling,W(X.replies[Z])}var V=[],S=l;W(N);return{pdiv:S,replies:V}}function K(W,V,S,X,Z){function Y(){D(ba);N.addReply(da,function(sa){da.id=sa;N.replies.push(da);L(ba);S&&S()},function(sa){aa();A(ba);b.handleError(sa, | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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,B,null,1<I,F,q,x,t);B=this.isServices(I)?4<I?390:280:160;this.showDialog(d.container,420,B,!0,!0)}d.init()};EditorUi.prototype.isServices=function(d){return 1!=d};EditorUi.prototype.getEditBlankXml=function(){return this.getFileData(!0)};EditorUi.prototype.exportFile=function(d,g,n,q,t,x){};EditorUi.prototype.getServiceForName=function(d){return null};EditorUi.prototype.getTitleForService=function(d){return mxResources.get(d)};EditorUi.prototype.pickFolder=function(d,
g,n){g(null)};EditorUi.prototype.exportSvg=function(d,g,n,q,t,x,B,G,I,F,U,R,N,Q){if(this.spinner.spin(document.body,mxResources.get("export")))try{var P=this.editor.graph.isSelectionEmpty();n=null!=n?n:P;var M=g?null:this.editor.graph.background;M==mxConstants.NONE&&(M=null);null==M&&0==g&&(M=U?this.editor.graph.defaultPageBackgroundColor:"#ffffff");var p=this.editor.graph.getSvg(M,d,B,G,null,n,null,null,"blank"==F?"_blank":"self"==F?"_top":null,null,!N,U,R);q&&this.editor.graph.addSvgShadow(p);var 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 |
"10px";A.style.resize="none";A.style.height="150px";A.style.width="440px";A.style.border="1px solid gray";A.value=mxResources.get("updatingDocument");c.appendChild(A);mxUtils.br(c);this.init=function(){window.setTimeout(function(){5E5>e.length?(A.value=e,A.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?A.select():document.execCommand("selectAll",!1,null)):(A.setAttribute("readonly","true"),A.value=mxResources.get("tooLargeUseDownload"))},0)};m=document.createElement("div");m.style.position= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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 k=document.createElement("img");mxUtils.setOpacity(k,50);k.style.height="16px";k.style.width="16px";k.setAttribute("border","0");k.setAttribute("valign","bottom");k.setAttribute("src",Editor.helpImage);c.appendChild(k);mxEvent.addGestureListeners(c,mxUtils.bind(this,function(m){this.editorUi.hideCurrentMenu();this.editorUi.openLink(f);mxEvent.consume(m)}));return c};Menus.prototype.addLinkToItem=function(f,c){null!=f&&f.firstChild.nextSibling.appendChild(this.createHelpLink(c))};var e=Menus.prototype.init; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
("zTXt"==z?String.fromCharCode(0):"")+O;O=4294967295;O=Editor.updateCRC(O,z,0,4);O=Editor.updateCRC(O,J,0,J.length);T+=S(J.length)+z+J+S(O^4294967295);T+=l.substring(X-8,l.length);break}T+=l.substring(X-8,X-4+Z);W(l,Z);W(l,4)}while(Z);return"data:image/png;base64,"+(window.btoa?btoa(T):Base64.encode(T,!0))}};if(window.ColorDialog){FilenameDialog.filenameHelpLink="https://www.drawio.com/doc/faq/save-file-formats";var v=ColorDialog.addRecentColor;ColorDialog.addRecentColor=function(l,z){v.apply(this,
arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()};var E=ColorDialog.resetRecentColors;ColorDialog.resetRecentColors=function(){E.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()}}"undefined"!==typeof window.EditDataDialog&&(EditDataDialog.getDisplayIdForCell=function(l,z){var J=null;null!=l.editor.graph.getModel().getParent(z)?J=z.getId():null!=l.currentPage&&(J=l.currentPage.getId());return J});if(null!=window.StyleFormatPanel){var D= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
Graph.recentCustomFonts[O]=T,z=document.getElementsByTagName("head")[0],null!=J&&("link"==T.elt.nodeName.toLowerCase()?(T.elt.onload=J,T.elt.onerror=J):J()),null!=z&&z.appendChild(T.elt)):null!=J&&J()}else null!=J&&J()}else null!=J&&J();return l};Graph.getFontUrl=function(l,z){l=Graph.customFontElements[l.toLowerCase()];null!=l&&(z=l.url);return z};Graph.processFontAttributes=function(l){l=l.getElementsByTagName("*");for(var z=0;z<l.length;z++){var J=l[z].getAttribute("data-font-src");if(null!=J){var O=
"FONT"==l[z].nodeName?l[z].getAttribute("face"):l[z].style.fontFamily;null!=O&&Graph.addFont(O,J)}}};Graph.processFontStyle=function(l){if(null!=l){var z=mxUtils.getValue(l,"fontSource",null);if(null!=z){var J=mxUtils.getValue(l,mxConstants.STYLE_FONTFAMILY,null);null!=J&&Graph.addFont(J,decodeURIComponent(z))}}return l};Graph.prototype.defaultThemeName="default-style2";Graph.prototype.lastPasteXml=null;Graph.prototype.pasteCounter=0;Graph.prototype.defaultScrollbars="0"!=urlParams.sb;Graph.prototype.defaultPageVisible= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
b.container.style.cursor=Q?"crosshair":"";b.fireEvent(new mxEventObject("freehandStateChanged"))};this.startDrawing=function(){B(!0)};this.isDrawing=function(){return g};var G=mxUtils.bind(this,function(Q){if(c){var P=v.length,M=n&&0<u.length&&null!=v&&2>v.length;M||u.push.apply(u,v);v=[];u.push(null);k.push(c);c=null;(M||A)&&this.stopDrawing();A&&(!M||2<=P)&&this.startDrawing();mxEvent.consume(Q)}}),I=new mxCell;I.edge=!0;var F=function(){var Q=b.getCurrentCellStyle(I);Q=mxUtils.getValue(b.currentVertexStyle, | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
mxConstants.GUIDE_STROKEWIDTH);y.dialect=mxConstants.DIALECT_SVG;y.pointerEvents=!1;y.init(L.graph.getView().getOverlayPane());return y};U=function(y,C){if(y&&null!=L.guidesArrHor)for(y=0;y<L.guidesArrHor.length;y++)L.guidesArrHor[y].node.style.visibility="hidden";if(C&&null!=L.guidesArrVer)for(y=0;y<L.guidesArrVer.length;y++)L.guidesArrVer[y].node.style.visibility="hidden"};if(1<F&&F==q.length-1){F=[];N=L.guidesArrHor;D=[];E=0;t=q[0]==H?1:0;P=q[t].y+q[t].height;if(0<R)for(t=0;t<q.length-1;t++)d= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
f.appendChild(k);e.appendChild(f);this.container=e},ConnectionPointsDialog=function(b,e){function f(){null!=k&&k.destroy()}var c=document.createElement("div");c.style.userSelect="none";var k=null;this.init=function(){function m(P,M,p){P=new mxCell("",new mxGeometry(P,M,6,6),"shape=mxgraph.basic.x;fillColor=#29b6f2;strokeColor=#29b6f2;points=[];rotatable=0;resizable=0;connectable=0;editable=0;");P.vertex=!0;P.cp=!0;P.constObj=p;return L.addCell(P)}function u(P){P=L.getSelectionCells();L.deleteCells(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 |
1),"image/png");d=new ClipboardItem({"image/png":t,"text/html":new Blob(['<img src="'+d+'" width="'+g+'" height="'+n+'">'],{type:"text/html"})});navigator.clipboard.write([d])["catch"](q)};EditorUi.prototype.copyCells=function(d,g){var n=this.editor.graph;if(n.isSelectionEmpty())d.innerText="";else{var q=mxUtils.sortCells(n.model.getTopmostCells(n.getSelectionCells())),t=mxUtils.getXml(n.encodeCells(q));mxUtils.setTextContent(d,encodeURIComponent(t));g?(n.removeCells(q,!1),n.lastPasteXml=null):(n.lastPasteXml=
t,n.pasteCounter=0);d.focus();document.execCommand("selectAll",!1,null)}};EditorUi.prototype.copyXml=function(){var d=null;if(Editor.enableNativeCipboard){var g=this.editor.graph;g.isSelectionEmpty()||(d=mxUtils.sortCells(g.getExportableCells(g.model.getTopmostCells(g.getSelectionCells()))),g=mxUtils.getXml(g.encodeCells(d)),navigator.clipboard.writeText(g))}return d};EditorUi.prototype.pasteXml=function(d,g,n,q,t){var x=this.editor.graph,B=null;x.lastPasteXml==d?x.pasteCounter++:(x.lastPasteXml= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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 e[m]||b[m]==e[m]||(c[m]=void 0===e[m]?null:e[m]);return c};EditorUi.prototype.resolveCrossReferences=function(b,e){var f={};mxUtils.isEmptyObject(e)||(this.adoptTheirPages(b,e,f),this.adoptTheirCells(b,e,f));EditorUi.debug("EditorUi.resolveCrossReferences",[this],"ownDiff",b,"theirDiff",e,"resolve",f);return 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 |
EditorUi.prototype.isLucidChartData=function(d){return null!=d&&('{"state":"{\\"Properties\\":'==d.substring(0,26)||'{"Properties":'==d.substring(0,14))};EditorUi.prototype.importLocalFile=function(d,g){if(d&&Graph.fileSupport){if(null==this.importFileInputElt){var n=document.createElement("input");n.setAttribute("type","file");mxEvent.addListener(n,"change",mxUtils.bind(this,function(){null!=n.files&&(this.importFiles(n.files,null,null,this.maxImageSize),n.type="",n.type="file",n.value="")}));n.style.display=
"none";document.body.appendChild(n);this.importFileInputElt=n}this.importFileInputElt.click()}else{window.openNew=!1;window.openKey="import";window.listBrowserFiles=mxUtils.bind(this,function(B,G){StorageFile.listFiles(this,"F",B,G)});window.openBrowserFile=mxUtils.bind(this,function(B,G,I){StorageFile.getFileContent(this,B,G,I)});window.deleteBrowserFile=mxUtils.bind(this,function(B,G,I){StorageFile.deleteFile(this,B,G,I)});if(!g){var q=Editor.useLocalStorage;Editor.useLocalStorage=!d}window.openFile=
new OpenFile(mxUtils.bind(this,function(B){this.hideDialog(B)}));window.openFile.setConsumer(mxUtils.bind(this,function(B,G){null!=G&&Graph.fileSupport&&/(\.v(dx|sdx?))($|\?)/i.test(G)?(B=new Blob([B],{type:"application/octet-stream"}),this.importVisio(B,mxUtils.bind(this,function(I){this.importXml(I,0,0,!0)}),null,G)):this.editor.graph.setSelectionCells(this.importXml(B,0,0,!0))}));this.showDialog((new OpenDialog(this)).container,Editor.useLocalStorage?640:360,Editor.useLocalStorage?480:220,!0,!0,
function(){window.openFile=null});if(!g){var t=this.dialog,x=t.close;this.dialog.close=mxUtils.bind(this,function(B){Editor.useLocalStorage=q;x.apply(t,arguments);B&&null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.showSplash()})}}};EditorUi.prototype.importZipFile=function(d,g,n){var q=this,t=mxUtils.bind(this,function(){this.loadingExtensions=!1;"undefined"!==typeof JSZip?JSZip.loadAsync(d).then(function(x){if(mxUtils.isEmptyObject(x.files))n();else{var B=0,G,I=!1;x.forEach(function(F,U){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 |
M.readAsText(P)}else this.doImportVisio(P,g,G,q)}catch(p){G(p)}else try{""==Q.responseType||"text"==Q.responseType?G({message:Q.responseText}):(M=new FileReader,M.onload=function(){try{G({message:JSON.parse(M.result).Message})}catch(p){G(p)}},M.readAsText(Q.response))}catch(p){G({})}});Q.send(F)}else if(B.clear())try{this.doImportVisio(d,g,G,q)}catch(P){G(P)}}else G({message:mxResources.get("serviceUnavailableOrBlocked")})});this.doImportVisio||this.loadingExtensions||this.isOffline(!0)?I():(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 |
M&&!y)if("sharepoint"==p)G("site",null,M.id,M.displayName);else if("site"==p)G("subsite",null,M.id,M.name);else{var V=M.folder;M=M.remoteItem?M.remoteItem:M;var S=(M.parentReference?M.parentReference.driveId:null)||p,X=M.id;V?G(S,X,null,M.name):q()}}function G(V,S,X,Z,Y){function aa(ya){N.stop();var Ca=document.createElement("table");Ca.className="odFileListGrid";for(var ta=null,Fa=0,pa=0;null!=ya&&pa<ya.length;pa++){var ra=ya[pa];if(1!=ba||!ra.webUrl||0<ra.webUrl.indexOf("sharepoint.com/sites/")||
0>ra.webUrl.indexOf("sharepoint.com/")){var va=ra.displayName||ra.name,Ga=mxUtils.htmlEntities(ra.description||va);ba&&(ra.folder=2==ba?{isRoot:!0}:!0);var Ea=null!=ra.folder;if(!E||Ea){var Qa=document.createElement("tr");Qa.className=Fa++%2?"odOddRow":"odEvenRow";var Ha=document.createElement("td");Ha.style.width="36px";var Ra=document.createElement("img");Ra.src="/images/"+(Ea?"folder.png":"file.png");Ra.className="odFileImg";Ha.appendChild(Ra);Qa.appendChild(Ha);Ha=document.createElement("td");
Ea=document.createElement("div");Ea.className="odFileTitle";Ea.innerHTML=mxUtils.htmlEntities(va);Ea.setAttribute("title",Ga);Ha.appendChild(Ea);Qa.appendChild(Ha);Ca.appendChild(Qa);null==ta&&(ta=Qa,ta.className+=" odRowSelected",M=ra,p=V,d||e(M));(function(Ia,Va){Qa.addEventListener("dblclick",B);Qa.addEventListener("click",function(){ta!=Va&&(ta.className=ta.className.replace("odRowSelected",""),ta=Va,ta.className+=" odRowSelected",M=Ia,p=V,d||e(M))})})(ra,Qa)}}}0==Fa?(ya=document.createElement("div"),
ya.className="odEmptyFolder",ya.innerHTML=mxUtils.htmlEntities(mxResources.get("folderEmpty",null,"Folder is empty!")),za.appendChild(ya)):za.appendChild(Ca);x();y=!1}function ca(ya){f(ya?ya:qa,function(Ca){if(da){var ta=Ca.value||[];if(d||ba)Array.prototype.push.apply(la,ta);else for(var Fa=0;Fa<ta.length;Fa++){var pa=ta[Fa],ra=pa.file?pa.file.mimeType:null;(pa.folder||"text/html"==ra||"text/xml"==ra||"application/xml"==ra||"image/png"==ra||/\.svg$/.test(pa.name)||/\.html$/.test(pa.name)||/\.xml$/.test(pa.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 |
t.geometry.height+=I.gridSize}finally{I.getModel().endUpdate()}return[t]}}return[]};EditorUi.prototype.formatFileSize=function(d){var g=-1;do d/=1024,g++;while(1024<d);return Math.max(d,.1).toFixed(1)+" kB; MB; GB; TB;PB;EB;ZB;YB".split(";")[g]};EditorUi.prototype.convertDataUri=function(d){if("data:"==d.substring(0,5)){var g=d.indexOf(";");0<g&&(d=d.substring(0,g)+d.substring(d.indexOf(",",g+1)))}return d};EditorUi.prototype.isRemoteFileFormat=function(d,g){return/("contentType":\s*"application\/gliffy\+json")/.test(d)}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
Editor.onMathJaxDone=function(){};var T=Editor.prototype.init;Editor.prototype.init=function(){T.apply(this,arguments);var V=mxUtils.bind(this,function(S,X){null!=this.graph.container&&this.graph.mathEnabled&&Editor.MathJaxRender(this.graph.container)});this.graph.model.addListener(mxEvent.CHANGE,V);this.graph.addListener(mxEvent.REFRESH,V)};z=document.getElementsByTagName("script");if(null!=z&&0<z.length){var W=document.createElement("script");W.setAttribute("type","text/javascript");W.setAttribute("src", | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
var BtnDialog=function(b,e,f,c){var k=document.createElement("div");k.style.textAlign="center";var m=document.createElement("p");m.style.fontSize="16pt";m.style.padding="0px";m.style.margin="0px";m.style.color="gray";mxUtils.write(m,mxResources.get("done"));var u="Unknown",v=document.createElement("img");v.setAttribute("border","0");v.setAttribute("align","absmiddle");v.style.marginRight="10px";e==b.drive?(u=mxResources.get("googleDrive"),v.src=IMAGE_PATH+"/google-drive-logo-white.svg"):e==b.dropbox?
(u=mxResources.get("dropbox"),v.src=IMAGE_PATH+"/dropbox-logo-white.svg"):e==b.oneDrive?(u=mxResources.get("oneDrive"),v.src=IMAGE_PATH+"/onedrive-logo-white.svg"):e==b.gitHub?(u=mxResources.get("github"),v.src=IMAGE_PATH+"/github-logo-white.svg"):e==b.gitLab?(u=mxResources.get("gitlab"),v.src=IMAGE_PATH+"/gitlab-logo.svg"):e==b.trello&&(u=mxResources.get("trello"),v.src=IMAGE_PATH+"/trello-logo-white.svg");b=document.createElement("p");mxUtils.write(b,mxResources.get("authorizedIn",[u],"You are now authorized in {1}"));
f=mxUtils.button(f,c);f.insertBefore(v,f.firstChild);f.style.marginTop="6px";f.className="geBigButton";f.style.fontSize="18px";f.style.padding="14px";k.appendChild(m);k.appendChild(b);k.appendChild(f);this.container=k},FontDialog=function(b,e,f,c,k){function m(B){this.style.border="";13==B.keyCode&&x.click()}var u=document.createElement("table"),v=document.createElement("tbody");u.style.marginTop="8px";var E=document.createElement("tr");var D=document.createElement("td");D.colSpan=2;D.style.whiteSpace= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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.getCurrentCellStyle(M).treeMoving);return p}function m(M){var p=!1;null!=M&&(M=n.getParent(M),p=g.view.getState(M),p="tree"==(null!=p?p.style:g.getCellStyle(M)).containerType);return p}function u(M){var p=!1;null!=M&&(M=n.getParent(M),p=g.view.getState(M),g.view.getState(M),p=null!=(null!=p?p.style:g.getCellStyle(M)).childLayout);return p}function v(M){M=g.view.getState(M);if(null!=M){var p=g.getIncomingTreeEdges(M.cell);if(0<p.length&&(p=g.view.getState(p[0]),null!=p&&(p=p.absolutePoints,null!= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
null!=f&&f();this.ui.fileLoaded(H)}),mxUtils.bind(this,function(){this.savingFile=!1;null!=c&&c()}),!1,L,E)}))});null!=u?v(u):this.peer.showCommitDialog(this.meta.name,null==this.getDescriptorEtag(this.meta)||this.meta.isNew,mxUtils.bind(this,function(E){v(E)}),c)}else null!=f&&f()};GitHubLibrary=function(b,e,f){GitHubFile.call(this,b,e,f)};mxUtils.extend(GitHubLibrary,GitHubFile);GitHubLibrary.prototype.doSave=function(b,e,f){this.saveFile(b,!1,e,f)};GitHubLibrary.prototype.open=function(){};(function(){var b=null;window.GitHubClient=function(e,f){DrawioClient.call(this,e,f||"ghauth")};mxUtils.extend(GitHubClient,DrawioClient);GitHubClient.prototype.clientId="test.draw.io"==window.location.hostname?"Iv1.1218f5567fbc258a":window.DRAWIO_GITHUB_ID;GitHubClient.prototype.extension=".drawio";GitHubClient.prototype.baseUrl=DRAWIO_GITHUB_API_URL;GitHubClient.prototype.baseHostUrl=DRAWIO_GITHUB_URL;GitHubClient.prototype.redirectUri=window.location.protocol+"//"+window.location.host+"/github2"; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
Graph.prototype.fitWindow=function(a,b){b=null!=b?b:10;var e=this.container.clientWidth-b,f=this.container.clientHeight-b;this.zoomTo(Math.floor(20*Math.min(e/a.width,f/a.height))/20);if(mxUtils.hasScrollbars(this.container)){var g=this.view.translate;this.container.scrollLeft=(a.x+g.x)*this.view.scale-Math.max((e-a.width*this.view.scale)/2+b/2,0);this.container.scrollTop=(a.y+g.y)*this.view.scale-Math.max((f-a.height*this.view.scale)/2+b/2,0)}}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
StorageFile.listFiles=function(b,e,f,c){b.getDatabaseItems(function(k){var m=[];if(null!=k)for(var u=0;u<k.length;u++)"."==k[u].title.charAt(0)||null!=e&&k[u].type!=e||m.push(k[u]);f(m)},function(){null==b.database?f(StorageFile.listLocalStorageFiles(e)):null!=c&&c()},"filesInfo")};StorageFile.deleteFile=function(b,e,f,c){b.removeDatabaseItem([e,e],f,function(){null==b.database?(localStorage.removeItem(e),f()):null!=c&&c()},["files","filesInfo"])};StorageLibrary=function(b,e,f){StorageFile.call(this,b,e,f)};mxUtils.extend(StorageLibrary,StorageFile);StorageLibrary.prototype.type="L";StorageLibrary.prototype.isAutosave=function(){return!0};StorageLibrary.prototype.saveAs=function(b,e,f){this.saveFile(b,!1,e,f)};StorageLibrary.prototype.getHash=function(){return"L"+encodeURIComponent(this.title)};StorageLibrary.prototype.getTitle=function(){return".scratchpad"==this.title?mxResources.get("scratchpad"):this.title}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
console.log("Error in MathJax.typeset: "+S.toString())}};window.MathJax=null!=z?z:{options:{skipHtmlTags:{"[+]":["text"]}},loader:{load:["html"==urlParams["math-output"]?"output/chtml":"output/svg","input/tex","input/asciimath","ui/safe"]},startup:{pageReady:function(){for(var V=0;V<Editor.mathJaxQueue.length;V++)Editor.doMathJaxRender(Editor.mathJaxQueue[V])}}};Editor.MathJaxRender=function(V){"undefined"!==typeof MathJax&&"function"===typeof MathJax.typeset?Editor.doMathJaxRender(V):Editor.mathJaxQueue.push(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 |
this.handleError({message:mxResources.get("error")+" "+Q.getStatus()}))}),mxUtils.bind(this,function(Q){this.handleError(Q)}))}),R=mxUtils.bind(this,function(){window.clearTimeout(F);F=window.setTimeout(U,I)});this.editor.addListener("pageSelected",mxUtils.bind(this,function(){R();U()}));R();U()}null!=g&&g()});if(null!=d.url&&0<d.url.length){var x=this.editor.getProxiedUrl(d.url);this.editor.loadUrl(x,mxUtils.bind(this,function(B){t(B)}),mxUtils.bind(this,function(B){null!=n&&n(B)}))}else 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 |
A.createVertexHandler=function(){var T=U.apply(this,arguments);T.livePreview=!1;return T};if(null!=f)try{if("inset"==f.substring(0,5)){var R=d.geometry,N=E.width,Q=E.height,P=(300-N)/2,M=(300-Q)/2,p=f.match(/\(([^)]+)\)/)[1].split(/[ ,]+/),y=parseFloat(p[0]),C=parseFloat(p[1]),K=parseFloat(p[2]),l=parseFloat(p[3]);isFinite(y)&&isFinite(C)&&isFinite(K)&&isFinite(l)?(R.x=l/100*N+P,R.y=y/100*Q+M,R.width=(100-C)/100*N+P-R.x,R.height=(100-K)/100*Q+M-R.y,"round"==p[4]?"50%"==p[5]?t.setAttribute("checked", | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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)});G()};GitHubClient.prototype.logout=function(){this.clearPersistentToken();this.setUser(null);b=null}})();TrelloFile=function(b,e,f){DrawioFile.call(this,b,e);this.meta=f;this.saveNeededCounter=0};mxUtils.extend(TrelloFile,DrawioFile);TrelloFile.prototype.getHash=function(){return"T"+encodeURIComponent(this.meta.compoundId)};TrelloFile.prototype.getMode=function(){return App.MODE_TRELLO};TrelloFile.prototype.isAutosave=function(){return!0};TrelloFile.prototype.getTitle=function(){return this.meta.name};TrelloFile.prototype.isRenamable=function(){return!1};TrelloFile.prototype.getSize=function(){return this.meta.bytes}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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.diffCellRecursive=function(b,e,f,c,k){c=null!=c?c:{};var m=f[b.getId()];delete f[b.getId()];if(null==m)k.push(b.getId());else{var u=this.diffCell(b,m.cell);if(null!=u.parent||(null!=m.prev?null==e:null!=e)||null!=e&&null!=m.prev&&e.getId()!=m.prev.getId())u.previous=null!=m.prev?m.prev.getId():"";mxUtils.isEmptyObject(u)||(c[b.getId()]=u)}m=b.getChildCount();e=null;for(u=0;u<m;u++){var v=b.getChildAt(u);this.diffCellRecursive(v,e,f,c,k);e=v}return 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 |
else{var xa=function(ua){pa&&b.sidebar.currentElt==fa&&ia(ua,mxEvent.getClientX(na),mxEvent.getClientY(na));pa=!1;ma.src="/images/icon-search.svg"};b.sidebar.hideTooltip();b.sidebar.currentElt=fa;pa=!0;ma.src="/images/aui-wait.gif";ja.isExt?E(ja,xa,function(){n(mxResources.get("cantLoadPrev"));pa=!1;ma.src="/images/icon-search.svg"}):oa(ja.url,xa)}}function B(ja,fa,ma){if(null!=O){for(var na=O.className.split(" "),oa=0;oa<na.length;oa++)if(-1<na[oa].indexOf("Active")){na.splice(oa,1);break}O.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 |
(new mxXmlRequest(SAVE_URL,"format="+L+"&xml="+encodeURIComponent(D)+"&filename="+encodeURIComponent(b)+(m?"&binary=1":""))).simulate(document,"_blank")}else this.ui.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(D)}));v()}});m?(e=this.ui.getPngFileProperties(this.ui.fileNode),this.ui.getEmbeddedPng(mxUtils.bind(this,function(D){E(D)}),c,this.ui.getCurrentFile()!=this?u:null,e.scale,e.border)):E(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 |
method:"PUT",contentType:"application/json; charset=UTF-8",params:c}};DriveClient.prototype.getLibrary=function(f,c,k){return this.getFile(f,c,k,!0,!0)};DriveClient.prototype.loadDescriptor=function(f,c,k,m){this.executeRequest({url:"/files/"+f+"?supportsAllDrives=true&fields="+(null!=m?m:this.allFields)},c,k)};DriveClient.prototype.listFiles=function(f,c,k,m,u){this.executeRequest({url:"/files?supportsAllDrives=true&includeItemsFromAllDrives=true&q="+encodeURIComponent("(mimeType contains '"+this.xmlMimeType+ | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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(Q){A=Q};this.setAutoScroll=function(Q){L=Q};this.setOpenFill=function(Q){H=Q};this.setStopClickEnabled=function(Q){n=Q};this.setSelectInserted=function(Q){q=Q};this.setSmoothing=function(Q){f=Q};this.setPerfectFreehandMode=function(Q){x=Q};this.isPerfectFreehandMode=function(){return x};this.setBrushSize=function(Q){t.size=Q};this.getBrushSize=function(){return t.size};var B=function(Q){g=Q;b.getRubberband().setEnabled(!Q);b.graphHandler.setSelectEnabled(!Q);b.graphHandler.setMoveEnabled(!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 |
f?A=new mxHierarchicalLayout(m,mxConstants.DIRECTION_WEST):"circle"==f?A=new mxCircleLayout(m):(A=new mxFastOrganicLayout(m,!1),A.forceConstant=80);if(null!=A){var L=function(n,q){m.getModel().beginUpdate();try{null!=n&&n(),A.execute(m.getDefaultParent(),D)}catch(t){throw t;}finally{n=new mxMorphing(m),n.addListener(mxEvent.DONE,mxUtils.bind(this,function(){m.getModel().endUpdate();null!=q&&q()})),n.startAnimation()}},H=mxEdgeHandler.prototype.connect;mxEdgeHandler.prototype.connect=function(n,q, | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
function(e,f,c,k,m,u,v,E,D){u.length>=this.maxFileSize?D({message:mxResources.get("drawingTooLarge")+" ("+this.ui.formatFileSize(u.length)+" / 1 MB)"}):(c={path:k,branch:decodeURIComponent(c),message:m,content:u},null!=v&&(c.sha=v),e=new mxXmlRequest(this.baseUrl+"/repos/"+e+"/"+f+"/contents/"+k,JSON.stringify(c),"PUT"),this.executeRequest(e,mxUtils.bind(this,function(A){E(A)}),mxUtils.bind(this,function(A){404==A.code&&(A.helpLink=this.baseHostUrl+"/settings/connections/applications/"+this.clientId,
A.code=null);D(A)})))};GitHubClient.prototype.checkExists=function(e,f,c){var k=e.split("/"),m=k[0],u=k[1],v=k[2];e=k.slice(3,k.length).join("/");this.getSha(m,u,e,v,mxUtils.bind(this,function(E){if(f){var D=this.ui.spinner.pause();this.ui.confirm(mxResources.get("replaceIt",[e]),function(){D();c(!0,E)},function(){D();c(!1)})}else this.ui.spinner.stop(),this.ui.showError(mxResources.get("error"),mxResources.get("fileExists"),mxResources.get("ok"),function(){c(!1)})}),mxUtils.bind(this,function(E){c(!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 |
c,k):k()})):k({message:this.invalidFilenameRegExs[0].test(f)?mxResources.get("oneDriveCharsNotAllowed"):mxResources.get("oneDriveInvalidDeviceName")}))};OneDriveClient.prototype.moveFile=function(e,f,c,k){f=this.getItemRef(f);var m=this.getItemRef(e);f.driveId!=m.driveId?k({message:mxResources.get("cannotMoveOneDrive",null,"Moving a file between accounts is not supported yet.")}):this.writeFile(this.getItemURL(e),JSON.stringify({parentReference:f}),"PATCH","application/json",c,k)};OneDriveClient.prototype.insertLibrary= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
mxUtils.getTextContent(Y[Z]);W=b.stringToCells(Graph.decompress(z));var aa=b.editor.graph.getBoundingBoxFromGeometry(W);v(null,null,0,0,0,0,{xml:z,w:aa.width,h:aa.height})}P=!0}}catch(ca){null!=window.console&&console.log("Error in library dialog: "+ca)}P||(b.spinner.stop(),b.handleError({message:mxResources.get("errorLoadingFile")}))}}catch(ca){null!=window.console&&console.log("Error in library dialog: "+ca)}return null}function E(U){U.dataTransfer.dropEffect=null!=q?"move":"copy";U.stopPropagation();
U.preventDefault()}function D(U){U.stopPropagation();U.preventDefault();G=!1;t=u(U);if(null!=q)null!=t&&t<d.children.length?(A.splice(t>q?t-1:t,0,A.splice(q,1)[0]),d.insertBefore(d.children[q],d.children[t])):(A.push(A.splice(q,1)[0]),d.appendChild(d.children[q]));else if(0<U.dataTransfer.files.length)b.importFiles(U.dataTransfer.files,0,0,b.maxImageSize,I(U));else if(0<=mxUtils.indexOf(U.dataTransfer.types,"text/uri-list")){var R=decodeURIComponent(U.dataTransfer.getData("text/uri-list"));(/(\.jpg)($|\?)/i.test(R)|| | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
Graph.prototype.isAllTagsHidden=function(l){if(null==l||0==l.length||0==this.hiddenTags.length)return!1;l=l.split(" ");if(l.length>this.hiddenTags.length)return!1;for(var z=0;z<l.length;z++)if(0>mxUtils.indexOf(this.hiddenTags,l[z]))return!1;return!0};Graph.prototype.getCellsForTags=function(l,z,J,O){var T=[];if(null!=l){z=null!=z?z:this.model.getDescendants(this.model.getRoot());for(var W=0,V={},S=0;S<l.length;S++)0<l[S].length&&(V[l[S]]=!0,W++);for(S=0;S<z.length;S++)if(J&&this.model.getParent(z[S])==
this.model.root||this.model.isVertex(z[S])||this.model.isEdge(z[S])){var X=this.getTagsForCell(z[S]),Z=!1;if(0<X.length&&(X=X.split(" "),X.length>=l.length)){for(var Y=Z=0;Y<X.length&&Z<W;Y++)null!=V[X[Y]]&&Z++;Z=Z==W}Z&&(1!=O||this.isCellVisible(z[S]))&&T.push(z[S])}}return T};Graph.prototype.getAllTags=function(){return this.getTagsForCells(this.model.getDescendants(this.model.getRoot()))};Graph.prototype.getCommonTagsForCells=function(l){for(var z=null,J=[],O=0;O<l.length;O++){var T=this.getTagsForCell(l[O]); | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
TrelloClient.prototype.getFile=function(b,e,f,c,k){k=null!=k?k:!1;var m=mxUtils.bind(this,function(){var u=b.split(this.SEPARATOR),v=!0,E=window.setTimeout(mxUtils.bind(this,function(){v=!1;f({code:App.ERROR_TIMEOUT,retry:m})}),this.ui.timeout);Trello.cards.get(u[0]+"/attachments/"+u[1],mxUtils.bind(this,function(D){window.clearTimeout(E);if(v){var A=/\.png$/i.test(D.name),L={Authorization:'OAuth oauth_consumer_key="'+Trello.key()+'", oauth_token="'+Trello.token()+'"'};/\.v(dx|sdx?)$/i.test(D.name)||
/\.gliffy$/i.test(D.name)||!this.ui.useCanvasForExport&&A?this.ui.convertFile(PROXY_URL+"?url="+encodeURIComponent(D.url),D.name,D.mimeType,this.extension,e,f,null,L):(v=!0,E=window.setTimeout(mxUtils.bind(this,function(){v=!1;f({code:App.ERROR_TIMEOUT})}),this.ui.timeout),this.ui.editor.loadUrl(PROXY_URL+"?url="+encodeURIComponent(D.url),mxUtils.bind(this,function(H){window.clearTimeout(E);if(v){D.compoundId=b;if(0<(A?H.lastIndexOf(","):-1)){var d=this.ui.extractGraphModelFromPng(H);null!=d&&0<d.length&&
(H=d)}k?e(new TrelloLibrary(this.ui,H,D)):e(new TrelloFile(this.ui,H,D))}}),mxUtils.bind(this,function(H,d){window.clearTimeout(E);v&&(401==d.status?this.authenticate(m,f,!0):f())}),A||null!=D.mimeType&&"image/"==D.mimeType.substring(0,6),null,null,null,L))}}),mxUtils.bind(this,function(D){window.clearTimeout(E);v&&(null!=D&&401==D.status?this.authenticate(m,f,!0):f())}))});this.authenticate(m,f)};TrelloClient.prototype.insertLibrary=function(b,e,f,c,k){this.insertFile(b,e,f,c,!0,k)}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
EditorUi.prototype.createCellLookup=function(b,e,f){f=null!=f?f:{};f[b.getId()]={cell:b,prev:e};var c=b.getChildCount();e=null;for(var k=0;k<c;k++){var m=b.getChildAt(k);this.createCellLookup(m,e,f);e=m}return 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 |
l=0;l<K.length;l++)if(null!=K[l][EditorUi.DIFF_UPDATE]&&null!=K[l][EditorUi.DIFF_UPDATE][C]||null!=K[l][EditorUi.DIFF_REMOVE]&&0<=mxUtils.indexOf(K[l][EditorUi.DIFF_REMOVE],C)){g.refreshBackgroundImage();break}}}));var x=g.getBackgroundImageObject;g.getBackgroundImageObject=function(C,K){var l=x.apply(this,arguments);if(null!=l&&null!=l.originalSrc)if(!K)l={src:l.originalSrc};else if(K&&null!=this.themes&&"darkTheme"==this.defaultThemeName){var z=this.stylesheet,J=this.shapeForegroundColor,O=this.shapeBackgroundColor;
this.stylesheet=this.getDefaultStylesheet();this.shapeBackgroundColor="#ffffff";this.shapeForegroundColor="#000000";l=d.createImageForPageLink(l.originalSrc);this.shapeBackgroundColor=O;this.shapeForegroundColor=J;this.stylesheet=z}return l};this.isOffline()||"undefined"===typeof window.EditDataDialog||(EditDataDialog.placeholderHelpLink="https://www.drawio.com/doc/faq/predefined-placeholders");if(/viewer\.diagrams\.net$/.test(window.location.hostname)||/embed\.diagrams\.net$/.test(window.location.hostname))this.editor.editBlankUrl= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
function(d){var g=e.apply(this,arguments);if(null==g)try{var n=d.indexOf("<mxfile ");if(0<=n){var q=d.lastIndexOf("</mxfile>");q>n&&(g=d.substring(n,q+15).replace(/>/g,">").replace(/</g,"<").replace(/\\"/g,'"').replace(/\n/g,""))}else{var t=mxUtils.parseXml(d),x=this.editor.extractGraphModel(t.documentElement,null!=this.pages||"hidden"==this.diagramContainer.style.visibility);g=null!=x?mxUtils.getXml(x):""}}catch(B){}return g};EditorUi.prototype.validateFileData=function(d){if(null!= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
mxAsyncCanvas.prototype.image=function(b,e,f,c,k,m,u,v){k=this.rewriteImageSource(k);b=this.htmlCanvas.images[k];null==b&&(b=new Image,b.onload=mxUtils.bind(this,function(){this.decWaitCounter()}),b.onerror=mxUtils.bind(this,function(){this.decWaitCounter()}),this.incWaitCounter(),this.htmlCanvas.images[k]=b,b.src=k)};mxAsyncCanvas.prototype.fill=function(){};mxAsyncCanvas.prototype.stroke=function(){};mxAsyncCanvas.prototype.fillAndStroke=function(){}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
DropboxFile.prototype.getRevisions=function(b,e){var f=this.ui.dropbox.client.filesListRevisions({path:this.stat.path_lower,limit:100});f.then(mxUtils.bind(this,function(c){try{for(var k=[],m=c.entries.length-1;0<=m;m--)mxUtils.bind(this,function(u){k.push({modifiedDate:u.client_modified,fileSize:u.size,getXml:mxUtils.bind(this,function(v,E){this.ui.dropbox.readFile({path:this.stat.path_lower,rev:u.rev},v,E)}),getUrl:mxUtils.bind(this,function(v){return this.ui.getUrl(window.location.pathname+"?rev="+
u.rev+"&chrome=0&nav=1&layers=1&edit=_blank"+(null!=v?"&page="+v:""))+window.location.hash})})})(c.entries[m]);b(k)}catch(u){e(u)}}));f["catch"](function(c){e(c)})};DropboxFile.prototype.getLatestVersion=function(b,e){this.ui.dropbox.getFile(this.getId(),b,e)};DropboxFile.prototype.updateDescriptor=function(b){this.stat=b.stat};DropboxFile.prototype.save=function(b,e,f,c,k){this.doSave(this.getTitle(),b,e,f,c,k)};DropboxFile.prototype.saveAs=function(b,e,f){this.doSave(b,!1,e,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 |
arguments);this.currentStyle="default-style2"};Graph.prototype.handleCustomLink=function(l){"data:action/json,"==l.substring(0,17)&&(l=JSON.parse(l.substring(17)),null!=l.actions&&this.executeCustomActions(l.actions))};Graph.prototype.executeCustomActions=function(l,z){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 |
Format.prototype.init;Format.prototype.init=function(){D.apply(this,arguments);this.editorUi.editor.addListener("fileLoaded",this.update)};var A=Format.prototype.refresh;Format.prototype.refresh=function(){null!=this.editorUi.getCurrentFile()||"1"==urlParams.embed||this.editorUi.editor.chromeless?A.apply(this,arguments):this.clear()};DiagramFormatPanel.prototype.isMathOptionVisible=function(l){return"simple"==Editor.currentTheme||"sketch"==Editor.currentTheme||"min"==Editor.currentTheme};var L=DiagramFormatPanel.prototype.addOptions; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
500)});g("#refreshOD").addEventListener("click",function(){null!=K&&(e(null),G.apply(this,K))});D&&g("#odBackBtn").addEventListener("click",D);A&&g("#odSubmitBtn").addEventListener("click",q);null!=H?(D=H.pop(),"sharepoint"==H[0].driveId&&I(g("#odSharepoint")),C=H,G(D.driveId,D.folderId,D.siteId,D.name)):G()};App=function(b,e,f){EditorUi.call(this,b,e,null!=f?f:"1"==urlParams.lightbox||"min"==uiTheme&&"0"!=urlParams.chrome);mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||(window.onunload=mxUtils.bind(this,function(){var c=this.getCurrentFile();if(null!=c&&c.isModified()){var k={category:"DISCARD-FILE-"+c.getHash(),action:(c.savingFile?"saving":"")+(c.savingFile&&null!=c.savingFileTime?"_"+Math.round((Date.now()-c.savingFileTime.getTime())/1E3):"")+(null!=c.saveLevel?"-sl_"+c.saveLevel:"")+"-age_"+(null!=
c.ageStart?Math.round((Date.now()-c.ageStart.getTime())/1E3):"x")+(this.editor.autosave?"":"-nosave")+(c.isAutosave()?"":"-noauto")+"-open_"+(null!=c.opened?Math.round((Date.now()-c.opened.getTime())/1E3):"x")+"-save_"+(null!=c.lastSaved?Math.round((Date.now()-c.lastSaved.getTime())/1E3):"x")+"-change_"+(null!=c.lastChanged?Math.round((Date.now()-c.lastChanged.getTime())/1E3):"x")+"-alive_"+Math.round((Date.now()-App.startTime.getTime())/1E3),label:null!=c.sync?"client_"+c.sync.clientId:"nosync"};
c.constructor==DriveFile&&null!=c.desc&&null!=this.drive&&(k.label+=(null!=this.drive.user?"-user_"+this.drive.user.id:"-nouser")+"-rev_"+c.desc.headRevisionId+"-mod_"+c.desc.modifiedDate+"-size_"+c.getSize()+"-mime_"+c.desc.mimeType);EditorUi.logEvent(k)}}));this.editor.addListener("autosaveChanged",mxUtils.bind(this,function(){var c=this.getCurrentFile();null!=c&&EditorUi.logEvent({category:(this.editor.autosave?"ON":"OFF")+"-AUTOSAVE-FILE-"+c.getHash(),action:"changed",label:"autosave_"+(this.editor.autosave? | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
StorageFile.prototype.rename=function(b,e,f){var c=this.getTitle();c!=b?StorageFile.getFileInfo(this.ui,b,mxUtils.bind(this,function(k){var m=mxUtils.bind(this,function(){this.title=b;this.hasSameExtension(c,b)||this.setData(this.ui.getFileData());this.saveFile(b,!1,mxUtils.bind(this,function(){this.ui.removeLocalData(c,e)}),f)});null!=k?this.ui.confirm(mxResources.get("replaceIt",[b]),m,f):m()}),f):e()};StorageFile.prototype.open=function(){DrawioFile.prototype.open.apply(this,arguments);this.saveFile(this.getTitle())}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
"style"):O.createElement("style");l.setAttribute("type","text/css");mxUtils.setTextContent(l,z);J.appendChild(l)}};Editor.prototype.isExportToCanvas=function(){return mxClient.IS_CHROMEAPP||this.useCanvasForExport};Editor.prototype.getMaxCanvasScale=function(l,z,J){var O=mxClient.IS_FF?8192:16384;return Math.min(J,Math.min(O/l,O/z))};Editor.prototype.exportToCanvas=function(l,z,J,O,T,W,V,S,X,Z,Y,aa,ca,da,ba,sa,za,Ba){try{W=null!=W?W:!0;V=null!=V?V:!0;aa=null!=aa?aa:this.graph;ca=null!=ca?ca:0;var ea= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
n&&x.setAttribute("resource",n);var Q=mxUtils.bind(this,function(P){P=(q?"":Graph.xmlDeclaration+"\n"+Graph.svgFileComment+"\n"+Graph.svgDoctype+"\n")+mxUtils.getXml(P);null!=t&&t(P);return P});g.mathEnabled&&this.editor.addMathCss(x);if(null!=t)this.embedFonts(x,mxUtils.bind(this,function(P){G?this.editor.convertImages(P,mxUtils.bind(this,function(M){Q(M)})):Q(P)}));else return Q(x)};EditorUi.prototype.embedFonts=function(d,g){this.editor.loadFonts(mxUtils.bind(this,function(){try{null!=this.editor.resolvedFontCss&&
this.editor.addFontCss(d,this.editor.resolvedFontCss),this.editor.embedExtFonts(mxUtils.bind(this,function(n){try{null!=n&&this.editor.addFontCss(d,n),g(d)}catch(q){g(d)}}))}catch(n){g(d)}}))};EditorUi.prototype.exportImage=function(d,g,n,q,t,x,B,G,I,F,U,R,N){I=null!=I?I:"png";if(this.spinner.spin(document.body,mxResources.get("exporting"))){var Q=this.editor.graph.isSelectionEmpty();n=null!=n?n:Q;null==this.thumbImageCache&&(this.thumbImageCache={});try{this.editor.exportToCanvas(mxUtils.bind(this, | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
Q()},mxEvent.addListener(A,"scroll",t))}),n)}}))});b?this.user?G():this.updateUser(function(){G()},n,!0):this.authenticate(mxUtils.bind(this,function(){this.updateUser(function(){G()},n,!0)}),n)};GitLabClient.prototype.logout=function(){this.ui.editor.loadUrl(this.redirectUri+"?doLogout=1&state="+encodeURIComponent("cId="+this.clientId+"&domain="+window.location.host));this.clearPersistentToken();this.setUser(null);b=null;this.setToken(null)}})();DrawioComment=function(b,e,f,c,k,m,u){this.file=b;this.id=e;this.content=f;this.modifiedDate=c;this.createdDate=k;this.isResolved=m;this.user=u;this.replies=[]};DrawioComment.prototype.addReplyDirect=function(b){null!=b&&this.replies.push(b)};DrawioComment.prototype.addReply=function(b,e,f,c,k){e()};DrawioComment.prototype.editComment=function(b,e,f){e()};DrawioComment.prototype.deleteComment=function(b,e){b()};DriveComment=function(b,e,f,c,k,m,u,v){DrawioComment.call(this,b,e,f,c,k,m,u);this.pCommentId=v};mxUtils.extend(DriveComment,DrawioComment);DriveComment.prototype.addReply=function(b,e,f,c,k){b={content:b.content};c?b.verb="resolve":k&&(b.verb="reopen");this.file.ui.drive.executeRequest({url:"/files/"+this.file.getId()+"/comments/"+this.id+"/replies",params:b,method:"POST"},mxUtils.bind(this,function(m){e(m.replyId)}),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 |
function(l,z){Graph.addFont(l,z);document.execCommand("fontname",!1,l);if(null!=z){var J=this.cellEditor.textarea.getElementsByTagName("font");z=Graph.getFontUrl(l,z);for(var O=0;O<J.length;O++)J[O].getAttribute("face")==l&&J[O].getAttribute("data-font-src")!=z&&J[O].setAttribute("data-font-src",z)}};var x=Graph.prototype.isFastZoomEnabled;Graph.prototype.isFastZoomEnabled=function(){return x.apply(this,arguments)&&(!this.shadowVisible||!mxClient.IS_SF)};Graph.prototype.updateGlobalUrlVariables=function(){this.globalVars= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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==F.data&&null==F.url?(F=R(F),Ba(F,I)):this.loadDescriptor(F,mxUtils.bind(this,function(ea){Ba(za(),I)}),mxUtils.bind(this,function(ea){this.handleError(ea,mxResources.get("errorLoadingFile"))}))}}));var B=window.opener||window.parent;x="json"==urlParams.proto?JSON.stringify({event:"init"}):urlParams.ready||"ready";B.postMessage(x,"*");if("json"==urlParams.proto){var G=this.editor.graph.openLink;this.editor.graph.openLink=function(I,F,U){G.apply(this,arguments);B.postMessage(JSON.stringify({event:"openLink",
href:I,target:F,allowOpener:U}),"*")}}};EditorUi.prototype.createEmbedButton=function(d,g,n,q){var t="simple"==Editor.currentTheme||"sketch"==Editor.currentTheme||"min"==Editor.currentTheme,x=document.createElement("button");x.setAttribute("title",d+(null!=n?" ("+n+")":""));x.style.marginLeft="6px";mxUtils.write(x,d);t?(x.className=q?"gePrimaryBtn":"",x.style.marginLeft="8px",x.style.padding="6px"):x.className="geBigButton"+(q?"":" geBigStandardButton");mxEvent.addListener(x,"click",g);return x}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
B)}})));d(x);x.onversionchange=function(){x.close()}}catch(B){null!=g?g(B):null!=window.console&&console.warn(B)}});q.onerror=g;q.onblocked=function(){}}catch(t){null!=g?g(t):null!=window.console&&console.error(t)}else null!=g&&g(Error("IndexedDB not supported"))}else d(this.database)};EditorUi.prototype.setDatabaseItem=function(d,g,n,q,t){this.openDatabase(mxUtils.bind(this,function(x){try{t=t||"objects";Array.isArray(t)||(t=[t],d=[d],g=[g]);var B=x.transaction(t,"readwrite");B.oncomplete=n;B.onerror= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
href:I,target:F,allowOpener:U}),"*")}}};EditorUi.prototype.createEmbedButton=function(d,g,n,q){var t="simple"==Editor.currentTheme||"sketch"==Editor.currentTheme||"min"==Editor.currentTheme,x=document.createElement("button");x.setAttribute("title",d+(null!=n?" ("+n+")":""));x.style.marginLeft="6px";mxUtils.write(x,d);t?(x.className=q?"gePrimaryBtn":"",x.style.marginLeft="8px",x.style.padding="6px"):x.className="geBigButton"+(q?"":" geBigStandardButton");mxEvent.addListener(x,"click",g);return x}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
mxEdgeHandler.prototype.init = function()
{
edgeHandlerInit.apply(this, arguments);
var update = mxUtils.bind(this, function()
{
if (this.linkHint != null)
{
this.linkHint.style.display = (this.graph.getSelectionCount() == 1) ? '' : 'none';
}
if (this.labelShape != null)
{
this.labelShape.node.style.display = (this.graph.isEnabled() &&
this.graph.getSelectionCount() < this.graph.graphHandler.maxCells) ?
'' : 'none';
}
});
this.changeHandler = mxUtils.bind(this, function(sender, evt)
{
this.updateLinkHint(this.graph.getLinkForCell(this.state.cell),
this.graph.getLinksForState(this.state));
update();
this.redrawHandles();
});
this.graph.getSelectionModel().addListener(mxEvent.CHANGE, this.changeHandler);
this.graph.getModel().addListener(mxEvent.CHANGE, this.changeHandler);
var link = this.graph.getLinkForCell(this.state.cell);
var links = this.graph.getLinksForState(this.state);
if (link != null || (links != null && links.length > 0))
{
this.updateLinkHint(link, links);
this.redrawHandles();
}
}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
ma=oa.substring(0,ia),null==la)){var ka=oa.indexOf("/",ia+1);-1<ka&&(la=oa.substring(ia+1,ka))}ia=Da[ma];null==ia&&(Sa++,ia=[],Da[ma]=ia);oa=ja.getAttribute("clibs");null!=da[oa]&&(oa=da[oa]);oa={url:ja.getAttribute("url"),libs:ja.getAttribute("libs"),title:ja.getAttribute("title")||ja.getAttribute("name"),preview:ja.getAttribute("preview"),clibs:oa,tags:ja.getAttribute("tags")};ia.push(oa);null!=la&&(ia=Ea[ma],null==ia&&(ia={},Ea[ma]=ia),ma=ia[la],null==ma&&(ma=[],ia[la]=ma),ma.push(oa))}ja=ja.nextSibling}R(Da,
Ta,Ia)}})}function P(ja){z&&(Ba.scrollTop=0,aa.innerText="",Ga.spin(aa),g=!1,I=!0,ra.innerText=mxResources.get("recentDiag"),Y=null,z(Va,function(){k(mxResources.get("cannotLoad"));Va([])},ja?null:u))}function N(ja){if(""==ja)null!=F&&(F.click(),F=null);else{if(null==TemplatesDialog.tagsList[d]){var da={};for(Ja in Da)for(var la=Da[Ja],ma=0;ma<la.length;ma++){var oa=la[ma];if(null!=oa.tags)for(var ia=oa.tags.toLowerCase().split(";"),ka=0;ka<ia.length;ka++)null==da[ia[ka]]&&(da[ia[ka]]=[]),da[ia[ka]].push(oa)}TemplatesDialog.tagsList[d]= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
else{if(0<C.length){var G=JSON.parse(C);localStorage.setItem(e,JSON.stringify(G))}else localStorage.removeItem(e);this.hideDialog();this.alert(mxResources.get("restartForChangeRequired"))}}catch(B){this.handleError(B)}}),null,mxResources.get("close"),null,null,null,!0,null,null,p,k,n);this.showDialog(c.container,620,460,!0,!1);c.init()};EditorUi.prototype.showBackgroundImageDialog=function(c,e,k,n){c=null!=c?c:mxUtils.bind(this,function(p,t,y,C){t||(p=new ChangePageSetup(this,n?y:null,p),p.ignoreColor=
!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 |
e.x,b.height+=e.height+e.y),a.fitWindow(b))};EditorUi.prototype.hasScrollbars=function(){return this.editor.graph.scrollbars}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
da.getAttribute("section");ma=da.getAttribute("subsection");if(null==oa&&(ka=ia.indexOf("/"),oa=ia.substring(0,ka),null==ma)){var wa=ia.indexOf("/",ka+1);-1<wa&&(ma=ia.substring(ka+1,wa))}ka=ta[oa];null==ka&&(ka=[],ta[oa]=ka);ia=da.getAttribute("clibs");null!=la[ia]&&(ia=la[ia]);ia={url:da.getAttribute("url"),libs:da.getAttribute("libs"),title:da.getAttribute("title"),tooltip:da.getAttribute("name")||da.getAttribute("url"),preview:da.getAttribute("preview"),clibs:ia,tags:da.getAttribute("tags")};
ka.push(ia);null!=ma&&(ka=ua[oa],null==ka&&(ka={},ua[oa]=ka),oa=ka[ma],null==oa&&(oa=[],ka[ma]=oa),oa.push(ia))}da=da.nextSibling}A.stop();R()}})};P.appendChild(pa);P.appendChild(xa);P.appendChild(ha);var Ua=!1,ja=E;/^https?:\/\//.test(ja)&&!b.editor.isCorsEnabledForUrl(ja)&&(ja=PROXY_URL+"?url="+encodeURIComponent(ja));A.spin(ha);null!=n?n(function(da,la){Da=da;T=Ea=la;Va()},Va):Va();W=ta}mxEvent.addListener(m,"keypress",function(da){b.dialog.container.firstChild==P&&13==da.keyCode&&G()});n=document.createElement("div"); | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
var X=this.fill,Z=this.stroke;this.stroke=this.fill=null;var Y=this.configurePointerEvents,ba=S.setStrokeColor;S.setStrokeColor=function(){};var fa=S.setFillColor;S.setFillColor=function(){};T||null==X||(this.configurePointerEvents=function(){});S.handJiggle.passThrough=!0;M.apply(this,arguments);S.handJiggle.passThrough=!1;S.setFillColor=fa;S.setStrokeColor=ba;this.configurePointerEvents=Y;this.stroke=Z;this.fill=X;S.restore();T&&null!=X&&(S.addTolerance=function(){})}M.apply(this,arguments);S.addTolerance= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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.apply(this,arguments)};var L=EditorUi.prototype.setGraphEnabled;EditorUi.prototype.setGraphEnabled=function(J){L.apply(this,arguments);if(J){var c=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;1E3<=c&&null!=this.sidebarWindow&&this.sidebarWindow.window.setVisible(!0);null!=this.formatWindow&&1E3<=c&&this.formatWindow.window.setVisible(!0)}else null!=this.sidebarWindow&&this.sidebarWindow.window.setVisible(!1),null!=this.formatWindow&&this.formatWindow.window.setVisible(!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 |
retry:Z})},T)});Z()}catch(Y){null!=F&&F(Y)}};Editor.prototype.getErrorMessage=function(g){var x=mxResources.get("error")+" "+g.getStatus();try{var F=g.getText(),M=JSON.parse(F);null!=M&&null!=M.error&&null!=M.error.message&&(x=M.error.message+" ("+x+")")}catch(Q){}return x};Editor.prototype.absoluteCssFonts=function(g){var x=null;if(null!=g){var F=g.split("url(");if(0<F.length){x=[F[0]];g=window.location.pathname;var M=null!=g?g.lastIndexOf("/"):-1;0<=M&&(g=g.substring(0,M+1));M=document.getElementsByTagName("base"); | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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.