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
R.setBackgroundImage(P.viewState.backgroundImage);R.getGlobalVariable=function(M){return"page"==M&&null!=P?P.getName():"pagenumber"==M?1:Q.apply(this,arguments)};document.body.appendChild(R.container);null!=P&&R.model.setRoot(P.root)}}B=null!=B?B:this.getXmlFileData(t,x,F,U);I=null!=I?I:this.getCurrentFile();d=this.createFileData(B,R,I,window.location.href,d,g,n,q,t,G,F);R!=this.editor.graph&&R.container.parentNode.removeChild(R.container);return d};EditorUi.prototype.getHtml=function(d,g,n,q,t,x){x=
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
mxResources.get("loading"))&&c.getPublicUrl(c.getCurrentFile(),function(y){c.spinner.stop();null!=y?(y=new EmbedDialog(c,'<img src="'+(p.constructor!=DriveFile?y:"https://drive.google.com/uc?id="+p.getId())+'"/>'),c.showDialog(y.container,450,240,!0,!0),y.init()):c.handleError({message:mxResources.get("invalidPublicUrl")})})}));c.actions.put("embedImage",new Action(mxResources.get("image")+"...",function(){c.showEmbedImageDialog(function(p,y,C,K,l,z){c.spinner.spin(document.body,mxResources.get("loading"))&&
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
function(D){return this.isTreeEdge(D)}))};Graph.prototype.getIncomingTreeEdges=function(c,k){return this.getTreeEdges(c,k,!0,!1,!1)};Graph.prototype.getOutgoingTreeEdges=function(c,k){return this.getTreeEdges(c,k,!1,!0,!1)};var e=EditorUi.prototype.init;EditorUi.prototype.init=function(){e.apply(this,arguments);this.editor.isChromelessView()&&!this.editor.editable||this.addTrees()};EditorUi.prototype.addTrees=function(){function c(M){return n.isVertex(M)&&m(M)}function k(M){var p=!1;null!=M&&(p="1"== g.getCurrentCellStyle(M).treeMoving);return p}function m(M){var p=!1;null!=M&&(M=n.getParent(M),p=g.view.getState(M),p="tree"==(null!=p?p.style:g.getCellStyle(M)).containerType);return p}function u(M){var p=!1;null!=M&&(M=n.getParent(M),p=g.view.getState(M),g.view.getState(M),p=null!=(null!=p?p.style:g.getCellStyle(M)).childLayout);return p}function v(M){M=g.view.getState(M);if(null!=M){var p=g.getIncomingTreeEdges(M.cell);if(0<p.length&&(p=g.view.getState(p[0]),null!=p&&(p=p.absolutePoints,null!=
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
l.substring(0,34)||"https://fonts.googleapis.com/"===l.substring(0,29)||"https://fonts.gstatic.com/"===l.substring(0,26)};Editor.prototype.createImageUrlConverter=function(){var l=new mxUrlConverter;l.updateBaseUrl();var z=l.convert,J=this;l.convert=function(O){if(null!=O){var T="http://"==O.substring(0,7)||"https://"==O.substring(0,8);T&&!navigator.onLine?O=Editor.svgBrokenImage.src:!T||O.substring(0,l.baseUrl.length)==l.baseUrl||J.crossOriginImages&&J.isCorsEnabledForUrl(O)?"chrome-extension://"== O.substring(0,19)||mxClient.IS_CHROMEAPP||(O=z.apply(this,arguments)):O=PROXY_URL+"?url="+encodeURIComponent(O)}return O};return l};Editor.createSvgDataUri=function(l){return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(l)))};Editor.prototype.convertImageToDataUri=function(l,z){try{var J=!0,O=window.setTimeout(mxUtils.bind(this,function(){J=!1;z(Editor.svgBrokenImage.src)}),this.timeout);if(/(\.svg)$/i.test(l))mxUtils.get(l,mxUtils.bind(this,function(W){window.clearTimeout(O);J&&z(Editor.createSvgDataUri(W.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
Q==App.MODE_GITLAB)&&null!=P&&0<P.length&&(M={mode:Q,path:decodeURIComponent(P),id:P});null!=M&&(G.style.display="",b.addRecent(M,"Folders"),P=v(M.mode,M.path,M.id,!0),P.parentNode.firstChild!=P&&P.parentNode.insertBefore(P,P.parentNode.firstChild),null!=F&&(F.parentNode.removeChild(F),U=P.getAttribute("value"),B.value=U,F=null,A()))},!0,!0,!0,!0)}function D(){var Q=b.getRecent("Folders");if(null!=Q&&0<Q.length){for(var P=0;P<Q.length;P++)v(Q[P].mode,Q[P].path,Q[P].id);G.style.display=""}else G.style.display=
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
mxSettings.save())));this.addListener("formatWidthChanged",function(){mxSettings.setFormatWidth(this.formatWidth);mxSettings.save()})}};EditorUi.prototype.copyImage=function(d,g,n){try{null!=navigator.clipboard&&"function"===typeof window.ClipboardItem&&this.spinner.spin(document.body,mxResources.get("exporting"))&&this.editor.exportToCanvas(mxUtils.bind(this,function(q,t){try{this.spinner.stop();var x=this.createImageDataUri(q,g,"png"),B=parseInt(t.getAttribute("width")),G=parseInt(t.getAttribute("height")); this.writeImageToClipboard(x,B,G,mxUtils.bind(this,function(I){this.handleError(I)}))}catch(I){this.handleError(I)}}),null,null,null,mxUtils.bind(this,function(q){this.spinner.stop();this.handleError(q)}),null,null,null!=n?n:4,null==this.editor.graph.background||this.editor.graph.background==mxConstants.NONE,null,null,null,10,null,null,!1,null,0<d.length?d:null)}catch(q){this.handleError(q)}};EditorUi.prototype.writeImageToClipboard=function(d,g,n,q){var t=this.base64ToBlob(d.substring(d.indexOf(",")+
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
"&redirect="+this.sameWinRedirectUrl:""));this.sameWinAuthMode?(window.location.assign(D),v=null):null==v?v=this.createAuthWin(D):v.location=D;null!=v?(window.onGoogleDriveCallback=mxUtils.bind(this,function(A,L){window.onGoogleDriveCallback=null;try{null==A?null!=m&&m({message:mxResources.get("accessDenied")}):this.updateAuthInfo(A,u,!0,k,m)}catch(H){null!=m&&m(H)}finally{null!=L&&L.close()}}),v.focus()):null!=m&&m({message:mxResources.get("allowPopups")})}}catch(A){if(null!=m)m(A);else throw A; }};DriveClient.prototype.resetTokenRefresh=function(f){null!=this.tokenRefreshThread&&(window.clearTimeout(this.tokenRefreshThread),this.tokenRefreshThread=null);null!=f&&null==f.error&&0<f.expires_in&&(this.tokenRefreshInterval=1E3*parseInt(f.expires_in),this.lastTokenRefresh=(new Date).getTime(),this.tokenRefreshThread=window.setTimeout(mxUtils.bind(this,function(){this.authorize(!0,mxUtils.bind(this,function(){}),mxUtils.bind(this,function(){}))}),900*f.expires_in))};DriveClient.prototype.checkToken=
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
q;for(x=0;x<t.length;x++)B.objectStore(t[x]).put(null!=d&&null!=d[x]?{key:d[x],data:g[x]}:g[x])}catch(G){null!=q&&q(G)}}),q)};EditorUi.prototype.removeDatabaseItem=function(d,g,n,q){this.openDatabase(mxUtils.bind(this,function(t){q=q||"objects";Array.isArray(q)||(q=[q],d=[d]);t=t.transaction(q,"readwrite");t.oncomplete=g;t.onerror=n;for(var x=0;x<q.length;x++)t.objectStore(q[x]).delete(d[x])}),n)};EditorUi.prototype.getDatabaseItem=function(d,g,n,q){this.openDatabase(mxUtils.bind(this,function(t){try{q= q||"objects";var x=t.transaction([q],"readonly").objectStore(q).get(d);x.onsuccess=function(){g(x.result)};x.onerror=n}catch(B){null!=n&&n(B)}}),n)};EditorUi.prototype.getDatabaseItems=function(d,g,n){this.openDatabase(mxUtils.bind(this,function(q){try{n=n||"objects";var t=q.transaction([n],"readonly").objectStore(n).openCursor(IDBKeyRange.lowerBound(0)),x=[];t.onsuccess=function(B){null==B.target.result?d(x):(x.push(B.target.result.value),B.target.result.continue())};t.onerror=g}catch(B){null!=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
mxJsCanvas.prototype.arcTo=function(b,e,f,c,k,m,u){b=mxUtils.arcToCurves(this.lastMoveX,this.lastMoveY,b,e,f,c,k,m,u);if(null!=b)for(e=0;e<b.length;e+=6)this.curveTo(b[e],b[e+1],b[e+2],b[e+3],b[e+4],b[e+5])};mxJsCanvas.prototype.curveTo=function(b,e,f,c,k,m){this.ctx.bezierCurveTo(b,e,f,c,k,m);this.lastMoveX=k;this.lastMoveY=m};mxJsCanvas.prototype.rect=function(b,e,f,c){this.begin();this.moveTo(b,e);this.lineTo(b+f,e);this.lineTo(b+f,e+c);this.lineTo(b,e+c);this.close()};
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
b.container.style.cursor=Q?"crosshair":"";b.fireEvent(new mxEventObject("freehandStateChanged"))};this.startDrawing=function(){B(!0)};this.isDrawing=function(){return g};var G=mxUtils.bind(this,function(Q){if(c){var P=v.length,M=n&&0<u.length&&null!=v&&2>v.length;M||u.push.apply(u,v);v=[];u.push(null);k.push(c);c=null;(M||A)&&this.stopDrawing();A&&(!M||2<=P)&&this.startDrawing();mxEvent.consume(Q)}}),I=new mxCell;I.edge=!0;var F=function(){var Q=b.getCurrentCellStyle(I);Q=mxUtils.getValue(b.currentVertexStyle,
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
this.updateUser(function(){m(!0)},c,u):k(u)});null==b?this.authenticate(function(){m(!0)},c):m(!1)};DropboxClient.prototype.getLibrary=function(e,f,c){this.getFile(e,f,c,!0)};DropboxClient.prototype.getFile=function(e,f,c,k){k=null!=k?k:!1;var m=/\.png$/i.test(e);if(/^https:\/\//i.test(e)||/\.v(dx|sdx?)$/i.test(e)||/\.gliffy$/i.test(e)||/\.pdf$/i.test(e)||!this.ui.useCanvasForExport&&m){var u=mxUtils.bind(this,function(){var v=e.split("/");this.ui.convertFile(e,0<v.length?v[v.length-1]:e,null,this.extension, f,c)});null!=b?u():this.authenticate(u,c)}else u={path:"/"+e},null!=urlParams.rev&&(u.rev=urlParams.rev),this.readFile(u,mxUtils.bind(this,function(v,E){var D=null;if(0<(m?v.lastIndexOf(","):-1)){var A=this.ui.extractGraphModelFromPng(v);null!=A&&0<A.length?v=A:D=new LocalFile(this,v,e,!0)}f(null!=D?D:k?new DropboxLibrary(this.ui,v,E):new DropboxFile(this.ui,v,E))}),c,m)};DropboxClient.prototype.readFile=function(e,f,c,k){var m=mxUtils.bind(this,function(v){var E=!0,D=window.setTimeout(mxUtils.bind(this,
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
Editor.extractGraphModelFromXref(W));null!=J&&(J=decodeURIComponent(J.replace(/\\\(/g,"(").replace(/\\\)/g,")")));return J};Editor.extractGraphModelFromXref=function(l){var z=l.trailer,J=null;null!=z&&(z=/.* \/Info (\d+) (\d+) R/g.exec(z.join("\n")),null!=z&&0<z.length&&(z=l[z[1]],null!=z&&(z=/.* \/Subject (\d+) (\d+) R/g.exec(z.join("\n")),null!=z&&0<z.length&&(l=l[z[1]],null!=l&&(l=l.join("\n"),J=l.substring(1,l.length-1))))));return J};Editor.extractParserError=function(l,z){var J=null;l=null!= l?l.getElementsByTagName("parsererror"):null;null!=l&&0<l.length&&(J=z||mxResources.get("invalidChars"),z=l[0].getElementsByTagName("div"),0<z.length&&(J=mxUtils.getTextContent(z[0])));return null!=J?mxUtils.trim(J):J};Editor.addRetryToError=function(l,z){null!=l&&(l=null!=l.error?l.error:l,null==l.retry&&(l.retry=z))};Editor.mermaidToDrawio=function(l,z,J){if("function"===typeof mxMermaidToDrawio)return mxMermaidToDrawio(l,z,J)};Editor.configure=function(l){if(null!=l){Editor.config=l;Editor.configVersion=
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
""))}}catch(F){console.log(F)}this.editor.isChromelessView()?this.editor.graph.isLightboxView()&&this.lightboxFit():this.showLayersDialog();this.chromelessResize&&this.chromelessResize();this.editor.undoManager.clear();this.editor.modified=null!=q?q:!1;this.updateUi();window.self!==window.top&&window.focus();null!=this.format&&this.format.refresh()}))}};EditorUi.prototype.showLayersDialog=function(){1<this.editor.graph.getModel().getChildCount(this.editor.graph.getModel().getRoot())&&(null==this.actions.layersWindow? this.actions.get("layers").funct():this.actions.layersWindow.window.setVisible(!0))};EditorUi.prototype.getPublicUrl=function(d,g){null!=d?d.getPublicUrl(g):g(null)};EditorUi.prototype.createLoadMessage=function(d){var g=this.editor.graph;return{event:d,pageVisible:g.pageVisible,translate:g.view.translate,bounds:g.getGraphBounds(),currentPage:this.getSelectedPageIndex(),scale:g.view.scale,page:g.view.getBackgroundPageBounds()}};EditorUi.prototype.sendEmbeddedSvgExport=function(d){try{var g=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
new mxRectangle(l.x+l.width-4*J,l.y+4*J,0,0):mxRectangle.fromPoint(l.view.getPoint(l));z.bounds.equals(l)&&z.value==O&&z.scale==J||(z.bounds=l,z.value=O,z.scale=J,z.redraw())}};var R=mxGraphView.prototype.validateBackgroundPage;mxGraphView.prototype.validateBackgroundPage=function(){R.apply(this,arguments);if(mxClient.IS_GC&&null!=this.getDrawPane()){var l=this.getDrawPane().parentNode;!this.graph.mathEnabled||mxClient.NO_FO||null!=this.webKitForceRepaintNode&&null!=this.webKitForceRepaintNode.parentNode|| "svg"!=this.graph.container.firstChild.nodeName?null==this.webKitForceRepaintNode||this.graph.mathEnabled&&("svg"==this.graph.container.firstChild.nodeName||this.graph.container.firstChild==this.webKitForceRepaintNode)||(null!=this.webKitForceRepaintNode.parentNode&&this.webKitForceRepaintNode.parentNode.removeChild(this.webKitForceRepaintNode),this.webKitForceRepaintNode=null):(this.webKitForceRepaintNode=document.createElement("div"),this.webKitForceRepaintNode.style.cssText="position:absolute;", l.ownerSVGElement.parentNode.insertBefore(this.webKitForceRepaintNode,l.ownerSVGElement))}};var N=Graph.prototype.refresh;Graph.prototype.refresh=function(){N.apply(this,arguments);this.refreshBackgroundImage()};Graph.prototype.refreshBackgroundImage=function(){null!=this.backgroundImage&&null!=this.backgroundImage.originalSrc&&(this.setBackgroundImage(this.backgroundImage),this.view.validateBackgroundImage())};var Q=Graph.prototype.loadStylesheet;Graph.prototype.loadStylesheet=function(){Q.apply(this,
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
EditorUi.prototype.diffViewState=function(b,e){var f=b.viewState,c=e.viewState,k={};b==this.currentPage&&(f=this.editor.graph.getViewState());e==this.currentPage&&(c=this.editor.graph.getViewState());if(null!=f&&null!=c)for(var m in this.viewStateProperties)this.diffViewStateProperty(f,c,m,k);return k};EditorUi.prototype.diffViewStateProperty=function(b,e,f,c){b=JSON.stringify(this.getViewStateProperty(b,f));e=JSON.stringify(this.getViewStateProperty(e,f));b!=e&&(c[f]=e)};
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
Editor.globalVars;if(null!=urlParams.vars)try{this.globalVars=null!=this.globalVars?mxUtils.clone(this.globalVars):{};var l=JSON.parse(decodeURIComponent(urlParams.vars));if(null!=l)for(var z in l)this.globalVars[z]=l[z]}catch(J){null!=window.console&&console.log("Error in vars URL parameter: "+J)}};Graph.prototype.getExportVariables=function(){return null!=this.globalVars?mxUtils.clone(this.globalVars):{}};var B=Graph.prototype.getGlobalVariable;Graph.prototype.getGlobalVariable=function(l){var z=
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
DrawioFile.prototype.commentsRefreshNeeded=function(){return!0};DrawioFile.prototype.commentsSaveNeeded=function(){return!1};DrawioFile.prototype.getComments=function(b,e){b([])};DrawioFile.prototype.addComment=function(b,e,f){e(Date.now())};DrawioFile.prototype.canReplyToReplies=function(){return!0};DrawioFile.prototype.canComment=function(){return!0};DrawioFile.prototype.newComment=function(b,e){return new DrawioComment(this,null,b,Date.now(),Date.now(),!1,e)};LocalFile=function(b,e,f,c,k,m){DrawioFile.call(this,b,e);this.title=f;this.mode=c?null:App.MODE_DEVICE;this.fileHandle=k;this.desc=m};mxUtils.extend(LocalFile,DrawioFile);LocalFile.prototype.isAutosave=function(){return null!=this.fileHandle&&!this.invalidFileHandle&&DrawioFile.prototype.isAutosave.apply(this,arguments)};LocalFile.prototype.isAutosaveOptional=function(){return null!=this.fileHandle};LocalFile.prototype.getMode=function(){return this.mode};LocalFile.prototype.getTitle=function(){return this.title};
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
l);mxEvent.addListener(this.container,"mousemove",l);mxEvent.addListener(this.container,"mouseleave",function(T){z=null});this.isMouseInsertPoint=function(){return null!=z};var J=this.getInsertPoint;this.getInsertPoint=function(){return null!=z?this.getPointForEvent(z):J.apply(this,arguments)};var O=this.layoutManager.getLayout;this.layoutManager.getLayout=function(T){var W=this.graph.getCellStyle(T);if(null!=W&&"rack"==W.childLayout){var V=new mxStackLayout(this.graph,!1);V.gridSize=null!=W.rackUnitSize?
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
DrawioFile.prototype.commentsRefreshNeeded=function(){return!0};DrawioFile.prototype.commentsSaveNeeded=function(){return!1};DrawioFile.prototype.getComments=function(b,e){b([])};DrawioFile.prototype.addComment=function(b,e,f){e(Date.now())};DrawioFile.prototype.canReplyToReplies=function(){return!0};DrawioFile.prototype.canComment=function(){return!0};DrawioFile.prototype.newComment=function(b,e){return new DrawioComment(this,null,b,Date.now(),Date.now(),!1,e)};LocalFile=function(b,e,f,c,k,m){DrawioFile.call(this,b,e);this.title=f;this.mode=c?null:App.MODE_DEVICE;this.fileHandle=k;this.desc=m};mxUtils.extend(LocalFile,DrawioFile);LocalFile.prototype.isAutosave=function(){return null!=this.fileHandle&&!this.invalidFileHandle&&DrawioFile.prototype.isAutosave.apply(this,arguments)};LocalFile.prototype.isAutosaveOptional=function(){return null!=this.fileHandle};LocalFile.prototype.getMode=function(){return this.mode};LocalFile.prototype.getTitle=function(){return this.title};
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
DrawioFileSync.prototype.receiveRemoteChanges=function(b){this.file.ignorePatches(b.c)||(null==this.receivedData?(this.receivedData=[b],window.setTimeout(mxUtils.bind(this,function(){if(this.ui.getCurrentFile()==this.file)if(1==this.receivedData.length)this.doReceiveRemoteChanges(this.receivedData[0].c);else{this.receivedData.sort(function(k,m){return k.id<m.id?-1:k.id>m.id?1:0});for(var e=null,f=0;f<this.receivedData.length;f++){var c=JSON.stringify(this.receivedData[f].c);c!=e&&this.doReceiveRemoteChanges(this.receivedData[f].c); e=c}}this.receivedData=null}),this.syncReceiveMessageDelay)):this.receivedData.push(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
t,n.pasteCounter=0);d.focus();document.execCommand("selectAll",!1,null)}};EditorUi.prototype.copyXml=function(){var d=null;if(Editor.enableNativeCipboard){var g=this.editor.graph;g.isSelectionEmpty()||(d=mxUtils.sortCells(g.getExportableCells(g.model.getTopmostCells(g.getSelectionCells()))),g=mxUtils.getXml(g.encodeCells(d)),navigator.clipboard.writeText(g))}return d};EditorUi.prototype.pasteXml=function(d,g,n,q,t){var x=this.editor.graph,B=null;x.lastPasteXml==d?x.pasteCounter++:(x.lastPasteXml=
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
function(l,z,J,O,T,W,V,S,X,Z){if(null!=J&&null==mxMarker.markers[J]){var Y=this.getPackageForType(J);null!=Y&&mxStencilRegistry.getStencil(Y)}return M.apply(this,arguments)};var p=mxStencil.prototype.drawShape;mxStencil.prototype.drawShape=function(l,z,J,O,T,W){"1"==mxUtils.getValue(z.style,"lineShape",null)&&l.setFillColor(mxUtils.getValue(z.style,mxConstants.STYLE_STROKECOLOR,this.stroke));return p.apply(this,arguments)};PrintDialog.prototype.create=function(l,z){function J(){ca.value=Math.max(1,
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
null,B,mxResources.get("cancel"),mxResources.get("discardChanges")):(window.openFile=new OpenFile(function(){window.openFile=null}),window.openFile.setData(d,g),window.openWindow(this.getUrl(),null,mxUtils.bind(this,function(){null!=x&&x.isModified()?this.confirm(mxResources.get("allChangesLost"),null,B,mxResources.get("cancel"),mxResources.get("discardChanges")):B()})));else throw Error(mxResources.get("notADiagramFile"));};EditorUi.prototype.getBasenames=function(){var d={};if(null!=this.pages)for(var g= 0;g<this.pages.length;g++)this.updatePageRoot(this.pages[g]),this.addBasenamesForCell(this.pages[g].root,d);else this.addBasenamesForCell(this.editor.graph.model.getRoot(),d);g=[];for(var n in d)g.push(n);return g};EditorUi.prototype.addBasenamesForCell=function(d,g){function n(B){if(null!=B){var G=B.lastIndexOf(".");0<G&&(B=B.substring(G+1,B.length));null==g[B]&&(g[B]=!0)}}var q=this.editor.graph,t=q.getCellStyle(d);n(mxStencilRegistry.getBasenameForStencil(t[mxConstants.STYLE_SHAPE]));q.model.isEdge(d)&&
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
f,E,k)}),k):this.writeFile(v,f,"PUT",null,E,k)}else k()}))):k({message:this.invalidFilenameRegExs[0].test(e)?mxResources.get("oneDriveCharsNotAllowed"):mxResources.get("oneDriveInvalidDeviceName")})};OneDriveClient.prototype.checkExists=function(e,f,c,k){var m="/me/drive/root";null!=e&&(m=this.getItemURL(e,!0));this.executeRequest(this.baseUrl+m+"/children/"+encodeURIComponent(f),mxUtils.bind(this,function(u){404==u.getStatus()?k(!0):c?(this.ui.spinner.stop(),this.ui.confirm(mxResources.get("replaceIt", [f]),function(){k(!0)},function(){k(!1)})):(this.ui.spinner.stop(),this.ui.showError(mxResources.get("error"),mxResources.get("fileExists"),mxResources.get("ok"),function(){k(!1)}))}),function(u){k(!1)},!0)};OneDriveClient.prototype.saveFile=function(e,f,c,k){try{var m=e.getData(),u=mxUtils.bind(this,function(E){var D=mxUtils.bind(this,function(L){f(L,m)}),A=this.getItemURL(e.getId());4E6<=E.length?this.writeLargeFile(A,E,D,c,k):this.writeFile(A+"/content/",E,"PUT",null,D,c,k)});if(this.ui.useCanvasForExport&&
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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.width+", "+y.height+", 'The Title', '"+Graph.compress(mxUtils.getXml(k.encodeCells(p)))+"'),")}}));c.actions.addAction("showBoundingBox",mxUtils.bind(this,function(){function p(J){return null==J||null==J.boundingBox||!isNaN(J.boundingBox.x)&&!isNaN(J.boundingBox.y)&&!isNaN(J.boundingBox.width)&&!isNaN(J.boundingBox.height)}var y=k.getGraphBounds(),C=k.view.translate,K=k.view.scale;k.insertVertex(k.getDefaultParent(),null,"",y.x/K-C.x,y.y/K-C.y,y.width/K,y.height/K,"fillColor=none;strokeColor=red;");
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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.fillStyle=V;return S};l.prototype.begin=function(){this.passThrough?this.originalBegin.apply(this.canvas,arguments):this.path=[]};l.prototype.end=function(){this.passThrough&&this.originalEnd.apply(this.canvas,arguments)};l.prototype.addOp=function(){if(null!=this.path&&(this.path.push(arguments[0]),2<arguments.length))for(var W=2;W<arguments.length;W+=2)this.lastX=arguments[W-1],this.lastY=arguments[W],this.path.push(this.canvas.format(this.lastX)),this.path.push(this.canvas.format(this.lastY))};
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
"metaEdit","0")?d.showDataDialog(C):n.apply(this,arguments)}}catch(J){d.handleError(J)}};g.getLinkTitle=function(C){return d.getLinkTitle(C)};g.customLinkClicked=function(C){var K=!1;try{d.handleCustomLink(C),K=!0}catch(l){d.handleError(l)}return K};var q=g.parseBackgroundImage;g.parseBackgroundImage=function(C){var K=q.apply(this,arguments);null!=K&&null!=K.src&&Graph.isPageLink(K.src)&&(K={originalSrc:K.src});return K};var t=g.setBackgroundImage;g.setBackgroundImage=function(C){null!=C&&null!=C.originalSrc&&
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
Qa,Ia)}})}function Q(ja){u&&(Ba.scrollTop=0,ba.innerText="",Fa.spin(ba),l=!1,K=!0,sa.innerText=mxResources.get("recentDiag"),Y=null,u(Va,function(){n(mxResources.get("cannotLoad"));Va([])},ja?null:m))}function P(ja){if(""==ja)null!=J&&(J.click(),J=null);else{if(null==TemplatesDialog.tagsList[c]){var fa={};for(Ka in Ga)for(var ma=Ga[Ka],na=0;na<ma.length;na++){var oa=ma[na];if(null!=oa.tags)for(var ia=oa.tags.toLowerCase().split(";"),ka=0;ka<ia.length;ka++)null==fa[ia[ka]]&&(fa[ia[ka]]=[]),fa[ia[ka]].push(oa)}TemplatesDialog.tagsList[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
mxResources.get("reconnecting"))?window.location.search=this.getSearch(["url"]):null!=q?this.fileLoaded(q)||x():x()});g?d():this.handleError(G,mxResources.get("errorLoadingFile"),d,!0,null,null,!0)}else x();return t};EditorUi.prototype.getHashValueForPages=function(d,g){var n=0,q=new mxGraphModel,t=new mxCodec;null!=g&&(g.byteCount=0,g.attrCount=0,g.eltCount=0,g.nodeCount=0);for(var x=0;x<d.length;x++){this.updatePageRoot(d[x]);var B=d[x].node.cloneNode(!1);B.removeAttribute("name");q.root=d[x].root; var G=t.encode(q);this.editor.graph.saveViewState(d[x].viewState,G,!0);G.removeAttribute("pageWidth");G.removeAttribute("pageHeight");B.appendChild(G);null!=g&&(g.eltCount+=B.getElementsByTagName("*").length,g.nodeCount+=B.getElementsByTagName("mxCell").length);n=(n<<5)-n+this.hashValue(B,function(I,F,U,R){return!R||"mxGeometry"!=I.nodeName&&"mxPoint"!=I.nodeName||"x"!=F&&"y"!=F&&"width"!=F&&"height"!=F?R&&"mxCell"==I.nodeName&&"previous"==F?null:U:Math.round(U)},g)<<0}return n};EditorUi.prototype.hashValue=
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
Q()},mxEvent.addListener(A,"scroll",t))}),n)}}))});b?this.user?G():this.updateUser(function(){G()},n,!0):this.authenticate(mxUtils.bind(this,function(){this.updateUser(function(){G()},n,!0)}),n)};GitLabClient.prototype.logout=function(){this.ui.editor.loadUrl(this.redirectUri+"?doLogout=1&state="+encodeURIComponent("cId="+this.clientId+"&domain="+window.location.host));this.clearPersistentToken();this.setUser(null);b=null;this.setToken(null)}})();DrawioComment=function(b,e,f,c,k,m,u){this.file=b;this.id=e;this.content=f;this.modifiedDate=c;this.createdDate=k;this.isResolved=m;this.user=u;this.replies=[]};DrawioComment.prototype.addReplyDirect=function(b){null!=b&&this.replies.push(b)};DrawioComment.prototype.addReply=function(b,e,f,c,k){e()};DrawioComment.prototype.editComment=function(b,e,f){e()};DrawioComment.prototype.deleteComment=function(b,e){b()};DriveComment=function(b,e,f,c,k,m,u,v){DrawioComment.call(this,b,e,f,c,k,m,u);this.pCommentId=v};mxUtils.extend(DriveComment,DrawioComment);DriveComment.prototype.addReply=function(b,e,f,c,k){b={content:b.content};c?b.verb="resolve":k&&(b.verb="reopen");this.file.ui.drive.executeRequest({url:"/files/"+this.file.getId()+"/comments/"+this.id+"/replies",params:b,method:"POST"},mxUtils.bind(this,function(m){e(m.replyId)}),f)};
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
6)this.curveTo(ca[da],ca[da+1],ca[da+2],ca[da+3],ca[da+4],ca[da+5]);this.lastX=Y;this.lastY=aa}};l.prototype.rect=function(W,V,S,X){this.passThrough?this.originalRect.apply(this.canvas,arguments):(this.path=[],this.nextShape=this.rc.generator.rectangle(W,V,S,X,this.getStyle(!0,!0)))};l.prototype.ellipse=function(W,V,S,X){this.passThrough?this.originalEllipse.apply(this.canvas,arguments):(this.path=[],this.nextShape=this.rc.generator.ellipse(W+S/2,V+X/2,S,X,this.getStyle(!0,!0)))};l.prototype.roundrect=
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
m))}catch(t){k(t)}}),k)}),k)):c(new GitHubFile(this.ui,f,{org:E,repo:D,ref:A,name:e,path:L,sha:d,isNew:!0})):k()}))};GitHubClient.prototype.showCommitDialog=function(e,f,c,k){var m=this.ui.spinner.pause();e=new FilenameDialog(this.ui,mxResources.get(f?"addedFile":"updateFile",[e]),mxResources.get("ok"),mxUtils.bind(this,function(u){m();c(u)}),mxResources.get("commitMessage"),null,null,null,null,mxUtils.bind(this,function(){k()}),null,280);this.ui.showDialog(e.container,400,80,!0,!1);e.init()};GitHubClient.prototype.writeFile=
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
TEMPLATE_PATH+"/"+Oa,mxUtils.get(Oa,mxUtils.bind(this,function(Wa){200<=Wa.getStatus()&&299>=Wa.getStatus()&&(Ma=Wa.getText());Ya(Ma,Oa)}))):Ya(Ma,Oa)}function Da(Na,Ya){if(null==fa||z||b.sidebar.currentElt==wa)b.sidebar.hideTooltip();else if(b.sidebar.hideTooltip(),null!=J){var Wa="<mxfile><diagram>"+Graph.compress('<mxGraphModel><root><mxCell id="0"/><mxCell id="1" parent="0"/><mxCell id="2" value="" style="shape=image;image='+J.src+';imageAspect=1;" parent="1" vertex="1"><mxGeometry width="'+J.naturalWidth+ '" height="'+J.naturalHeight+'" as="geometry" /></mxCell></root></mxGraphModel>')+"</diagram></mxfile>";B(Wa,mxEvent.getClientX(Na),mxEvent.getClientY(Na),na,fa)}else b.sidebar.currentElt=wa,z=!0,La(fa,function(ab){z&&b.sidebar.currentElt==wa&&B(ab,mxEvent.getClientX(Na),mxEvent.getClientY(Na),wa,Ya);z=!1})}var wa=document.createElement("div");wa.className="geTemplate geAdaptiveAsset";wa.style.position="relative";wa.style.height=Fa+"px";wa.style.width=pa+"px";wa.style.border="1px solid transparent";
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
null,"Templates"),function(){ta.style.display="";qa.style.display="";ha.style.left="160px";X(0);ha.scrollTop=0;ha.innerText="";y=0;W!=Ia&&(Ia=W,ra=V,Ea=S,ta.innerText="",R(),W=null)});T.push(N);n.appendChild(N);var Z=function(fa){ta.style.display="none";qa.style.display="none";ha.style.left="30px";X(fa?-1:1);null==W&&(W=Ia);ha.scrollTop=0;ha.innerText="";C.spin(ha);var ma=function(na,oa,ia){y=0;C.stop();Ia=na;ia=ia||{};var ka=0,xa;for(xa in ia)ka+=ia[xa].length;if(oa)ha.innerText=oa;else if(0==na.length&& 0==ka)ha.innerText=mxResources.get("noDiagrams",null,"No Diagrams Found");else if(ha.innerText="",0<ka){ta.style.display="";ha.style.left="160px";ta.innerText="";Ea=0;ra={"draw.io":na};for(xa in ia)ra[xa]=ia[xa];R()}else x(!0)};fa?H(Y.value,ma):L(ma)};L&&(N=mxUtils.button(mxResources.get("Recent",null,"Recent"),function(){Z()}),n.appendChild(N),T.push(N));if(H){N=document.createElement("span");N.style.marginLeft="10px";N.innerText=mxResources.get("search")+":";n.appendChild(N);var Y=document.createElement("input");
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
function(){n.checked&&(null==g||g.checked)?x.removeAttribute("disabled"):x.setAttribute("disabled","disabled")}));mxUtils.br(d);return{getLink:function(){return n.checked?"blank"===x.value?"_blank":t:null},getEditInput:function(){return n},getEditSelect:function(){return x}}};EditorUi.prototype.addLinkSection=function(d,g){function n(){var G=document.createElement("div");G.style.width="100%";G.style.height="100%";G.style.boxSizing="border-box";null!=x&&x!=mxConstants.NONE?(G.style.border="1px solid black", G.style.backgroundColor=x):(G.style.backgroundPosition="center center",G.style.backgroundRepeat="no-repeat",G.style.backgroundImage="url('"+Dialog.prototype.closeImage+"')");B.innerText="";B.appendChild(G)}mxUtils.write(d,mxResources.get("links")+":");var q=document.createElement("select");q.style.width="100px";q.style.padding="0px";q.style.marginLeft="8px";q.style.marginRight="10px";q.className="geBtn";var t=document.createElement("option");t.setAttribute("value","auto");mxUtils.write(t,mxResources.get("automatic"));
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
0;za<this.customFonts.length;za++)if(this.customFonts[za].name==da){sa=!1;break}sa&&(this.customFonts.push({name:da,url:ba}),this.editorUi.fireEvent(new mxEventObject("customFontsChanged","customFonts",this.customFonts)))}finally{S.getModel().endUpdate()}}}));this.editorUi.showDialog(Z.container,380,Editor.enableWebFonts?250:180,!0,!0);Z.init()}),y,null,!0)})))}})();function DiagramPage(b,e){this.node=b;null!=e?this.node.setAttribute("id",e):null==this.getId()&&this.node.setAttribute("id",Editor.guid())}DiagramPage.prototype.node=null;DiagramPage.prototype.root=null;DiagramPage.prototype.viewState=null;DiagramPage.prototype.getId=function(){return this.node.getAttribute("id")};DiagramPage.prototype.getName=function(){return this.node.getAttribute("name")};
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
"cells",[P])),b.fireEvent(new mxEventObject("freehandInserted","cell",P))}finally{b.model.endUpdate()}q&&b.setSelectionCells([P])}}for(P=0;P<k.length;P++)k[P].parentNode.removeChild(k[P]);c=null;k=[];u=[]}B(!1)};b.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(Q,P){Q=P.getProperty("eventName");P=P.getProperty("event");Q==mxEvent.MOUSE_MOVE&&g&&(null!=P.sourceState&&P.sourceState.setCursor("crosshair"),P.consume())}));b.addMouseListener({mouseDown:mxUtils.bind(this,function(Q,P){if(b.isEnabled()&&
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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(v):"")+(null!=t?"-latest_"+t:"")+(null!=n?"-latestRev_"+this.ui.hashValue(n.getCurrentRevisionId()):""));EditorUi.logEvent({category:"CHECKSUM-ERROR-SYNC-FILE-"+H,action:k,label:"user_"+L+(null!=this.sync?"-client_"+this.sync.clientId:"-nosync")+"-bytes_"+d+"-patches_"+e.length+"-size_"+this.getSize()})}catch(x){}}),b)}}catch(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
retry:Z})},S)});Z()}catch(Y){null!=J&&J(Y)}};Editor.prototype.getErrorMessage=function(l){var z=mxResources.get("error")+" "+l.getStatus();try{var J=l.getText(),O=JSON.parse(J);null!=O&&null!=O.error&&null!=O.error.message&&(z=O.error.message+" ("+z+")")}catch(T){}return z};Editor.prototype.absoluteCssFonts=function(l){var z=null;if(null!=l){var J=l.split("url(");if(0<J.length){z=[J[0]];l=window.location.pathname;var O=null!=l?l.lastIndexOf("/"):-1;0<=O&&(l=l.substring(0,O+1));O=document.getElementsByTagName("base"); var T=null;null!=O&&0<O.length&&(T=O[0].getAttribute("href"));for(var W=1;W<J.length;W++)if(O=J[W].indexOf(")"),0<O){var V=Editor.trimCssUrl(J[W].substring(0,O));this.graph.isRelativeUrl(V)&&(V=null!=T?T+V:window.location.protocol+"//"+window.location.hostname+("/"==V.charAt(0)?"":l)+V);z.push('url("'+V+'"'+J[W].substring(O))}else z.push(J[W])}else z=[l]}return null!=z?z.join(""):null};Editor.prototype.mapFontUrl=function(l,z,J){/^https?:\/\//.test(z)&&!this.isCorsEnabledForUrl(z)&&(z=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
null!=C.lastCursor.pageId&&C.lastCursor.pageId!=l)C.cursor.style.display="none";else{l=function(){var V=Math.max(A.container.scrollLeft,Math.min(A.container.scrollLeft+A.container.clientWidth-C.cursor.clientWidth,O)),S=Math.max(A.container.scrollTop-22,Math.min(A.container.scrollTop+A.container.clientHeight-C.cursor.clientHeight,T));W.style.opacity=V!=O||S!=T?0:1;C.cursor.style.left=V+"px";C.cursor.style.top=S+"px";C.cursor.style.display=""};var z=A.view.translate,J=A.view.scale,O=(z.x+C.lastCursor.x)*
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
this.graph.shadowVisible?"1":"0");null!=this.graph.extFonts&&0<this.graph.extFonts.length&&(O=this.graph.extFonts.map(function(T){return T.name+"^"+T.url}),J.setAttribute("extFonts",O.join("|")));return J};Editor.prototype.isDataSvg=function(l){try{var z=mxUtils.parseXml(l).documentElement.getAttribute("content");if(null!=z&&(null!=z&&"<"!=z.charAt(0)&&"%"!=z.charAt(0)&&(z=unescape(window.atob?atob(z):Base64.decode(cont,z))),null!=z&&"%"==z.charAt(0)&&(z=decodeURIComponent(z)),null!=z&&0<z.length)){var J= mxUtils.parseXml(z).documentElement;return"mxfile"==J.nodeName||"mxGraphModel"==J.nodeName}}catch(O){}return!1};Editor.prototype.extractGraphModel=function(l,z,J){return Editor.extractGraphModel.apply(this,arguments)};var f=Editor.prototype.resetGraph;Editor.prototype.resetGraph=function(){this.graph.mathEnabled="1"==urlParams.math;this.graph.view.x0=null;this.graph.view.y0=null;this.graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&this.graph.isCssTransformsSupported();this.graph.updateCssTransform();
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
Editor.prototype.resetGraph=function(){editorResetGraph.apply(this,arguments);null==this.graph.defaultPageFormat&&(this.graph.pageFormat=mxSettings.getPageFormat())};(function(){var b=mxPopupMenu.prototype.showMenu;mxPopupMenu.prototype.showMenu=function(){this.div.style.overflowY="auto";this.div.style.overflowX="hidden";this.div.style.maxHeight=Math.max(document.body.clientHeight,document.documentElement.clientHeight)-(EditorUi.isElectronApp?50:10)+"px";b.apply(this,arguments)};Menus.prototype.createHelpLink=function(f){var c=document.createElement("span");c.setAttribute("title",mxResources.get("help"));c.style.cssText="color:blue;text-decoration:underline;margin-left:8px;cursor:help;"; var k=document.createElement("img");mxUtils.setOpacity(k,50);k.style.height="16px";k.style.width="16px";k.setAttribute("border","0");k.setAttribute("valign","bottom");k.setAttribute("src",Editor.helpImage);c.appendChild(k);mxEvent.addGestureListeners(c,mxUtils.bind(this,function(m){this.editorUi.hideCurrentMenu();this.editorUi.openLink(f);mxEvent.consume(m)}));return c};Menus.prototype.addLinkToItem=function(f,c){null!=f&&f.firstChild.nextSibling.appendChild(this.createHelpLink(c))};var e=Menus.prototype.init;
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
"120px",A.style.backgroundImage="url('"+IMAGE_PATH+"/droptarget.png')",A.style.backgroundPosition="center 65%",A.style.backgroundRepeat="no-repeat",u=document.createElement("div"),u.style.position="absolute",u.style.width="420px",u.style.top="58%",u.style.textAlign="center",u.style.fontSize="18px",u.style.color="#a0c3ff",mxUtils.write(u,mxResources.get("dragImagesHere")),A.appendChild(u));A.appendChild(v);this.container=A},LinkDialog=function(b,e,f,c,k,m,u){function v(B,G,I){I=mxUtils.button("",I); I.className="geBtn";I.setAttribute("title",G);G=document.createElement("img");G.style.height="26px";G.style.width="26px";G.setAttribute("src",B);I.style.minWidth="42px";I.style.verticalAlign="middle";I.appendChild(G);x.appendChild(I)}var E=document.createElement("div");E.style.height="100%";mxUtils.write(E,mxResources.get("editLink")+":");var D=document.createElement("div");D.className="geTitle";D.style.backgroundColor="transparent";D.style.borderColor="transparent";D.style.whiteSpace="nowrap";D.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
EditorUi.prototype.adoptTheirCellsFromPage=function(b,e,f,c){var k=null!=e[EditorUi.DIFF_UPDATE]?e[EditorUi.DIFF_UPDATE][f]:null;if(null!=k&&null!=k.cells&&null!=k.cells[EditorUi.DIFF_INSERT]){e=k.cells[EditorUi.DIFF_UPDATE];for(var m={},u=0;u<k.cells[EditorUi.DIFF_INSERT].length;u++){var v=k.cells[EditorUi.DIFF_INSERT][u];m[v.id]=v}k={cells:{}};k.cells[EditorUi.DIFF_INSERT]=[];k.cells[EditorUi.DIFF_UPDATE]={};k.inserted={};this.resolveOwnInsertedCells(b.cells[EditorUi.DIFF_INSERT],m,k);this.resolveOwnUpdatedCells(b.cells[EditorUi.DIFF_UPDATE], m,e,k);null==c[EditorUi.DIFF_UPDATE]&&(c[EditorUi.DIFF_UPDATE]={});delete k.inserted;c[EditorUi.DIFF_UPDATE][f]=k}};EditorUi.prototype.resolveOwnInsertedCells=function(b,e,f){if(null!=b)for(var c=0;c<b.length;c++){var k=b[c];null!=k&&(this.adoptParentCell(k.id,null,e,f),this.adoptTerminalCell(k.id,k,e,!0,f),this.adoptTerminalCell(k.id,k,e,!1,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
":");var x="#0000ff",B=null;B=mxUtils.button("",mxUtils.bind(this,function(G){this.pickColor(x||"none",function(I){x=I;n()});mxEvent.consume(G)}));n();B.style.padding=mxClient.IS_FF?"4px 2px 4px 2px":"4px";B.style.marginLeft="4px";B.style.height="22px";B.style.width="22px";B.style.position="relative";B.style.top=mxClient.IS_IE||mxClient.IS_IE11||mxClient.IS_EDGE?"6px":"1px";B.className="geColorBtn";d.appendChild(B);mxUtils.br(d);return{getColor:function(){return x},getTarget:function(){return q.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
encodeURIComponent(M.name);v="";x()})));A.appendChild(y)})(Q[P],P);100==Q.length&&(A.appendChild(q),t=function(){A.scrollTop>=A.scrollHeight-A.offsetHeight&&R()},mxEvent.addListener(A,"scroll",t))}}))}),n)});H.okButton.setAttribute("disabled","disabled");this.ui.spinner.spin(A,mxResources.get("loading"));var G=mxUtils.bind(this,function(I){var F=this.ui.spinner,U=0;this.ui.spinner.stop();var R=function(){F.spin(A,mxResources.get("loading"));U+=1},N=function(){--U;0===U&&F.stop()};null==I&&(A.innerText=
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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 ChangePage,["ui","relatedPage","index","page","previousPage"]);b.afterEncode=function(e,f,c){c.setAttribute("relatedPage",f.relatedPage.getId());null==f.index&&(c.setAttribute("name",f.relatedPage.getName()),null!=f.relatedPage.viewState&&c.setAttribute("viewState",JSON.stringify(f.relatedPage.viewState,function(k,m){return 0>mxUtils.indexOf(EditorUi.transientViewStateProperties,k)?m:void 0})),null!=f.relatedPage.root&&e.encodeCell(f.relatedPage.root,c));return c};
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
"response",[Y],"file",[f]),H(Z,Y)}catch(ca){d(ca)}}),mxUtils.bind(this,function(){H(Z)})):H(Z)}catch(Y){d(Y)}}}))}catch(Z){d(Z)}}),O=mxUtils.bind(this,function(W){f.saveLevel=9;if(W||null==z)J(W);else{var V=!0,S=null;try{S=window.setTimeout(mxUtils.bind(this,function(){V=!1;H({code:App.ERROR_TIMEOUT})}),3*this.ui.timeout)}catch(X){}this.executeRequest({url:"/files/"+f.getId()+"?supportsAllDrives=true&fields="+this.catchupFields},mxUtils.bind(this,function(X){window.clearTimeout(S);if(V){f.saveLevel= 10;try{null!=X&&X.headRevisionId==t?("1"==urlParams.test&&z!=X.etag&&EditorUi.debug("DriveClient: Preflight Etag Update","from",z,"to",X.etag,"rev",f.desc.headRevisionId,"response",[X],"file",[f]),z=X.etag,J(W)):H({error:{code:412}},X)}catch(Z){d(Z)}}}),mxUtils.bind(this,function(X){window.clearTimeout(S);V&&(f.saveLevel=11,H(X))}))}});if(x&&null==U){f.saveLevel=8;var T=new Image;T.onload=mxUtils.bind(this,function(){try{var W=this.thumbnailWidth/T.width,V=document.createElement("canvas");V.width=
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
}finally{g.getModel().endUpdate()}x&&(g.setSelectionCell(n),g.scrollCellToVisible(n))}};f=mxUtils.button(mxResources.get("preview"),function(){d(A,L,!1)});f.className="geBtn";E.appendChild(f);f=mxUtils.button(mxResources.get("apply"),function(){d(b.editor.graph,e,!0)});f.className="geBtn gePrimaryBtn";E.appendChild(f);b.editor.cancelFirst||E.appendChild(k);v.appendChild(E);u.appendChild(v);m.appendChild(u);this.container=m},CustomDialog=function(b,e,f,c,k,m,u,v,E,D,A,L){var H=document.createElement("div");
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
DrawioFile.prototype.synchronizeFile=function(b,e){if(this.savingFile)null!=e&&e({message:mxResources.get("busy")});else{var f=!0,c=window.setTimeout(mxUtils.bind(this,function(){f=!1;null!=e&&e({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout"),retry:mxUtils.bind(this,function(){this.synchronizeFile(b,e)})})}),this.ui.timeout),k=mxUtils.bind(this,function(u){f&&(window.clearTimeout(c),null!=e&&e(u))}),m=mxUtils.bind(this,function(){return!f});null!=this.sync?this.sync.fileChanged(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(Q){A=Q};this.setAutoScroll=function(Q){L=Q};this.setOpenFill=function(Q){H=Q};this.setStopClickEnabled=function(Q){n=Q};this.setSelectInserted=function(Q){q=Q};this.setSmoothing=function(Q){f=Q};this.setPerfectFreehandMode=function(Q){x=Q};this.isPerfectFreehandMode=function(){return x};this.setBrushSize=function(Q){t.size=Q};this.getBrushSize=function(){return t.size};var B=function(Q){g=Q;b.getRubberband().setEnabled(!Q);b.graphHandler.setSelectEnabled(!Q);b.graphHandler.setMoveEnabled(!Q);
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
W[V];W.stroke!=mxConstants.NONE&&null!=W.stroke||delete this.nextShape.options.stroke;W.filled||delete this.nextShape.options.fill;this.passThrough=!0;this.rc.draw(this.nextShape);this.passThrough=!1}};l.prototype.stroke=function(){this.passThrough?this.originalStroke.apply(this.canvas,arguments):this.drawPath(this.getStyle(!0,!1))};l.prototype.fill=function(){this.passThrough?this.originalFill.apply(this.canvas,arguments):this.drawPath(this.getStyle(!1,!0))};l.prototype.fillAndStroke=function(){this.passThrough?
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
t.geometry.height+=I.gridSize}finally{I.getModel().endUpdate()}return[t]}}return[]};EditorUi.prototype.formatFileSize=function(d){var g=-1;do d/=1024,g++;while(1024<d);return Math.max(d,.1).toFixed(1)+" kB; MB; GB; TB;PB;EB;ZB;YB".split(";")[g]};EditorUi.prototype.convertDataUri=function(d){if("data:"==d.substring(0,5)){var g=d.indexOf(";");0<g&&(d=d.substring(0,g)+d.substring(d.indexOf(",",g+1)))}return d};EditorUi.prototype.isRemoteFileFormat=function(d,g){return/("contentType":\s*"application\/gliffy\+json")/.test(d)};
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
mxResources.get("csv")+":",Editor.defaultCsvValue,mxUtils.bind(this,function(d){this.importCsv(d)}),null,null,620,430,null,!0,!0,mxResources.get("import"),this.isOffline()?null:"https://drawio-app.com/import-from-csv-to-drawio/"));this.showDialog(this.importCsvDialog.container,640,520,!0,!0,null,null,null,null,!0);this.importCsvDialog.init()};EditorUi.prototype.showCustomLayoutDialog=function(d){this.loadOrgChartLayouts(mxUtils.bind(this,function(){var g=new TextareaDialog(this,mxResources.get("layout"), d,mxUtils.bind(this,function(n){if(0<n.length)try{var q=JSON.parse(n);this.executeLayouts(this.editor.graph.createLayouts(q));this.customLayoutConfig=q;this.hideDialog()}catch(t){this.handleError(t)}}),null,null,null,null,mxUtils.bind(this,function(n,q){var t=mxUtils.button(mxResources.get("copy"),mxUtils.bind(this,function(){try{var x=q.value;q.value=JSON.stringify(JSON.parse(x));q.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?q.select():document.execCommand("selectAll",!1,null); document.execCommand("copy");this.alert(mxResources.get("copiedToClipboard"));q.value=x}catch(B){this.handleError(B)}}));t.setAttribute("title","copy");t.className="geBtn";n.appendChild(t)}),!0,null,null,"https://www.drawio.com/doc/faq/apply-layouts");this.showDialog(g.container,620,460,!0,!0);g.init()}))};EditorUi.prototype.loadOrgChartLayouts=function(d){this.createTimeout(null,mxUtils.bind(this,function(g){var n=mxUtils.bind(this,function(){this.loadingOrgChart=!1;g.clear()&&(Graph.layoutNames.push("mxOrgChartLayout"),
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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(G);this.container.style.opacity="";window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(this.container.style,"transition",null);delete this.themeSwitching;isLocalStorage&&q(d)&&this.setTabContainerVisible(null!=mxSettings.settings.pages?mxSettings.settings.pages:!0);null!=n&&n()}),g)}),g)}),g)}),0)}return B};EditorUi.prototype.installStatusMinimizer=function(d){d=null!=d?d:this.statusContainer.parentNode;var g=!1;mxEvent.addListener(d, "mouseenter",mxUtils.bind(this,function(){"sketch"==Editor.currentTheme&&""!=this.editor.getStatus()&&(this.statusContainer.style.display="inline-flex")}));mxEvent.addListener(d,"mouseleave",mxUtils.bind(this,function(){"sketch"!=Editor.currentTheme||g||(this.statusContainer.style.display="none")}));var n=mxUtils.bind(this,function(){if("sketch"==Editor.currentTheme){var q=null!=this.statusContainer.firstChild&&"function"===typeof this.statusContainer.firstChild.getAttribute?this.statusContainer.firstChild: null;g=null!=q&&null!=q.getAttribute("class");if(!g&&null!=q){q=q.getAttribute("title");var t=this.getCurrentFile();t=null!=t?t.savingStatusKey:DrawioFile.prototype.savingStatusKey;q==mxResources.get(t)+"..."&&(this.statusContainer.innerHTML='<div><img title="'+mxUtils.htmlEntities(mxResources.get(t))+'..."src="'+Editor.tailSpin+'"></div>',g=!0)}this.statusContainer.style.display="none";q=32>=d.clientWidth;d.style.visibility=q&&""==this.editor.getStatus()?"hidden":"";if(q||g)this.statusContainer.style.display= "inline-flex",g=!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",n);n()};EditorUi.prototype.switchTheme=function(d){this.isDefaultTheme(d)&&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
EditorUi.initMinimalTheme=function(){function b(H,d){if(EditorUi.windowed){var g=H.editor.graph;g.popupMenuHandler.hideMenu();null==H.formatWindow?(d=Math.max(10,H.diagramContainer.clientWidth-248),g=Math.min(566,g.container.clientHeight-10),H.formatWindow=new WrapperWindow(H,mxResources.get("format"),d,60,240,g,function(n){H.createFormat(n).init()}),H.formatWindow.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){H.formatWindow.window.fit()})),H.formatWindow.window.minimumSize=new mxRectangle(0, 0,240,80)):H.formatWindow.window.setVisible(null!=d?d:!H.formatWindow.window.isVisible())}else null==H.formatElt&&(H.formatElt=H.createSidebarContainer(),H.createFormat(H.formatElt).init(),H.formatElt.style.border="none",H.formatElt.style.width="240px",H.formatElt.style.borderLeft="1px solid gray",H.formatElt.style.right="0px"),g=H.diagramContainer.parentNode,null!=H.formatElt.parentNode?(H.formatElt.parentNode.removeChild(H.formatElt),g.style.right="0px"):(g.parentNode.appendChild(H.formatElt),g.style.right= H.formatElt.style.width)}function e(H,d){function g(t,x){var B=H.menus.get(t);t=n.addMenu(x,mxUtils.bind(this,function(){B.funct.apply(this,arguments)}));t.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;";t.className="geTitle";d.appendChild(t);return t}var n=new Menubar(H,d);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
c)}}}catch(v){}}))}};App.prototype.handleLicense=function(b,e){};App.prototype.getEditBlankXml=function(){var b=this.getCurrentFile();return null!=b&&this.editor.isChromelessView()&&this.editor.graph.isLightboxView()?b.getData():this.getFileData(!0)};App.prototype.updateActionStates=function(){EditorUi.prototype.updateActionStates.apply(this,arguments);this.actions.get("revisionHistory").setEnabled(this.isRevisionHistoryEnabled())};
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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.getCell(l[J]);null!=T&&z.push(T)}return z};var P=Graph.prototype.isCellVisible;Graph.prototype.isCellVisible=function(l){return P.apply(this,arguments)&&!this.isAllTagsHidden(this.getTagsForCell(l))};Graph.prototype.setHiddenTags=function(l){this.hiddenTags=l;this.fireEvent(new mxEventObject("hiddenTagsChanged"))};Graph.prototype.toggleHiddenTag=function(l){var z=mxUtils.indexOf(this.hiddenTags,l);0>z?this.hiddenTags.push(l):0<=z&&this.hiddenTags.splice(z,1);this.fireEvent(new mxEventObject("hiddenTagsChanged"))};
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
O.substring(0,19)||mxClient.IS_CHROMEAPP||(O=z.apply(this,arguments)):O=PROXY_URL+"?url="+encodeURIComponent(O)}return O};return l};Editor.createSvgDataUri=function(l){return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(l)))};Editor.prototype.convertImageToDataUri=function(l,z){try{var J=!0,O=window.setTimeout(mxUtils.bind(this,function(){J=!1;z(Editor.svgBrokenImage.src)}),this.timeout);if(/(\.svg)$/i.test(l))mxUtils.get(l,mxUtils.bind(this,function(W){window.clearTimeout(O);J&&z(Editor.createSvgDataUri(W.getText()))}), function(){window.clearTimeout(O);J&&z(Editor.svgBrokenImage.src)});else{var T=new Image;this.crossOriginImages&&(T.crossOrigin="anonymous");T.onload=function(){window.clearTimeout(O);if(J)try{var W=document.createElement("canvas"),V=W.getContext("2d");W.height=T.height;W.width=T.width;V.drawImage(T,0,0);z(W.toDataURL())}catch(S){z(Editor.svgBrokenImage.src)}};T.onerror=function(){window.clearTimeout(O);J&&z(Editor.svgBrokenImage.src)};T.src=l}}catch(W){z(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
(ka?"geTempDlgRadioBtnLarge":"geTempDlgRadioBtnSmall");C.querySelector("."+fa).src="/images/"+ma+"-sel.svg";C.querySelector("."+oa).src="/images/"+ia+".svg";return!0}function x(ja,fa,ma,na){function oa(ua,Ka){null==ka?(ua=/^https?:\/\//.test(ua)&&!b.editor.isCorsEnabledForUrl(ua)?PROXY_URL+"?url="+encodeURIComponent(ua):TEMPLATE_PATH+"/"+ua,mxUtils.get(ua,mxUtils.bind(this,function(Ja){200<=Ja.getStatus()&&299>=Ja.getStatus()&&(ka=Ja.getText());Ka(ka)}))):Ka(ka)}function ia(ua,Ka,Ja){if(null!=ua&& mxUtils.isAncestorNode(document.body,fa)&&(ua=mxUtils.parseXml(ua),ua=Editor.extractGraphModel(ua.documentElement,!0),null!=ua)){"mxfile"==ua.nodeName&&(ua=Editor.parseDiagramNode(ua.getElementsByTagName("diagram")[0]));var Aa=new mxCodec(ua.ownerDocument),La=new mxGraphModel;Aa.decode(ua,La);ua=La.root.getChildAt(0).children||[];b.sidebar.createTooltip(fa,ua,Math.min((window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)-80,1E3),Math.min((window.innerHeight||document.documentElement.clientHeight|| document.body.clientHeight)-80,800),null!=ja.title?mxResources.get(ja.title,null,ja.title):null,!0,new mxPoint(Ka,Ja),!0,null,!0);var Da=document.createElement("div");Da.className="geTempDlgDialogMask";C.appendChild(Da);var wa=b.sidebar.hideTooltip;b.sidebar.hideTooltip=function(){Da&&(C.removeChild(Da),Da=null,wa.apply(this,arguments),b.sidebar.hideTooltip=wa)};mxEvent.addListener(Da,"click",function(){b.sidebar.hideTooltip()})}}var ka=null;if(pa||b.sidebar.currentElt==fa)b.sidebar.hideTooltip(); else{var xa=function(ua){pa&&b.sidebar.currentElt==fa&&ia(ua,mxEvent.getClientX(na),mxEvent.getClientY(na));pa=!1;ma.src="/images/icon-search.svg"};b.sidebar.hideTooltip();b.sidebar.currentElt=fa;pa=!0;ma.src="/images/aui-wait.gif";ja.isExt?E(ja,xa,function(){n(mxResources.get("cantLoadPrev"));pa=!1;ma.src="/images/icon-search.svg"}):oa(ja.url,xa)}}function B(ja,fa,ma){if(null!=O){for(var na=O.className.split(" "),oa=0;oa<na.length;oa++)if(-1<na[oa].indexOf("Active")){na.splice(oa,1);break}O.className=
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
J.apply(this,arguments)};var O=K.restore;K.restore=function(){z--;O.apply(this,arguments)};var T=p.drawShape;p.drawShape=function(W){mxLog.debug("entering shape",W,z);T.apply(this,arguments);mxLog.debug("leaving shape",W,z)};p.drawState(k.getView().getState(k.model.root),K);mxLog.show();mxLog.debug(mxUtils.getXml(l));mxLog.debug("stateCounter",z)}));c.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
I.offsetTop);this.showShapePicker(Math.max(this.diagramContainer.scrollLeft+Math.max(24,P.x)),this.diagramContainer.scrollTop+P.y,null,null,null,null,mxUtils.bind(this,function(M){return g.getCenterInsertPoint(g.getBoundingBoxFromGeometry(M,!0))}),"simple"==d,!1)}mxEvent.consume(Q)}));B.style.backgroundSize="24px";"simple"==d?B.style.flexShrink="0":B.style.marginBottom="4px";var F=!1,U=mxUtils.bind(this,function(Q){if(Q||document.body.contains(n)){Q=function(y,C,K,l,z,J){null!=C&&y.setAttribute("title", C);y.style.cursor="pointer";y.style.margin="simple"==d?"0px":"8px 0px 8px 2px";y.style.display="simple"==d?"inline-block":"block";n.appendChild(y);"simple"==d?y.style.opacity="0.7":null!=l&&(C=z,C=null!=C?C:30,J=null!=J?J:26,y.style.position="relative",y.style.overflow="visible",K=document.createElement("div"),K.style.position="absolute",K.style.fontSize="8px",K.style.left=C+"px",K.style.top=J+"px",mxUtils.write(K,l),y.appendChild(K));return y};n.innerText="";if(!F){var P=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
function(e){null!=this.tokenRefreshThread&&(window.clearTimeout(this.tokenRefreshThread),this.tokenRefreshThread=null);0<e&&(this.tokenRefreshInterval=1E3*e,this.tokenRefreshThread=window.setTimeout(mxUtils.bind(this,function(){this.authenticate(this.emptyFn,this.emptyFn,!0)}),900*e))};OneDriveClient.prototype.authenticate=function(e,f,c){if(this.isExtAuth)window.parent.oneDriveAuth(mxUtils.bind(this,function(k){this.updateAuthInfo(k,!0,null==this.endpointHint,e,f)}),f,null!=window.urlParams&&"1"==
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
[C],[K])):this.joinFile(!0)}catch(l){p=l,e.file.fireEvent(new mxEventObject("realtimeStateChanged")),EditorUi.debug("P2PCollab:","sendReply error",arguments,l)}});this.sendMessage=c;this.sendDiff=function(C){this.sendMessage("diff",{diff:C})};this.sendNotification=function(C){this.sendMessage("notify",{msg:C})};this.getState=function(){return null!=H?H.readyState:3};this.getLastError=function(){return p};this.mouseListeners={startX:0,startY:0,scrollLeft:0,scrollTop:0,mouseDown:function(C,K){},mouseMove:function(C, K){var l,z=-1;return function(){clearTimeout(l);var J=this,O=arguments,T=function(){l=null;z=Date.now();C.apply(J,O)};Date.now()-z>K?T():l=setTimeout(T,K)}}(function(C,K){k(K)},300),mouseUp:function(C,K){k(K)}};A.addMouseListener(this.mouseListeners);this.shareCursorPositionListener=function(){b.isShareCursorPosition()||c("cursor",{hide:!0})};b.addListener("shareCursorPositionChanged",this.shareCursorPositionListener);this.selectionChangeListener=function(C,K){C=function(J){return null!=J?J.id:null};
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
(null==P.getCell()||P.getCell()==H)};L.panningHandler.isForcePanningEvent=function(P){return 2==P.evt.button};var d=L.isCellSelectable;L.isCellSelectable=function(P){return P==H?!1:d.apply(this,arguments)};L.getLinkForCell=function(){return null};var g=L.view.getState(H);A=L.getAllConnectionConstraints(g);for(var n=0;null!=A&&n<A.length;n++){var q=L.getConnectionPoint(g,A[n]);m(q.x-3,q.y-3,A[n])}L.fit(8);L.center();n=b.createToolbarButton(Editor.zoomInImage,mxResources.get("zoomIn"),function(){L.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
Q==App.MODE_GITLAB)&&null!=P&&0<P.length&&(M={mode:Q,path:decodeURIComponent(P),id:P});null!=M&&(G.style.display="",b.addRecent(M,"Folders"),P=v(M.mode,M.path,M.id,!0),P.parentNode.firstChild!=P&&P.parentNode.insertBefore(P,P.parentNode.firstChild),null!=F&&(F.parentNode.removeChild(F),U=P.getAttribute("value"),B.value=U,F=null,A()))},!0,!0,!0,!0)}function D(){var Q=b.getRecent("Folders");if(null!=Q&&0<Q.length){for(var P=0;P<Q.length;P++)v(Q[P].mode,Q[P].path,Q[P].id);G.style.display=""}else G.style.display= "none";v(App.MODE_GOOGLE,mxResources.get("myDrive"),"root",null,null,"root");v(App.MODE_GOOGLE,null,null,null,null,"pick");null!=b.oneDrive&&(v(App.MODE_ONEDRIVE,mxResources.get("myFiles"),OneDriveFile.prototype.getIdOf(b.oneDrive.rootId),null,null,"root"),v(App.MODE_ONEDRIVE,null,null,null,null,"pick"));null!=b.dropbox&&v(App.MODE_DROPBOX,"Apps"+b.dropbox.appPath);v(App.MODE_GITHUB,null,null,null,null,"pick");v(App.MODE_GITLAB,null,null,null,null,"pick");v(App.MODE_TRELLO);Q=!Editor.useLocalStorage|| "device"==urlParams.storage||null!=b.getCurrentFile()&&"1"!=urlParams.noDevice;EditorUi.nativeFileSupport&&Q&&v(App.MODE_DEVICE,null,null,b.mode==App.MODE_DEVICE||null!=c&&0<=mxUtils.indexOf(c,App.MODE_BROWSER)?!0:null);isLocalStorage&&"0"!=urlParams.browser&&v(App.MODE_BROWSER);Q&&v("download");Editor.popupsAllowed&&v("_blank",null,null,null,mxResources.get("openInNewWindow"));B.appendChild(G);if("pickFolder-"==B.value.substring(0,11)||"reset"==B.value)F=document.createElement("option"),F.setAttribute("value", ""),F.setAttribute("selected","selected"),mxUtils.write(F,mxResources.get("pickFolder")+"..."),B.insertBefore(F,B.firstChild);U=B.value}function A(){if("reset"==B.value)b.resetRecent("Folders"),B.innerHTML="",R={},D();else if("pickFolder-"==B.value.substring(0,11)){var Q=B.value.substring(11);B.value=U;E(Q)}else if(null!=x&&null!=R[B.value]&&null!=b.editor.diagramFileTypes&&"drawio"==b.editor.diagramFileTypes[x.value].extension){Q=b.getExtensionForService(R[B.value].mode);var P=t.value;null!=Q&&0>
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
l.substring(0,34)||"https://fonts.googleapis.com/"===l.substring(0,29)||"https://fonts.gstatic.com/"===l.substring(0,26)};Editor.prototype.createImageUrlConverter=function(){var l=new mxUrlConverter;l.updateBaseUrl();var z=l.convert,J=this;l.convert=function(O){if(null!=O){var T="http://"==O.substring(0,7)||"https://"==O.substring(0,8);T&&!navigator.onLine?O=Editor.svgBrokenImage.src:!T||O.substring(0,l.baseUrl.length)==l.baseUrl||J.crossOriginImages&&J.isCorsEnabledForUrl(O)?"chrome-extension://"== O.substring(0,19)||mxClient.IS_CHROMEAPP||(O=z.apply(this,arguments)):O=PROXY_URL+"?url="+encodeURIComponent(O)}return O};return l};Editor.createSvgDataUri=function(l){return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(l)))};Editor.prototype.convertImageToDataUri=function(l,z){try{var J=!0,O=window.setTimeout(mxUtils.bind(this,function(){J=!1;z(Editor.svgBrokenImage.src)}),this.timeout);if(/(\.svg)$/i.test(l))mxUtils.get(l,mxUtils.bind(this,function(W){window.clearTimeout(O);J&&z(Editor.createSvgDataUri(W.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
Editor.createRoughCanvas=function(l){var z=rough.canvas({getContext:function(){return l}});z.draw=function(J){var O=J.sets||[];J=J.options||this.getDefaultOptions();for(var T=0;T<O.length;T++){var W=O[T];switch(W.type){case "path":null!=J.stroke&&this._drawToContext(l,W,J);break;case "fillPath":this._drawToContext(l,W,J);break;case "fillSketch":this.fillSketch(l,W,J)}}};z.fillSketch=function(J,O,T){var W=l.state.strokeColor,V=l.state.strokeWidth,S=l.state.strokeAlpha,X=l.state.dashed,Z=T.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
null!=f&&f();this.ui.fileLoaded(H)}),mxUtils.bind(this,function(){this.savingFile=!1;null!=c&&c()}),!1,L,E)}))});null!=u?v(u):this.peer.showCommitDialog(this.meta.name,null==this.getDescriptorEtag(this.meta)||this.meta.isNew,mxUtils.bind(this,function(E){v(E)}),c)}else null!=f&&f()};GitHubLibrary=function(b,e,f){GitHubFile.call(this,b,e,f)};mxUtils.extend(GitHubLibrary,GitHubFile);GitHubLibrary.prototype.doSave=function(b,e,f){this.saveFile(b,!1,e,f)};GitHubLibrary.prototype.open=function(){};(function(){var b=null;window.GitHubClient=function(e,f){DrawioClient.call(this,e,f||"ghauth")};mxUtils.extend(GitHubClient,DrawioClient);GitHubClient.prototype.clientId="test.draw.io"==window.location.hostname?"Iv1.1218f5567fbc258a":window.DRAWIO_GITHUB_ID;GitHubClient.prototype.extension=".drawio";GitHubClient.prototype.baseUrl=DRAWIO_GITHUB_API_URL;GitHubClient.prototype.baseHostUrl=DRAWIO_GITHUB_URL;GitHubClient.prototype.redirectUri=window.location.protocol+"//"+window.location.host+"/github2";
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
function(f){var c=0<this.lastTokenRefresh;(new Date).getTime()-this.lastTokenRefresh>this.tokenRefreshInterval||null==this.tokenRefreshThread?this.execute(mxUtils.bind(this,function(){f();c&&this.fireEvent(new mxEventObject("disconnected"))})):f()};DriveClient.prototype.updateUser=function(f,c){try{var k={Authorization:"Bearer "+b};this.ui.editor.loadUrl("https://www.googleapis.com/oauth2/v2/userinfo?alt=json",mxUtils.bind(this,function(m){var u=JSON.parse(m);this.executeRequest({url:"/about"},mxUtils.bind(this, function(v){var E=mxResources.get("notAvailable"),D=E,A=null;null!=v&&null!=v.user&&(E=v.user.emailAddress,D=v.user.displayName,A=null!=v.user.picture?v.user.picture.url:null);this.setUser(new DrawioUser(u.id,E,D,A,u.locale));this.userId=u.id;null!=f&&f()}),c)}),c,null,null,null,null,k)}catch(m){if(null!=c)c(m);else throw m;}};DriveClient.prototype.copyFile=function(f,c,k,m){null!=f&&null!=c&&this.executeRequest({url:"/files/"+f+"/copy?fields="+encodeURIComponent(this.allFields)+"&supportsAllDrives=true&enforceSingleParent=true",
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
u.rev+"&chrome=0&nav=1&layers=1&edit=_blank"+(null!=v?"&page="+v:""))+window.location.hash})})})(c.entries[m]);b(k)}catch(u){e(u)}}));f["catch"](function(c){e(c)})};DropboxFile.prototype.getLatestVersion=function(b,e){this.ui.dropbox.getFile(this.getId(),b,e)};DropboxFile.prototype.updateDescriptor=function(b){this.stat=b.stat};DropboxFile.prototype.save=function(b,e,f,c,k){this.doSave(this.getTitle(),b,e,f,c,k)};DropboxFile.prototype.saveAs=function(b,e,f){this.doSave(b,!1,e,f)};
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
urlParams.dev?mxscript("js/diagramly/Extensions.js",function(){mxscript("js/orgchart/bridge.min.js",function(){mxscript("js/orgchart/bridge.collections.min.js",function(){mxscript("js/orgchart/OrgChart.Layout.min.js",function(){mxscript("js/orgchart/mxOrgChartLayout.js",B,null,null,null,x)},null,null,null,x)},null,null,null,x)},null,null,null,x)},null,null,null,x):mxscript("js/extensions.min.js",B,null,null,null,x))}),q)};EditorUi.prototype.createMermaidXml=function(d,g,n,q,t){var x=new Graph(document.createElement("div")); n=x.insertVertex(null,null,null,0,0,q,t,"shape=image;noLabel=1;verticalAlign=top;imageAspect=1;image="+n+";");x.setAttributeForCell(n,"mermaidData",JSON.stringify({data:d,config:g},null,2));d=(new mxCodec).encode(x.getModel());return mxUtils.getXml(d)};EditorUi.prototype.generateOpenAiMermaidDiagram=function(d,g,n){var q=0,t=mxUtils.bind(this,function(){this.spinner.spin(document.body,mxResources.get("loading"))&&this.createTimeout(4E4,mxUtils.bind(this,function(x){EditorUi.logEvent({category:"OPENAI-DIAGRAM",
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
za.push(sa[Ba]);S.setSelectionCells(za)}function W(sa){S.setHiddenTags(sa?[]:X.slice());T();S.refresh()}function V(sa,za){Y.innerText="";if(0<sa.length){var Ba=document.createElement("table");Ba.setAttribute("cellpadding","2");Ba.style.boxSizing="border-box";Ba.style.tableLayout="fixed";Ba.style.width="100%";var ea=document.createElement("tbody");if(null!=sa&&0<sa.length)for(var ha=0;ha<sa.length;ha++)(function(qa){function la(){var ra=S.getCellsForTags([qa],null,null,!0);S.isEnabled()?S.setSelectionCells(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
u,m)}catch(v){null!=c&&c(v)}else null!=c&&c()}),["filesInfo","files"])}catch(v){null!=c&&c(v)}});this.isRenamable()&&"."==b.charAt(0)&&null!=c?c({message:mxResources.get("invalidName")}):StorageFile.getFileInfo(this.ui,b,mxUtils.bind(this,function(m){this.isRenamable()&&this.getTitle()!=b&&null!=m?this.ui.confirm(mxResources.get("replaceIt",[b]),k,c):k()}),c)}else null!=f&&f()};
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
mxResources.get("download"),!1,!1,B,null,1<I,F,q,x,t);B=this.isServices(I)?4<I?390:280:160;this.showDialog(d.container,420,B,!0,!0)}d.init()};EditorUi.prototype.isServices=function(d){return 1!=d};EditorUi.prototype.getEditBlankXml=function(){return this.getFileData(!0)};EditorUi.prototype.exportFile=function(d,g,n,q,t,x){};EditorUi.prototype.getServiceForName=function(d){return null};EditorUi.prototype.getTitleForService=function(d){return mxResources.get(d)};EditorUi.prototype.pickFolder=function(d,
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
mxJsCanvas.prototype.image=function(b,e,f,c,k,m,u,v){k=this.rewriteImageSource(k);k=this.images[k];if(null!=k&&0<k.height&&0<k.width){var E=this.ctx;E.save();if(m){m=k.width;var D=k.height,A=Math.min(f/m,c/D);b+=(f-m*A)/2;e+=(c-D*A)/2;f=m*A;c=D*A}u&&(E.translate(2*b+f,0),E.scale(-1,1));v&&(E.translate(0,2*e+c),E.scale(1,-1));E.drawImage(k,b,e,f,c);E.restore()}};mxJsCanvas.prototype.begin=function(){this.ctx.beginPath()};mxJsCanvas.prototype.close=function(){this.ctx.closePath()};
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
mxResources.get("download"),!1,!1,B,null,1<I,F,q,x,t);B=this.isServices(I)?4<I?390:280:160;this.showDialog(d.container,420,B,!0,!0)}d.init()};EditorUi.prototype.isServices=function(d){return 1!=d};EditorUi.prototype.getEditBlankXml=function(){return this.getFileData(!0)};EditorUi.prototype.exportFile=function(d,g,n,q,t,x){};EditorUi.prototype.getServiceForName=function(d){return null};EditorUi.prototype.getTitleForService=function(d){return mxResources.get(d)};EditorUi.prototype.pickFolder=function(d,
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
method:"POST",params:{title:c,properties:[{key:"channel",value:Editor.guid()}]}},k,m)};DriveClient.prototype.renameFile=function(f,c,k,m){null!=f&&null!=c&&this.executeRequest(this.createDriveRequest(f,{title:c}),k,m)};DriveClient.prototype.moveFile=function(f,c,k,m){null!=f&&null!=c&&this.executeRequest(this.createDriveRequest(f,{parents:[{kind:"drive#fileLink",id:c}]}),k,m)};DriveClient.prototype.createDriveRequest=function(f,c){return{url:"/files/"+f+"?uploadType=multipart&supportsAllDrives=true", method:"PUT",contentType:"application/json; charset=UTF-8",params:c}};DriveClient.prototype.getLibrary=function(f,c,k){return this.getFile(f,c,k,!0,!0)};DriveClient.prototype.loadDescriptor=function(f,c,k,m){this.executeRequest({url:"/files/"+f+"?supportsAllDrives=true&fields="+(null!=m?m:this.allFields)},c,k)};DriveClient.prototype.listFiles=function(f,c,k,m,u){this.executeRequest({url:"/files?supportsAllDrives=true&includeItemsFromAllDrives=true&q="+encodeURIComponent("(mimeType contains '"+this.xmlMimeType+
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
6)this.curveTo(ca[da],ca[da+1],ca[da+2],ca[da+3],ca[da+4],ca[da+5]);this.lastX=Y;this.lastY=aa}};l.prototype.rect=function(W,V,S,X){this.passThrough?this.originalRect.apply(this.canvas,arguments):(this.path=[],this.nextShape=this.rc.generator.rectangle(W,V,S,X,this.getStyle(!0,!0)))};l.prototype.ellipse=function(W,V,S,X){this.passThrough?this.originalEllipse.apply(this.canvas,arguments):(this.path=[],this.nextShape=this.rc.generator.ellipse(W+S/2,V+X/2,S,X,this.getStyle(!0,!0)))};l.prototype.roundrect=
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
mxUtils.bind(this,function(){this.save(b,e)})),f.handleFileError(v,null==v||"AbortError"!=v.name))});try{b==f.getTitle()?f.save(!0,m,u):f.saveAs(b,m,u)}catch(v){u(v)}}),c)}};App.prototype.getExtensionForService=function(b){b=this.getServiceForName(b);return null!=b?b.extension:".drawio"};
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
mxAsyncCanvas.prototype.text=function(b,e,f,c,k,m,u,v,E,D,A,L){if(null!=k&&0!=k.length&&(b=this.state.scale,"html"==E&&"function"===typeof html2canvas)){this.incWaitCounter();var H=this.canvasIndex++;html2canvas(k,{onrendered:mxUtils.bind(this,function(d){this.htmlCanvas.subCanvas[H]=d;this.decWaitCounter()}),scale:b,logging:!0})}};mxAsyncCanvas.prototype.finish=function(b){0==this.waitCounter?b():this.onComplete=b};function mxJsCanvas(b){mxAbstractCanvas2D.call(this);this.ctx=b.getContext("2d");this.ctx.textBaseline="top";this.ctx.fillStyle="rgba(255,255,255,0)";this.ctx.strokeStyle="rgba(0, 0, 0, 0)";this.M_RAD_PER_DEG=Math.PI/180;this.images=null==this.images?[]:this.images;this.subCanvas=null==this.subCanvas?[]:this.subCanvas}mxUtils.extend(mxJsCanvas,mxAbstractCanvas2D);mxJsCanvas.prototype.ctx=null;mxJsCanvas.prototype.waitCounter=0;mxJsCanvas.prototype.onComplete=null;mxJsCanvas.prototype.images=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
f.toLowerCase()})}),this.executePromise(E,v,k)):v()):k()})):k({message:mxResources.get("invalidName")})}};DropboxClient.prototype.insertLibrary=function(e,f,c,k){this.insertFile(e,f,c,k,!0)};DropboxClient.prototype.insertFile=function(e,f,c,k,m){m=null!=m?m:!1;this.checkExists(e,mxUtils.bind(this,function(u){u?this.saveFile(e,f,mxUtils.bind(this,function(v){m?c(new DropboxLibrary(this.ui,f,v)):c(new DropboxFile(this.ui,f,v))}),k):k()}))};DropboxClient.prototype.saveFile=function(e,f,c,k,m){if(/[\\\/:\?\*"\|]/.test(e))k({message:mxResources.get("dropboxCharsNotAllowed")});
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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=null!=l?l:DRAW_MATH_URL+"/startup.js";Editor.mathJaxQueue=[];var O=null;Editor.doMathJaxRender=function(V){try{null==O?(MathJax.typesetClear([V]),MathJax.typeset([V]),J()):O!=V&&Editor.mathJaxQueue.push(V)}catch(S){MathJax.typesetClear([V]),null!=S.retry?(O=V,S.retry.then(function(){MathJax.typesetPromise([V]).then(J)["catch"](function(X){console.log("Error in MathJax.typesetPromise: "+X.toString());J()})})["catch"](function(X){console.log("Error in MathJax.retry: "+X.toString());J()})):null!=window.console&& console.log("Error in MathJax.typeset: "+S.toString())}};window.MathJax=null!=z?z:{options:{skipHtmlTags:{"[+]":["text"]}},loader:{load:["html"==urlParams["math-output"]?"output/chtml":"output/svg","input/tex","input/asciimath","ui/safe"]},startup:{pageReady:function(){for(var V=0;V<Editor.mathJaxQueue.length;V++)Editor.doMathJaxRender(Editor.mathJaxQueue[V])}}};Editor.MathJaxRender=function(V){"undefined"!==typeof MathJax&&"function"===typeof MathJax.typeset?Editor.doMathJaxRender(V):Editor.mathJaxQueue.push(V)};
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
"style"):O.createElement("style");l.setAttribute("type","text/css");mxUtils.setTextContent(l,z);J.appendChild(l)}};Editor.prototype.isExportToCanvas=function(){return mxClient.IS_CHROMEAPP||this.useCanvasForExport};Editor.prototype.getMaxCanvasScale=function(l,z,J){var O=mxClient.IS_FF?8192:16384;return Math.min(J,Math.min(O/l,O/z))};Editor.prototype.exportToCanvas=function(l,z,J,O,T,W,V,S,X,Z,Y,aa,ca,da,ba,sa,za,Ba){try{W=null!=W?W:!0;V=null!=V?V:!0;aa=null!=aa?aa:this.graph;ca=null!=ca?ca:0;var ea=
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
c,k,!0,u):this.getXmlFile(v,c,k)}else k({message:mxResources.get("loggedOut")})}catch(D){if(null!=k)k(D);else throw D;}}),k)};DriveClient.prototype.isGoogleRealtimeMimeType=function(f){return null!=f&&"application/vnd.jgraph.mxfile."==f.substring(0,30)};DriveClient.prototype.getXmlFile=function(f,c,k,m,u){try{var v={Authorization:"Bearer "+b},E=f.downloadUrl;if(null==E)null!=k&&k({message:mxResources.get("exportOptionsDisabledDetails")});else{var D=0,A=mxUtils.bind(this,function(){this.ui.editor.loadUrl(E,
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
message:this.getErrorMessage(e,mxResources.get("error")+" "+e.getStatus())})}),mxUtils.bind(this,function(H){window.clearTimeout(A);D&&c(H)}))}),v=mxUtils.bind(this,function(E){null==this.user?this.updateUser(function(){v(!0)},c,E):u(E)});null==b?this.authenticate(function(){v(!0)},c):v(!1)};GitHubClient.prototype.getLibrary=function(e,f,c){this.getFile(e,f,c,!0)};GitHubClient.prototype.getSha=function(e,f,c,k,m,u,v){var E="&t="+(new Date).getTime();e=new mxXmlRequest(this.baseUrl+"/repos/"+e+"/"+
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
var l=0,z=0;k.view.states.visit(function(J,O){J=!0;p(O.shape)||(console.log("invalid shape",O.cell.id,O.shape),J=!1);p(O.text)||(console.log("invalid text",O.cell.id,O.text),J=!1);J||l++;z++});console.log("states checked",z,"invalid",l)}));c.actions.addAction("testCheckFile",mxUtils.bind(this,function(){var p=null!=c.pages&&null!=c.getCurrentFile()?c.getCurrentFile().getAnonymizedXmlForPages(c.pages):"";p=new TextareaDialog(c,"Paste Data:",p,function(y){if(0<y.length)try{var C=function(O){function T(ba){if(null== da[ba]){if(da[ba]=!0,null!=S[ba]){for(;0<S[ba].length;){var sa=S[ba].pop();T(sa)}delete S[ba]}}else mxLog.debug(W+": Visited: "+ba)}var W=O.parentNode.id,V=O.childNodes;O={};for(var S={},X=null,Z={},Y=0;Y<V.length;Y++){var aa=V[Y];if(null!=aa.id&&0<aa.id.length)if(null==O[aa.id]){O[aa.id]=aa.id;var ca=aa.getAttribute("parent");null==ca?null!=X?mxLog.debug(W+": Multiple roots: "+aa.id):X=aa.id:(null==S[ca]&&(S[ca]=[]),S[ca].push(aa.id))}else Z[aa.id]=aa.id}V=Object.keys(Z);0<V.length?(V=W+": "+V.length+
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
function(M){x=null!=x?x:"pdf"==g?"application/pdf":"image/"+g;if(null!=q)try{this.exportFile(q,U,x,!0,R,M)}catch(p){this.handleError(p)}else this.spinner.spin(document.body,mxResources.get("saving"))&&P.send(mxUtils.bind(this,function(){this.spinner.stop();if(200<=P.getStatus()&&299>=P.getStatus())try{this.exportFile(P.getText(),U,x,!0,R,M)}catch(p){this.handleError(p)}else this.handleError({message:mxResources.get("errorSavingFile")})}),mxUtils.bind(this,function(p){this.spinner.stop();this.handleError(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
DriveComment.prototype.deleteComment=function(b,e){this.file.ui.drive.executeRequest(this.pCommentId?{url:"/files/"+this.file.getId()+"/comments/"+this.pCommentId+"/replies/"+this.id,method:"DELETE"}:{url:"/files/"+this.file.getId()+"/comments/"+this.id,method:"DELETE"},b,e)};function mxODPicker(b,e,f,c,k,m,u,v,E,D,A,L,H,d){function g(V,S){S=S||document;return S.querySelector(V)}function n(V,S,X){if(null==V["@microsoft.graph.downloadUrl"])if(null==V.parentReference)X();else{c(V.id,V.parentReference.driveId,function(aa){n(aa,S,X)},X);return}var Z=new XMLHttpRequest;Z.open("GET",V["@microsoft.graph.downloadUrl"]);var Y=V.file?"image/png"==V.file.mimeType:!1;Z.onreadystatechange=function(){if(4==this.readyState){if(200<=this.status&&299>=this.status)try{var aa=Z.responseText;
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
"click",ua):(mxEvent.addListener(wa,"click",function(Na){F(wa,null,null,fa,xa)}),mxEvent.addListener(wa,"dblclick",function(Na){I();mxEvent.consume(Na)}));null!=fa&&(ia=l.cloneNode(!0),wa.appendChild(ia),mxEvent.addGestureListeners(ia,mxUtils.bind(this,function(Na){O=b.sidebar.currentElt==wa}),null,null),mxEvent.addListener(ia,"click",mxUtils.bind(this,function(Na){O||Da(Na,null!=na?na:oa);mxEvent.consume(Na)})));ha.appendChild(wa);return wa}function R(){function fa(Da,wa){Da=mxResources.get(Da,null, Da.substring(0,1).toUpperCase()+Da.substring(1));18<Da.length&&(Da=Da.substring(0,18)+"&hellip;");return Da+(null!=wa?" ("+wa.length+")":"")}function ma(Da,wa,Ma){mxEvent.addListener(wa,"click",function(){Ha!=wa&&(null!=Ha&&(Ha.style.backgroundColor=""),Ha=wa,Ha.style.backgroundColor=u,ha.scrollTop=0,ha.innerText="",y=0,null!=ra[Da].content?(ha.appendChild(ra[Da].content),da=ea,Ia=null,null!=ra[Da].content.init&&ra[Da].content.init()):(Ia=Ma?va[Da][Ma]:ra[Da],W=null,x(!1)))});null!=urlParams["smart-template"]&&
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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(ca){"true"!=S.getAttribute("contentEditable")&&mxEvent.consume(ca)});W=function(ca){if(mxClient.IS_IOS||mxClient.IS_FF||!(null==document.documentMode||9<document.documentMode)){var da=new FilenameDialog(b,X.title||"",mxResources.get("ok"),function(ba){null!=ba&&(X.title=ba,K())},mxResources.get("enterValue"));b.showDialog(da.container,300,80,!0,!0);da.init();mxEvent.consume(ca)}else if("true"!=S.getAttribute("contentEditable")){null!=x&&(x(),x=null);if(null==X.title||0==X.title.length)S.innerText= "";S.style.textOverflow="";S.style.whiteSpace="";S.style.cursor="text";S.style.color="";S.setAttribute("contentEditable","true");mxUtils.setPrefixedStyle(S.style,"user-select","text");S.focus();document.execCommand("selectAll",!1,null);x=function(){S.removeAttribute("contentEditable");S.style.cursor="pointer";X.title=S.innerHTML;K()};mxEvent.consume(ca)}};mxEvent.addListener(S,"click",W);mxEvent.addListener(O,"dblclick",W);d.appendChild(O);mxEvent.addListener(O,"dragstart",function(ca){null==U&&null!=
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
ba.style.whiteSpace="nowrap";ba.style.position="absolute";ba.style.overflow="hidden";ba.style.bottom="6px";ba.style.height="42px";ba.style.right="10px";ba.style.left="10px";S.isEnabled()&&(ba.appendChild(aa),ba.appendChild(ca),Z.appendChild(ba));null!=O&&ba.appendChild(O);return{div:Z,refresh:da}};Graph.prototype.getCustomFonts=function(){var l=this.extFonts;l=null!=l?l.slice():[];for(var z in Graph.customFontElements){var J=Graph.customFontElements[z];l.push({name:J.name,url:J.url})}return l};Graph.prototype.setFont=
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
mxAsyncCanvas.prototype.image=function(b,e,f,c,k,m,u,v){k=this.rewriteImageSource(k);b=this.htmlCanvas.images[k];null==b&&(b=new Image,b.onload=mxUtils.bind(this,function(){this.decWaitCounter()}),b.onerror=mxUtils.bind(this,function(){this.decWaitCounter()}),this.incWaitCounter(),this.htmlCanvas.images[k]=b,b.src=k)};mxAsyncCanvas.prototype.fill=function(){};mxAsyncCanvas.prototype.stroke=function(){};mxAsyncCanvas.prototype.fillAndStroke=function(){};
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
null,d,mxResources.get("ok"),g);this.showDialog(d.container,n||340,100,!0,!1);d.init()};EditorUi.prototype.confirm=function(d,g,n,q,t,x){d=null!=d?d:"";var B=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},G=Math.min(220,28*Math.ceil(Math.max(1,d.length)/50));d=new ConfirmDialog(this,d,function(){B();null!=g&&g()},function(){B();null!=n&&n()},q,t,null,null,null,null,G);this.showDialog(d.container,340,46+G,!0,x);d.init()};EditorUi.prototype.showBanner=function(d,g,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
EditorUi.prototype.isExportToCanvas=function(){return this.editor.isExportToCanvas()};EditorUi.prototype.createImageDataUri=function(d,g,n,q){d=d.toDataURL("image/"+n);if(null!=d&&6<d.length)null!=g&&(d=Editor.writeGraphModelToPng(d,"tEXt","mxfile",encodeURIComponent(g))),0<q&&(d=Editor.writeGraphModelToPng(d,"pHYs","dpi",q));else throw{message:mxResources.get("unknownError")};return d};EditorUi.prototype.saveCanvas=function(d,g,n,q,t){var x="jpeg"==n?"jpg":n;q=this.getBaseFilename(q)+(null!=g?".drawio":
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
Aa.forceConstant=3*V;Aa.disableEdgeStyle=!1;Aa.resetEdges=!1;var La=Aa.isVertexIgnored;Aa.isVertexIgnored=function(Da){return La.apply(this,arguments)||0>mxUtils.indexOf(x,Da)};this.executeLayout(function(){Aa.execute(I.getDefaultParent());na()},!0,Z);Z=null}}this.hideDialog()}finally{I.model.endUpdate()}null!=Z&&Z()}}catch(Da){this.handleError(Da)}};EditorUi.prototype.getSearch=function(d){var g="";if("1"!=urlParams.offline&&"1"!=urlParams.demo&&null!=d&&0<window.location.search.length){var n="?",
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
EditorUi.prototype.cellProperties={id:!0,value:!0,xmlValue:!0,vertex:!0,edge:!0,visible:!0,collapsed:!0,connectable:!0,parent:!0,children:!0,previous:!0,source:!0,target:!0,edges:!0,geometry:!0,style:!0,overlays:!0,mxObjectId:!0,mxTransient:!0};EditorUi.prototype.codec=new mxCodec;EditorUi.prototype.applyPatches=function(b,e,f,c,k){if(null!=e)for(var m=0;m<e.length;m++)null!=e[m]&&(b=this.patchPages(b,e[m],f,c,k));return b};
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
F=new mxAsyncCanvas(this.thumbImageCache);I.images=this.thumbImageCache.images;var U=new mxImageExport;U.drawShape=function(R,N){R.shape instanceof mxShape&&R.shape.checkBounds()&&(N.save(),N.translate(.5,.5),R.shape.paint(N),N.translate(-.5,-.5),N.restore())};U.drawText=function(R,N){};U.drawState(u.getView().getState(u.model.root),F);F.finish(mxUtils.bind(this,function(){try{U.drawState(u.getView().getState(u.model.root),I),u!=this.editor.graph&&null!=u.container.parentNode&&u.container.parentNode.removeChild(u.container)}catch(R){L=
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
n)}}catch(q){}};EditorUi.prototype.updatePageLinksForCell=function(d,g){var n=document.createElement("div"),q=this.editor.graph,t=q.getLinkForCell(g);null!=t&&q.setLinkForCell(g,this.updatePageLink(d,t));if(q.isHtmlLabel(g)){n.innerHTML=Graph.sanitizeHtml(q.getLabel(g));for(var x=n.getElementsByTagName("a"),B=!1,G=0;G<x.length;G++)t=x[G].getAttribute("href"),null!=t&&(x[G].setAttribute("href",this.updatePageLink(d,t)),B=!0);B&&q.labelChanged(g,n.innerHTML)}for(G=0;G<q.model.getChildCount(g);G++)this.updatePageLinksForCell(d, q.model.getChildAt(g,G))};EditorUi.prototype.updatePageLink=function(d,g){if(Graph.isPageLink(g)){var n=d[g.substring(g.indexOf(",")+1)];g=null!=n?"data:page/id,"+n:null}else if("data:action/json,"==g.substring(0,17))try{var q=JSON.parse(g.substring(17));if(null!=q.actions){for(var t=0;t<q.actions.length;t++){var x=q.actions[t];if(null!=x.open&&Graph.isPageLink(x.open)){var B=x.open.substring(x.open.indexOf(",")+1);n=d[B];null!=n?x.open="data:page/id,"+n:null==this.getPageById(B)&&delete x.open}}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
q;for(x=0;x<t.length;x++)B.objectStore(t[x]).put(null!=d&&null!=d[x]?{key:d[x],data:g[x]}:g[x])}catch(G){null!=q&&q(G)}}),q)};EditorUi.prototype.removeDatabaseItem=function(d,g,n,q){this.openDatabase(mxUtils.bind(this,function(t){q=q||"objects";Array.isArray(q)||(q=[q],d=[d]);t=t.transaction(q,"readwrite");t.oncomplete=g;t.onerror=n;for(var x=0;x<q.length;x++)t.objectStore(q[x]).delete(d[x])}),n)};EditorUi.prototype.getDatabaseItem=function(d,g,n,q){this.openDatabase(mxUtils.bind(this,function(t){try{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