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 |
---|---|---|---|---|---|---|---|
mxJsCanvas.prototype.setGradient=function(b,e,f,c,k,m,u,v,E){f=this.ctx.createLinearGradient(0,c,0,c+m);c=this.state;c.fillColor=b;c.fillAlpha=null!=v?v:1;c.gradientColor=e;c.gradientAlpha=null!=E?E:1;c.gradientDirection=u;b=this.hexToRgb(b);e=this.hexToRgb(e);null!=b&&f.addColorStop(0,"rgba("+b.r+","+b.g+","+b.b+","+c.fillAlpha+")");null!=e&&f.addColorStop(1,"rgba("+e.r+","+e.g+","+e.b+","+c.gradientAlpha+")");this.ctx.fillStyle=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 |
f.apply(this,arguments)};var c=Editor.prototype.updateGraphComponents;Editor.prototype.updateGraphComponents=function(){c.apply(this,arguments);this.graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&this.graph.isCssTransformsSupported();this.graph.updateCssTransform()};Editor.initMath=function(l,z){if("undefined"===typeof window.MathJax&&!mxClient.IS_IE&&!mxClient.IS_IE11){var J=function(){O=null;if(0<Editor.mathJaxQueue.length)Editor.doMathJaxRender(Editor.mathJaxQueue.shift());else Editor.onMathJaxDone()}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
"/sites?search=";C=[{name:mxResources.get("sharepointSites",null,"Sharepoint Sites"),driveId:V}];ba=1;break;case "site":C.push({name:Z,driveId:V,folderId:S,siteId:X});qa="/sites/"+X+"/drives";ba=2;break;case "subsite":C.push({name:Z,driveId:V,folderId:S,siteId:X});qa="/drives/"+X+(S?"/items/"+S:"/root")+"/children";break;case "search":V=p;C=[{driveId:V,name:mxResources.get("back",null,"Back")}];Y=encodeURIComponent(Y.replace(/'/g,"\\'"));qa=V?"/drives/"+V+"/root/search(q='"+Y+"')":"/me/drive/root/search(q='"+
Y+"')";break;default:null==S?C=[{driveId:V}]:C.push({name:Z,driveId:V,folderId:S}),qa=(V?"/drives/"+V:"/me/drive")+(S?"/items/"+S:"/root")+"/children"}ba||(qa+=(0<qa.indexOf("?")?"&":"?")+"select=id,name,description,parentReference,file,createdBy,lastModifiedBy,lastModifiedDateTime,size,folder,remoteItem,@microsoft.graph.downloadUrl");var la=[];ca()}}function I(V){T.className=T.className.replace("odCatSelected","");T=V;T.className+=" odCatSelected"}function F(V){y||(W=null,G("search",null,null,null, | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
0>Z&&(Z=T.strokeWidth/2);l.setStrokeAlpha(l.state.fillAlpha);l.setStrokeColor(T.fill||"");l.setStrokeWidth(Z);l.setDashed(!1);this._drawToContext(J,O,T);l.setDashed(X);l.setStrokeWidth(V);l.setStrokeColor(W);l.setStrokeAlpha(S)};z._drawToContext=function(J,O,T){J.begin();for(var W=0;W<O.ops.length;W++){var V=O.ops[W],S=V.data;switch(V.op){case "move":J.moveTo(S[0],S[1]);break;case "bcurveTo":J.curveTo(S[0],S[1],S[2],S[3],S[4],S[5]);break;case "lineTo":J.lineTo(S[0],S[1])}}J.end();"fillPath"===O.type&&
T.filled?J.fill():J.stroke()};return z};(function(){function l(W,V,S){this.canvas=W;this.rc=V;this.shape=S;this.canvas.setLineJoin("round");this.canvas.setLineCap("round");this.originalBegin=this.canvas.begin;this.canvas.begin=mxUtils.bind(this,l.prototype.begin);this.originalEnd=this.canvas.end;this.canvas.end=mxUtils.bind(this,l.prototype.end);this.originalRect=this.canvas.rect;this.canvas.rect=mxUtils.bind(this,l.prototype.rect);this.originalRoundrect=this.canvas.roundrect;this.canvas.roundrect= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
else{if(0<G.length){var I=JSON.parse(G);localStorage.setItem(g,JSON.stringify(I))}else localStorage.removeItem(g);this.hideDialog();this.alert(mxResources.get("restartForChangeRequired"))}}catch(F){this.handleError(F)}}),null,mxResources.get("close"),null,null,null,!0,null,null,t,n,q);this.showDialog(d.container,620,460,!0,!1);d.init()};EditorUi.prototype.showBackgroundImageDialog=function(d,g,n,q){d=null!=d?d:mxUtils.bind(this,function(t,x,B,G){x||(t=new ChangePageSetup(this,q?B:null,t),t.ignoreColor=
!q,null!=G&&q&&(t.shadowVisible=G),this.editor.graph.model.execute(t))});d=new BackgroundImageDialog(this,d,g,n,q);this.showDialog(d.container,400,q?240:220,!0,!0);d.init()};EditorUi.prototype.showLibraryDialog=function(d,g,n,q,t){d=new LibraryDialog(this,d,g,n,q,t);this.showDialog(d.container,640,440,!0,!1,mxUtils.bind(this,function(x){x&&null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.showSplash()}));d.init()};var f=EditorUi.prototype.createFormat;EditorUi.prototype.createFormat=function(d){var 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 |
EditorUi.prototype.adoptParentCell=function(b,e,f,c){var k=f[b],m=null!=e?e.parent:null!=k?k.parent:null;null!=m&&this.adoptParentCell(m,null,f,c);null!=k?c.inserted[b]||(c.cells[EditorUi.DIFF_INSERT].push(k),c.inserted[b]=!0):null!=e&&(null==c.cells[EditorUi.DIFF_UPDATE][b]&&(c.cells[EditorUi.DIFF_UPDATE][b]={}),c.cells[EditorUi.DIFF_UPDATE][b]=e)}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
EditorUi.prototype.isRevisionHistoryEnabled=function(){var d=this.getCurrentFile();return null!=d&&(d.constructor==DriveFile&&d.isEditable()||d.constructor==DropboxFile)};EditorUi.prototype.getServiceName=function(){return"draw.io"};EditorUi.prototype.addRemoteServiceSecurityCheck=function(d){d.setRequestHeader("Content-Language","da, mi, en, de-DE")};EditorUi.prototype.loadUrl=function(d,g,n,q,t,x,B,G){EditorUi.logEvent("SHOULD NOT BE CALLED: loadUrl");return this.editor.loadUrl(d,g,n,q,t,x,B,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 |
"Invalid data",toString:function(){return this.message}};};var e=Editor.prototype.getGraphXml;Editor.prototype.getGraphXml=function(l,z){l=null!=l?l:!0;var J=e.apply(this,arguments);null!=this.graph.currentStyle&&"default-style2"!=this.graph.currentStyle&&J.setAttribute("style",this.graph.currentStyle);var O=this.graph.getBackgroundImageObject(this.graph.backgroundImage,z);null!=O&&J.setAttribute("backgroundImage",JSON.stringify(O));J.setAttribute("math",this.graph.mathEnabled?"1":"0");J.setAttribute("shadow",
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= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
D.length-1);0<D.length&&za(D[A]);if(1<D.length)for(C.removeAttribute("disabled"),C.style.display="",da=0;da<D.length;da++)ba=document.createElement("option"),sa=D[da].getAttribute("name")||mxResources.get("pageWithNumber",[da+1]),mxUtils.write(ba,sa),ba.setAttribute("title",sa+" ("+D[da].getAttribute("id")+")"),ba.setAttribute("value",da),da==A&&ba.setAttribute("selected","selected"),C.appendChild(ba);K=function(){try{var ea=parseInt(C.value);A=E=ea;za(D[ea])}catch(ha){C.value=E,b.handleError(ha)}}}else Ba(sa); | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
"mermaidData",JSON.stringify({data:J,config:z.config},null,2))}finally{g.getModel().endUpdate()}},function(O){d.handleError(O)})},null,null,400,220);d.showDialog(K.container,420,300,!0,!0);K.init()};var n=g.cellEditor.startEditing;g.cellEditor.startEditing=function(C,K){try{var l=this.graph.getAttributeForCell(C,"plantUmlData");if(null!=l)this.editPlantUmlData(C,K,l);else if(l=this.graph.getAttributeForCell(C,"mermaidData"),null!=l)this.editMermaidData(C,K,l);else{var z=g.getCellStyle(C);"1"==mxUtils.getValue(z,
"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 |
B)}})));d(x);x.onversionchange=function(){x.close()}}catch(B){null!=g?g(B):null!=window.console&&console.warn(B)}});q.onerror=g;q.onblocked=function(){}}catch(t){null!=g?g(t):null!=window.console&&console.error(t)}else null!=g&&g(Error("IndexedDB not supported"))}else d(this.database)};EditorUi.prototype.setDatabaseItem=function(d,g,n,q,t){this.openDatabase(mxUtils.bind(this,function(x){try{t=t||"objects";Array.isArray(t)||(t=[t],d=[d],g=[g]);var B=x.transaction(t,"readwrite");B.oncomplete=n;B.onerror= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
/^desktop\.ini$/i,/_vti_/i];OneDriveClient.prototype.isValidFilename=function(e){if(null==e||""===e)return!1;for(var f=0;f<this.invalidFilenameRegExs.length;f++)if(this.invalidFilenameRegExs[f].test(e))return!1;return!0};OneDriveClient.prototype.get=function(e,f,c){e=new mxXmlRequest(e,null,"GET");e.setRequestHeaders=mxUtils.bind(this,function(k,m){k.setRequestHeader("Authorization","Bearer "+b)});e.send(f,c);return e};OneDriveClient.prototype.updateUser=function(e,f,c){var k=!0,m=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 |
this.endpointHint=k.webUrl.replace("/Documents","/_layouts/15/onedrive.aspx"):this.endpointHint=this.defEndpointHint;var m=JSON.parse(this.getPersistentToken(!0));null!=m&&(m.endpointHint=this.endpointHint,this.setPersistentToken(JSON.stringify(m),!m.remember));e();return}}catch(u){}f({message:mxResources.get("unknownError")+" (Code: "+c.getStatus()+")"})}),f)};OneDriveClient.prototype.executeRequest=function(e,f,c){var k=mxUtils.bind(this,function(m){var u=!0,v=window.setTimeout(mxUtils.bind(this,
function(){u=!1;c({code:App.ERROR_TIMEOUT,retry:k})}),this.ui.timeout);this.get(e,mxUtils.bind(this,function(E){window.clearTimeout(v);u&&(200<=E.getStatus()&&299>=E.getStatus()||404==E.getStatus()?(null==this.user&&this.updateUser(this.emptyFn,this.emptyFn,!0),f(E)):m||401!==E.getStatus()&&400!==E.getStatus()?c(this.parseRequestText(E)):this.authenticate(function(){k(!0)},c,m))}),mxUtils.bind(this,function(E){window.clearTimeout(v);u&&c(E)}))});null==b||6E4>this.tokenExpiresOn-Date.now()?this.authenticate(function(){k(!0)},
c):k(!1)};OneDriveClient.prototype.checkToken=function(e,f){null==b||null==this.tokenRefreshThread||6E4>this.tokenExpiresOn-Date.now()?this.authenticate(e,null!=f?f:this.emptyFn):e()};OneDriveClient.prototype.getItemRef=function(e){var f=e.split("/");return 1<f.length?{driveId:f[0],id:f[1]}:{id:e}};OneDriveClient.prototype.getItemURL=function(e,f){var c=e.split("/");return 1<c.length?(e=c[1],(f?"":this.baseUrl)+"/drives/"+c[0]+("root"==e?"/root":"/items/"+e)):(f?"":this.baseUrl)+"/me/drive/items/"+ | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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 |
return O==p||0==J.length?A(M,p):T==W?D(M):E(M,p!=mxConstants.DIRECTION_NORTH&&p!=mxConstants.DIRECTION_WEST)}return U.apply(this,arguments)};g.getSubtree=function(M){var p=[M];!k(M)&&!c(M)||u(M)||g.traverse(M,!0,function(y,C){var K=null!=C&&g.isTreeEdge(C);K&&0>mxUtils.indexOf(p,C)&&p.push(C);(null==C||K)&&0>mxUtils.indexOf(p,y)&&p.push(y);return null==C||K});return p};var R=mxVertexHandler.prototype.init;mxVertexHandler.prototype.init=function(){R.apply(this,arguments);(k(this.state.cell)||c(this.state.cell))&&
!u(this.state.cell)&&0<this.graph.getOutgoingTreeEdges(this.state.cell).length&&(this.moveHandle=mxUtils.createImage(Editor.moveImage),this.moveHandle.setAttribute("title","Move Subtree"),this.moveHandle.style.position="absolute",this.moveHandle.style.cursor="pointer",this.moveHandle.style.width="24px",this.moveHandle.style.height="24px",this.graph.container.appendChild(this.moveHandle),mxEvent.addGestureListeners(this.moveHandle,mxUtils.bind(this,function(M){this.graph.graphHandler.start(this.state.cell,
mxEvent.getClientX(M),mxEvent.getClientY(M),this.graph.getSubtree(this.state.cell));this.graph.graphHandler.cellWasClicked=!0;this.graph.isMouseTrigger=mxEvent.isMouseEvent(M);this.graph.isMouseDown=!0;d.hoverIcons.reset();mxEvent.consume(M)})))};var N=mxVertexHandler.prototype.redrawHandles;mxVertexHandler.prototype.redrawHandles=function(){N.apply(this,arguments);null!=this.moveHandle&&(this.moveHandle.style.left=this.state.x+this.state.width+(40>this.state.width?10:0)+2+"px",this.moveHandle.style.top= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
d+(null!=n?"&mime="+n:"")+(null!=t?"&format="+t:"")+(null!=x?"&base64="+x:"")+(null!=g?"&filename="+encodeURIComponent(g):"")+(q?"&binary=1":""))};EditorUi.prototype.base64ToBlob=function(d,g){g=g||"";d=atob(d);for(var n=d.length,q=Math.ceil(n/1024),t=Array(q),x=0;x<q;++x){for(var B=1024*x,G=Math.min(B+1024,n),I=Array(G-B),F=0;B<G;++F,++B)I[F]=d[B].charCodeAt(0);t[x]=new Uint8Array(I)}return new Blob(t,{type:g})};EditorUi.prototype.saveLocalFile=function(d,g,n,q,t,x,B,G){x=null!=x?x:!1;B=null!=B? | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
function(N){N=b.base64ToBlob(I,"image/png");N=new ClipboardItem({"image/png":N,"text/html":new Blob(['<img src="data:'+d+";base64,"+I+'">'],{type:"text/html"})});navigator.clipboard.write([N]).then(mxUtils.bind(this,function(){b.alert(mxResources.get("copiedToClipboard"))}))["catch"](mxUtils.bind(this,function(Q){b.handleError(Q)}))}),n.style.marginTop="6px",n.className="geBtn");E&&Editor.popupsAllowed&&(k.style.cursor="pointer",mxEvent.addGestureListeners(k,null,null,function(N){mxEvent.isPopupTrigger(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 |
if(isNaN(U)||isNaN(R))try{var N=F[0].getAttribute("viewBox").split(/\s+/);U=parseFloat(N[2]);R=parseFloat(N[3])}catch(Q){U=U||100,R=R||100}n(this.convertDataUri(Editor.createSvgDataUri(I)),U,R)}else null!=t?t():q({message:mxResources.get("invalidInput")})}catch(Q){q(Q)}});mermaid.mermaidAPI.initialize(g);mermaid.mermaidAPI.render("geMermaidOutput-"+(new Date).getTime(),d).then(function(I){G(I.svg)}).catch(function(I){null!=t?t(I):q(I)})}catch(I){q(I)}});"undefined"!==typeof mermaid||this.loadingMermaid|| | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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,H,m,u),D&&!A?H.y=n.y:A&&!D&&(H.x=n.x),n.y!=H.y&&null!=this.guideY&&null!=this.guideY.node&&(this.guideY.node.style.visibility="hidden"),n.x!=H.x&&null!=this.guideX&&null!=this.guideX.node&&(this.guideX.node.style.visibility="hidden"),H;U(!0,!0);return b.apply(this,arguments)};var e=mxGuide.prototype.setVisible;mxGuide.prototype.setVisible=function(c){e.call(this,c);var k=this.guidesArrVer,m=this.guidesArrHor;if(null!=k)for(var u=0;u<k.length;u++)k[u].node.style.visibility=c?"visible":"hidden";if(null!=
m)for(u=0;u<m.length;u++)m[u].node.style.visibility=c?"visible":"hidden"};var f=mxGuide.prototype.destroy;mxGuide.prototype.destroy=function(){f.call(this);var c=this.guidesArrVer,k=this.guidesArrHor;if(null!=c){for(var m=0;m<c.length;m++)c[m].destroy();this.guidesArrVer=null}if(null!=k){for(m=0;m<k.length;m++)k[m].destroy();this.guidesArrHor=null}}})();function mxRuler(b,e,f,c){function k(){var B=b.diagramContainer;L.style.top=B.offsetTop-E+"px";L.style.left=B.offsetLeft-E+"px";L.style.width=(f?0:B.offsetWidth)+E+"px";L.style.height=(f?B.offsetHeight:0)+E+"px"}function m(B,G,I){if(null!=u)return B;var F;return function(){var U=this,R=arguments,N=I&&!F;clearTimeout(F);F=setTimeout(function(){F=null;I||B.apply(U,R)},G);N&&B.apply(U,R)}}var u=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame, | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
EditorUi.prototype.isRevisionHistoryEnabled=function(){var d=this.getCurrentFile();return null!=d&&(d.constructor==DriveFile&&d.isEditable()||d.constructor==DropboxFile)};EditorUi.prototype.getServiceName=function(){return"draw.io"};EditorUi.prototype.addRemoteServiceSecurityCheck=function(d){d.setRequestHeader("Content-Language","da, mi, en, de-DE")};EditorUi.prototype.loadUrl=function(d,g,n,q,t,x,B,G){EditorUi.logEvent("SHOULD NOT BE CALLED: loadUrl");return this.editor.loadUrl(d,g,n,q,t,x,B,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 |
na.join(" ")}null!=ja?(O=ja,O.className+=" "+fa,T=ma,la.className="geTempDlgCreateBtn"):(T=O=null,la.className="geTempDlgCreateBtn geTempDlgBtnDisabled")}function G(ja,fa){if(null!=T){var ma=function(xa){ka.isExternal?E(ka,function(ua){na(ua,xa)},oa):ka.url?mxUtils.get(TEMPLATE_PATH+"/"+ka.url,mxUtils.bind(this,function(ua){200<=ua.getStatus()&&299>=ua.getStatus()?na(ua.getText(),xa):oa()})):na(b.emptyDiagramXml,xa)},na=function(xa,ua){g||b.hideDialog(!0);e(xa,ua,ka,fa)},oa=function(){n(mxResources.get("cannotLoad")); | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
g.view.validate());N=K;Q=C}));var P=g.labelLinkClicked;g.labelLinkClicked=function(C,K,l){var z=K.getAttribute("href");if(null==z||!g.isCustomLink(z)||!mxEvent.isTouchEvent(l)&&mxEvent.isPopupTrigger(l))P.apply(this,arguments);else{if(!g.isEnabled()||null!=C&&g.isCellLocked(C.cell))g.customLinkClicked(z),g.getRubberband().reset();mxEvent.consume(l)}};this.editor.getOrCreateFilename=function(){var C=d.defaultFilename,K=d.getCurrentFile();null!=K&&(C=null!=K.getTitle()?K.getTitle():C);return C};var M= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
function(){E=!1;c({code:App.ERROR_TIMEOUT})}),this.ui.timeout),A=this.client.filesGetMetadata({path:"/"+e.path.substring(1),include_deleted:!1});A.then(mxUtils.bind(this,function(L){}));A["catch"](function(L){window.clearTimeout(D);E&&null!=L&&409==L.status&&(E=!1,c({message:mxResources.get("fileNotFound")}))});A=this.client.filesDownload(e);A.then(mxUtils.bind(this,function(L){window.clearTimeout(D);if(E){E=!1;try{var H=new FileReader;H.onload=mxUtils.bind(this,function(d){f(H.result,L)});k?H.readAsDataURL(L.fileBlob): | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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.isDiagramEmpty()&&this.currentPage.getName()==mxResources.get("pageWithNumber",[1])};EditorUi.prototype.confirmImageResize=function(d,g){g=null!=g?g:!1;var n=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},q=isLocalStorage||mxClient.IS_CHROMEAPP?mxSettings.getResizeImages():null,t=function(x,B){if(x||g)mxSettings.setResizeImages(x?B:null),mxSettings.save();n();d(B)};null==q||g?this.showDialog((new ConfirmDialog(this,mxResources.get("resizeLargeImages"),function(x){t(x,
!0)},function(x){t(x,!1)},mxResources.get("resize"),mxResources.get("actualSize"),'<img style="margin-top:8px;" src="'+Editor.loResImage+'"/>','<img style="margin-top:8px;" src="'+Editor.hiResImage+'"/>',isLocalStorage||mxClient.IS_CHROMEAPP)).container,340,isLocalStorage||mxClient.IS_CHROMEAPP?220:200,!0,!0):t(!1,q)};EditorUi.prototype.parseFile=function(d,g,n){n=null!=n?n:d.name;var q=new FileReader;q.onload=mxUtils.bind(this,function(){this.parseFileData(q.result,g,n)});q.readAsText(d)};EditorUi.prototype.parseFileData= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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.chromelessWindowResize=function(){};var D=Menus.prototype.init;Menus.prototype.init=function(){D.apply(this,arguments);var H=this.editorUi;EditorUi.enablePlantUml&&!H.isOffline()&&H.actions.put("plantUml",new Action(mxResources.get("plantUml")+"...",function(){var n=new ParseDialog(H,mxResources.get("plantUml")+"...","plantUml");H.showDialog(n.container,620,420,!0,!1);n.init()}));H.actions.put("mermaid",new Action(mxResources.get("mermaid")+"...",function(){var n=new ParseDialog(H,
mxResources.get("mermaid")+"...","mermaid");H.showDialog(n.container,620,420,!0,!1);n.init()}));var d="horizontalFlow verticalFlow - horizontalTree verticalTree radialTree - organic circle".split(" "),g=function(n,q,t,x){n.addItem(t,null,mxUtils.bind(this,function(){var B=new CreateGraphDialog(H,t,x);H.showDialog(B.container,620,420,!0,!1);B.init()}),q)};this.put("insertLayout",new Menu(mxUtils.bind(this,function(n,q){for(var t=0;t<d.length;t++)"-"==d[t]?n.addSeparator(q):g(n,q,mxResources.get(d[t])+
"...",d[t])})))};EditorUi.prototype.installFormatToolbar=function(H){var d=this.editor.graph,g=document.createElement("div");g.style.cssText="position:absolute;top:10px;z-index:1;border-radius:4px;box-shadow:0px 0px 3px 1px #d1d1d1;padding:6px;white-space:nowrap;background-color:#fff;transform:translate(-50%, 0);left:50%;";d.getSelectionModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(n,q){0<d.getSelectionCount()?(H.appendChild(g),g.innerHTML="Selected: "+d.getSelectionCount()):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 |
JSON.parse(z.substring(17));null!=J.actions&&(this.updateCustomLinkActions(l,J.actions),z="data:action/json,"+JSON.stringify(J))}catch(O){}return z};Graph.prototype.updateCustomLinkActions=function(l,z){for(var J=0;J<z.length;J++){var O=z[J],T;for(T in O)this.updateCustomLinkAction(l,O[T],"cells"),this.updateCustomLinkAction(l,O[T],"excludeCells")}};Graph.prototype.updateCustomLinkAction=function(l,z,J){if(null!=z&&null!=z[J]){for(var O=[],T=0;T<z[J].length;T++)if("*"==z[J][T])O.push(z[J][T]);else{var W=
l[z[J][T]];null!=W?""!=W&&O.push(W):O.push(z[J][T])}z[J]=O}};Graph.prototype.getCellsForAction=function(l,z){z=this.getCellsById(l.cells).concat(this.getCellsForTags(l.tags,null,z));if(null!=l.excludeCells){for(var J=[],O=0;O<z.length;O++)0>l.excludeCells.indexOf(z[O].id)&&J.push(z[O]);z=J}return z};Graph.prototype.getCellsById=function(l){var z=[];if(null!=l)for(var J=0;J<l.length;J++)if("*"==l[J]){var O=this.model.getRoot();z=z.concat(this.model.filterDescendants(function(W){return W!=O},O))}else{var T= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
top:"40%",zIndex:2E9});l.spin(y);var z=window.setTimeout(function(){null==b[M]&&(l.stop(),y.style.display="none")},3E4);b.addListener("clientLoaded",mxUtils.bind(this,function(){null!=b[M]&&(window.clearTimeout(z),mxUtils.setOpacity(K,100),C.style.visibility="",l.stop(),p())}))}else p();F.appendChild(y);++U==L&&(mxUtils.br(F),U=0)}function x(N){var Q=G.value;if(null==N||null!=Q&&0<Q.length)q&&b.hideDialog(),f(Q,N,G)}A="1"==urlParams.noDevice?!1:A;u=null!=u?u:!0;v=null!=v?v:!0;L=null!=L?L:4;q=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 |
StorageFile.prototype.rename=function(b,e,f){var c=this.getTitle();c!=b?StorageFile.getFileInfo(this.ui,b,mxUtils.bind(this,function(k){var m=mxUtils.bind(this,function(){this.title=b;this.hasSameExtension(c,b)||this.setData(this.ui.getFileData());this.saveFile(b,!1,mxUtils.bind(this,function(){this.ui.removeLocalData(c,e)}),f)});null!=k?this.ui.confirm(mxResources.get("replaceIt",[b]),m,f):m()}),f):e()};StorageFile.prototype.open=function(){DrawioFile.prototype.open.apply(this,arguments);this.saveFile(this.getTitle())}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
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 |
libs:ja.getAttribute("libs"),clibs:ja.getAttribute("clibs"),title:ja.getAttribute("title")}),ja=ja.nextSibling;U(Ha)}});var Va=function(ja,fa,ma){za.style.display="";Fa.stop();K=!1;if(l)l=!1;else if(fa)ba.innerText=fa;else{ma=ma||{};fa=0;for(var na in ma)fa+=ma[na].length;0==ja.length&&0==fa?ba.innerText=mxResources.get("noDiagrams"):F(ja,!1,S,0==fa?null:ma)}};Q(V);var Ua=null;mxEvent.addListener(Ca,"keyup",p);mxEvent.addListener(Ca,"search",p);mxEvent.addListener(Ca,"input",p);mxEvent.addListener(la, | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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", | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
Graph.customFontElements={};Graph.recentCustomFonts={};Graph.isGoogleFontUrl=function(l){return l.substring(0,Editor.GOOGLE_FONTS.length)==Editor.GOOGLE_FONTS};Graph.isCssFontUrl=function(l){return Graph.isGoogleFontUrl(l)};Graph.createFontElement=function(l,z){var J=Graph.fontMapping[z];null==J&&Graph.isCssFontUrl(z)?(l=document.createElement("link"),l.setAttribute("rel","stylesheet"),l.setAttribute("type","text/css"),l.setAttribute("charset","UTF-8"),l.setAttribute("href",z)):(null==J&&(J='@font-face {\nfont-family: "'+ | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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=-1,x=function(){null!=u?(null!=v&&v(t),t=u(q)):q()};this.drawRuler=x;this.sizeListener=e=m(function(){var B=g.container;f?(B=B.offsetHeight+E,H.height!=B&&(H.height=B,L.style.height=B+"px",x())):(B=B.offsetWidth+E,H.width!=B&&(H.width=B,L.style.width=B+"px",x()))},10);this.pageListener=function(){x()};this.scrollListener=c=m(function(){var B=f?g.container.scrollTop:g.container.scrollLeft;D.lastScroll!=B&&(D.lastScroll=B,x())},10);this.unitListener=function(B,G){D.setUnit(G.getProperty("unit"))}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
[P],"{1} ago"));Q.setAttribute("title",N.toLocaleDateString()+" "+N.toLocaleTimeString())}function D(N){var Q=document.createElement("img");Q.className="geCommentBusyImg";Q.src=IMAGE_PATH+"/spin.gif";N.appendChild(Q);N.busyImg=Q}function A(N){N.style.border="1px solid red";N.removeChild(N.busyImg)}function L(N){N.style.border="";N.removeChild(N.busyImg)}function H(N,Q,P,M,p){function y(W,V,S){var X=document.createElement("li");X.className="geCommentAction";var Z=document.createElement("a");Z.className=
"geCommentActionLnk";mxUtils.write(Z,W);X.appendChild(Z);mxEvent.addListener(Z,"click",function(Y){V(Y,N);Y.preventDefault();mxEvent.consume(Y)});T.appendChild(X);S&&(X.style.display="none")}function C(){function W(X){V.push(S);if(null!=X.replies)for(var Z=0;Z<X.replies.length;Z++)S=S.nextSibling,W(X.replies[Z])}var V=[],S=l;W(N);return{pdiv:S,replies:V}}function K(W,V,S,X,Z){function Y(){D(ba);N.addReply(da,function(sa){da.id=sa;N.replies.push(da);L(ba);S&&S()},function(sa){aa();A(ba);b.handleError(sa, | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
EditorUi.prototype.adoptTheirPages=function(b,e,f){var c={};if(null!=e[EditorUi.DIFF_INSERT])for(var k=0;k<e[EditorUi.DIFF_INSERT].length;k++)c[e[EditorUi.DIFF_INSERT][k].id]=e[EditorUi.DIFF_INSERT][k];for(var m in b[EditorUi.DIFF_UPDATE])null!=c[m]&&(null==f[EditorUi.DIFF_INSERT]&&(f[EditorUi.DIFF_INSERT]=[]),null==f[EditorUi.DIFF_UPDATE]&&(f[EditorUi.DIFF_UPDATE]={}),f[EditorUi.DIFF_INSERT].push(c[m]),f[EditorUi.DIFF_UPDATE][m]=b[EditorUi.DIFF_UPDATE][m],delete b[EditorUi.DIFF_UPDATE][m])}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
wa,La.width*wa,La.height*wa))}return Aa};var Ja=ja.getGlobalVariable;ja.getGlobalVariable=function(Aa){return"page"==Aa?ka.getName():"pagenumber"==Aa?ia+1:"pagecount"==Aa?null!=l.pages?l.pages.length:1:Ja.apply(this,arguments)};document.body.appendChild(ja.container);l.updatePageRoot(ka);ja.model.setRoot(ka.root)}na=Ha(ja,na,ia!=ma,ka.getId());ja!=T&&ja.container.parentNode.removeChild(ja.container)}}else na=Ha(T);null==na||null==na.wnd?l.handleError({message:mxResources.get("errorUpdatingPreview")}):
(na.mathEnabled&&(ma=na.wnd.document,Qa&&(na.wnd.IMMEDIATE_PRINT=!0),ma.writeln('<script type="text/javascript" src="'+DRAWIO_BASE_URL+'/js/math-print.js">\x3c/script>')),na.closeDocument(),Graph.rewritePageLinks(na.wnd.document),!na.mathEnabled&&Qa&&PrintDialog.printPreview(na));null!=Ia&&(T.shapeForegroundColor=Va,T.shapeBackgroundColor=Ua,T.stylesheet=Ia,T.refresh())}}var T=l.editor.graph,W=document.createElement("div"),V=document.createElement("h3");V.style.width="100%";V.style.textAlign="center"; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
d?d:"",extras:JSON.stringify(t),scale:B,border:G,w:R&&isFinite(R)?R:null,h:N&&isFinite(N)?N:null}};EditorUi.prototype.setMode=function(d,g){this.mode=d};EditorUi.prototype.getDiagramId=function(){var d=window.location.hash;null!=d&&0<d.length&&(d=d.substring(1));if(null!=d&&1<d.length){var g=d.indexOf("#");0<=g&&(d=d.substring(0,g))}return d};EditorUi.prototype.getHashObject=function(){var d=window.location.hash,g={};if(null!=d&&0<d.length){var n=d.lastIndexOf("#");if(0<n){d=decodeURIComponent(d.substring(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 |
delete t.cells[x]}}),g(EditorUi.DIFF_INSERT),g(EditorUi.DIFF_UPDATE),mxUtils.isEmptyObject(t.cells)&&delete t.cells);mxUtils.isEmptyObject(t)&&delete d[EditorUi.DIFF_UPDATE][q]}mxUtils.isEmptyObject(d[EditorUi.DIFF_UPDATE])&&delete d[EditorUi.DIFF_UPDATE]}return d};EditorUi.prototype.anonymizeAttributes=function(d,g){if(null!=d.attributes)for(var n=0;n<d.attributes.length;n++)"as"!=d.attributes[n].name&&d.setAttribute(d.attributes[n].name,this.anonymizeString(d.attributes[n].value,g));if(null!=d.childNodes)for(n=
0;n<d.childNodes.length;n++)this.anonymizeAttributes(d.childNodes[n],g)};EditorUi.prototype.anonymizeNode=function(d,g){g=d.getElementsByTagName("mxCell");for(var n=0;n<g.length;n++)null!=g[n].getAttribute("value")&&g[n].setAttribute("value","["+g[n].getAttribute("value").length+"]"),null!=g[n].getAttribute("xmlValue")&&g[n].setAttribute("xmlValue","["+g[n].getAttribute("xmlValue").length+"]"),null!=g[n].getAttribute("style")&&g[n].setAttribute("style","["+g[n].getAttribute("style").length+"]"),null!= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
this.editor.graph;Graph.touchStyle&&(g.panningHandler.isPanningTrigger=function(C){var K=C.getEvent();return null==C.getState()&&!mxEvent.isMouseEvent(K)&&!g.freehand.isDrawing()||mxEvent.isPopupTrigger(K)&&(null==C.getState()||mxEvent.isControlDown(K)||mxEvent.isShiftDown(K))});g.cellEditor.editPlantUmlData=function(C,K,l){var z=JSON.parse(l);K=new TextareaDialog(d,mxResources.get("plantUml")+":",z.data,function(J){null!=J&&d.spinner.spin(document.body,mxResources.get("inserting"))&&d.generatePlantUmlImage(J, | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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.fileChanged=function(b,e,f,c,k){var m=window.setTimeout(mxUtils.bind(this,function(){null!=f&&f()||(EditorUi.debug("DrawioFileSync.fileChanged",[this],"lazy",c,"immediate",k,"remoteFileChanged",this.remoteFileChanged,"valid",this.isValidState()),this.isValidState()?(this.remoteFileChanged=!1,this.file.loadPatchDescriptor(mxUtils.bind(this,function(u){null!=f&&f()||(this.isValidState()?this.catchup(u,b,e,f,k):null!=e&&e())}),e)):null!=e&&e())}),c?this.cacheReadyDelay:0);return this.notifyThread=
m}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
AspectDialog.prototype.createPageItem=function(b,e,f){var c=document.createElement("div");c.className="geAspectDlgListItem";c.setAttribute("data-page-id",b);c.innerHTML='<div style="max-width: 100%; max-height: 100%;"></div><div class="geAspectDlgListItemText">'+mxUtils.htmlEntities(e)+"</div>";this.pagesContainer.appendChild(c);var k=this.createViewer(c.childNodes[0],f);e=mxUtils.bind(this,function(){null!=this.selectedItem&&(this.selectedItem.className="geAspectDlgListItem");this.selectedItem=c;
this.selectedPage=b;c.className+=" geAspectDlgListItemSelected";this.layersContainer.innerText="";this.selectedLayers={};this.okBtn.setAttribute("disabled","disabled");var m=k.model;m=m.getChildCells(m.getRoot());for(var u=0;u<m.length;u++)this.createLayerItem(m[u],b,k,f)});mxEvent.addListener(c,"click",e);this.aspect.pageId==b&&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 |
"0"!=urlParams.pv;Graph.prototype.shadowId="dropShadow";Graph.prototype.svgShadowColor="#3D4574";Graph.prototype.svgShadowOpacity="0.4";Graph.prototype.svgShadowBlur="1.7";Graph.prototype.svgShadowSize="3";Graph.prototype.hiddenTags=[];Graph.prototype.defaultMathEnabled=!1;var g=Graph.prototype.init;Graph.prototype.init=function(){function l(T){z=T}g.apply(this,arguments);this.hiddenTags=[];window.mxFreehand&&(this.freehand=new mxFreehand(this));var z=null;mxEvent.addListener(this.container,"mouseenter",
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?
parseFloat(W.rackUnitSize):"undefined"!==typeof mxRackContainer?mxRackContainer.unitSize:20;V.marginLeft=W.marginLeft||0;V.marginRight=W.marginRight||0;V.marginTop=W.marginTop||0;V.marginBottom=W.marginBottom||0;V.allowGaps=W.allowGaps||0;V.horizontal="1"==mxUtils.getValue(W,"horizontalRack","0");V.resizeParent=!1;V.fill=!0;return V}return O.apply(this,arguments)};this.updateGlobalUrlVariables()};var n=Graph.prototype.postProcessCellStyle;Graph.prototype.postProcessCellStyle=function(l,z){return Graph.processFontStyle(n.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 |
Editor.settingsKey=".sketch-config")};EditorUi.initTheme();EditorUi.prototype.showImageDialog=function(d,g,n,q,t,x,B){d=new ImageDialog(this,d,g,n,q,t,x,B);this.showDialog(d.container,Graph.fileSupport?480:360,Graph.fileSupport?200:90,!0,!0);d.init()};EditorUi.prototype.showLocalStorageDialog=function(d,g,n,q,t,x){var B=localStorage.getItem(g);d=new TextareaDialog(this,d,null!=B?JSON.stringify(JSON.parse(B),null,2):"",mxUtils.bind(this,function(G){if(null!=G)try{if(null!=x&&x(G),G==B)this.hideDialog(); | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
n)});G()};GitHubClient.prototype.logout=function(){this.clearPersistentToken();this.setUser(null);b=null}})();TrelloFile=function(b,e,f){DrawioFile.call(this,b,e);this.meta=f;this.saveNeededCounter=0};mxUtils.extend(TrelloFile,DrawioFile);TrelloFile.prototype.getHash=function(){return"T"+encodeURIComponent(this.meta.compoundId)};TrelloFile.prototype.getMode=function(){return App.MODE_TRELLO};TrelloFile.prototype.isAutosave=function(){return!0};TrelloFile.prototype.getTitle=function(){return this.meta.name};TrelloFile.prototype.isRenamable=function(){return!1};TrelloFile.prototype.getSize=function(){return this.meta.bytes}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
d?d:"",extras:JSON.stringify(t),scale:B,border:G,w:R&&isFinite(R)?R:null,h:N&&isFinite(N)?N:null}};EditorUi.prototype.setMode=function(d,g){this.mode=d};EditorUi.prototype.getDiagramId=function(){var d=window.location.hash;null!=d&&0<d.length&&(d=d.substring(1));if(null!=d&&1<d.length){var g=d.indexOf("#");0<=g&&(d=d.substring(0,g))}return d};EditorUi.prototype.getHashObject=function(){var d=window.location.hash,g={};if(null!=d&&0<d.length){var n=d.lastIndexOf("#");if(0<n){d=decodeURIComponent(d.substring(n+ | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
null,"geBtn");b.editor.cancelFirst&&H.appendChild(d);null!=g&&H.appendChild(g);H.appendChild(N);b.editor.cancelFirst||H.appendChild(d);L.appendChild(H);this.init=function(){Editor.selectFilename(t)};this.container=L},CreateDialog=function(b,e,f,c,k,m,u,v,E,D,A,L,H,d,g,n,q){function t(N,Q,P,M){function p(){mxEvent.addListener(y,"click",function(){var J=P;if(u){var O=G.value,T=O.lastIndexOf(".");if(0>e.lastIndexOf(".")&&0>T){J=null!=J?J:R.value;var W="";J==App.MODE_GOOGLE?W=b.drive.extension:J==App.MODE_GITHUB?
W=b.gitHub.extension:J==App.MODE_GITLAB?W=b.gitLab.extension:J==App.MODE_TRELLO?W=b.trello.extension:J==App.MODE_DROPBOX?W=b.dropbox.extension:J==App.MODE_ONEDRIVE?W=b.oneDrive.extension:J==App.MODE_DEVICE&&(W=".drawio");0<=T&&(O=O.substring(0,T));G.value=O+W}}x(P)})}var y=document.createElement("a");y.style.overflow="hidden";var C=document.createElement("img");C.src=N;C.setAttribute("border","0");C.setAttribute("align","absmiddle");C.style.width="60px";C.style.height="60px";C.style.paddingBottom=
"6px";y.style.display="inline-block";y.className="geBaseButton";y.style.position="relative";y.style.margin="4px";y.style.padding="8px 8px 10px 8px";y.style.whiteSpace="nowrap";y.appendChild(C);y.style.color="gray";y.style.fontSize="11px";var K=document.createElement("div");y.appendChild(K);mxUtils.write(K,Q);if(null!=M&&null==b[M]){C.style.visibility="hidden";mxUtils.setOpacity(K,10);var l=new Spinner({lines:12,length:12,width:5,radius:10,rotate:0,color:"#000",speed:1.5,trail:60,shadow:!1,hwaccel:!1,
top:"40%",zIndex:2E9});l.spin(y);var z=window.setTimeout(function(){null==b[M]&&(l.stop(),y.style.display="none")},3E4);b.addListener("clientLoaded",mxUtils.bind(this,function(){null!=b[M]&&(window.clearTimeout(z),mxUtils.setOpacity(K,100),C.style.visibility="",l.stop(),p())}))}else p();F.appendChild(y);++U==L&&(mxUtils.br(F),U=0)}function x(N){var Q=G.value;if(null==N||null!=Q&&0<Q.length)q&&b.hideDialog(),f(Q,N,G)}A="1"==urlParams.noDevice?!1:A;u=null!=u?u:!0;v=null!=v?v:!0;L=null!=L?L:4;q=null!= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
function(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"== | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
App.prototype.pickFolder=function(b,e,f,c,k,m){f=null!=f?f:!0;var u=this.spinner.pause();f&&b==App.MODE_GOOGLE&&null!=this.drive?this.drive.pickFolder(mxUtils.bind(this,function(v){u();if(v.action==google.picker.Action.PICKED){var E=null;null!=v.docs&&0<v.docs.length&&"folder"==v.docs[0].type&&(E=v.docs[0].id);e(m?v:E)}}),k):f&&b==App.MODE_ONEDRIVE&&null!=this.oneDrive?this.oneDrive.pickFolder(mxUtils.bind(this,function(v){u();if(null!=v&&null!=v.value&&0<v.value.length){var E=OneDriveFile.prototype.getIdOf(v.value[0]);
e(m?v:E)}}),c):f&&b==App.MODE_GITHUB&&null!=this.gitHub?this.gitHub.pickFolder(mxUtils.bind(this,function(v){u();e(v)})):f&&b==App.MODE_GITLAB&&null!=this.gitLab?this.gitLab.pickFolder(mxUtils.bind(this,function(v){u();e(v)})):f&&b==App.MODE_TRELLO&&null!=this.trello?this.trello.pickFolder(mxUtils.bind(this,function(v){u();e(v)})):EditorUi.prototype.pickFolder.apply(this,arguments)}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
return U}),F=!0);return F};var B=t.stop;t.stop=function(){B.call(this);this.active=!1;null!=t.status&&null!=t.status.parentNode&&t.status.parentNode.removeChild(t.status);t.status=null};t.pause=function(){return function(){}};return t};EditorUi.prototype.isCompatibleString=function(d){try{var g=mxUtils.parseXml(d),n=this.editor.extractGraphModel(g.documentElement,!0);return null!=n&&0==n.getElementsByTagName("parsererror").length}catch(q){}return!1};EditorUi.prototype.isVisioData=function(d){return 8< | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
"&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; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
d;else if("mxfile"==d.nodeName){var q=d.getElementsByTagName("diagram");if(0<q.length){n=q[0];var t=g.getGlobalVariable;g.getGlobalVariable=function(x){return"page"==x?n.getAttribute("name")||mxResources.get("pageWithNumber",[1]):"pagenumber"==x?1:t.apply(this,arguments)}}}null!=n&&(d=Editor.parseDiagramNode(n))}q=this.editor.graph;try{this.editor.graph=g,this.editor.setGraphXml(d)}catch(x){}finally{this.editor.graph=q}return d};EditorUi.prototype.getSvgFileProperties=function(d){return this.getPngFileProperties(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 |
function(e,f,c){this.ui.confirm(mxResources.get("note")+": "+mxResources.get("fileWillBeSavedInAppFolder",[e.name]),mxUtils.bind(this,function(){this.ui.editor.loadUrl(e.link,mxUtils.bind(this,function(k){this.insertFile(e.name,k,mxUtils.bind(this,function(m){try{this.ui.spinner.stop(),f(m.getHash().substring(1),m)}catch(u){c(u)}}),c,!0)}),c)}),mxUtils.bind(this,function(){this.ui.spinner.stop()}))};DropboxClient.prototype.pickFile=function(e,f){null!=Dropbox.choose?(e=null!=e?e: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 |
"ellipsis";M.setAttribute("title",P.title+" ("+P.id+")");var p=document.createElement("input");p.setAttribute("type","checkbox");p.checked=b.sidebar.isEntryVisible(P.id);p.defaultChecked=p.checked;M.appendChild(p);mxUtils.write(M," "+P.title);A.appendChild(M);var y=function(C){if(null==C||"INPUT"!=mxEvent.getSource(C).nodeName){L.style.textAlign="center";L.style.padding="0px";L.style.color="";L.innerText="";if(null!=P.desc){var K=document.createElement("pre");K.style.boxSizing="border-box";K.style.fontFamily=
"inherit";K.style.margin="20px";K.style.right="0px";K.style.textAlign="left";mxUtils.write(K,P.desc);L.appendChild(K)}null!=P.imageCallback?P.imageCallback(L):null!=P.image?L.innerHTML+='<img border="0" style="max-width:100%;" src="'+P.image+'"/>':null==P.desc&&(L.style.padding="20px",L.style.color="rgb(179, 179, 179)",mxUtils.write(L,mxResources.get("noPreview")));null!=H&&(H.style.backgroundColor="");H=M;H.style.backgroundColor=Editor.isDarkMode()?"#000000":"#ebf2f9";null!=C&&mxEvent.consume(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 |
Ga;var Ea=aa.gridSize*ra.gridSteps*S,Qa=aa.getGraphBounds(),Ha=ra.translate.x*va,Ra=ra.translate.y*va,Ia=Ha+(Qa.x-Ha)/va-ca,Va=Ra+(Qa.y-Ra)/va-ca,Ua=new Image;Ua.onload=function(){try{for(var ja=-Math.round(Ea-mxUtils.mod((Ha-Ia)*S,Ea)),fa=-Math.round(Ea-mxUtils.mod((Ra-Va)*S,Ea));ja<ta;ja+=Ea)for(var ma=fa;ma<Fa;ma+=Ea)pa.drawImage(Ua,ja/S,ma/S);ya()}catch(na){null!=T&&T(na)}};Ua.onerror=function(ja){null!=T&&T(ja)};Ua.src=Ga}else ya()}catch(ja){null!=T&&T(ja)}});qa.onerror=function(ya){null!=T&&
T(ya)};Z&&this.graph.addSvgShadow(ha);this.graph.mathEnabled&&this.addMathCss(ha);var la=mxUtils.bind(this,function(){try{null!=this.resolvedFontCss&&this.addFontCss(ha,this.resolvedFontCss),qa.src=Editor.createSvgDataUri(mxUtils.getXml(ha))}catch(ya){null!=T&&T(ya)}});this.embedExtFonts(mxUtils.bind(this,function(ya){try{null!=ya&&this.addFontCss(ha,ya),this.loadFonts(la)}catch(Ca){null!=T&&T(Ca)}}))}catch(ya){null!=T&&T(ya)}}),J,Y)}catch(ha){null!=T&&T(ha)}};Editor.crcTable=[];for(var k=0;256>k;k++)for(var m= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
m)for(u=0;u<m.length;u++)m[u].node.style.visibility=c?"visible":"hidden"};var f=mxGuide.prototype.destroy;mxGuide.prototype.destroy=function(){f.call(this);var c=this.guidesArrVer,k=this.guidesArrHor;if(null!=c){for(var m=0;m<c.length;m++)c[m].destroy();this.guidesArrVer=null}if(null!=k){for(m=0;m<k.length;m++)k[m].destroy();this.guidesArrHor=null}}})();function mxRuler(b,e,f,c){function k(){var B=b.diagramContainer;L.style.top=B.offsetTop-E+"px";L.style.left=B.offsetLeft-E+"px";L.style.width=(f?0:B.offsetWidth)+E+"px";L.style.height=(f?B.offsetHeight:0)+E+"px"}function m(B,G,I){if(null!=u)return B;var F;return function(){var U=this,R=arguments,N=I&&!F;clearTimeout(F);F=setTimeout(function(){F=null;I||B.apply(U,R)},G);N&&B.apply(U,R)}}var u=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame, | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
na.join(" ")}null!=ja?(O=ja,O.className+=" "+fa,T=ma,la.className="geTempDlgCreateBtn"):(T=O=null,la.className="geTempDlgCreateBtn geTempDlgBtnDisabled")}function G(ja,fa){if(null!=T){var ma=function(xa){ka.isExternal?E(ka,function(ua){na(ua,xa)},oa):ka.url?mxUtils.get(TEMPLATE_PATH+"/"+ka.url,mxUtils.bind(this,function(ua){200<=ua.getStatus()&&299>=ua.getStatus()?na(ua.getText(),xa):oa()})):na(b.emptyDiagramXml,xa)},na=function(xa,ua){g||b.hideDialog(!0);e(xa,ua,ka,fa)},oa=function(){n(mxResources.get("cannotLoad"));
ia()},ia=function(){T=ka;la.className="geTempDlgCreateBtn";fa&&(ya.className="geTempDlgOpenBtn")},ka=T;T=null;"boolean"!==typeof fa&&(fa=ka.isExternal&&L);1==ja?D(ka.url,ka):fa?(ya.className="geTempDlgOpenBtn geTempDlgBtnDisabled geTempDlgBtnBusy",ma()):(la.className="geTempDlgCreateBtn geTempDlgBtnDisabled geTempDlgBtnBusy",ja=null==b.mode||b.mode==App.MODE_GOOGLE||b.mode==App.MODE_BROWSER?mxResources.get("diagramName"):mxResources.get("filename"),ja=new FilenameDialog(b,b.defaultFilename+".drawio",
mxResources.get("ok"),ma,ja,function(xa){var ua=null!=xa&&0<xa.length;return ua&&g?(ma(xa),!1):ua},null,null,null,ia,d?null:[]),b.showDialog(ja.container,350,80,!0,!0),ja.init())}}function I(ja){la.innerText=mxResources.get(ca||ja?"create":"copy");ja=ja?"none":"";L&&(ya.style.display=ja);for(var fa=C.querySelectorAll(".geTempDlgLinkToDiagram"),ma=0;ma<fa.length;ma++)fa[ma].style.display=ja}function F(ja,fa,ma,na,oa){oa||(ba.innerText="",B(),X=ja,Z=na);var ia=null;if(ma){ia=document.createElement("table"); | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
StorageFile.prototype.saveFile=function(b,e,f,c){if(this.isEditable()){var k=mxUtils.bind(this,function(){this.isRenamable()&&(this.title=b);try{var m=mxUtils.bind(this,function(){this.setModified(this.getShadowModified());this.contentChanged();null!=f&&f()});this.setShadowModified(!1);var u=this.getData();this.ui.setDatabaseItem(null,[{title:this.title,size:u.length,lastModified:Date.now(),type:this.type},{title:this.title,data:u}],m,mxUtils.bind(this,function(){if(null==this.ui.database)try{this.ui.setLocalData(this.title,
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 |
(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 |
!0)},function(x){t(x,!1)},mxResources.get("resize"),mxResources.get("actualSize"),'<img style="margin-top:8px;" src="'+Editor.loResImage+'"/>','<img style="margin-top:8px;" src="'+Editor.hiResImage+'"/>',isLocalStorage||mxClient.IS_CHROMEAPP)).container,340,isLocalStorage||mxClient.IS_CHROMEAPP?220:200,!0,!0):t(!1,q)};EditorUi.prototype.parseFile=function(d,g,n){n=null!=n?n:d.name;var q=new FileReader;q.onload=mxUtils.bind(this,function(){this.parseFileData(q.result,g,n)});q.readAsText(d)};EditorUi.prototype.parseFileData= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
return U}),F=!0);return F};var B=t.stop;t.stop=function(){B.call(this);this.active=!1;null!=t.status&&null!=t.status.parentNode&&t.status.parentNode.removeChild(t.status);t.status=null};t.pause=function(){return function(){}};return t};EditorUi.prototype.isCompatibleString=function(d){try{var g=mxUtils.parseXml(d),n=this.editor.extractGraphModel(g.documentElement,!0);return null!=n&&0==n.getElementsByTagName("parsererror").length}catch(q){}return!1};EditorUi.prototype.isVisioData=function(d){return 8< | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
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 |
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,
function(u){f&&(window.clearTimeout(c),this.sync.cleanup(b,e,u))}),k,m):this.updateFile(mxUtils.bind(this,function(){f&&(window.clearTimeout(c),null!=b&&b())}),k,m)}}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
JSON.stringify(c)+"\r\n---------314159265358979323846\r\nContent-Type: application/octect-stream\r\nContent-Transfer-Encoding: base64\r\n\r\n"+(null!=k?u?k:!window.btoa||mxClient.IS_IE||mxClient.IS_IE11?Base64.encode(k):Graph.base64EncodeUnicode(k):"")+"\r\n---------314159265358979323846--"};m||(f.fullUrl+="&newRevision=false");E&&(f.fullUrl+="&pinned=true");return f};DriveClient.prototype.createLinkPicker=function(){var f=e.linkPicker;if(null==f||e.linkPickerToken!=b){e.linkPickerToken=b;f=(new google.picker.DocsView(google.picker.ViewId.FOLDERS)).setParent("root").setIncludeFolders(!0).setSelectFolderEnabled(!0); | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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,g,n){var q=new XMLHttpRequest;q.open("POST",OPEN_URL);q.setRequestHeader("Content-Type","application/x-www-form-urlencoded");q.onreadystatechange=function(){g(q)};q.send("format=xml&filename="+encodeURIComponent(n)+"&data="+encodeURIComponent(d));try{EditorUi.logEvent({category:"GLIFFY-IMPORT-FILE",action:"size_"+file.size})}catch(t){}};EditorUi.prototype.isResampleImageSize=function(d,g){g=null!=g?g:this.resampleThreshold;return d>g};EditorUi.prototype.resizeImage=function(d,g,n,q,t,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.originalFillAndStroke.apply(this.canvas,arguments):this.drawPath(this.getStyle(!0,!0))};l.prototype.destroy=function(){this.canvas.lineTo=this.originalLineTo;this.canvas.moveTo=this.originalMoveTo;this.canvas.close=this.originalClose;this.canvas.quadTo=this.originalQuadTo;this.canvas.curveTo=this.originalCurveTo;this.canvas.arcTo=this.originalArcTo;this.canvas.close=this.originalClose;this.canvas.fill=this.originalFill;this.canvas.stroke=this.originalStroke;this.canvas.fillAndStroke=this.originalFillAndStroke;
this.canvas.begin=this.originalBegin;this.canvas.end=this.originalEnd;this.canvas.rect=this.originalRect;this.canvas.ellipse=this.originalEllipse;this.canvas.roundrect=this.originalRoundrect};mxShape.prototype.createRoughCanvas=function(W){return new l(W,Editor.createRoughCanvas(W),this)};var z=mxShape.prototype.createHandJiggle;mxShape.prototype.createHandJiggle=function(W){return this.outline||null==this.style||"0"==mxUtils.getValue(this.style,"sketch","0")?z.apply(this,arguments):"comic"==mxUtils.getValue(this.style, | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
"https://app.diagrams.net/";var B=d.editor.getEditBlankUrl;this.editor.getEditBlankUrl=function(C){C=null!=C?C:"";"1"==urlParams.dev&&(C+=(0<C.length?"&":"?")+"dev=1");return B.apply(this,arguments)};var G=g.addClickHandler;g.addClickHandler=function(C,K,l){var z=K;K=function(J,O){if(null==O){var T=mxEvent.getSource(J);"a"==T.nodeName.toLowerCase()&&(O=T.getAttribute("href"))}null!=O&&g.isCustomLink(O)&&(mxEvent.isTouchEvent(J)||!mxEvent.isPopupTrigger(J))&&g.customLinkClicked(O)&&mxEvent.consume(J); | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
2});var t=null,x=null,B=null,G=null,I=null,F=null,U=null;c.actions.addAction("testPerformance",mxUtils.bind(this,function(){null!=t?(k.view.revalidate=t,t=null):(t=k.view.revalidate,k.view.revalidate=function(){var p=Date.now(),y=t.apply(this,arguments);EditorUi.debug("[Performance] mxGraphView.revalidate",[this],"time",Date.now()-p+" ms","args",arguments);return y});null!=x?(c.selectPage=x,x=null):(x=c.selectPage,c.selectPage=function(){var p=Date.now(),y=x.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.selectPage", | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
"/oauth2/v2.0/logout","logout","width=525,height=525,status=no,resizable=yes,toolbar=no,menubar=no,scrollbars=yes");this.ui.editor.loadUrl(this.redirectUri+"?doLogout=1&state="+encodeURIComponent("cId="+this.clientId+"&domain="+window.location.host));this.clearPersistentToken();this.setUser(null);b=null}})();GitHubFile=function(b,e,f){DrawioFile.call(this,b,e);this.meta=f;this.peer=this.ui.gitHub};mxUtils.extend(GitHubFile,DrawioFile);GitHubFile.prototype.share=function(){this.ui.editor.graph.openLink("https://github.com/"+encodeURIComponent(this.meta.org)+"/"+encodeURIComponent(this.meta.repo)+"/settings/access")}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
document.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(); | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
libs:ja.getAttribute("libs"),clibs:ja.getAttribute("clibs"),title:ja.getAttribute("title")}),ja=ja.nextSibling;U(Ha)}});var Va=function(ja,fa,ma){za.style.display="";Fa.stop();K=!1;if(l)l=!1;else if(fa)ba.innerText=fa;else{ma=ma||{};fa=0;for(var na in ma)fa+=ma[na].length;0==ja.length&&0==fa?ba.innerText=mxResources.get("noDiagrams"):F(ja,!1,S,0==fa?null:ma)}};Q(V);var Ua=null;mxEvent.addListener(Ca,"keyup",p);mxEvent.addListener(Ca,"search",p);mxEvent.addListener(Ca,"input",p);mxEvent.addListener(la, | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
G){x=null!=x?x:!0;var I=document.createElement("input");I.style.marginRight="8px";I.style.marginTop="16px";I.setAttribute("type",B?"radio":"checkbox");B="geCheckbox-"+Editor.guid();I.id=B;null!=G&&I.setAttribute("name",G);n&&(I.setAttribute("checked","checked"),I.defaultChecked=!0);q&&I.setAttribute("disabled","disabled");x&&(d.appendChild(I),n=document.createElement("label"),mxUtils.write(n,g),n.setAttribute("for",B),d.appendChild(n),t||mxUtils.br(d));return I};EditorUi.prototype.addEditButton=function(d,
g){var n=this.addCheckbox(d,mxResources.get("edit")+":",!0,null,!0);n.style.marginLeft="24px";var q=this.getCurrentFile(),t="";null!=q&&q.getMode()!=App.MODE_DEVICE&&q.getMode()!=App.MODE_BROWSER&&(t=window.location.href);var x=document.createElement("select");x.style.maxWidth="200px";x.style.width="auto";x.style.marginLeft="8px";x.style.marginRight="10px";x.className="geBtn";q=document.createElement("option");q.setAttribute("value","blank");mxUtils.write(q,mxResources.get("makeCopy"));x.appendChild(q);
q=document.createElement("option");q.setAttribute("value","custom");mxUtils.write(q,mxResources.get("custom")+"...");x.appendChild(q);d.appendChild(x);mxEvent.addListener(x,"change",mxUtils.bind(this,function(){if("custom"==x.value){var B=new FilenameDialog(this,t,mxResources.get("ok"),function(G){null!=G?t=G:x.value="blank"},mxResources.get("url"),null,null,null,null,function(){x.value="blank"});this.showDialog(B.container,300,80,!0,!1);B.init()}}));mxEvent.addListener(n,"change",mxUtils.bind(this,
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", | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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:P.constObj.point.y,dx:P.constObj.dx,dy:P.constObj.dy};var M=0,p=0,y=H.geometry,C=mxUtils.format((P.geometry.x+3-y.x)/y.width);P=mxUtils.format((P.geometry.y+3-y.y)/y.height);0>C?(M=C*y.width,C=0):1<C&&(M=(C-1)*y.width,C=1);0>P?(p=P*y.height,P=0):1<P&&(p=(P-1)*y.height,P=1);return{x:C,y:P,dx:parseInt(M),dy:parseInt(p)}}function D(P){if(1==L.getSelectionCount()){var M=L.getSelectionCell();P&&(M.constObj=null);P=E(M);U.value=100*P.x;N.value=100*P.y;R.value=P.dx;Q.value=P.dy;F.style.visibility=""}else F.style.visibility=
"hidden"}var A=document.createElement("div");A.style.width="350px";A.style.height="350px";A.style.overflow="hidden";A.style.border="1px solid lightGray";A.style.boxSizing="border-box";mxEvent.disableContextMenu(A);c.appendChild(A);var L=new Graph(A);L.autoExtend=!1;L.autoScroll=!1;L.setGridEnabled(!1);L.setEnabled(!0);L.setPanning(!0);L.setConnectable(!1);L.setTooltips(!1);L.minFitScale=null;L.maxFitScale=null;L.centerZoom=!0;L.maxFitScale=2;A=e.geometry;var H=new mxCell(e.value,new mxGeometry(0, | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
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 |
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"==
urlParams.odAuthCancellable);else(new mxXmlRequest(this.redirectUri+"?getState=1",null,"GET")).send(mxUtils.bind(this,function(k){200<=k.getStatus()&&299>=k.getStatus()?this.authenticateStep2(k.getText(),e,f,c):null!=f&&f(k)}),f)};OneDriveClient.prototype.updateAuthInfo=function(e,f,c,k,m){c&&this.setUser(null);b=e.access_token;delete e.access_token;e.expiresOn=Date.now()+1E3*e.expires_in;this.tokenExpiresOn=e.expiresOn;e.remember=f;this.setPersistentToken(JSON.stringify(e),!f);this.resetTokenRefresh(e.expires_in); | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
x(c3&63);return r+=x(c4&63)}function x(G){if(10>G)return String.fromCharCode(48+G);G-=10;if(26>G)return String.fromCharCode(65+G);G-=26;if(26>G)return String.fromCharCode(97+G);G-=26;return 0==G?"-":1==G?"_":"?"}var B=new XMLHttpRequest;B.open("GET",("txt"==g?PLANT_URL+"/txt/":"png"==g?PLANT_URL+"/png/":PLANT_URL+"/svg/")+function(G){r="";for(i=0;i<G.length;i+=3)r=i+2==G.length?r+t(G.charCodeAt(i),G.charCodeAt(i+1),0):i+1==G.length?r+t(G.charCodeAt(i),0,0):r+t(G.charCodeAt(i),G.charCodeAt(i+1),G.charCodeAt(i+ | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
mxUtils.parseXml(z).documentElement;return"mxfile"==J.nodeName||"mxGraphModel"==J.nodeName}}catch(O){}return!1};Editor.prototype.extractGraphModel=function(l,z,J){return Editor.extractGraphModel.apply(this,arguments)};var f=Editor.prototype.resetGraph;Editor.prototype.resetGraph=function(){this.graph.mathEnabled="1"==urlParams.math;this.graph.view.x0=null;this.graph.view.y0=null;this.graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&this.graph.isCssTransformsSupported();this.graph.updateCssTransform(); | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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 |
d.error.data[0].reason)||404==I.code||404==I.status)){R="#U"==R.substring(0,2)?R.substring(45,R.lastIndexOf("%26ex")):R.substring(2);this.showError(g,B,mxResources.get("openInNewWindow"),mxUtils.bind(this,function(){this.editor.graph.openLink("https://drive.google.com/open?id="+R);this.handleError(d,g,n,q,t)}),U,mxResources.get("changeUser"),mxUtils.bind(this,function(){function Q(){y.innerText="";for(var C=0;C<P.length;C++){var K=document.createElement("option");mxUtils.write(K,P[C].displayName);
K.value=C;y.appendChild(K);K=document.createElement("option");K.innerHTML=" ";mxUtils.write(K,"<"+P[C].email+">");K.setAttribute("disabled","disabled");y.appendChild(K)}K=document.createElement("option");mxUtils.write(K,mxResources.get("addAccount"));K.value=P.length;y.appendChild(K)}var P=this.drive.getUsersList(),M=document.createElement("div"),p=document.createElement("span");p.style.marginTop="6px";mxUtils.write(p,mxResources.get("changeUser")+": ");M.appendChild(p);var y=document.createElement("select"); | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
if(null!=x.hoverIcons){var Q=x.hoverIcons.update;x.hoverIcons.update=function(){B.freehand.isDrawing()||Q.apply(this,arguments)}}if(null!=B.freehand){var P=B.freehand.createStyle;B.freehand.createStyle=function(S){return P.apply(this,arguments)+"sketch=0;"}}x.editor.addListener("statusChanged",mxUtils.bind(this,function(){x.setStatusText(x.editor.getStatus())}));x.setStatusText(x.editor.getStatus());var M=x.menus.get("viewZoom");if(null!=M){var p=function(S){if(mxEvent.isAltDown(S))x.hideCurrentMenu(), | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
k,u=0;8>u;u++)m=1==(m&1)?3988292384^m>>>1:m>>>1,Editor.crcTable[k]=m;Editor.updateCRC=function(l,z,J,O){for(var T=0;T<O;T++)l=Editor.crcTable[(l^z.charCodeAt(J+T))&255]^l>>>8;return l};Editor.crc32=function(l){for(var z=-1,J=0;J<l.length;J++)z=z>>>8^Editor.crcTable[(z^l.charCodeAt(J))&255];return(z^-1)>>>0};Editor.writeGraphModelToPng=function(l,z,J,O,T){function W(Y,aa){var ca=X;X+=aa;return Y.substring(ca,X)}function V(Y){Y=W(Y,4);return Y.charCodeAt(3)+(Y.charCodeAt(2)<<8)+(Y.charCodeAt(1)<<16)+
(Y.charCodeAt(0)<<24)}function S(Y){return String.fromCharCode(Y>>24&255,Y>>16&255,Y>>8&255,Y&255)}l=l.substring(l.indexOf(",")+1);l=window.atob?atob(l):Base64.decode(l,!0);var X=0;if(W(l,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=T&&T();else if(W(l,4),"IHDR"!=W(l,4))null!=T&&T();else{W(l,17);T=l.substring(0,X);do{var Z=V(l);if("IDAT"==W(l,4)){T=l.substring(0,X-8);"pHYs"==z&&"dpi"==J?(J=Math.round(O/.0254),J=S(J)+S(J)+String.fromCharCode(1)):J=J+String.fromCharCode(0)+ | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
F[C].destroyed?(F[C]=l,x[C]=!0,EditorUi.debug("P2PCollab: p2p socket connected",C)):(l.noP2PMapDel=!0,l.destroy(),EditorUi.debug("P2PCollab: p2p socket duplicate",C))});l.on("close",function(){l.noP2PMapDel||(EditorUi.debug("P2PCollab: p2p socket closed",C),D(t[C]),delete F[C])});l.on("data",u);return I[C]=l}}function E(C,K){D(K||t[C]);null!=C&&(delete t[C],x[C]=!1)}function D(C){var K=g[C];if(null!=K){var l=K.selection,z;for(z in l)null!=l[z]&&l[z].destroy();null!=K.cursor&&null!=K.cursor.parentNode&&
K.cursor.parentNode.removeChild(K.cursor);clearTimeout(K.inactiveTO);delete g[C]}}var A=b.editor.graph,L=0,H=null,d="#e6194b #3cb44b #4363d8 #f58231 #911eb4 #f032e6 #469990 #9A6324 #800000 #808000 #000075 #a9a9a9 #ffe119 #42d4f4 #bfef45 #fabed4 #dcbeff #fffac8 #aaffc3 #ffd8b1".split(" "),g={},n=1,q={},t={},x={},B={},G,I={},F={},U=!0,R=!1,N=!1,Q="0"!=urlParams["no-p2p"],P=!1,M=0,p=null,y=mxUtils.bind(this,function(C,K){if(!N)try{null!=H?(H.send(JSON.stringify({action:C,msg:K})),Q||EditorUi.debug("P2PCollab: sending to socket server", | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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;W<V.length;W++)V[W].parentNode.removeChild(V[W]);L(l);l.style.opacity="0.5"}else{V=C(N).replies;for(W=0;W<V.length;W++)x.removeChild(V[W]);for(W=0;W<Q.length;W++)if(Q[W]==N){Q.splice(W,1);break}B.style.display=0==x.getElementsByTagName("div").length?"block":"none"}},function(W){A(l);b.handleError(W,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))})})},N.isResolved));d||N.isLocked||0!=M||y(N.isResolved?mxResources.get("reopen"):mxResources.get("resolve"),function(W){function V(){var S=
W.target;S.innerText="";N.isResolved=!N.isResolved;mxUtils.write(S,N.isResolved?mxResources.get("reopen"):mxResources.get("resolve"));for(var X=N.isResolved?"none":"",Z=C(N).replies,Y=Editor.isDarkMode()?"transparent":N.isResolved?"ghostWhite":"white",aa=0;aa<Z.length;aa++){Z[aa].style.backgroundColor=Y;for(var ca=Z[aa].querySelectorAll(".geCommentAction"),da=0;da<ca.length;da++)ca[da]!=S.parentNode&&(ca[da].style.display=X);F||(Z[aa].style.display="none")}u()}N.isResolved?K(mxResources.get("reOpened")+ | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
[P],"{1} ago"));Q.setAttribute("title",N.toLocaleDateString()+" "+N.toLocaleTimeString())}function D(N){var Q=document.createElement("img");Q.className="geCommentBusyImg";Q.src=IMAGE_PATH+"/spin.gif";N.appendChild(Q);N.busyImg=Q}function A(N){N.style.border="1px solid red";N.removeChild(N.busyImg)}function L(N){N.style.border="";N.removeChild(N.busyImg)}function H(N,Q,P,M,p){function y(W,V,S){var X=document.createElement("li");X.className="geCommentAction";var Z=document.createElement("a");Z.className= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
EditorUi.prototype.patchPage=function(b,e,f,c){var k=b==this.currentPage?this.editor.graph.model:new mxGraphModel(b.root),m=this.createParentLookup(k,e);k.beginUpdate();try{var u=k.updateEdgeParent,v=new mxDictionary,E=[];k.updateEdgeParent=function(q,t){!v.get(q)&&c&&(v.put(q,!0),E.push(q))};var D=m[""],A=null!=D&&null!=D.inserted?D.inserted[""]:null,L=null;null!=A&&(L=this.getCellForJson(A));if(null==L){var H=null!=D&&null!=D.moved?D.moved[""]:null;null!=H&&(L=k.getCell(H))}null!=L&&(k.setRoot(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 |
this.originalQuadTo.apply(this.canvas,arguments):(this.addOp(this.quadOp,W,V,S,X),this.lastX=S,this.lastY=X)};l.prototype.curveTo=function(W,V,S,X,Z,Y){this.passThrough?this.originalCurveTo.apply(this.canvas,arguments):(this.addOp(this.curveOp,W,V,S,X,Z,Y),this.lastX=Z,this.lastY=Y)};l.prototype.arcTo=function(W,V,S,X,Z,Y,aa){if(this.passThrough)this.originalArcTo.apply(this.canvas,arguments);else{var ca=mxUtils.arcToCurves(this.lastX,this.lastY,W,V,S,X,Z,Y,aa);if(null!=ca)for(var da=0;da<ca.length;da+= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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("ok"),ma,ja,function(xa){var ua=null!=xa&&0<xa.length;return ua&&g?(ma(xa),!1):ua},null,null,null,ia,d?null:[]),b.showDialog(ja.container,350,80,!0,!0),ja.init())}}function I(ja){la.innerText=mxResources.get(ca||ja?"create":"copy");ja=ja?"none":"";L&&(ya.style.display=ja);for(var fa=C.querySelectorAll(".geTempDlgLinkToDiagram"),ma=0;ma<fa.length;ma++)fa[ma].style.display=ja}function F(ja,fa,ma,na,oa){oa||(ba.innerText="",B(),X=ja,Z=na);var ia=null;if(ma){ia=document.createElement("table"); | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
na=oa.substring(0,ia),null==ma)){var ka=oa.indexOf("/",ia+1);-1<ka&&(ma=oa.substring(ia+1,ka))}ia=Ga[na];null==ia&&(Ra++,ia=[],Ga[na]=ia);oa=ja.getAttribute("clibs");null!=fa[oa]&&(oa=fa[oa]);oa={url:ja.getAttribute("url"),libs:ja.getAttribute("libs"),title:ja.getAttribute("title")||ja.getAttribute("name"),preview:ja.getAttribute("preview"),clibs:oa,tags:ja.getAttribute("tags")};ia.push(oa);null!=ma&&(ia=Ea[na],null==ia&&(ia={},Ea[na]=ia),na=ia[ma],null==na&&(na=[],ia[ma]=na),na.push(oa))}ja=ja.nextSibling}R(Ga,
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 |
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 |
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+
"') "+(f?" and (title contains '"+f+"')":"")+(c?" and (modifiedDate > '"+c.toISOString()+"')":"")+(k?" and ('me' in owners)":""))+"&orderBy=modifiedDate desc,title"},m,u)};DriveClient.prototype.getCustomProperty=function(f,c){f=f.properties;var k=null;if(null!=f)for(var m=0;m<f.length;m++)if(f[m].key==c){k=f[m].value;break}return k};DriveClient.prototype.getFile=function(f,c,k,m,u){m=null!=m?m:!1;u=null!=u?u:!1;null!=urlParams.rev?this.executeRequest({url:"/files/"+f+"/revisions/"+urlParams.rev+"?supportsAllDrives=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 |
App.loadScripts=function(b,e,f){for(var c=b.length,k=!1,m=0;m<b.length;m++)mxscript(b[m],function(){0!=--c||k||null==e||e()},null,null,null,function(u){k=!0;null!=f&&f(Error(u))})}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
App.prototype.showAuthDialog=function(b,e,f,c){var k=this.spinner.pause();this.showDialog((new AuthDialog(this,b,e,mxUtils.bind(this,function(m){try{null!=f&&f(m,mxUtils.bind(this,function(){this.hideDialog();k()}))}catch(u){this.editor.setStatus(mxUtils.htmlEntities(u.message))}}))).container,300,e?180:140,!0,!0,mxUtils.bind(this,function(m){null!=c&&c(m);m&&null==this.getCurrentFile()&&null==this.dialog&&this.showSplash()}))}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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<<5)-q+this.hashValue(d.childNodes[t],g,n)<<0}else if(null!=d&&"function"!==typeof d){d=String(d);g=0;null!=n&&(n.byteCount+=d.length);for(t=0;t<d.length;t++)g=(g<<5)-g+d.charCodeAt(t)<<0;q^=g}return q};EditorUi.prototype.descriptorChanged=function(){};EditorUi.prototype.restoreLibraries=function(){};EditorUi.prototype.saveLibrary=function(d,g,n,q,t,x,B){};EditorUi.prototype.isScratchpadEnabled=function(){return isLocalStorage||mxClient.IS_CHROMEAPP};EditorUi.prototype.toggleScratchpad=function(){this.isScratchpadEnabled()&& | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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.value;N.parentNode.removeChild(N);Q.parentNode.removeChild(Q)}catch(P){b.handleError(P)}x.innerHTML='<div style="padding-top:10px;text-align:center;"><img src="'+IMAGE_PATH+'/spin.gif" valign="middle"> '+mxUtils.htmlEntities(mxResources.get("loading"))+"...</div>";g=b.canReplyToReplies();b.commentsSupported()?b.getComments(function(P){function M(p){if(null!=p){p.sort(function(C,K){return new Date(C.modifiedDate)-new Date(K.modifiedDate)});for(var y=0;y<p.length;y++)M(p[y].replies)}}P.sort(function(p, | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
var X=this.fill,Z=this.stroke;this.stroke=this.fill=null;var Y=this.configurePointerEvents,aa=W.setStrokeColor;W.setStrokeColor=function(){};var ca=W.setFillColor;W.setFillColor=function(){};S||null==X||(this.configurePointerEvents=function(){});W.handJiggle.passThrough=!0;O.apply(this,arguments);W.handJiggle.passThrough=!1;W.setFillColor=ca;W.setStrokeColor=aa;this.configurePointerEvents=Y;this.stroke=Z;this.fill=X;W.restore();S&&null!=X&&(W.addTolerance=function(){})}O.apply(this,arguments);W.addTolerance= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
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 |
c):k(!1)};OneDriveClient.prototype.checkToken=function(e,f){null==b||null==this.tokenRefreshThread||6E4>this.tokenExpiresOn-Date.now()?this.authenticate(e,null!=f?f:this.emptyFn):e()};OneDriveClient.prototype.getItemRef=function(e){var f=e.split("/");return 1<f.length?{driveId:f[0],id:f[1]}:{id:e}};OneDriveClient.prototype.getItemURL=function(e,f){var c=e.split("/");return 1<c.length?(e=c[1],(f?"":this.baseUrl)+"/drives/"+c[0]+("root"==e?"/root":"/items/"+e)):(f?"":this.baseUrl)+"/me/drive/items/"+ | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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.ctrlEnter=function(){var a=this.editor.graph;if(a.isEnabled())try{for(var b=a.getSelectionCells(),e=new mxDictionary,f=[],g=0;g<b.length;g++){var d=a.isTableCell(b[g])?a.model.getParent(b[g]):b[g];null==d||e.get(d)||(e.put(d,!0),f.push(d))}a.setSelectionCells(a.duplicateCells(f,!1))}catch(h){this.handleError(h)}}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
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 |
function(n,q,t){mxCellRenderer.prototype.installCellOverlayListeners.apply(this,arguments);mxEvent.addListener(t.node,mxClient.IS_POINTER?"pointerdown":"mousedown",function(x){q.fireEvent(new mxEventObject("pointerdown","event",x,"state",n))});!mxClient.IS_POINTER&&mxClient.IS_TOUCH&&mxEvent.addListener(t.node,"touchstart",function(x){q.fireEvent(new mxEventObject("pointerdown","event",x,"state",n))})};m.getAllConnectionConstraints=function(){return null};m.connectionHandler.marker.highlight.keepOnTop= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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=-1,x=function(){null!=u?(null!=v&&v(t),t=u(q)):q()};this.drawRuler=x;this.sizeListener=e=m(function(){var B=g.container;f?(B=B.offsetHeight+E,H.height!=B&&(H.height=B,L.style.height=B+"px",x())):(B=B.offsetWidth+E,H.width!=B&&(H.width=B,L.style.width=B+"px",x()))},10);this.pageListener=function(){x()};this.scrollListener=c=m(function(){var B=f?g.container.scrollTop:g.container.scrollLeft;D.lastScroll!=B&&(D.lastScroll=B,x())},10);this.unitListener=function(B,G){D.setUnit(G.getProperty("unit"))}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.