code
stringlengths 14
2.05k
| label
int64 0
1
| programming_language
stringclasses 7
values | cwe_id
stringlengths 6
14
| cwe_name
stringlengths 5
98
⌀ | description
stringlengths 36
379
⌀ | url
stringlengths 36
48
⌀ | label_name
stringclasses 2
values |
---|---|---|---|---|---|---|---|
c;this.editor.updateGraphComponents();this.editor.graph.refresh();this.editor.graph.defaultMathEnabled=c;this.fireEvent(new mxEventObject("mathEnabledChanged"))};EditorUi.prototype.isMathEnabled=function(c){return this.editor.graph.mathEnabled};EditorUi.prototype.isStandaloneApp=function(){return mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||this.isOfflineApp()};EditorUi.prototype.isOfflineApp=function(){return"1"==urlParams.offline};EditorUi.prototype.isOffline=function(c){return this.isOfflineApp()||
!navigator.onLine||!c&&("1"==urlParams.stealth||"1"==urlParams.lockdown)};EditorUi.prototype.isExternalDataComms=function(){return"1"!=urlParams.offline&&!this.isOffline()&&!this.isOfflineApp()};EditorUi.prototype.createSpinner=function(c,e,k){var n=null==c||null==e;k=null!=k?k:24;var p=new Spinner({lines:12,length:k,width:Math.round(k/3),radius:Math.round(k/2),rotate:0,color:Editor.isDarkMode()?"#c0c0c0":"#000",speed:1.5,trail:60,shadow:!1,hwaccel:!1,zIndex:2E9}),t=p.spin;p.spin=function(C,G){var B=
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
x;null!=g&&g()})):null!=g&&g()};Editor.prototype.createGoogleFontCache=function(){var g={},x;for(x in Graph.fontMapping)Graph.isCssFontUrl(x)&&(g[x]=Graph.fontMapping[x]);return g};Editor.prototype.embedExtFonts=function(g){var x=this.graph.getCustomFonts();if(0<x.length){var F=[],M=0;null==this.cachedGoogleFonts&&(this.cachedGoogleFonts=this.createGoogleFontCache());for(var Q=mxUtils.bind(this,function(){0==M&&this.embedCssFonts(F.join(""),g)}),S=0;S<x.length;S++)mxUtils.bind(this,function(W,T){Graph.isCssFontUrl(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
|
var GoogleSitesDialog=function(b,f){function l(){var V=null!=B&&null!=B.getTitle()?B.getTitle():this.defaultFilename;if(C.checked&&""!=J.value){var R="https://www.draw.io/gadget.xml?type=4&diagram="+encodeURIComponent(mxUtils.htmlEntities(J.value));null!=V&&(R+="&title="+encodeURIComponent(V));0<G.length&&(R+="&s="+G);""!=c.value&&"0"!=c.value&&(R+="&border="+c.value);""!=U.value&&(R+="&height="+U.value);R+="&pan="+(e.checked?"1":"0");R+="&zoom="+(k.checked?"1":"0");R+="&fit="+(y.checked?"1":"0");
R+="&resize="+(t.checked?"1":"0");R+="&x0="+Number(E.value);R+="&y0="+L;q.mathEnabled&&(R+="&math=1");p.checked?R+="&edit=_blank":n.checked&&(R+="&edit="+encodeURIComponent(mxUtils.htmlEntities(window.location.href)));K.value=R}else B.constructor==DriveFile||B.constructor==DropboxFile?(R="https://www.draw.io/gadget.xml?embed=0&diagram=",""!=J.value?R+=encodeURIComponent(mxUtils.htmlEntities(J.value))+"&type=3":(R+=B.getHash().substring(1),R=B.constructor==DropboxFile?R+"&type=2":R+"&type=1"),null!=
V&&(R+="&title="+encodeURIComponent(V)),""!=U.value&&(V=parseInt(U.value)+parseInt(E.value),R+="&height="+V),K.value=R):K.value=""}var d=document.createElement("div"),q=b.editor.graph,u=q.getGraphBounds(),z=q.view.scale,D=Math.floor(u.x/z-q.view.translate.x),L=Math.floor(u.y/z-q.view.translate.y);mxUtils.write(d,mxResources.get("googleGadget")+":");mxUtils.br(d);var K=document.createElement("input");K.setAttribute("type","text");K.style.marginBottom="8px";K.style.marginTop="2px";K.style.width="410px";
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
"-rev_"+this.ui.hashValue(D):"")+(null!=p?"-latest_"+p:"")+(null!=k?"-latestRev_"+this.ui.hashValue(k.getCurrentRevisionId()):""));EditorUi.logEvent({category:"CHECKSUM-ERROR-SYNC-FILE-"+J,action:q,label:"user_"+U+(null!=this.sync?"-client_"+this.sync.clientId:"-nosync")+"-bytes_"+c+"-patches_"+f.length+"-size_"+this.getSize()})}catch(t){}}),b)}}catch(k){}};
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
null!=c.getMode())try{this.addRecent({id:c.getHash(),title:c.getTitle(),mode:c.getMode()})}catch(C){}try{mxSettings.setOpenCounter(mxSettings.getOpenCounter()+1),mxSettings.save()}catch(C){}}catch(C){this.fileLoadedError=C;if(null!=c)try{c.close()}catch(G){}if(EditorUi.enableLogging&&!this.isOffline())try{EditorUi.logEvent({category:"ERROR-LOAD-FILE-"+(null!=c?c.getHash():"none"),action:"message_"+C.message,label:"stack_"+C.stack})}catch(G){}c=mxUtils.bind(this,function(){null!=urlParams.url&&this.spinner.spin(document.body,
mxResources.get("reconnecting"))?window.location.search=this.getSearch(["url"]):null!=n?this.fileLoaded(n)||t():t()});e?c():this.handleError(C,mxResources.get("errorLoadingFile"),c,!0,null,null,!0)}else t();return p};EditorUi.prototype.getHashValueForPages=function(c,e){var k=0,n=new mxGraphModel,p=new mxCodec;null!=e&&(e.byteCount=0,e.attrCount=0,e.eltCount=0,e.nodeCount=0);for(var t=0;t<c.length;t++){this.updatePageRoot(c[t]);var y=c[t].node.cloneNode(!1);y.removeAttribute("name");n.root=c[t].root;
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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],"{1} ago"));P.setAttribute("title",O.toLocaleDateString()+" "+O.toLocaleTimeString())}function K(O){var P=document.createElement("img");P.className="geCommentBusyImg";P.src=IMAGE_PATH+"/spin.gif";O.appendChild(P);O.busyImg=P}function E(O){O.style.border="1px solid red";O.removeChild(O.busyImg)}function U(O){O.style.border="";O.removeChild(O.busyImg)}function J(O,P,N,H,m){function v(S,W,T){var X=document.createElement("li");X.className="geCommentAction";var Z=document.createElement("a");Z.className=
"geCommentActionLnk";mxUtils.write(Z,S);X.appendChild(Z);mxEvent.addListener(Z,"click",function(Y){W(Y,O);Y.preventDefault();mxEvent.consume(Y)});Q.appendChild(X);T&&(X.style.display="none")}function A(){function S(X){W.push(T);if(null!=X.replies)for(var Z=0;Z<X.replies.length;Z++)T=T.nextSibling,S(X.replies[Z])}var W=[],T=g;S(O);return{pdiv:T,replies:W}}function I(S,W,T,X,Z){function Y(){K(aa);O.addReply(ca,function(ra){ca.id=ra;O.replies.push(ca);U(aa);T&&T()},function(ra){ba();E(aa);b.handleError(ra,
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
var PopupDialog=function(b,f,l,d,q){q=null!=q?q:!0;var u=document.createElement("div");u.style.textAlign="left";u.style.height="100%";mxUtils.write(u,mxResources.get("fileOpenLocation"));mxUtils.br(u);mxUtils.br(u);var z=mxUtils.button(mxResources.get("openInThisWindow"),function(){q&&b.hideDialog();null!=d&&d()});z.className="geBtn";z.style.marginBottom="8px";z.style.width="280px";u.appendChild(z);mxUtils.br(u);var D=mxUtils.button(mxResources.get("openInNewWindow"),function(){q&&b.hideDialog();
null!=l&&l();b.openLink(f,null,!0)});D.className="geBtn gePrimaryBtn";D.style.width=z.style.width;u.appendChild(D);mxUtils.br(u);mxUtils.br(u);mxUtils.write(u,mxResources.get("allowPopups"));this.container=u},ImageDialog=function(b,f,l,d,q,u,z,D){function L(){0<U.value.length?t.removeAttribute("disabled"):t.setAttribute("disabled","disabled")}u=null!=u?u:!0;var K=b.editor.graph,E=document.createElement("div");mxUtils.write(E,f);f=document.createElement("div");f.className="geTitle";f.style.backgroundColor=
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
null!=c.getMode())try{this.addRecent({id:c.getHash(),title:c.getTitle(),mode:c.getMode()})}catch(C){}try{mxSettings.setOpenCounter(mxSettings.getOpenCounter()+1),mxSettings.save()}catch(C){}}catch(C){this.fileLoadedError=C;if(null!=c)try{c.close()}catch(G){}if(EditorUi.enableLogging&&!this.isOffline())try{EditorUi.logEvent({category:"ERROR-LOAD-FILE-"+(null!=c?c.getHash():"none"),action:"message_"+C.message,label:"stack_"+C.stack})}catch(G){}c=mxUtils.bind(this,function(){null!=urlParams.url&&this.spinner.spin(document.body,
mxResources.get("reconnecting"))?window.location.search=this.getSearch(["url"]):null!=n?this.fileLoaded(n)||t():t()});e?c():this.handleError(C,mxResources.get("errorLoadingFile"),c,!0,null,null,!0)}else t();return p};EditorUi.prototype.getHashValueForPages=function(c,e){var k=0,n=new mxGraphModel,p=new mxCodec;null!=e&&(e.byteCount=0,e.attrCount=0,e.eltCount=0,e.nodeCount=0);for(var t=0;t<c.length;t++){this.updatePageRoot(c[t]);var y=c[t].node.cloneNode(!1);y.removeAttribute("name");n.root=c[t].root;
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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[M]=Q,x=document.getElementsByTagName("head")[0],null!=F&&("link"==Q.elt.nodeName.toLowerCase()?(Q.elt.onload=F,Q.elt.onerror=F):F()),null!=x&&x.appendChild(Q.elt)):null!=F&&F()}else null!=F&&F()}else null!=F&&F();return g};Graph.getFontUrl=function(g,x){g=Graph.customFontElements[g.toLowerCase()];null!=g&&(x=g.url);return x};Graph.processFontAttributes=function(g){g=g.getElementsByTagName("*");for(var x=0;x<g.length;x++){var F=g[x].getAttribute("data-font-src");if(null!=F){var M=
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
function(g,x,F,M){null==M&&(M=this.createImageUrlConverter());var Q=0,S=F||{};F=mxUtils.bind(this,function(W,T){W=g.getElementsByTagName(W);for(var X=0;X<W.length;X++)mxUtils.bind(this,function(Z){try{if(null!=Z){var Y=M.convert(Z.getAttribute(T));if(null!=Y&&"data:"!=Y.substring(0,5)){var ba=S[Y];null==ba?(Q++,this.convertImageToDataUri(Y,function(fa){null!=fa&&(S[Y]=fa,Z.setAttribute(T,fa));Q--;0==Q&&x(g)})):Z.setAttribute(T,ba)}else null!=Y&&Z.setAttribute(T,Y)}}catch(fa){}})(W[X])});F("image",
"xlink:href");F("img","src");0==Q&&x(g)};Editor.base64Encode=function(g){for(var x="",F=0,M=g.length,Q,S,W;F<M;){Q=g.charCodeAt(F++)&255;if(F==M){x+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(Q>>2);x+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((Q&3)<<4);x+="==";break}S=g.charCodeAt(F++);if(F==M){x+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(Q>>2);x+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((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
|
O=parseFloat(m[0].getAttribute("height")))}k(G.result,R,O)}catch(v){n(v)}};V.src=G.result};G.onerror=function(B){n(B)}}else n(C)};y.onerror=function(C){n(C)};y.send()};EditorUi.prototype.insertAsPreText=function(c,e,k){var n=this.editor.graph,p=null;n.getModel().beginUpdate();try{p=n.insertVertex(null,null,"<pre>"+c+"</pre>",e,k,1,1,"text;html=1;align=left;verticalAlign=top;"),n.updateCellSize(p,!0)}finally{n.getModel().endUpdate()}return p};EditorUi.prototype.insertTextAt=function(c,e,k,n,p,t,y,
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
y:N.constObj.point.y,dx:N.constObj.dx,dy:N.constObj.dy};var H=0,m=0,v=J.geometry,A=mxUtils.format((N.geometry.x+3-v.x)/v.width);N=mxUtils.format((N.geometry.y+3-v.y)/v.height);0>A?(H=A*v.width,A=0):1<A&&(H=(A-1)*v.width,A=1);0>N?(m=N*v.height,N=0):1<N&&(m=(N-1)*v.height,N=1);return{x:A,y:N,dx:parseInt(H),dy:parseInt(m)}}function K(N){if(1==U.getSelectionCount()){var H=U.getSelectionCell();N&&(H.constObj=null);N=L(H);V.value=100*N.x;O.value=100*N.y;R.value=N.dx;P.value=N.dy;B.style.visibility=""}else B.style.visibility=
"hidden"}var E=document.createElement("div");E.style.width="350px";E.style.height="350px";E.style.overflow="hidden";E.style.border="1px solid lightGray";E.style.boxSizing="border-box";mxEvent.disableContextMenu(E);d.appendChild(E);var U=new Graph(E);U.autoExtend=!1;U.autoScroll=!1;U.setGridEnabled(!1);U.setEnabled(!0);U.setPanning(!0);U.setConnectable(!1);U.setTooltips(!1);U.minFitScale=null;U.maxFitScale=null;U.centerZoom=!0;U.maxFitScale=2;E=f.geometry;var J=new mxCell(f.value,new mxGeometry(0,
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
y)}})));c(t);t.onversionchange=function(){t.close()}}catch(y){null!=e?e(y):null!=window.console&&console.warn(y)}});n.onerror=e;n.onblocked=function(){}}catch(p){null!=e?e(p):null!=window.console&&console.error(p)}else null!=e&&e(Error("IndexedDB not supported"))}else c(this.database)};EditorUi.prototype.setDatabaseItem=function(c,e,k,n,p){this.openDatabase(mxUtils.bind(this,function(t){try{p=p||"objects";Array.isArray(p)||(p=[p],c=[c],e=[e]);var y=t.transaction(p,"readwrite");y.oncomplete=k;y.onerror=
n;for(t=0;t<p.length;t++)y.objectStore(p[t]).put(null!=c&&null!=c[t]?{key:c[t],data:e[t]}:e[t])}catch(C){null!=n&&n(C)}}),n)};EditorUi.prototype.removeDatabaseItem=function(c,e,k,n){this.openDatabase(mxUtils.bind(this,function(p){n=n||"objects";Array.isArray(n)||(n=[n],c=[c]);p=p.transaction(n,"readwrite");p.oncomplete=e;p.onerror=k;for(var t=0;t<n.length;t++)p.objectStore(n[t]).delete(c[t])}),k)};EditorUi.prototype.getDatabaseItem=function(c,e,k,n){this.openDatabase(mxUtils.bind(this,function(p){try{n=
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
M.substring(0,19)||mxClient.IS_CHROMEAPP||(M=x.apply(this,arguments)):M=PROXY_URL+"?url="+encodeURIComponent(M)}return M};return g};Editor.createSvgDataUri=function(g){return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(g)))};Editor.prototype.convertImageToDataUri=function(g,x){try{var F=!0,M=window.setTimeout(mxUtils.bind(this,function(){F=!1;x(Editor.svgBrokenImage.src)}),this.timeout);if(/(\.svg)$/i.test(g))mxUtils.get(g,mxUtils.bind(this,function(S){window.clearTimeout(M);F&&x(Editor.createSvgDataUri(S.getText()))}),
function(){window.clearTimeout(M);F&&x(Editor.svgBrokenImage.src)});else{var Q=new Image;this.crossOriginImages&&(Q.crossOrigin="anonymous");Q.onload=function(){window.clearTimeout(M);if(F)try{var S=document.createElement("canvas"),W=S.getContext("2d");S.height=Q.height;S.width=Q.width;W.drawImage(Q,0,0);x(S.toDataURL())}catch(T){x(Editor.svgBrokenImage.src)}};Q.onerror=function(){window.clearTimeout(M);F&&x(Editor.svgBrokenImage.src)};Q.src=g}}catch(S){x(Editor.svgBrokenImage.src)}};Editor.prototype.convertImages=
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
(0!=e.getStatus()?": "+e.getStatus():"")}))}));EditorUi.debug("DrawioFileSync.fileSaved",[this],"from",L,"to",K,"etag",this.file.getCurrentEtag(),"diff",E,U.length,"bytes","checksum",u)}else this.notify(D),null!=l&&l(),EditorUi.debug("DrawioFileSync.fileSaved",[this],"from",L,"to",K,"etag",this.file.getCurrentEtag())}this.file.setShadowPages(b);this.scheduleCleanup()};
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
PrintDialog.previewEnabled&&(aa=mxUtils.button(mxResources.get("preview"),function(){g.hideDialog();M(!1)}),aa.className="geBtn",x.appendChild(aa));aa=mxUtils.button(mxResources.get(PrintDialog.previewEnabled?"print":"ok"),function(){g.hideDialog();M(!0)});aa.className="geBtn gePrimaryBtn";x.appendChild(aa);g.editor.cancelFirst||x.appendChild(W);S.appendChild(x);this.container=S};var v=ChangePageSetup.prototype.execute;ChangePageSetup.prototype.execute=function(){null==this.page&&(this.page=this.ui.currentPage);
if(this.page!=this.ui.currentPage){if(null!=this.page.viewState){this.ignoreColor||(this.page.viewState.background=this.color);if(!this.ignoreImage){var g=this.image;null!=g&&null!=g.src&&Graph.isPageLink(g.src)&&(g={originalSrc:g.src});this.page.viewState.backgroundImage=g}null!=this.format&&(this.page.viewState.pageFormat=this.format);null!=this.mathEnabled&&(this.page.viewState.mathEnabled=this.mathEnabled);null!=this.shadowVisible&&(this.page.viewState.shadowVisible=this.shadowVisible)}}else v.apply(this,
arguments),null!=this.mathEnabled&&this.mathEnabled!=this.ui.isMathEnabled()&&(this.ui.setMathEnabled(this.mathEnabled),this.mathEnabled=!this.mathEnabled),null!=this.shadowVisible&&this.shadowVisible!=this.ui.editor.graph.shadowVisible&&(this.ui.editor.graph.setShadowVisible(this.shadowVisible),this.shadowVisible=!this.shadowVisible)};Editor.prototype.useCanvasForExport=!1;try{var A=document.createElement("canvas"),I=new Image;I.onload=function(){try{A.getContext("2d").drawImage(I,0,0);var g=A.toDataURL("image/png");
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
function(m){q.isEnabled()&&(d.clearDefaultStyle(),Editor.sketchMode&&d.setSketchMode(!1))};"1"==urlParams.embed&&(d.actions.get("save").funct=function(m){q.isEditing()&&q.stopEditing();var v="0"!=urlParams.pages||null!=d.pages&&1<d.pages.length?d.getFileData(!0):mxUtils.getXml(d.editor.getGraphXml());if("json"==urlParams.proto){var A=d.createLoadMessage("save");A.xml=v;m&&(A.exit=!0);v=JSON.stringify(A)}(window.opener||window.parent).postMessage(v,"*");"0"!=urlParams.modified&&"1"!=urlParams.keepmodified&&
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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=-1,t=function(){null!=z?(null!=D&&D(p),p=z(n)):n()};this.drawRuler=t;this.sizeListener=f=u(function(){var y=e.container;l?(y=y.offsetHeight+L,J.height!=y&&(J.height=y,U.style.height=y+"px",t())):(y=y.offsetWidth+L,J.width!=y&&(J.width=y,U.style.width=y+"px",t()))},10);this.pageListener=function(){t()};this.scrollListener=d=u(function(){var y=l?e.container.scrollTop:e.container.scrollLeft;K.lastScroll!=y&&(K.lastScroll=y,t())},10);this.unitListener=function(y,C){K.setUnit(C.getProperty("unit"))};
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
this.model.root||this.model.isVertex(x[T])||this.model.isEdge(x[T])){var X=this.getTagsForCell(x[T]),Z=!1;if(0<X.length&&(X=X.split(" "),X.length>=g.length)){for(var Y=Z=0;Y<X.length&&Z<S;Y++)null!=W[X[Y]]&&Z++;Z=Z==S}Z&&(1!=M||this.isCellVisible(x[T]))&&Q.push(x[T])}}return Q};Graph.prototype.getAllTags=function(){return this.getTagsForCells(this.model.getDescendants(this.model.getRoot()))};Graph.prototype.getCommonTagsForCells=function(g){for(var x=null,F=[],M=0;M<g.length;M++){var Q=this.getTagsForCell(g[M]);
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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),0<M.length&&(g=mxUtils.parseXml(M),g=g.documentElement))))}if(null!=g&&"svg"==g.nodeName)if(M=g.getAttribute("content"),null!=M&&"<"!=M.charAt(0)&&"%"!=M.charAt(0)&&(M=unescape(window.atob?atob(M):Base64.decode(cont,M))),null!=M&&"%"==M.charAt(0)&&(M=decodeURIComponent(M)),null!=M&&0<M.length)g=mxUtils.parseXml(M).documentElement;else throw{message:mxResources.get("notADiagramFile")};null==g||x||(Q=null,"diagram"==g.nodeName?Q=g:"mxfile"==g.nodeName&&(M=g.getElementsByTagName("diagram"),0<
M.length&&(Q=M[Math.max(0,Math.min(M.length-1,urlParams.page||0))])),null!=Q&&(g=Editor.parseDiagramNode(Q,F)));null==g||"mxGraphModel"==g.nodeName||x&&"mxfile"==g.nodeName||(g=null);return g};Editor.parseDiagramNode=function(g,x){var F=mxUtils.trim(mxUtils.getTextContent(g)),M=null;0<F.length?(g=Graph.decompress(F,null,x),null!=g&&0<g.length&&(M=mxUtils.parseXml(g).documentElement)):(g=mxUtils.getChildNodes(g),0<g.length&&(M=mxUtils.createXmlDocument(),M.appendChild(M.importNode(g[0],!0)),M=M.documentElement));
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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 t="#0000ff",y=null;y=mxUtils.button("",mxUtils.bind(this,function(C){this.pickColor(t||"none",function(G){t=G;k()});mxEvent.consume(C)}));k();y.style.padding=mxClient.IS_FF?"4px 2px 4px 2px":"4px";y.style.marginLeft="4px";y.style.height="22px";y.style.width="22px";y.style.position="relative";y.style.top=mxClient.IS_IE||mxClient.IS_IE11||mxClient.IS_EDGE?"6px":"1px";y.className="geColorBtn";c.appendChild(y);mxUtils.br(c);return{getColor:function(){return t},getTarget:function(){return n.value},
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
n;for(t=0;t<p.length;t++)y.objectStore(p[t]).put(null!=c&&null!=c[t]?{key:c[t],data:e[t]}:e[t])}catch(C){null!=n&&n(C)}}),n)};EditorUi.prototype.removeDatabaseItem=function(c,e,k,n){this.openDatabase(mxUtils.bind(this,function(p){n=n||"objects";Array.isArray(n)||(n=[n],c=[c]);p=p.transaction(n,"readwrite");p.oncomplete=e;p.onerror=k;for(var t=0;t<n.length;t++)p.objectStore(n[t]).delete(c[t])}),k)};EditorUi.prototype.getDatabaseItem=function(c,e,k,n){this.openDatabase(mxUtils.bind(this,function(p){try{n=
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
"https://app.diagrams.net/";var y=c.editor.getEditBlankUrl;this.editor.getEditBlankUrl=function(A){A=null!=A?A:"";"1"==urlParams.dev&&(A+=(0<A.length?"&":"?")+"dev=1");return y.apply(this,arguments)};var C=e.addClickHandler;e.addClickHandler=function(A,I,g){var x=I;I=function(F,M){if(null==M){var Q=mxEvent.getSource(F);"a"==Q.nodeName.toLowerCase()&&(M=Q.getAttribute("href"))}null!=M&&e.isCustomLink(M)&&(mxEvent.isTouchEvent(F)||!mxEvent.isPopupTrigger(F))&&e.customLinkClicked(M)&&mxEvent.consume(F);
null!=x&&x(F,M)};C.call(this,A,I,g)};u.apply(this,arguments);mxClient.IS_SVG&&this.editor.graph.addSvgShadow(e.view.canvas.ownerSVGElement,null,!0);if(null!=this.menus){var G=Menus.prototype.addPopupMenuItems;this.menus.addPopupMenuItems=function(A,I,g){e.isSelectionEmpty()&&"simple"==Editor.currentTheme&&this.addMenuItems(A,["zoomIn","zoomOut","-"],null,g);G.apply(this,arguments);e.isSelectionEmpty()||null==c.addSelectionToScratchpad||this.addMenuItems(A,["-","addToScratchpad"],null,g);e.isSelectionEmpty()&&
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
function(){k.checked&&(null==e||e.checked)?t.removeAttribute("disabled"):t.setAttribute("disabled","disabled")}));mxUtils.br(c);return{getLink:function(){return k.checked?"blank"===t.value?"_blank":p:null},getEditInput:function(){return k},getEditSelect:function(){return t}}};EditorUi.prototype.addLinkSection=function(c,e){function k(){var C=document.createElement("div");C.style.width="100%";C.style.height="100%";C.style.boxSizing="border-box";null!=t&&t!=mxConstants.NONE?(C.style.border="1px solid black",
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
p,t,y){J.apply(this,arguments);U()};u.resizeCell=function(){mxGraph.prototype.resizeCell.apply(this,arguments);U()};u.connectionHandler.addListener(mxEvent.CONNECT,function(){U()})}var c=mxUtils.button(mxResources.get("close"),function(){b.confirm(mxResources.get("areYouSure"),function(){null!=q.parentNode&&(u.destroy(),q.parentNode.removeChild(q));b.hideDialog()})});c.className="geBtn";b.editor.cancelFirst&&d.appendChild(c);var e=mxUtils.button(mxResources.get("insert"),function(k){u.clearCellOverlays();
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
0,E.width,E.height),f.style+";rotatable=0;resizable=0;connectable=0;editable=0;movable=0;");J.vertex=!0;U.addCell(J);U.dblClick=function(N,H){if(null!=H&&H!=J)U.setSelectionCell(H);else{H=mxUtils.convertPoint(U.container,mxEvent.getClientX(N),mxEvent.getClientY(N));mxEvent.consume(N);N=U.view.scale;var m=U.view.translate;U.setSelectionCell(u((H.x-3*N)/N-m.x,(H.y-3*N)/N-m.y))}};q=new mxKeyHandler(U);q.bindKey(46,z);q.bindKey(8,z);U.getRubberband().isForceRubberbandEvent=function(N){return 0==N.evt.button&&
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
function(S,W,T,X,Z,Y){this.passThrough?this.originalRoundrect.apply(this.canvas,arguments):(this.begin(),this.moveTo(S+Z,W),this.lineTo(S+T-Z,W),this.quadTo(S+T,W,S+T,W+Y),this.lineTo(S+T,W+X-Y),this.quadTo(S+T,W+X,S+T-Z,W+X),this.lineTo(S+Z,W+X),this.quadTo(S,W+X,S,W+X-Y),this.lineTo(S,W+Y),this.quadTo(S,W,S+Z,W))};g.prototype.drawPath=function(S){if(0<this.path.length){this.passThrough=!0;try{this.rc.path(this.path.join(" "),S)}catch(T){}this.passThrough=!1}else if(null!=this.nextShape){for(var W in S)this.nextShape.options[W]=
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
for(var e=[],k=2;k<c.length;k++){var n=mxUtils.trim(c[k]);"["!=n&&"]"!=n&&"%%"!=n.substring(0,2)&&"##"!=n.substring(0,2)&&(n=c[k].replace(/[-|>]/g," "),""!=mxUtils.trim(n)&&" "==n.charAt(0)&&e.push(n))}return"mindmap\nroot(("+mxUtils.trim(c[1])+"))\n"+e.join("\n")};EditorUi.prototype.extractMermaidDeclaration=function(c){"o\n\n"==c.substring(0,3)&&(c=c.substring(3));var e=c.split("```");e=1<e.length?e:c.split("<pre>");e=1<e.length?e:c.split("~~~");e=1<e.length?e:c.split("%%");e=1<e.length?e:c.split("(Begins)");
e=mxUtils.trim(1>=e.length?c:e[1]);var k=e.split("\n");if(0<k.length&&"mermaid"==mxUtils.trim(k[0])||1<k.length&&0<=mxUtils.indexOf(EditorUi.mermaidDiagramTypes,k[1]))k.shift(),e=mxUtils.trim(k.join("\n")),k=e.split("\n");var n=k[0].split(" ")[0].replace(/:$/,"");try{"mindmap"==n&&2<k.length&&(e=this.extractMermaidMindmap(k))}catch(p){}"@"!=n.charAt(0)&&0>mxUtils.indexOf(EditorUi.mermaidDiagramTypes,n)&&(e="classDiagram\n"+e);EditorUi.debug("EditorUi.extractMermaidDeclaration","\nlines:",k,"\ntype:",
n,"\nvalue:",c,"\ntext:",e);return e};EditorUi.prototype.removeMermaidComments=function(c){c=c.split("\n");for(var e=[],k=0;k<c.length;k++)"%%"!=c[k].substring(0,2)&&e.push(c[k]);return e.join("\n")};EditorUi.prototype.generateMermaidImage=function(c,e,k,n,p){c=this.removeMermaidComments(c);var t=mxUtils.bind(this,function(C){this.loadingMermaid=!1;null!=n?n(C):this.handleError(C)}),y=mxUtils.bind(this,function(){try{this.loadingMermaid=!1;e=null!=e?e:mxUtils.clone(EditorUi.defaultMermaidConfig);
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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]);S=b.stringToCells(Graph.decompress(x));var ba=b.editor.graph.getBoundingBoxFromGeometry(S);D(null,null,0,0,0,0,{xml:x,w:ba.width,h:ba.height})}N=!0}}catch(fa){null!=window.console&&console.log("Error in library dialog: "+fa)}N||(b.spinner.stop(),b.handleError({message:mxResources.get("errorLoadingFile")}))}}catch(fa){null!=window.console&&console.log("Error in library dialog: "+fa)}return null}function L(V){V.dataTransfer.dropEffect=null!=n?"move":"copy";V.stopPropagation();
V.preventDefault()}function K(V){V.stopPropagation();V.preventDefault();C=!1;p=z(V);if(null!=n)null!=p&&p<c.children.length?(E.splice(p>n?p-1:p,0,E.splice(n,1)[0]),c.insertBefore(c.children[n],c.children[p])):(E.push(E.splice(n,1)[0]),c.appendChild(c.children[n]));else if(0<V.dataTransfer.files.length)b.importFiles(V.dataTransfer.files,0,0,b.maxImageSize,G(V));else if(0<=mxUtils.indexOf(V.dataTransfer.types,"text/uri-list")){var R=decodeURIComponent(V.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
|
var CommentsWindow=function(b,f,l,d,q,u){function z(){for(var O=t.getElementsByTagName("div"),P=0,N=0;N<O.length;N++)"none"!=O[N].style.display&&O[N].parentNode==t&&P++;y.style.display=0==P?"block":"none"}function D(O,P,N,H){function m(){P.removeChild(I);P.removeChild(g);A.style.display="block";v.style.display="block"}k={div:P,comment:O,saveCallback:N,deleteOnCancel:H};var v=P.querySelector(".geCommentTxt"),A=P.querySelector(".geCommentActionsList"),I=document.createElement("textarea");I.className=
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
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
|
c.indexOf("PK"))this.importZipFile(k,mxUtils.bind(this,function(C){this.spinner.stop();t(C)}),mxUtils.bind(this,function(){this.spinner.stop();this.openLocalFile(c,e,n)}));else{if("image/png"==k.type.substring(0,9))c=this.extractGraphModelFromPng(c);else if("application/pdf"==k.type){var y=Editor.extractGraphModelFromPdf(c);null!=y&&(p=null,n=!0,c=y)}this.spinner.stop();this.openLocalFile(c,e,n,p,null!=p?k:null)}}};EditorUi.prototype.openFiles=function(c,e){if(this.spinner.spin(document.body,mxResources.get("loading")))for(var k=
0;k<c.length;k++)mxUtils.bind(this,function(n){var p=new FileReader;p.onload=mxUtils.bind(this,function(t){try{this.openFileHandle(t.target.result,n.name,n,e)}catch(y){this.handleError(y)}});p.onerror=mxUtils.bind(this,function(t){this.spinner.stop();this.handleError(t);window.openFile=null});"image"!==n.type.substring(0,5)&&"application/pdf"!==n.type||"image/svg"===n.type.substring(0,9)?p.readAsText(n):p.readAsDataURL(n)})(c[k])};EditorUi.prototype.openLocalFile=function(c,e,k,n,p){var t=this.getCurrentFile(),
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
W};var Q=mxShape.prototype.paintGlassEffect;mxShape.prototype.paintGlassEffect=function(S,W,T,X,Z,Y){null!=S.handJiggle&&S.handJiggle.constructor==g?(S.handJiggle.passThrough=!0,Q.apply(this,arguments),S.handJiggle.passThrough=!1):Q.apply(this,arguments)}})();Editor.fastCompress=function(g){return null==g||0==g.length||"undefined"===typeof pako?g:Graph.arrayBufferToString(pako.deflateRaw(g))};Editor.fastDecompress=function(g){return null==g||0==g.length||"undefined"===typeof pako?g:pako.inflateRaw(Graph.stringToArrayBuffer(atob(g)),
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
1),"image/png",!0);p.apply(this,arguments)}))}),null,this.thumbImageCache,null,mxUtils.bind(this,function(C){y.stop();null!=this.exportDialog&&null!=this.exportDialog.parentNode&&(this.exportDialog.parentNode.removeChild(this.exportDialog),this.exportDialog=null);this.handleError(C)}),null,null,null,null,null,null,null,Editor.defaultBorder)}mxEvent.consume(n)}),Editor.cameraImage,mxResources.get("export"))}};EditorUi.prototype.saveData=function(c,e,k,n,p){this.isLocalFileSave()?this.saveLocalFile(k,
c,n,p,e):this.saveRequest(c,e,mxUtils.bind(this,function(t,y){return this.createEchoRequest(k,t,n,p,e,y)}),k,p,n)};EditorUi.prototype.saveRequest=function(c,e,k,n,p,t,y){y=null!=y?y:!mxClient.IS_IOS||!navigator.standalone;var C=mxUtils.bind(this,function(V,R,O,P){if("_blank"==R||null!=V&&0<V.length){var N=k("_blank"==R?null:V,R==App.MODE_DEVICE||"download"==R||null==R||"_blank"==R?"0":"1");null!=N&&(R==App.MODE_DEVICE||"download"==R||"_blank"==R?N.simulate(document,"_blank"):(O=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
|
function(P){E=P};this.setAutoScroll=function(P){U=P};this.setOpenFill=function(P){J=P};this.setStopClickEnabled=function(P){k=P};this.setSelectInserted=function(P){n=P};this.setSmoothing=function(P){l=P};this.setPerfectFreehandMode=function(P){t=P};this.isPerfectFreehandMode=function(){return t};this.setBrushSize=function(P){p.size=P};this.getBrushSize=function(){return p.size};var y=function(P){e=P;b.getRubberband().setEnabled(!P);b.graphHandler.setSelectEnabled(!P);b.graphHandler.setMoveEnabled(!P);
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
2));return r}(Graph.arrayBufferToString(pako.deflateRaw(c))),!0);"txt"!=e&&(y.responseType="blob");y.onload=function(C){if(200<=this.status&&300>this.status)if("txt"==e)k(this.response);else{var G=new FileReader;G.readAsDataURL(this.response);G.onloadend=function(B){var V=new Image;V.onload=function(){try{var R=V.width,O=V.height;if(0==R&&0==O){var P=G.result,N=P.indexOf(","),H=decodeURIComponent(escape(atob(P.substring(N+1)))),m=mxUtils.parseXml(H).getElementsByTagName("svg");0<m.length&&(R=parseFloat(m[0].getAttribute("width")),
O=parseFloat(m[0].getAttribute("height")))}k(G.result,R,O)}catch(v){n(v)}};V.src=G.result};G.onerror=function(B){n(B)}}else n(C)};y.onerror=function(C){n(C)};y.send()};EditorUi.prototype.insertAsPreText=function(c,e,k){var n=this.editor.graph,p=null;n.getModel().beginUpdate();try{p=n.insertVertex(null,null,"<pre>"+c+"</pre>",e,k,1,1,"text;html=1;align=left;verticalAlign=top;"),n.updateCellSize(p,!0)}finally{n.getModel().endUpdate()}return p};EditorUi.prototype.insertTextAt=function(c,e,k,n,p,t,y,
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
function(c,e,k,n,p,t,y){if(null!=c){p=null!=p?p:Error(c);p.stack=null!=p.stack?p.stack:"";t=null!=t?t:0>c.indexOf("NetworkError")&&0>c.indexOf("SecurityError")&&0>c.indexOf("NS_ERROR_FAILURE")&&0>c.indexOf("out of memory")?"SEVERE":"CONFIG";try{EditorUi.enableLogging&&"1"!=urlParams.dev&&c!=EditorUi.lastErrorMessage&&0>c.indexOf("extension:")&&0>p.stack.indexOf("extension:")&&0>p.stack.indexOf("<anonymous>:")&&(EditorUi.lastErrorMessage=c,(new Image).src=(null!=window.DRAWIO_LOG_URL?window.DRAWIO_LOG_URL:
"")+"/log?severity="+t+"&v="+encodeURIComponent(EditorUi.VERSION)+"&msg=clientError:"+encodeURIComponent(c)+":url:"+encodeURIComponent(window.location.href)+":lnum:"+encodeURIComponent(k)+(null!=n?":colno:"+encodeURIComponent(n):"")+(""!=p.stack?"&stack="+encodeURIComponent(p.stack):""))}catch(C){}try{y||null==window.console||console.error(t,c,e,k,n,p)}catch(C){}}};EditorUi.logEvent=function(c){if("1"==urlParams.dev)EditorUi.debug("logEvent",c);else if(EditorUi.enableLogging)try{var e=null!=window.DRAWIO_LOG_URL?
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
D.getGlobalVariable=function(X){return"page"==X&&null!=K&&null!=K[E]?K[E].getAttribute("name"):"pagenumber"==X?E+1:"pagecount"==X?null!=K?K.length:1:U.apply(this,arguments)};D.getLinkForCell=function(){return null};Editor.MathJaxRender&&D.model.addListener(mxEvent.CHANGE,mxUtils.bind(this,function(X,Z){b.editor.graph.mathEnabled&&Editor.MathJaxRender(D.container)}));var J={lines:11,length:15,width:6,radius:10,corners:1,rotate:0,direction:1,color:Editor.isDarkMode()?"#c0c0c0":"#000",speed:1.4,trail:60,
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
(function(){var b=new mxObjectCodec(new ChangeGridColor,["ui"]);b.beforeDecode=function(f,l,d){d.ui=f.ui;return l};mxCodecRegistry.register(b)})();(function(){EditorUi.VERSION="21.4.0";EditorUi.compactUi="atlas"!=Editor.currentTheme;Editor.isDarkMode()&&(mxGraphView.prototype.gridColor=mxGraphView.prototype.defaultDarkGridColor);EditorUi.enableLogging="1"!=urlParams.stealth&&"1"!=urlParams.lockdown&&(/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname))&&"support.draw.io"!=window.location.hostname;EditorUi.drawHost=window.DRAWIO_BASE_URL;EditorUi.lightboxHost=window.DRAWIO_LIGHTBOX_URL;
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
L;this.okButton=q;this.container=J},TemplatesDialog=function(b,f,l,d,q,u,z,D,L,K,E,U,J,c,e){function k(ja){xa.innerText=ja;xa.style.display="block";setTimeout(function(){xa.style.display="none"},4E3)}function n(){null!=x&&(x.style.fontWeight="normal",x.style.textDecoration="none",F=x,x=null)}function p(ja,da,la,ma,oa,ia,ka){if(-1<ja.className.indexOf("geTempDlgRadioBtnActive"))return!1;ja.className+=" geTempDlgRadioBtnActive";A.querySelector(".geTempDlgRadioBtn[data-id="+ma+"]").className="geTempDlgRadioBtn "+
(ka?"geTempDlgRadioBtnLarge":"geTempDlgRadioBtnSmall");A.querySelector("."+da).src="/images/"+la+"-sel.svg";A.querySelector("."+oa).src="/images/"+ia+".svg";return!0}function t(ja,da,la,ma){function oa(sa,Ja){null==ka?(sa=/^https?:\/\//.test(sa)&&!b.editor.isCorsEnabledForUrl(sa)?PROXY_URL+"?url="+encodeURIComponent(sa):TEMPLATE_PATH+"/"+sa,mxUtils.get(sa,mxUtils.bind(this,function(Ha){200<=Ha.getStatus()&&299>=Ha.getStatus()&&(ka=Ha.getText());Ja(ka)}))):Ja(ka)}function ia(sa,Ja,Ha){if(null!=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
|
var StorageDialog=function(b,f,l){function d(U,J,c,e,k,n){function p(){mxEvent.addListener(t,"click",null!=n?n:function(){c==App.MODE_GOOGLE&&b.spinner.spin(document.body,mxResources.get("authorizing"))?b.drive.checkToken(mxUtils.bind(this,function(){b.spinner.stop();b.setMode(c,!0);f()})):c==App.MODE_ONEDRIVE&&b.spinner.spin(document.body,mxResources.get("authorizing"))?b.oneDrive.checkToken(mxUtils.bind(this,function(){b.spinner.stop();b.setMode(c,!0);f()}),function(V){b.spinner.stop();b.handleError(V)}):
(b.setMode(c,!0),f())})}D++;++z>l&&(mxUtils.br(L),z=1);var t=document.createElement("a");t.style.overflow="hidden";t.style.display="inline-block";t.className="geBaseButton";t.style.boxSizing="border-box";t.style.fontSize="11px";t.style.position="relative";t.style.margin="4px";t.style.marginTop="8px";t.style.marginBottom="0px";t.style.padding="8px 10px 8px 10px";t.style.width="88px";t.style.height="100px";t.style.whiteSpace="nowrap";t.setAttribute("title",J);var y=document.createElement("div");y.style.textOverflow=
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
k)throw Error("No callback for "+(null!=e?e.callbackId:"null"));c.error?k.error&&k.error(c.error.errResp):k.callback&&k.callback.apply(this,c.resp);this.remoteInvokeCallbacks[e.callbackId]=null};EditorUi.prototype.remoteInvoke=function(c,e,k,n,p){var t=!0,y=window.setTimeout(mxUtils.bind(this,function(){t=!1;p({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout")})}),this.timeout),C=mxUtils.bind(this,function(){window.clearTimeout(y);t&&n.apply(this,arguments)}),G=mxUtils.bind(this,function(){window.clearTimeout(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
|
mxConstants.GUIDE_STROKEWIDTH);v.dialect=mxConstants.DIALECT_SVG;v.pointerEvents=!1;v.init(U.graph.getView().getOverlayPane());return v};V=function(v,A){if(v&&null!=U.guidesArrHor)for(v=0;v<U.guidesArrHor.length;v++)U.guidesArrHor[v].node.style.visibility="hidden";if(A&&null!=U.guidesArrVer)for(v=0;v<U.guidesArrVer.length;v++)U.guidesArrVer[v].node.style.visibility="hidden"};if(1<B&&B==n.length-1){B=[];O=U.guidesArrHor;K=[];L=0;p=n[0]==J?1:0;N=n[p].y+n[p].height;if(0<R)for(p=0;p<n.length-1;p++)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
|
mxUtils.getTextContent(Y[Z]);S=b.stringToCells(Graph.decompress(x));var ba=b.editor.graph.getBoundingBoxFromGeometry(S);D(null,null,0,0,0,0,{xml:x,w:ba.width,h:ba.height})}N=!0}}catch(fa){null!=window.console&&console.log("Error in library dialog: "+fa)}N||(b.spinner.stop(),b.handleError({message:mxResources.get("errorLoadingFile")}))}}catch(fa){null!=window.console&&console.log("Error in library dialog: "+fa)}return null}function L(V){V.dataTransfer.dropEffect=null!=n?"move":"copy";V.stopPropagation();
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
!0===mxSettings.settings.darkMode&&(H=!0);this.installSettings();screen.width<=Editor.smallScreenWidth&&(this.formatWidth=0);"1"==urlParams.prefetchFonts&&c.editor.loadFonts()};var z=EditorUi.prototype.windowResized;EditorUi.prototype.windowResized=function(){if("simple"==Editor.currentTheme){var c=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,e=Editor.smallScreenWidth;null!=this.lastWindowWidth&&this.lastWindowWidth>=e&&c<e?this.isFormatPanelVisible()&&this.toggleFormatPanel(!1):
null!=this.lastWindowWidth&&this.lastWindowWidth<e&&c>=e&&(this.isFormatPanelVisible()||this.toggleFormatPanel(!0));this.lastWindowWidth=c}z.apply(this,arguments)};EditorUi.prototype.initializeInlineEmbedMode=function(){var c=this.sketchFooterMenuElt,e=this.sketchMainMenuElt,k=this.sketchPickerMenuElt,n=this.editor.graph;k.style.transform="";mxEvent.addGestureListeners(this.diagramContainer.parentNode,mxUtils.bind(this,function(B){mxEvent.getSource(B)==this.diagramContainer.parentNode&&(this.embedExitPoint=
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
this.div.style.left=Math.max(0,parseInt(this.div.style.left)-c+140)+"px");this.fit()};mxEvent.addListener(this.formatWindow.window.title,"dblclick",mxUtils.bind(this,function(e){mxEvent.getSource(e)==this.formatWindow.window.title&&this.formatWindow.window.toggleMinimized()}))}};var U=EditorUi.prototype.init;EditorUi.prototype.init=function(){function J(T,X,Z){var Y=t.menus.get(T),ba=B.addMenu(mxResources.get(T),mxUtils.bind(this,function(){Y.funct.apply(this,arguments)}),G);ba.className="geMenuItem";
ba.style.display="inline-block";ba.style.boxSizing="border-box";ba.style.top="6px";ba.style.marginRight="6px";ba.style.height="30px";ba.style.paddingTop="6px";ba.style.paddingBottom="6px";ba.style.cursor="pointer";ba.setAttribute("title",mxResources.get(T));t.menus.menuCreated(Y,ba,"geMenuItem");null!=Z?(ba.style.backgroundImage="url("+Z+")",ba.style.backgroundPosition="center center",ba.style.backgroundRepeat="no-repeat",ba.style.backgroundSize="24px 24px",ba.style.width="34px",ba.innerText=""):
X||(ba.style.backgroundImage="url("+mxWindow.prototype.normalizeImage+")",ba.style.backgroundPosition="right 6px center",ba.style.backgroundRepeat="no-repeat",ba.style.paddingRight="22px");return ba}function c(T,X,Z,Y,ba,fa){var ca=document.createElement("a");ca.className="geMenuItem";ca.style.display="inline-block";ca.style.boxSizing="border-box";ca.style.height="30px";ca.style.padding="6px";ca.style.position="relative";ca.style.verticalAlign="top";ca.style.top="0px";null!=t.statusContainer?C.insertBefore(ca,
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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 BackgroundImageDialog=function(b,f,l,d,q){function u(){null==P||P==mxConstants.NONE?(O.style.display="none",V.checked=!1):(O.style.backgroundColor=P,O.style.display="",V.checked=!0)}var z=b.editor.graph,D=document.createElement("div");D.style.whiteSpace="nowrap";var L=document.createElement("h2");mxUtils.write(L,mxResources.get("background"));L.style.marginTop="0px";D.appendChild(L);var K=null!=l&&null!=l.originalSrc;L=!1;var E=document.createElement("input");E.style.cssText="margin-right:8px;margin-bottom:8px;";
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
l?E=new mxHierarchicalLayout(u,mxConstants.DIRECTION_WEST):"circle"==l?E=new mxCircleLayout(u):(E=new mxFastOrganicLayout(u,!1),E.forceConstant=80);if(null!=E){var U=function(k,n){u.getModel().beginUpdate();try{null!=k&&k(),E.execute(u.getDefaultParent(),K)}catch(p){throw p;}finally{k=new mxMorphing(u),k.addListener(mxEvent.DONE,mxUtils.bind(this,function(){u.getModel().endUpdate();null!=n&&n()})),k.startAnimation()}},J=mxEdgeHandler.prototype.connect;mxEdgeHandler.prototype.connect=function(k,n,
p,t,y){J.apply(this,arguments);U()};u.resizeCell=function(){mxGraph.prototype.resizeCell.apply(this,arguments);U()};u.connectionHandler.addListener(mxEvent.CONNECT,function(){U()})}var c=mxUtils.button(mxResources.get("close"),function(){b.confirm(mxResources.get("areYouSure"),function(){null!=q.parentNode&&(u.destroy(),q.parentNode.removeChild(q));b.hideDialog()})});c.className="geBtn";b.editor.cancelFirst&&d.appendChild(c);var e=mxUtils.button(mxResources.get("insert"),function(k){u.clearCellOverlays();
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
EditorUi.prototype.isRevisionHistoryEnabled=function(){var c=this.getCurrentFile();return null!=c&&(c.constructor==DriveFile&&c.isEditable()||c.constructor==DropboxFile)};EditorUi.prototype.getServiceName=function(){return"draw.io"};EditorUi.prototype.addRemoteServiceSecurityCheck=function(c){c.setRequestHeader("Content-Language","da, mi, en, de-DE")};EditorUi.prototype.loadUrl=function(c,e,k,n,p,t,y,C){EditorUi.logEvent("SHOULD NOT BE CALLED: loadUrl");return this.editor.loadUrl(c,e,k,n,p,t,y,C)};
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
"geCommentActionLnk";mxUtils.write(Z,S);X.appendChild(Z);mxEvent.addListener(Z,"click",function(Y){W(Y,O);Y.preventDefault();mxEvent.consume(Y)});Q.appendChild(X);T&&(X.style.display="none")}function A(){function S(X){W.push(T);if(null!=X.replies)for(var Z=0;Z<X.replies.length;Z++)T=T.nextSibling,S(X.replies[Z])}var W=[],T=g;S(O);return{pdiv:T,replies:W}}function I(S,W,T,X,Z){function Y(){K(aa);O.addReply(ca,function(ra){ca.id=ra;O.replies.push(ca);U(aa);T&&T()},function(ra){ba();E(aa);b.handleError(ra,
null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))},X,Z)}function ba(){D(ca,aa,function(ra){Y()},!0)}var fa=A().pdiv,ca=b.newComment(S,b.getCurrentUser());ca.pCommentId=O.id;null==O.replies&&(O.replies=[]);var aa=J(ca,O.replies,fa,H+1);W?ba():Y()}if(m||!O.isResolved){y.style.display="none";var g=document.createElement("div");g.className="geCommentContainer";g.setAttribute("data-commentId",O.id);g.style.marginLeft=20*H+5+"px";O.isResolved&&!Editor.isDarkMode()&&(g.style.backgroundColor=
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
{fill:"#ffcc99",stroke:"#36393d"},{fill:"#cce5ff",stroke:"#36393d"},{fill:"#ffff88",stroke:"#36393d"},{fill:"#cdeb8b",stroke:"#36393d"},{fill:"#ffcccc",stroke:"#36393d"}]];StyleFormatPanel.prototype.customColorSchemes=null;StyleFormatPanel.prototype.findCommonProperties=function(g,x,F){if(null!=x){var M=function(S){if(null!=S)if(F)for(var W=0;W<S.length;W++)x[S[W].name]=S[W];else for(var T in x){var X=!1;for(W=0;W<S.length;W++)if(S[W].name==T&&S[W].type==x[T].type){X=!0;break}X||delete x[T]}},Q=this.editorUi.editor.graph.view.getState(g);
null!=Q&&null!=Q.shape&&(Q.shape.commonCustomPropAdded||(Q.shape.commonCustomPropAdded=!0,Q.shape.customProperties=Q.shape.customProperties||[],Q.cell.vertex?Array.prototype.push.apply(Q.shape.customProperties,Editor.commonVertexProperties):Array.prototype.push.apply(Q.shape.customProperties,Editor.commonEdgeProperties)),M(Q.shape.customProperties));g=g.getAttribute("customProperties");if(null!=g)try{M(JSON.parse(g))}catch(S){}}};var J=StyleFormatPanel.prototype.init;StyleFormatPanel.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
|
[N],"{1} ago"));P.setAttribute("title",O.toLocaleDateString()+" "+O.toLocaleTimeString())}function K(O){var P=document.createElement("img");P.className="geCommentBusyImg";P.src=IMAGE_PATH+"/spin.gif";O.appendChild(P);O.busyImg=P}function E(O){O.style.border="1px solid red";O.removeChild(O.busyImg)}function U(O){O.style.border="";O.removeChild(O.busyImg)}function J(O,P,N,H,m){function v(S,W,T){var X=document.createElement("li");X.className="geCommentAction";var Z=document.createElement("a");Z.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
|
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");
var Q=null;null!=M&&0<M.length&&(Q=M[0].getAttribute("href"));for(var S=1;S<F.length;S++)if(M=F[S].indexOf(")"),0<M){var W=Editor.trimCssUrl(F[S].substring(0,M));this.graph.isRelativeUrl(W)&&(W=null!=Q?Q+W:window.location.protocol+"//"+window.location.hostname+("/"==W.charAt(0)?"":g)+W);x.push('url("'+W+'"'+F[S].substring(M))}else x.push(F[S])}else x=[g]}return null!=x?x.join(""):null};Editor.prototype.mapFontUrl=function(g,x,F){/^https?:\/\//.test(x)&&!this.isCorsEnabledForUrl(x)&&(x=PROXY_URL+"?url="+
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
"...",function(){var Z=[{layout:"mxOrgChartLayout",config:{branchOptimizer:parseInt(Q.value),parentChildSpacing:parseInt(T.value),siblingSpacing:parseInt(X.value)}}];d.hideDialog();d.showCustomLayoutDialog(JSON.stringify(Z,null,2))});M.className="geBtn";F=new CustomDialog(d,F,function(){null==A&&(A=2);d.loadOrgChartLayouts(x)},null,null,null,M);d.showDialog(F.container,355,140,!0,!0)},v,null,u());m.addSeparator(v);m.addItem(mxResources.get("parallels"),null,mxUtils.bind(this,function(){d.tryAndHandle(mxUtils.bind(this,
function(){var A=new mxParallelEdgeLayout(q);A.checkOverlap=!0;d.prompt(mxResources.get("spacing"),A.spacing,mxUtils.bind(this,function(I){d.tryAndHandle(mxUtils.bind(this,function(){A.spacing=I;d.executeLayout(function(){A.execute(q.getDefaultParent(),q.isSelectionEmpty()?null:q.getSelectionCells())},!1)}))}))}))}),v);m.addSeparator(v);d.menus.addMenuItem(m,"runLayout",v,null,null,mxResources.get("custom")+"...")};this.put("help",new Menu(mxUtils.bind(this,function(m,v){if(!mxClient.IS_CHROMEAPP&&
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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.originalFillAndStroke.apply(this.canvas,arguments):this.drawPath(this.getStyle(!0,!0))};g.prototype.destroy=function(){this.canvas.lineTo=this.originalLineTo;this.canvas.moveTo=this.originalMoveTo;this.canvas.close=this.originalClose;this.canvas.quadTo=this.originalQuadTo;this.canvas.curveTo=this.originalCurveTo;this.canvas.arcTo=this.originalArcTo;this.canvas.close=this.originalClose;this.canvas.fill=this.originalFill;this.canvas.stroke=this.originalStroke;this.canvas.fillAndStroke=this.originalFillAndStroke;
this.canvas.begin=this.originalBegin;this.canvas.end=this.originalEnd;this.canvas.rect=this.originalRect;this.canvas.ellipse=this.originalEllipse;this.canvas.roundrect=this.originalRoundrect};mxShape.prototype.createRoughCanvas=function(S){return new g(S,Editor.createRoughCanvas(S),this)};var x=mxShape.prototype.createHandJiggle;mxShape.prototype.createHandJiggle=function(S){return this.outline||null==this.style||"0"==mxUtils.getValue(this.style,"sketch","0")?x.apply(this,arguments):"comic"==mxUtils.getValue(this.style,
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
DiagramFormatPanel.prototype.addOptions=function(g){g=U.apply(this,arguments);var x=this.editorUi,F=x.editor.graph;if(F.isEnabled()){var M=x.getCurrentFile();null!=M&&M.isAutosaveOptional()&&g.appendChild(this.createOption(mxResources.get("autosave"),function(){return x.editor.autosave},function(W){x.editor.setAutosave(W);x.editor.autosave&&M.isModified()&&M.fileChanged()},{install:function(W){this.listener=function(){W(x.editor.autosave)};x.editor.addListener("autosaveChanged",this.listener)},destroy:function(){x.editor.removeListener(this.listener)}}))}if(this.isMathOptionVisible()&&
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
0;e<this.pages.length;e++)this.updatePageRoot(this.pages[e]),this.addBasenamesForCell(this.pages[e].root,c);else this.addBasenamesForCell(this.editor.graph.model.getRoot(),c);e=[];for(var k in c)e.push(k);return e};EditorUi.prototype.addBasenamesForCell=function(c,e){function k(y){if(null!=y){var C=y.lastIndexOf(".");0<C&&(y=y.substring(C+1,y.length));null==e[y]&&(e[y]=!0)}}var n=this.editor.graph,p=n.getCellStyle(c);k(mxStencilRegistry.getBasenameForStencil(p[mxConstants.STYLE_SHAPE]));n.model.isEdge(c)&&
(k(mxMarker.getPackageForType(p[mxConstants.STYLE_STARTARROW])),k(mxMarker.getPackageForType(p[mxConstants.STYLE_ENDARROW])));p=n.model.getChildCount(c);for(var t=0;t<p;t++)this.addBasenamesForCell(n.model.getChildAt(c,t),e)};EditorUi.prototype.setGraphEnabled=function(c){this.diagramContainer.style.visibility=c?"":"hidden";this.formatContainer.style.visibility=c?"":"hidden";this.sidebarContainer.style.display=c?"":"none";this.hsplit.style.display=c&&"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme?
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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||mxUtils.isEmptyObject(c)||(e=e+"#"+encodeURIComponent(JSON.stringify(c)))}catch(n){}window.location.hash=e}};EditorUi.prototype.loadDescriptor=function(c,e,k){var n=window.location.hash,p=mxUtils.bind(this,function(y){var C=null!=c.data?c.data:"";null!=y&&0<y.length&&(0<C.length&&(C+="\n"),C+=y);y=new LocalFile(this,"csv"!=c.format&&0<C.length?C:this.emptyDiagramXml,null!=urlParams.title?decodeURIComponent(urlParams.title):this.defaultFilename,!0);y.getHash=function(){return n};this.fileLoaded(y);
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
g=0;g<I.length;g++)if(null!=I[g][EditorUi.DIFF_UPDATE]&&null!=I[g][EditorUi.DIFF_UPDATE][A]||null!=I[g][EditorUi.DIFF_REMOVE]&&0<=mxUtils.indexOf(I[g][EditorUi.DIFF_REMOVE],A)){e.refreshBackgroundImage();break}}}));var t=e.getBackgroundImageObject;e.getBackgroundImageObject=function(A,I){var g=t.apply(this,arguments);if(null!=g&&null!=g.originalSrc)if(!I)g={src:g.originalSrc};else if(I&&null!=this.themes&&"darkTheme"==this.defaultThemeName){var x=this.stylesheet,F=this.shapeForegroundColor,M=this.shapeBackgroundColor;
this.stylesheet=this.getDefaultStylesheet();this.shapeBackgroundColor="#ffffff";this.shapeForegroundColor="#000000";g=c.createImageForPageLink(g.originalSrc);this.shapeBackgroundColor=M;this.shapeForegroundColor=F;this.stylesheet=x}return g};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
|
mxLanguage))})})};if(!App.isMainCalled)if(App.isMainCalled=!0,window.onerror=function(J,c,e,k,n){EditorUi.logError("Global: "+(null!=J?J:""),c,e,k,n,null,!0);null==window.console||EditorUi.isElectronApp?(mxLog.show(),mxLog.debug("Message:",J,"\nURL:",c,"\nLine:",e,"\nColumn:",k,"\nError:",n)):console.error("Message:",J,"\nURL:",c,"\nLine:",e,"\nColumn:",k,"\nError:",n);window.setTimeout(function(){alert("Error: "+(null!=J?J:""))},100)},window.top!=window.self||"import.diagrams.net"!==window.location.hostname&&
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
S[W];S.stroke!=mxConstants.NONE&&null!=S.stroke||delete this.nextShape.options.stroke;S.filled||delete this.nextShape.options.fill;this.passThrough=!0;this.rc.draw(this.nextShape);this.passThrough=!1}};g.prototype.stroke=function(){this.passThrough?this.originalStroke.apply(this.canvas,arguments):this.drawPath(this.getStyle(!0,!1))};g.prototype.fill=function(){this.passThrough?this.originalFill.apply(this.canvas,arguments):this.drawPath(this.getStyle(!1,!0))};g.prototype.fillAndStroke=function(){this.passThrough?
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
Da;var Ea=ba.gridSize*ta.gridSteps*T,Ta=ba.getGraphBounds(),Ka=ta.translate.x*ua,Sa=ta.translate.y*ua,Ia=Ka+(Ta.x-Ka)/ua-fa,Va=Sa+(Ta.y-Sa)/ua-fa,Ua=new Image;Ua.onload=function(){try{for(var ja=-Math.round(Ea-mxUtils.mod((Ka-Ia)*T,Ea)),da=-Math.round(Ea-mxUtils.mod((Sa-Va)*T,Ea));ja<xa;ja+=Ea)for(var la=da;la<Ga;la+=Ea)qa.drawImage(Ua,ja/T,la/T);Aa()}catch(ma){null!=Q&&Q(ma)}};Ua.onerror=function(ja){null!=Q&&Q(ja)};Ua.src=Da}else Aa()}catch(ja){null!=Q&&Q(ja)}});pa.onerror=function(Aa){null!=Q&&
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
this.editor.graph;Graph.touchStyle&&(e.panningHandler.isPanningTrigger=function(A){var I=A.getEvent();return null==A.getState()&&!mxEvent.isMouseEvent(I)&&!e.freehand.isDrawing()||mxEvent.isPopupTrigger(I)&&(null==A.getState()||mxEvent.isControlDown(I)||mxEvent.isShiftDown(I))});e.cellEditor.editPlantUmlData=function(A,I,g){var x=JSON.parse(g);I=new TextareaDialog(c,mxResources.get("plantUml")+":",x.data,function(F){null!=F&&c.spinner.spin(document.body,mxResources.get("inserting"))&&c.generatePlantUmlImage(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(K){return this.isTreeEdge(K)}))};Graph.prototype.getIncomingTreeEdges=function(d,q){return this.getTreeEdges(d,q,!0,!1,!1)};Graph.prototype.getOutgoingTreeEdges=function(d,q){return this.getTreeEdges(d,q,!1,!0,!1)};var f=EditorUi.prototype.init;EditorUi.prototype.init=function(){f.apply(this,arguments);this.editor.isChromelessView()&&!this.editor.editable||this.addTrees()};EditorUi.prototype.addTrees=function(){function d(H){return k.isVertex(H)&&u(H)}function q(H){var m=!1;null!=H&&(m="1"==
e.getCurrentCellStyle(H).treeMoving);return m}function u(H){var m=!1;null!=H&&(H=k.getParent(H),m=e.view.getState(H),m="tree"==(null!=m?m.style:e.getCellStyle(H)).containerType);return m}function z(H){var m=!1;null!=H&&(H=k.getParent(H),m=e.view.getState(H),e.view.getState(H),m=null!=(null!=m?m.style:e.getCellStyle(H)).childLayout);return m}function D(H){H=e.view.getState(H);if(null!=H){var m=e.getIncomingTreeEdges(H.cell);if(0<m.length&&(m=e.view.getState(m[0]),null!=m&&(m=m.absolutePoints,null!=
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
function(){var g=this.editorUi.getSelectionState();null!=this.defaultColorSchemes&&0<this.defaultColorSchemes.length&&"image"!=g.style.shape&&!g.containsLabel&&0<g.cells.length&&this.container.appendChild(this.addStyles(this.createPanel()));J.apply(this,arguments);if(Editor.enableCustomProperties){for(var x={},F=g.vertices,M=g.edges,Q=0;Q<F.length;Q++)this.findCommonProperties(F[Q],x,0==Q);for(Q=0;Q<M.length;Q++)this.findCommonProperties(M[Q],x,0==F.length&&0==Q);null!=Object.getOwnPropertyNames&&
0<Object.getOwnPropertyNames(x).length&&this.container.appendChild(this.addProperties(this.createPanel(),x,g))}};var c=StyleFormatPanel.prototype.addStyleOps;StyleFormatPanel.prototype.addStyleOps=function(g){var x=this.editorUi.getSelectionState();1==x.cells.length?this.addActions(g,["copyStyle","pasteStyle"]):1<=x.cells.length&&this.addActions(g,["pasteStyle","pasteData"]);return c.apply(this,arguments)};EditorUi.prototype.propertiesCollapsed=!0;StyleFormatPanel.prototype.addProperties=function(g,
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
G.offsetTop);this.showShapePicker(Math.max(this.diagramContainer.scrollLeft+Math.max(24,N.x)),this.diagramContainer.scrollTop+N.y,null,null,null,null,mxUtils.bind(this,function(H){return e.getCenterInsertPoint(e.getBoundingBoxFromGeometry(H,!0))}),"simple"==c,!1)}mxEvent.consume(P)}));y.style.backgroundSize="24px";"simple"==c?y.style.flexShrink="0":y.style.marginBottom="4px";var B=!1,V=mxUtils.bind(this,function(P){if(P||document.body.contains(k)){P=function(v,A,I,g,x,F){null!=A&&v.setAttribute("title",
A);v.style.cursor="pointer";v.style.margin="simple"==c?"0px":"8px 0px 8px 2px";v.style.display="simple"==c?"inline-block":"block";k.appendChild(v);"simple"==c?v.style.opacity="0.7":null!=g&&(A=x,A=null!=A?A:30,F=null!=F?F:26,v.style.position="relative",v.style.overflow="visible",I=document.createElement("div"),I.style.position="absolute",I.style.fontSize="8px",I.style.left=A+"px",I.style.top=F+"px",mxUtils.write(I,g),v.appendChild(I));return v};k.innerText="";if(!B){var N=window.innerWidth||document.documentElement.clientWidth||
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
DrawioFile.prototype.patch=function(b,f,l,d){if(null!=b){var q=this.ui.editor.undoManager,u=q.history.slice(),z=q.indexOfNextAdd,D=this.ui.editor.graph;D.container.style.visibility="hidden";var L=this.changeListenerEnabled;this.changeListenerEnabled=l;var K=D.foldingEnabled,E=D.mathEnabled,U=D.cellRenderer.redraw;D.cellRenderer.redraw=function(p){p.view.graph.isEditing(p.cell)&&(p.view.graph.scrollCellToVisible(p.cell),p.view.graph.cellEditor.resize());U.apply(this,arguments)};D.model.beginUpdate();
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
F.apply(this,arguments)};var M=I.restore;I.restore=function(){x--;M.apply(this,arguments)};var Q=m.drawShape;m.drawShape=function(S){mxLog.debug("entering shape",S,x);Q.apply(this,arguments);mxLog.debug("leaving shape",S,x)};m.drawState(q.getView().getState(q.model.root),I);mxLog.show();mxLog.debug(mxUtils.getXml(g));mxLog.debug("stateCounter",x)}));d.actions.addAction("testShowConsole",function(){mxLog.isVisible()?mxLog.window.fit():mxLog.show();mxLog.window.div.style.zIndex=mxPopupMenu.prototype.zIndex-
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
{fill:"#ffcc99",stroke:"#36393d"},{fill:"#cce5ff",stroke:"#36393d"},{fill:"#ffff88",stroke:"#36393d"},{fill:"#cdeb8b",stroke:"#36393d"},{fill:"#ffcccc",stroke:"#36393d"}]];StyleFormatPanel.prototype.customColorSchemes=null;StyleFormatPanel.prototype.findCommonProperties=function(g,x,F){if(null!=x){var M=function(S){if(null!=S)if(F)for(var W=0;W<S.length;W++)x[S[W].name]=S[W];else for(var T in x){var X=!1;for(W=0;W<S.length;W++)if(S[W].name==T&&S[W].type==x[T].type){X=!0;break}X||delete x[T]}},Q=this.editorUi.editor.graph.view.getState(g);
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
this.editor.graph.setBackgroundImage;var E=this.pages[0];this.currentPage==E?z.setBackgroundImage(D):null!=E.viewState&&null!=E.viewState&&(D=E.viewState.backgroundImage,z.setBackgroundImage(D));z.getGlobalVariable=function(R){return"page"==R?E.getName():"pagenumber"==R?1:K.apply(this,arguments)};z.getGlobalVariable=K;document.body.appendChild(z.container);z.model.setRoot(E.root)}if(mxClient.IS_CHROMEAPP||this.useCanvasForExport)this.editor.exportToCanvas(mxUtils.bind(this,function(R){try{z!=this.editor.graph&&
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
Editor.onMathJaxDone=function(){};var Q=Editor.prototype.init;Editor.prototype.init=function(){Q.apply(this,arguments);var W=mxUtils.bind(this,function(T,X){null!=this.graph.container&&this.graph.mathEnabled&&Editor.MathJaxRender(this.graph.container)});this.graph.model.addListener(mxEvent.CHANGE,W);this.graph.addListener(mxEvent.REFRESH,W)};x=document.getElementsByTagName("script");if(null!=x&&0<x.length){var S=document.createElement("script");S.setAttribute("type","text/javascript");S.setAttribute("src",
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
function(){null!=t&&(t(),t=null);b.showImageDialog(mxResources.get("addImageUrl"),"",function(V,R,O){C=!1;if(null!=V){if("data:image/"==V.substring(0,11)){var P=V.indexOf(",");0<P&&(V=V.substring(0,P)+";base64,"+V.substring(P+1))}D(V,null,0,0,R,O);c.scrollTop=c.scrollHeight}})});f.setAttribute("id","btnAddImageUrl");f.className="geBtn";d.appendChild(f);this.saveBtnClickHandler=function(V,R,O,P){b.saveLibrary(V,R,O,P)};f=mxUtils.button(mxResources.get("save"),mxUtils.bind(this,function(){null!=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
|
("zTXt"==x?String.fromCharCode(0):"")+M;M=4294967295;M=Editor.updateCRC(M,x,0,4);M=Editor.updateCRC(M,F,0,F.length);Q+=T(F.length)+x+F+T(M^4294967295);Q+=g.substring(X-8,g.length);break}Q+=g.substring(X-8,X-4+Z);S(g,Z);S(g,4)}while(Z);return"data:image/png;base64,"+(window.btoa?btoa(Q):Base64.encode(Q,!0))}};if(window.ColorDialog){FilenameDialog.filenameHelpLink="https://www.drawio.com/doc/faq/save-file-formats";var D=ColorDialog.addRecentColor;ColorDialog.addRecentColor=function(g,x){D.apply(this,
arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()};var L=ColorDialog.resetRecentColors;ColorDialog.resetRecentColors=function(){L.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()}}"undefined"!==typeof window.EditDataDialog&&(EditDataDialog.getDisplayIdForCell=function(g,x){var F=null;null!=g.editor.graph.getModel().getParent(x)?F=x.getId():null!=g.currentPage&&(F=g.currentPage.getId());return F});if(null!=window.StyleFormatPanel){var K=
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
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]=
da}var wa=ja.toLowerCase().split(" ");da=TemplatesDialog.tagsList[d];if(0<Ia&&null==da.__tagsList__){for(Ja in Ta)for(la=Ta[Ja],ma=0;ma<la.length;ma++)for(oa=la[ma],ia=oa.title.split(" "),ia.push(Ja),ka=0;ka<ia.length;ka++){var sa=ia[ka].toLowerCase();null==da[sa]&&(da[sa]=[]);da[sa].push(oa)}da.__tagsList__=!0}var Ja=[];la={};for(ma=ia=0;ma<wa.length;ma++)if(0<wa[ma].length){sa=da[wa[ma]];var Ha={};Ja=[];if(null!=sa)for(ka=0;ka<sa.length;ka++)oa=sa[ka],0==ia==(null==la[oa.url])&&(Ha[oa.url]=!0,Ja.push(oa));
la=Ha;ia++}0==Ja.length?ra.innerText=mxResources.get("noResultsFor",[ja]):B(Ja,!0)}}function H(ja){if(Y!=ja||W!=ba)n(),Ba.scrollTop=0,aa.innerText="",ra.innerText=mxResources.get("searchResults")+' "'+ja+'"',Ua=null,fa?N(ja):D&&(ja?(Ga.spin(aa),g=!1,I=!0,D(ja,Va,function(){k(mxResources.get("searchFailed"));Va([])},W?null:u)):P(W)),Y=ja,ba=W}function m(ja){null!=Ua&&clearTimeout(Ua);13==ja.keyCode?H(Fa.value):Ua=setTimeout(function(){H(Fa.value)},1E3)}var v='<div class="geTempDlgHeader"><img src="/images/draw.io-logo.svg" class="geTempDlgHeaderLogo"><input type="search" class="geTempDlgSearchBox" '+
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
return V}),B=!0);return B};var y=p.stop;p.stop=function(){y.call(this);this.active=!1;null!=p.status&&null!=p.status.parentNode&&p.status.parentNode.removeChild(p.status);p.status=null};p.pause=function(){return function(){}};return p};EditorUi.prototype.isCompatibleString=function(c){try{var e=mxUtils.parseXml(c),k=this.editor.extractGraphModel(e.documentElement,!0);return null!=k&&0==k.getElementsByTagName("parsererror").length}catch(n){}return!1};EditorUi.prototype.isVisioData=function(c){return 8<
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
"ellipsis";H.setAttribute("title",N.title+" ("+N.id+")");var m=document.createElement("input");m.setAttribute("type","checkbox");m.checked=b.sidebar.isEntryVisible(N.id);m.defaultChecked=m.checked;H.appendChild(m);mxUtils.write(H," "+N.title);E.appendChild(H);var v=function(A){if(null==A||"INPUT"!=mxEvent.getSource(A).nodeName){U.style.textAlign="center";U.style.padding="0px";U.style.color="";U.innerText="";if(null!=N.desc){var I=document.createElement("pre");I.style.boxSizing="border-box";I.style.fontFamily=
"inherit";I.style.margin="20px";I.style.right="0px";I.style.textAlign="left";mxUtils.write(I,N.desc);U.appendChild(I)}null!=N.imageCallback?N.imageCallback(U):null!=N.image?U.innerHTML+='<img border="0" style="max-width:100%;" src="'+N.image+'"/>':null==N.desc&&(U.style.padding="20px",U.style.color="rgb(179, 179, 179)",mxUtils.write(U,mxResources.get("noPreview")));null!=J&&(J.style.backgroundColor="");J=H;J.style.backgroundColor=Editor.isDarkMode()?"#000000":"#ebf2f9";null!=A&&mxEvent.consume(A)}};
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
H){var m=H.getAttribute("background");if(null==m||""==m||m==mxConstants.NONE)m=Editor.isDarkMode()?"transparent":"#ffffff";n.style.backgroundColor=m;(new mxCodec(H.ownerDocument)).decode(H,p.getModel());p.maxFitScale=1;p.fit(8);p.center()}return H}function O(H){null!=H&&(H=R(Editor.parseDiagramNode(H)));return H}mxEvent.addListener(V,"change",function(H){C=parseInt(V.value);O(G[C]);mxEvent.consume(H)});if("mxfile"==y.nodeName){var P=y.getElementsByTagName("diagram");G=[];for(var N=0;N<P.length;N++)G.push(P[N]);
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
(null==N.getCell()||N.getCell()==J)};U.panningHandler.isForcePanningEvent=function(N){return 2==N.evt.button};var c=U.isCellSelectable;U.isCellSelectable=function(N){return N==J?!1:c.apply(this,arguments)};U.getLinkForCell=function(){return null};var e=U.view.getState(J);E=U.getAllConnectionConstraints(e);for(var k=0;null!=E&&k<E.length;k++){var n=U.getConnectionPoint(e,E[k]);u(n.x-3,n.y-3,E[k])}U.fit(8);U.center();k=b.createToolbarButton(Editor.zoomInImage,mxResources.get("zoomIn"),function(){U.zoomIn()},
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
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
|
t.getGlobalVariable=function(V){return"page"==V?B.getName():"pagenumber"==V?1:G.apply(this,arguments)};document.body.appendChild(t.container);t.model.setRoot(B.root)}this.editor.exportToCanvas(mxUtils.bind(this,function(V){try{null==C&&(C=this.getFileData(!0,null,null,null,null,null,null,null,null,!1));var R=V.toDataURL("image/png");R=Editor.writeGraphModelToPng(R,"tEXt","mxfile",encodeURIComponent(C));c(R.substring(R.lastIndexOf(",")+1));t!=this.editor.graph&&t.container.parentNode.removeChild(t.container)}catch(O){null!=
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
this.editor.graph.refresh();this.restoreScrollState(C);this.container.style.opacity="";window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(this.container.style,"transition",null);delete this.themeSwitching;isLocalStorage&&n(c)&&this.setTabContainerVisible(null!=mxSettings.settings.pages?mxSettings.settings.pages:!0);null!=k&&k()}),e)}),e)}),e)}),0)}return y};EditorUi.prototype.installStatusMinimizer=function(c){c=null!=c?c:this.statusContainer.parentNode;var e=!1;mxEvent.addListener(c,
"mouseenter",mxUtils.bind(this,function(){"sketch"==Editor.currentTheme&&""!=this.editor.getStatus()&&(this.statusContainer.style.display="inline-flex")}));mxEvent.addListener(c,"mouseleave",mxUtils.bind(this,function(){"sketch"!=Editor.currentTheme||e||(this.statusContainer.style.display="none")}));var k=mxUtils.bind(this,function(){if("sketch"==Editor.currentTheme){var n=null!=this.statusContainer.firstChild&&"function"===typeof this.statusContainer.firstChild.getAttribute?this.statusContainer.firstChild:
null;e=null!=n&&null!=n.getAttribute("class");if(!e&&null!=n){n=n.getAttribute("title");var p=this.getCurrentFile();p=null!=p?p.savingStatusKey:DrawioFile.prototype.savingStatusKey;n==mxResources.get(p)+"..."&&(this.statusContainer.innerHTML='<div><img title="'+mxUtils.htmlEntities(mxResources.get(p))+'..."src="'+Editor.tailSpin+'"></div>',e=!0)}this.statusContainer.style.display="none";n=32>=c.clientWidth;c.style.visibility=n&&""==this.editor.getStatus()?"hidden":"";if(n||e)this.statusContainer.style.display=
"inline-flex",e=!0}else"simple"==Editor.currentTheme?(this.statusContainer.style.display="inline-flex",this.statusContainer.style.display=0==this.statusContainer.clientWidth?"none":"inline-flex"):this.statusContainer.style.display="inline-flex"});this.editor.addListener("statusChanged",k);k()};EditorUi.prototype.switchTheme=function(c){this.isDefaultTheme(c)&&null!=this.formatContainer&&(this.formatContainer.style.left="",this.formatContainer.style.zIndex="1",this.formatContainer.style.border="",
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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(H){if(e.isEnabled()&&1==e.getSelectionCount()){var m=e.getSelectionCell(),v=mxEvent.isControlDown(H)?null:e.getIncomingTreeEdges(m);H=[];if(null!=v&&0<v.length&&(v=e.getOutgoingTreeEdges(e.model.getTerminal(v[0],!0)),null!=v))for(var A=0;A<v.length;A++)H.push(e.model.getTerminal(v[A],!1));0==H.length&&(H=e.model.getChildren(e.model.getParent(m)));e.setSelectionCells(H)}},null,null,"Alt+Shift+S");var p=e.removeCells;e.removeCells=function(H,m){m=null!=m?m:!0;null==H&&(H=this.getDeletableCells(this.getSelectionCells()));
m&&(H=this.getDeletableCells(this.addAllEdges(H)));for(var v=[],A=0;A<H.length;A++){var I=H[A];k.isEdge(I)&&u(I)&&(v.push(I),I=k.getTerminal(I,!1));if(d(I)){var g=[];e.traverse(I,!0,function(x,F){var M=null!=F&&e.isTreeEdge(F);M&&g.push(F);(null==F||M)&&g.push(x);return null==F||M});0<g.length&&(v=v.concat(g),I=e.getIncomingTreeEdges(H[A]),H=H.concat(I))}else null!=I&&v.push(H[A])}H=v;return p.apply(this,arguments)};c.hoverIcons.getStateAt=function(H,m,v){return d(H.cell)?null:this.graph.view.getState(this.graph.getCellAt(m,
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
if(null!=t.hoverIcons){var P=t.hoverIcons.update;t.hoverIcons.update=function(){y.freehand.isDrawing()||P.apply(this,arguments)}}if(null!=y.freehand){var N=y.freehand.createStyle;y.freehand.createStyle=function(T){return N.apply(this,arguments)+"sketch=0;"}}t.editor.addListener("statusChanged",mxUtils.bind(this,function(){t.setStatusText(t.editor.getStatus())}));t.setStatusText(t.editor.getStatus());var H=t.menus.get("viewZoom");if(null!=H){var m=function(T){if(mxEvent.isAltDown(T))t.hideCurrentMenu(),
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
K.appendChild(u);U.appendChild(K);L?(K.style.marginTop="10px",J=document.createElement("p"),J.style.marginTop="20px",J.style.marginBottom="0px",J.appendChild(c),q=document.createElement("span"),mxUtils.write(q," "+mxResources.get("rememberThisSetting")),J.appendChild(q),U.appendChild(J),mxEvent.addListener(q,"click",function(k){c.checked=!c.checked;mxEvent.consume(k)})):K.style.marginTop="12px";this.init=function(){e.focus()};this.container=U},HeadlessEditorUi=function(){EditorUi.call(this,new Editor(!0),
document.createElement("div"),!0)};mxUtils.extend(HeadlessEditorUi,EditorUi);HeadlessEditorUi.prototype.createUi=function(){};HeadlessEditorUi.prototype.addTrees=function(){};HeadlessEditorUi.prototype.onBeforeUnload=function(){};HeadlessEditorUi.prototype.updateActionStates=function(){};EditorUi.DIFF_INSERT="i";EditorUi.DIFF_REMOVE="r";EditorUi.DIFF_UPDATE="u";EditorUi.transientViewStateProperties="defaultParent currentRoot scrollLeft scrollTop scale translate lastPasteXml pasteCounter".split(" ");EditorUi.prototype.viewStateProperties={background:!0,backgroundImage:!0,shadowVisible:!0,foldingEnabled:!0,pageScale:!0,mathEnabled:!0,pageFormat:!0,extFonts:!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(R){return"page"==R&&null!=G&&null!=G[C]?G[C].getAttribute("name"):"pagenumber"==R?C+1:"pagecount"==R?null!=G?G.length:1:B.apply(this,arguments)};p.getLinkForCell=function(){return null};l=b.createToolbarButton(Editor.zoomInImage,mxResources.get("zoomIn"),function(){p.zoomIn()},20);E=b.createToolbarButton(Editor.zoomInImage,mxResources.get("zoomOut"),function(){p.zoomOut()},20);f=b.createToolbarButton(Editor.zoomFitImage,mxResources.get("fit"),function(){1==p.view.scale?(p.maxFitScale=8,p.fit(8)):
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
la=Ha;ia++}0==Ja.length?ra.innerText=mxResources.get("noResultsFor",[ja]):B(Ja,!0)}}function H(ja){if(Y!=ja||W!=ba)n(),Ba.scrollTop=0,aa.innerText="",ra.innerText=mxResources.get("searchResults")+' "'+ja+'"',Ua=null,fa?N(ja):D&&(ja?(Ga.spin(aa),g=!1,I=!0,D(ja,Va,function(){k(mxResources.get("searchFailed"));Va([])},W?null:u)):P(W)),Y=ja,ba=W}function m(ja){null!=Ua&&clearTimeout(Ua);13==ja.keyCode?H(Fa.value):Ua=setTimeout(function(){H(Fa.value)},1E3)}var v='<div class="geTempDlgHeader"><img src="/images/draw.io-logo.svg" class="geTempDlgHeaderLogo"><input type="search" class="geTempDlgSearchBox" '+
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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=new mxAsyncCanvas(this.thumbImageCache);G.images=this.thumbImageCache.images;var V=new mxImageExport;V.drawShape=function(R,O){R.shape instanceof mxShape&&R.shape.checkBounds()&&(O.save(),O.translate(.5,.5),R.shape.paint(O),O.translate(-.5,-.5),O.restore())};V.drawText=function(R,O){};V.drawState(z.getView().getState(z.model.root),B);B.finish(mxUtils.bind(this,function(){try{V.drawState(z.getView().getState(z.model.root),G),z!=this.editor.graph&&null!=z.container.parentNode&&z.container.parentNode.removeChild(z.container)}catch(R){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
|
return v});null!=G?(d.clonePages=G,G=null):(G=d.clonePages,d.clonePages=function(){var m=Date.now(),v=G.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.clonePages",[this],"time",Date.now()-m+" ms","args",arguments);return v});null!=B?(d.getHashValueForPages=B,B=null):(B=d.getHashValueForPages,d.getHashValueForPages=function(){var m=Date.now(),v=B.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.getHashValueForPages",[this],"time",Date.now()-m+" ms","args",arguments);return 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
|
EditorUi.initMinimalTheme=function(){function b(J,c){if(EditorUi.windowed){var e=J.editor.graph;e.popupMenuHandler.hideMenu();null==J.formatWindow?(c=Math.max(10,J.diagramContainer.clientWidth-248),e=Math.min(566,e.container.clientHeight-10),J.formatWindow=new WrapperWindow(J,mxResources.get("format"),c,60,240,e,function(k){J.createFormat(k).init()}),J.formatWindow.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){J.formatWindow.window.fit()})),J.formatWindow.window.minimumSize=new mxRectangle(0,
0,240,80)):J.formatWindow.window.setVisible(null!=c?c:!J.formatWindow.window.isVisible())}else null==J.formatElt&&(J.formatElt=J.createSidebarContainer(),J.createFormat(J.formatElt).init(),J.formatElt.style.border="none",J.formatElt.style.width="240px",J.formatElt.style.borderLeft="1px solid gray",J.formatElt.style.right="0px"),e=J.diagramContainer.parentNode,null!=J.formatElt.parentNode?(J.formatElt.parentNode.removeChild(J.formatElt),e.style.right="0px"):(e.parentNode.appendChild(J.formatElt),e.style.right=
J.formatElt.style.width)}function f(J,c){function e(p,t){var y=J.menus.get(p);p=k.addMenu(t,mxUtils.bind(this,function(){y.funct.apply(this,arguments)}));p.style.cssText="position:absolute;border-width:1px;cusor:pointer;border-style:none;height:24px;bottom:0px;text-align:center;padding:8px 6px 0 6px;border-top-style:solid;width:50%;height:32px;box-sizing:border-box;font-size:11px;";p.className="geTitle";c.appendChild(p);return p}var k=new Menubar(J,c);if(Editor.enableCustomLibraries&&("1"!=urlParams.embed||
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
return this.editor.embedExtFonts(c)};EditorUi.prototype.exportToCanvas=function(c,e,k,n,p,t,y,C,G,B,V,R,O,P,N,H){EditorUi.logEvent("SHOULD NOT BE CALLED: exportToCanvas");return this.editor.exportToCanvas(c,e,k,n,p,t,y,C,G,B,V,R,O,P,N,H)};EditorUi.prototype.createImageUrlConverter=function(){EditorUi.logEvent("SHOULD NOT BE CALLED: createImageUrlConverter");return this.editor.createImageUrlConverter()};EditorUi.prototype.convertImages=function(c,e,k,n){EditorUi.logEvent("SHOULD NOT BE CALLED: convertImages");
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
e.view.validate());O=I;P=A}));var N=e.labelLinkClicked;e.labelLinkClicked=function(A,I,g){var x=I.getAttribute("href");if(null==x||!e.isCustomLink(x)||!mxEvent.isTouchEvent(g)&&mxEvent.isPopupTrigger(g))N.apply(this,arguments);else{if(!e.isEnabled()||null!=A&&e.isCellLocked(A.cell))e.customLinkClicked(x),e.getRubberband().reset();mxEvent.consume(g)}};this.editor.getOrCreateFilename=function(){var A=c.defaultFilename,I=c.getCurrentFile();null!=I&&(A=null!=I.getTitle()?I.getTitle():A);return A};var H=
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
mxUtils.trim(g[M].nodeValue.replace(/[\x00-\x1F\x7F-\x9F]|\s+/g," ")).toLowerCase();if(null==I&&(F&&0<=Q.indexOf(x)||!F&&Q.substring(0,x.length)===x)||null!=I&&I.test(Q))return!0}}return!1}function D(){c?(m.removeAttribute("disabled"),v.removeAttribute("disabled")):(m.setAttribute("disabled","disabled"),v.setAttribute("disabled","disabled"));C.value?A.removeAttribute("disabled"):A.setAttribute("disabled","disabled")}function L(I,g,x){N.innerText="";var F=E.model.getDescendants(E.model.getRoot()),
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
g.substring(0,34)||"https://fonts.googleapis.com/"===g.substring(0,29)||"https://fonts.gstatic.com/"===g.substring(0,26)};Editor.prototype.createImageUrlConverter=function(){var g=new mxUrlConverter;g.updateBaseUrl();var x=g.convert,F=this;g.convert=function(M){if(null!=M){var Q="http://"==M.substring(0,7)||"https://"==M.substring(0,8);Q&&!navigator.onLine?M=Editor.svgBrokenImage.src:!Q||M.substring(0,g.baseUrl.length)==g.baseUrl||F.crossOriginImages&&F.isCorsEnabledForUrl(M)?"chrome-extension://"==
M.substring(0,19)||mxClient.IS_CHROMEAPP||(M=x.apply(this,arguments)):M=PROXY_URL+"?url="+encodeURIComponent(M)}return M};return g};Editor.createSvgDataUri=function(g){return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(g)))};Editor.prototype.convertImageToDataUri=function(g,x){try{var F=!0,M=window.setTimeout(mxUtils.bind(this,function(){F=!1;x(Editor.svgBrokenImage.src)}),this.timeout);if(/(\.svg)$/i.test(g))mxUtils.get(g,mxUtils.bind(this,function(S){window.clearTimeout(M);F&&x(Editor.createSvgDataUri(S.getText()))}),
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
p/G.view.scale);if(B.length<=MAX_REQUEST_SIZE&&R*O<MAX_AREA)if(c.hideDialog(),"png"!=k&&"jpg"!=k&&"jpeg"!=k||!c.isExportToCanvas()){var P={globalVars:G.getExportVariables()};C&&(P.grid={size:G.gridSize,steps:G.view.gridSteps,color:G.view.gridColor});c.saveRequest(e,k,function(N,H){return new mxXmlRequest(EXPORT_URL,"format="+k+"&base64="+(H||"0")+(null!=N?"&filename="+encodeURIComponent(N):"")+"&extras="+encodeURIComponent(JSON.stringify(P))+(0<y?"&dpi="+y:"")+"&bg="+(null!=n?n:"none")+"&w="+R+"&h="+
O+"&border="+t+"&xml="+encodeURIComponent(B))})}else"png"==k?c.exportImage(p,null==n||"none"==n,!0,!1,!1,t,!0,!1,null,C,y):c.exportImage(p,!1,!0,!1,!1,t,!0,!1,"jpeg",C);else mxUtils.alert(mxResources.get("drawingTooLarge"))}});EditorUi.prototype.getDiagramTextContent=function(){this.editor.graph.setEnabled(!1);var c=this.editor.graph,e="";if(null!=this.pages)for(var k=0;k<this.pages.length;k++){var n=c;this.currentPage!=this.pages[k]&&(n=this.createTemporaryGraph(c.getStylesheet()),this.updatePageRoot(this.pages[k]),
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
null,"geBtn");b.editor.cancelFirst&&J.appendChild(c);null!=e&&J.appendChild(e);J.appendChild(O);b.editor.cancelFirst||J.appendChild(c);U.appendChild(J);this.init=function(){Editor.selectFilename(p)};this.container=U},CreateDialog=function(b,f,l,d,q,u,z,D,L,K,E,U,J,c,e,k,n){function p(O,P,N,H){function m(){mxEvent.addListener(v,"click",function(){var F=N;if(z){var M=C.value,Q=M.lastIndexOf(".");if(0>f.lastIndexOf(".")&&0>Q){F=null!=F?F:R.value;var S="";F==App.MODE_GOOGLE?S=b.drive.extension:F==App.MODE_GITHUB?
S=b.gitHub.extension:F==App.MODE_GITLAB?S=b.gitLab.extension:F==App.MODE_TRELLO?S=b.trello.extension:F==App.MODE_DROPBOX?S=b.dropbox.extension:F==App.MODE_ONEDRIVE?S=b.oneDrive.extension:F==App.MODE_DEVICE&&(S=".drawio");0<=Q&&(M=M.substring(0,Q));C.value=M+S}}t(N)})}var v=document.createElement("a");v.style.overflow="hidden";var A=document.createElement("img");A.src=O;A.setAttribute("border","0");A.setAttribute("align","absmiddle");A.style.width="60px";A.style.height="60px";A.style.paddingBottom=
"6px";v.style.display="inline-block";v.className="geBaseButton";v.style.position="relative";v.style.margin="4px";v.style.padding="8px 8px 10px 8px";v.style.whiteSpace="nowrap";v.appendChild(A);v.style.color="gray";v.style.fontSize="11px";var I=document.createElement("div");v.appendChild(I);mxUtils.write(I,P);if(null!=H&&null==b[H]){A.style.visibility="hidden";mxUtils.setOpacity(I,10);var g=new Spinner({lines:12,length:12,width:5,radius:10,rotate:0,color:"#000",speed:1.5,trail:60,shadow:!1,hwaccel:!1,
top:"40%",zIndex:2E9});g.spin(v);var x=window.setTimeout(function(){null==b[H]&&(g.stop(),v.style.display="none")},3E4);b.addListener("clientLoaded",mxUtils.bind(this,function(){null!=b[H]&&(window.clearTimeout(x),mxUtils.setOpacity(I,100),A.style.visibility="",g.stop(),m())}))}else m();B.appendChild(v);++V==U&&(mxUtils.br(B),V=0)}function t(O){var P=C.value;if(null==O||null!=P&&0<P.length)n&&b.hideDialog(),l(P,O,C)}E="1"==urlParams.noDevice?!1:E;z=null!=z?z:!0;D=null!=D?D:!0;U=null!=U?U:4;n=null!=
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
Editor.createRoughCanvas=function(g){var x=rough.canvas({getContext:function(){return g}});x.draw=function(F){var M=F.sets||[];F=F.options||this.getDefaultOptions();for(var Q=0;Q<M.length;Q++){var S=M[Q];switch(S.type){case "path":null!=F.stroke&&this._drawToContext(g,S,F);break;case "fillPath":this._drawToContext(g,S,F);break;case "fillSketch":this.fillSketch(g,S,F)}}};x.fillSketch=function(F,M,Q){var S=g.state.strokeColor,W=g.state.strokeWidth,T=g.state.strokeAlpha,X=g.state.dashed,Z=Q.fillWeight;
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
this.canvas.begin=this.originalBegin;this.canvas.end=this.originalEnd;this.canvas.rect=this.originalRect;this.canvas.ellipse=this.originalEllipse;this.canvas.roundrect=this.originalRoundrect};mxShape.prototype.createRoughCanvas=function(S){return new g(S,Editor.createRoughCanvas(S),this)};var x=mxShape.prototype.createHandJiggle;mxShape.prototype.createHandJiggle=function(S){return this.outline||null==this.style||"0"==mxUtils.getValue(this.style,"sketch","0")?x.apply(this,arguments):"comic"==mxUtils.getValue(this.style,
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
y.apply(this,arguments);null==x&&null!=this.globalVars&&(x=this.globalVars[g]);return x};Graph.prototype.getDefaultStylesheet=function(){if(null==this.defaultStylesheet){var g=this.themes["default-style2"];this.defaultStylesheet=(new mxCodec(g.ownerDocument)).decode(g)}return this.defaultStylesheet};Graph.prototype.isViewer=function(){return urlParams.viewer};var C=Graph.prototype.getSvg;Graph.prototype.getSvg=function(g,x,F,M,Q,S,W,T,X,Z,Y,ba,fa,ca){var aa=null,ra=null,za=null;ba||null==this.themes||
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
e.getCurrentCellStyle(H).treeMoving);return m}function u(H){var m=!1;null!=H&&(H=k.getParent(H),m=e.view.getState(H),m="tree"==(null!=m?m.style:e.getCellStyle(H)).containerType);return m}function z(H){var m=!1;null!=H&&(H=k.getParent(H),m=e.view.getState(H),e.view.getState(H),m=null!=(null!=m?m.style:e.getCellStyle(H)).childLayout);return m}function D(H){H=e.view.getState(H);if(null!=H){var m=e.getIncomingTreeEdges(H.cell);if(0<m.length&&(m=e.view.getState(m[0]),null!=m&&(m=m.absolutePoints,null!=
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
y[qa.id][Da],ja)}}if(null!=Ba)for(na=0;na<n.length;na++)for(qa=n[na],Da=0;Da<Ba.length;Da++)G.setAttributeForCell(qa,mxUtils.trim(Ba[Da]),null);if(0<t.length){var la=new mxParallelEdgeLayout(G);la.spacing=S;la.checkOverlap=!0;var ma=function(){0<la.spacing&&la.execute(G.getDefaultParent());for(var Ca=0;Ca<t.length;Ca++){var va=G.getCellGeometry(t[Ca]);va.x=Math.round(G.snap(va.x));va.y=Math.round(G.snap(va.y));"auto"==g&&(va.width=Math.round(G.snap(va.width)));"auto"==x&&(va.height=Math.round(G.snap(va.height)))}};
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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.