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 |
|---|---|---|---|---|---|---|---|
1),"image/png");d=new ClipboardItem({"image/png":t,"text/html":new Blob(['<img src="'+d+'" width="'+g+'" height="'+n+'">'],{type:"text/html"})});navigator.clipboard.write([d])["catch"](q)};EditorUi.prototype.copyCells=function(d,g){var n=this.editor.graph;if(n.isSelectionEmpty())d.innerText="";else{var q=mxUtils.sortCells(n.model.getTopmostCells(n.getSelectionCells())),t=mxUtils.getXml(n.encodeCells(q));mxUtils.setTextContent(d,encodeURIComponent(t));g?(n.removeCells(q,!1),n.lastPasteXml=null):(n.lastPasteXml=
t,n.pasteCounter=0);d.focus();document.execCommand("selectAll",!1,null)}};EditorUi.prototype.copyXml=function(){var d=null;if(Editor.enableNativeCipboard){var g=this.editor.graph;g.isSelectionEmpty()||(d=mxUtils.sortCells(g.getExportableCells(g.model.getTopmostCells(g.getSelectionCells()))),g=mxUtils.getXml(g.encodeCells(d)),navigator.clipboard.writeText(g))}return d};EditorUi.prototype.pasteXml=function(d,g,n,q){var t=this.editor.graph,v=null;t.lastPasteXml==d?t.pasteCounter++:(t.lastPasteXml=d, | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
q||"objects";var v=t.transaction([q],"readonly").objectStore(q).get(d);v.onsuccess=function(){g(v.result)};v.onerror=n}catch(B){null!=n&&n(B)}}),n)};EditorUi.prototype.getDatabaseItems=function(d,g,n){this.openDatabase(mxUtils.bind(this,function(q){try{n=n||"objects";var t=q.transaction([n],"readonly").objectStore(n).openCursor(IDBKeyRange.lowerBound(0)),v=[];t.onsuccess=function(B){null==B.target.result?d(v):(v.push(B.target.result.value),B.target.result.continue())};t.onerror=g}catch(B){null!=g&& | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
typeof e[l]||b[l]==e[l]||(c[l]=void 0===e[l]?null:e[l]);return c};EditorUi.prototype.resolveCrossReferences=function(b,e){var f={};mxUtils.isEmptyObject(e)||(this.adoptTheirPages(b,e,f),this.adoptTheirCells(b,e,f));EditorUi.debug("EditorUi.resolveCrossReferences",[this],"ownDiff",b,"theirDiff",e,"resolve",f);return f}; | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
null,d,mxResources.get("ok"),g);this.showDialog(d.container,n||340,100,!0,!1);d.init()};EditorUi.prototype.confirm=function(d,g,n,q,t,v){d=null!=d?d:"";var B=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},F=Math.min(220,28*Math.ceil(Math.max(1,d.length)/50));d=new ConfirmDialog(this,d,function(){B();null!=g&&g()},function(){B();null!=n&&n()},q,t,null,null,null,null,F);this.showDialog(d.container,340,46+F,!0,v);d.init()};EditorUi.prototype.showBanner=function(d,g,n, | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
EditorUi.prototype.isLucidChartData=function(d){return null!=d&&('{"state":"{\\"Properties\\":'==d.substring(0,26)||'{"Properties":'==d.substring(0,14))};EditorUi.prototype.importLocalFile=function(d,g){if(d&&Graph.fileSupport){if(null==this.importFileInputElt){var n=document.createElement("input");n.setAttribute("type","file");mxEvent.addListener(n,"change",mxUtils.bind(this,function(){null!=n.files&&(this.importFiles(n.files,null,null,this.maxImageSize),n.type="",n.type="file",n.value="")}));n.style.display=
"none";document.body.appendChild(n);this.importFileInputElt=n}this.importFileInputElt.click()}else{window.openNew=!1;window.openKey="import";window.listBrowserFiles=mxUtils.bind(this,function(B,F){StorageFile.listFiles(this,"F",B,F)});window.openBrowserFile=mxUtils.bind(this,function(B,F,I){StorageFile.getFileContent(this,B,F,I)});window.deleteBrowserFile=mxUtils.bind(this,function(B,F,I){StorageFile.deleteFile(this,B,F,I)});if(!g){var q=Editor.useLocalStorage;Editor.useLocalStorage=!d}window.openFile=
new OpenFile(mxUtils.bind(this,function(B){this.hideDialog(B)}));window.openFile.setConsumer(mxUtils.bind(this,function(B,F){null!=F&&Graph.fileSupport&&/(\.v(dx|sdx?))($|\?)/i.test(F)?(B=new Blob([B],{type:"application/octet-stream"}),this.importVisio(B,mxUtils.bind(this,function(I){this.importXml(I,0,0,!0)}),null,F)):this.editor.graph.setSelectionCells(this.importXml(B,0,0,!0))}));this.showDialog((new OpenDialog(this)).container,Editor.useLocalStorage?640:360,Editor.useLocalStorage?480:220,!0,!0,
function(){window.openFile=null});if(!g){var t=this.dialog,v=t.close;this.dialog.close=mxUtils.bind(this,function(B){Editor.useLocalStorage=q;v.apply(t,arguments);B&&null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.showSplash()})}}};EditorUi.prototype.importZipFile=function(d,g,n){var q=this,t=mxUtils.bind(this,function(){this.loadingExtensions=!1;"undefined"!==typeof JSZip?JSZip.loadAsync(d).then(function(v){if(mxUtils.isEmptyObject(v.files))n();else{var B=0,F,I=!1;v.forEach(function(G,S){G= | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
M.readAsText(R)}else this.doImportVisio(R,g,F,q)}catch(p){F(p)}else try{""==P.responseType||"text"==P.responseType?F({message:P.responseText}):(M=new FileReader,M.onload=function(){try{F({message:JSON.parse(M.result).Message})}catch(p){F(p)}},M.readAsText(P.response))}catch(p){F({})}});P.send(G)}else if(B.clear())try{this.doImportVisio(d,g,F,q)}catch(R){F(R)}}else F({message:mxResources.get("serviceUnavailableOrBlocked")})});this.doImportVisio||this.loadingExtensions||this.isOffline(!0)?I():(this.loadingExtensions= | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
M&&!y)if("sharepoint"==p)F("site",null,M.id,M.displayName);else if("site"==p)F("subsite",null,M.id,M.name);else{var V=M.folder;M=M.remoteItem?M.remoteItem:M;var Q=(M.parentReference?M.parentReference.driveId:null)||p,X=M.id;V?F(Q,X,null,M.name):q()}}function F(V,Q,X,Z,Y){function aa(ya){N.stop();var Ca=document.createElement("table");Ca.className="odFileListGrid";for(var ta=null,Fa=0,pa=0;null!=ya&&pa<ya.length;pa++){var ra=ya[pa];if(1!=ba||!ra.webUrl||0<ra.webUrl.indexOf("sharepoint.com/sites/")||
0>ra.webUrl.indexOf("sharepoint.com/")){var ua=ra.displayName||ra.name,Ga=mxUtils.htmlEntities(ra.description||ua);ba&&(ra.folder=2==ba?{isRoot:!0}:!0);var Ea=null!=ra.folder;if(!E||Ea){var Qa=document.createElement("tr");Qa.className=Fa++%2?"odOddRow":"odEvenRow";var Ha=document.createElement("td");Ha.style.width="36px";var Ra=document.createElement("img");Ra.src="/images/"+(Ea?"folder.png":"file.png");Ra.className="odFileImg";Ha.appendChild(Ra);Qa.appendChild(Ha);Ha=document.createElement("td");
Ea=document.createElement("div");Ea.className="odFileTitle";Ea.innerHTML=mxUtils.htmlEntities(ua);Ea.setAttribute("title",Ga);Ha.appendChild(Ea);Qa.appendChild(Ha);Ca.appendChild(Qa);null==ta&&(ta=Qa,ta.className+=" odRowSelected",M=ra,p=V,d||e(M));(function(Ia,Va){Qa.addEventListener("dblclick",B);Qa.addEventListener("click",function(){ta!=Va&&(ta.className=ta.className.replace("odRowSelected",""),ta=Va,ta.className+=" odRowSelected",M=Ia,p=V,d||e(M))})})(ra,Qa)}}}0==Fa?(ya=document.createElement("div"),
ya.className="odEmptyFolder",ya.innerHTML=mxUtils.htmlEntities(mxResources.get("folderEmpty",null,"Folder is empty!")),za.appendChild(ya)):za.appendChild(Ca);v();y=!1}function ca(ya){f(ya?ya:qa,function(Ca){if(da){var ta=Ca.value||[];if(d||ba)Array.prototype.push.apply(la,ta);else for(var Fa=0;Fa<ta.length;Fa++){var pa=ta[Fa],ra=pa.file?pa.file.mimeType:null;(pa.folder||"text/html"==ra||"text/xml"==ra||"application/xml"==ra||"image/png"==ra||/\.svg$/.test(pa.name)||/\.html$/.test(pa.name)||/\.xml$/.test(pa.name)|| | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
t.value);t.geometry.width+=I.gridSize;t.geometry.height+=I.gridSize}finally{I.getModel().endUpdate()}return[t]}}return[]};EditorUi.prototype.formatFileSize=function(d){var g=-1;do d/=1024,g++;while(1024<d);return Math.max(d,.1).toFixed(1)+" kB; MB; GB; TB;PB;EB;ZB;YB".split(";")[g]};EditorUi.prototype.convertDataUri=function(d){if("data:"==d.substring(0,5)){var g=d.indexOf(";");0<g&&(d=d.substring(0,g)+d.substring(d.indexOf(",",g+1)))}return d};EditorUi.prototype.isRemoteFileFormat=function(d,g){return/("contentType":\s*"application\/gliffy\+json")/.test(d)}; | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
Editor.onMathJaxDone=function(){};var T=Editor.prototype.init;Editor.prototype.init=function(){T.apply(this,arguments);var V=mxUtils.bind(this,function(Q,X){null!=this.graph.container&&this.graph.mathEnabled&&Editor.MathJaxRender(this.graph.container)});this.graph.model.addListener(mxEvent.CHANGE,V);this.graph.addListener(mxEvent.REFRESH,V)};z=document.getElementsByTagName("script");if(null!=z&&0<z.length){var W=document.createElement("script");W.setAttribute("type","text/javascript");W.setAttribute("src", | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
var BtnDialog=function(b,e,f,c){var k=document.createElement("div");k.style.textAlign="center";var l=document.createElement("p");l.style.fontSize="16pt";l.style.padding="0px";l.style.margin="0px";l.style.color="gray";mxUtils.write(l,mxResources.get("done"));var u="Unknown",x=document.createElement("img");x.setAttribute("border","0");x.setAttribute("align","absmiddle");x.style.marginRight="10px";e==b.drive?(u=mxResources.get("googleDrive"),x.src=IMAGE_PATH+"/google-drive-logo-white.svg"):e==b.dropbox?
(u=mxResources.get("dropbox"),x.src=IMAGE_PATH+"/dropbox-logo-white.svg"):e==b.oneDrive?(u=mxResources.get("oneDrive"),x.src=IMAGE_PATH+"/onedrive-logo-white.svg"):e==b.gitHub?(u=mxResources.get("github"),x.src=IMAGE_PATH+"/github-logo-white.svg"):e==b.gitLab?(u=mxResources.get("gitlab"),x.src=IMAGE_PATH+"/gitlab-logo.svg"):e==b.trello&&(u=mxResources.get("trello"),x.src=IMAGE_PATH+"/trello-logo-white.svg");b=document.createElement("p");mxUtils.write(b,mxResources.get("authorizedIn",[u],"You are now authorized in {1}"));
f=mxUtils.button(f,c);f.insertBefore(x,f.firstChild);f.style.marginTop="6px";f.className="geBigButton";f.style.fontSize="18px";f.style.padding="14px";k.appendChild(l);k.appendChild(b);k.appendChild(f);this.container=k},FontDialog=function(b,e,f,c,k){function l(B){this.style.border="";13==B.keyCode&&v.click()}var u=document.createElement("table"),x=document.createElement("tbody");u.style.marginTop="8px";var E=document.createElement("tr");var D=document.createElement("td");D.colSpan=2;D.style.whiteSpace= | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
function(d,g,n,q,t,v,B){if(null!=d){t=null!=t?t:Error(d);t.stack=null!=t.stack?t.stack:"";v=null!=v?v:0>d.indexOf("NetworkError")&&0>d.indexOf("SecurityError")&&0>d.indexOf("NS_ERROR_FAILURE")&&0>d.indexOf("out of memory")?"SEVERE":"CONFIG";try{EditorUi.enableLogging&&"1"!=urlParams.dev&&d!=EditorUi.lastErrorMessage&&0>d.indexOf("extension:")&&0>t.stack.indexOf("extension:")&&0>t.stack.indexOf("<anonymous>:")&&(EditorUi.lastErrorMessage=d,(new Image).src=(null!=window.DRAWIO_LOG_URL?window.DRAWIO_LOG_URL:
"")+"/log?severity="+v+"&v="+encodeURIComponent(EditorUi.VERSION)+"&msg=clientError:"+encodeURIComponent(d)+":url:"+encodeURIComponent(window.location.href)+":lnum:"+encodeURIComponent(n)+(null!=q?":colno:"+encodeURIComponent(q):"")+(""!=t.stack?"&stack="+encodeURIComponent(t.stack):""))}catch(F){}try{B||null==window.console||console.error(v,d,g,n,q,t)}catch(F){}}};EditorUi.logEvent=function(d){if("1"==urlParams.dev)EditorUi.debug("logEvent",d);else if(EditorUi.enableLogging)try{var g=null!=window.DRAWIO_LOG_URL? | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
this.editor.setStatus(""),d?g.reloadFile(mxUtils.bind(this,function(){g.handleFileSuccess("manual"==DrawioFile.SYNC)}),mxUtils.bind(this,function(n){g.handleFileError(n,!0)})):g.synchronizeFile(mxUtils.bind(this,function(){g.handleFileSuccess("manual"==DrawioFile.SYNC)}),mxUtils.bind(this,function(n){g.handleFileError(n,!0)}))))};EditorUi.prototype.getFileData=function(d,g,n,q,t,v,B,F,I,G,S){t=null!=t?t:!0;v=null!=v?v:!1;G=null!=G?G:!Editor.defaultCompressed;var U=this.editor.graph;if(g||!d&&null!=
I&&/(\.svg)$/i.test(I.getTitle())){var N=null!=U.themes&&"darkTheme"==U.defaultThemeName;if(N||null!=this.pages&&this.currentPage!=this.pages[0]){var P=U.getGlobalVariable;U=this.createTemporaryGraph(N?U.getDefaultStylesheet():U.getStylesheet());U.setBackgroundImage=this.editor.graph.setBackgroundImage;U.background=this.editor.graph.background;var R=null!=this.pages?this.pages[0]:null;null==R||this.currentPage==R?U.setBackgroundImage(this.editor.graph.backgroundImage):null!=R.viewState&&null!=R.viewState&&
U.setBackgroundImage(R.viewState.backgroundImage);U.getGlobalVariable=function(M){return"page"==M&&null!=R?R.getName():"pagenumber"==M?1:P.apply(this,arguments)};document.body.appendChild(U.container);null!=R&&U.model.setRoot(R.root)}}B=null!=B?B:this.getXmlFileData(t,v,G,S);I=null!=I?I:this.getCurrentFile();d=this.createFileData(B,U,I,window.location.href,d,g,n,q,t,F,G);U!=this.editor.graph&&U.container.parentNode.removeChild(U.container);return d};EditorUi.prototype.getHtml=function(d,g,n,q,t,v){v= | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
g.getCurrentCellStyle(M).treeMoving);return p}function l(M){var p=!1;null!=M&&(M=n.getParent(M),p=g.view.getState(M),p="tree"==(null!=p?p.style:g.getCellStyle(M)).containerType);return p}function u(M){var p=!1;null!=M&&(M=n.getParent(M),p=g.view.getState(M),g.view.getState(M),p=null!=(null!=p?p.style:g.getCellStyle(M)).childLayout);return p}function x(M){M=g.view.getState(M);if(null!=M){var p=g.getIncomingTreeEdges(M.cell);if(0<p.length&&(p=g.view.getState(p[0]),null!=p&&(p=p.absolutePoints,null!= | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
null!=f&&f();this.ui.fileLoaded(H)}),mxUtils.bind(this,function(){this.savingFile=!1;null!=c&&c()}),!1,K,E)}))});null!=u?x(u):this.peer.showCommitDialog(this.meta.name,null==this.getDescriptorEtag(this.meta)||this.meta.isNew,mxUtils.bind(this,function(E){x(E)}),c)}else null!=f&&f()};GitHubLibrary=function(b,e,f){GitHubFile.call(this,b,e,f)};mxUtils.extend(GitHubLibrary,GitHubFile);GitHubLibrary.prototype.doSave=function(b,e,f){this.saveFile(b,!1,e,f)};GitHubLibrary.prototype.open=function(){};(function(){var b=null;window.GitHubClient=function(e,f){DrawioClient.call(this,e,f||"ghauth")};mxUtils.extend(GitHubClient,DrawioClient);GitHubClient.prototype.clientId="test.draw.io"==window.location.hostname?"Iv1.1218f5567fbc258a":window.DRAWIO_GITHUB_ID;GitHubClient.prototype.extension=".drawio";GitHubClient.prototype.baseUrl=DRAWIO_GITHUB_API_URL;GitHubClient.prototype.baseHostUrl=DRAWIO_GITHUB_URL;GitHubClient.prototype.redirectUri=window.location.protocol+"//"+window.location.host+"/github2"; | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
b.x,a.height+=b.height+b.y),this.fitWindow(a))};Graph.prototype.fitWindow=function(a,b){b=null!=b?b:10;var e=this.container.clientWidth-b,f=this.container.clientHeight-b;this.zoomTo(Math.floor(20*Math.min(e/a.width,f/a.height))/20);if(mxUtils.hasScrollbars(this.container)){var g=this.view.translate;this.container.scrollLeft=(a.x+g.x)*this.view.scale-Math.max((e-a.width*this.view.scale)/2+b/2,0);this.container.scrollTop=(a.y+g.y)*this.view.scale-Math.max((f-a.height*this.view.scale)/2+b/2,0)}}; | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
StorageFile.listFiles=function(b,e,f,c){b.getDatabaseItems(function(k){var l=[];if(null!=k)for(var u=0;u<k.length;u++)"."==k[u].title.charAt(0)||null!=e&&k[u].type!=e||l.push(k[u]);f(l)},function(){null==b.database?f(StorageFile.listLocalStorageFiles(e)):null!=c&&c()},"filesInfo")};StorageFile.deleteFile=function(b,e,f,c){b.removeDatabaseItem([e,e],f,function(){null==b.database?(localStorage.removeItem(e),f()):null!=c&&c()},["files","filesInfo"])};StorageLibrary=function(b,e,f){StorageFile.call(this,b,e,f)};mxUtils.extend(StorageLibrary,StorageFile);StorageLibrary.prototype.type="L";StorageLibrary.prototype.isAutosave=function(){return!0};StorageLibrary.prototype.saveAs=function(b,e,f){this.saveFile(b,!1,e,f)};StorageLibrary.prototype.getHash=function(){return"L"+encodeURIComponent(this.title)};StorageLibrary.prototype.getTitle=function(){return".scratchpad"==this.title?mxResources.get("scratchpad"):this.title}; | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
console.log("Error in MathJax.typeset: "+Q.toString())}};window.MathJax=null!=z?z:{options:{skipHtmlTags:{"[+]":["text"]}},loader:{load:["html"==urlParams["math-output"]?"output/chtml":"output/svg","input/tex","input/asciimath","ui/safe"]},startup:{pageReady:function(){for(var V=0;V<Editor.mathJaxQueue.length;V++)Editor.doMathJaxRender(Editor.mathJaxQueue[V])}}};Editor.MathJaxRender=function(V){"undefined"!==typeof MathJax&&"function"===typeof MathJax.typeset?Editor.doMathJaxRender(V):Editor.mathJaxQueue.push(V)}; | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
A.createVertexHandler=function(){var T=S.apply(this,arguments);T.livePreview=!1;return T};if(null!=f)try{if("inset"==f.substring(0,5)){var U=d.geometry,N=E.width,P=E.height,R=(300-N)/2,M=(300-P)/2,p=f.match(/\(([^)]+)\)/)[1].split(/[ ,]+/),y=parseFloat(p[0]),C=parseFloat(p[1]),L=parseFloat(p[2]),m=parseFloat(p[3]);isFinite(y)&&isFinite(C)&&isFinite(L)&&isFinite(m)?(U.x=m/100*N+R,U.y=y/100*P+M,U.width=(100-C)/100*N+R-U.x,U.height=(100-L)/100*P+M-U.y,"round"==p[4]?"50%"==p[5]?t.setAttribute("checked", | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
mxUtils.bind(this,function(T){this.spinner.stop();z(Graph.xmlDeclaration+"\n"+Graph.svgDoctype+"\n"+mxUtils.getXml(T))})))}else P=N+".svg",m=this.getFileData(!1,!0,null,mxUtils.bind(this,function(T){this.spinner.stop();z(T)}),q)}}catch(T){this.handleError(T)}};EditorUi.prototype.createDownloadRequest=function(d,g,n,q,t,v,B,F,I,G,S,U,N){d=this.downloadRequestBuilder(d,g,n,q,t,v,B,F,I,G,S,U,N);g="";for(var P in d)n=d[P],null!=n&&(g+=P+"="+encodeURIComponent(n)+"&");return new mxXmlRequest(EXPORT_URL,
g)};EditorUi.prototype.downloadRequestBuilder=function(d,g,n,q,t,v,B,F,I,G,S,U,N){var P=this.editor.graph,R=P.getGraphBounds();n=this.getFileData(!0,null,null,null,n,0==v?!1:"xmlpng"!=g,null,null,null,!Editor.defaultCompressed,"pdf"==g);var M=null,p=null,y=null;if(R.width*R.height>MAX_AREA||n.length>MAX_REQUEST_SIZE)throw{message:mxResources.get("drawingTooLarge")};G=G?"1":"0";"pdf"==g&&(null!=S?(M=S.from,p=S.to):0==v&&(y="1"));"xmlpng"==g&&(G="1",g="png");if(("xmlpng"==g||"svg"==g)&&null!=this.pages&& | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
n)});F()};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}; | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
EditorUi.prototype.diffCellRecursive=function(b,e,f,c,k){c=null!=c?c:{};var l=f[b.getId()];delete f[b.getId()];if(null==l)k.push(b.getId());else{var u=this.diffCell(b,l.cell);if(null!=u.parent||(null!=l.prev?null==e:null!=e)||null!=e&&null!=l.prev&&e.getId()!=l.prev.getId())u.previous=null!=l.prev?l.prev.getId():"";mxUtils.isEmptyObject(u)||(c[b.getId()]=u)}l=b.getChildCount();e=null;for(u=0;u<l;u++){var x=b.getChildAt(u);this.diffCellRecursive(x,e,f,c,k);e=x}return c}; | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
(new mxXmlRequest(SAVE_URL,"format="+K+"&xml="+encodeURIComponent(D)+"&filename="+encodeURIComponent(b)+(l?"&binary=1":""))).simulate(document,"_blank")}else this.ui.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(D)}));x()}});l?(e=this.ui.getPngFileProperties(this.ui.fileNode),this.ui.getEmbeddedPng(mxUtils.bind(this,function(D){E(D)}),c,this.ui.getCurrentFile()!=this?u:null,e.scale,e.border)):E(u)}; | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
function(e,f,c,k,l,u,x,E,D){u.length>=this.maxFileSize?D({message:mxResources.get("drawingTooLarge")+" ("+this.ui.formatFileSize(u.length)+" / 1 MB)"}):(c={path:k,branch:decodeURIComponent(c),message:l,content:u},null!=x&&(c.sha=x),e=new mxXmlRequest(this.baseUrl+"/repos/"+e+"/"+f+"/contents/"+k,JSON.stringify(c),"PUT"),this.executeRequest(e,mxUtils.bind(this,function(A){E(A)}),mxUtils.bind(this,function(A){404==A.code&&(A.helpLink=this.baseHostUrl+"/settings/connections/applications/"+this.clientId,
A.code=null);D(A)})))};GitHubClient.prototype.checkExists=function(e,f,c){var k=e.split("/"),l=k[0],u=k[1],x=k[2];e=k.slice(3,k.length).join("/");this.getSha(l,u,e,x,mxUtils.bind(this,function(E){if(f){var D=this.ui.spinner.pause();this.ui.confirm(mxResources.get("replaceIt",[e]),function(){D();c(!0,E)},function(){D();c(!1)})}else this.ui.spinner.stop(),this.ui.showError(mxResources.get("error"),mxResources.get("fileExists"),mxResources.get("ok"),function(){c(!1)})}),mxUtils.bind(this,function(E){c(!0)}), | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
2));return r}(Graph.arrayBufferToString(pako.deflateRaw(d))),!0);"txt"!=g&&(B.responseType="blob");B.onload=function(F){if(200<=this.status&&300>this.status)if("txt"==g)n(this.response);else{var I=new FileReader;I.readAsDataURL(this.response);I.onloadend=function(G){var S=new Image;S.onload=function(){try{var U=S.width,N=S.height;if(0==U&&0==N){var P=I.result,R=P.indexOf(","),M=decodeURIComponent(escape(atob(P.substring(R+1)))),p=mxUtils.parseXml(M).getElementsByTagName("svg");0<p.length&&(U=parseFloat(p[0].getAttribute("width")),
N=parseFloat(p[0].getAttribute("height")))}n(I.result,U,N)}catch(y){q(y)}};S.src=I.result};I.onerror=function(G){q(G)}}else q(F)};B.onerror=function(F){q(F)};B.send()};EditorUi.prototype.insertAsPreText=function(d,g,n){var q=this.editor.graph,t=null;q.getModel().beginUpdate();try{t=q.insertVertex(null,null,"<pre>"+d+"</pre>",g,n,1,1,"text;html=1;align=left;verticalAlign=top;"),q.updateCellSize(t,!0)}finally{q.getModel().endUpdate()}return t};EditorUi.prototype.insertTextAt=function(d,g,n,q,t,v,B, | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
v=65==(F?parseInt(F[2],10):!1)?!1:v}if(v||this.isOffline()){B.href=URL.createObjectURL(q?this.base64ToBlob(d,n):new Blob([d],{type:n}));v?B.download=g:B.setAttribute("target","_blank");document.body.appendChild(B);try{window.setTimeout(function(){URL.revokeObjectURL(B.href)},2E4),B.click(),B.parentNode.removeChild(B)}catch(I){}}else this.createEchoRequest(d,g,n,q,t).simulate(document,"_blank")}};EditorUi.prototype.createEchoRequest=function(d,g,n,q,t,v){d="xml="+encodeURIComponent(d);return new mxXmlRequest(SAVE_URL,
d+(null!=n?"&mime="+n:"")+(null!=t?"&format="+t:"")+(null!=v?"&base64="+v:"")+(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),v=0;v<q;++v){for(var B=1024*v,F=Math.min(B+1024,n),I=Array(F-B),G=0;B<F;++G,++B)I[G]=d[B].charCodeAt(0);t[v]=new Uint8Array(I)}return new Blob(t,{type:g})};EditorUi.prototype.saveLocalFile=function(d,g,n,q,t,v,B,F){v=null!=v?v:!1;B=null!=B? | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
k,u=0;8>u;u++)l=1==(l&1)?3988292384^l>>>1:l>>>1,Editor.crcTable[k]=l;Editor.updateCRC=function(m,z,J,O){for(var T=0;T<O;T++)m=Editor.crcTable[(m^z.charCodeAt(J+T))&255]^m>>>8;return m};Editor.crc32=function(m){for(var z=-1,J=0;J<m.length;J++)z=z>>>8^Editor.crcTable[(z^m.charCodeAt(J))&255];return(z^-1)>>>0};Editor.writeGraphModelToPng=function(m,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)+ | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
mxResources.get("oneDriveInvalidDeviceName")}))};OneDriveClient.prototype.moveFile=function(e,f,c,k){f=this.getItemRef(f);var l=this.getItemRef(e);f.driveId!=l.driveId?k({message:mxResources.get("cannotMoveOneDrive",null,"Moving a file between accounts is not supported yet.")}):this.writeFile(this.getItemURL(e),JSON.stringify({parentReference:f}),"PATCH","application/json",c,k)};OneDriveClient.prototype.insertLibrary=function(e,f,c,k,l){this.insertFile(e,f,c,k,!0,l)};OneDriveClient.prototype.insertFile= | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
S.preventDefault()}function D(S){S.stopPropagation();S.preventDefault();F=!1;t=u(S);if(null!=q)null!=t&&t<d.children.length?(A.splice(t>q?t-1:t,0,A.splice(q,1)[0]),d.insertBefore(d.children[q],d.children[t])):(A.push(A.splice(q,1)[0]),d.appendChild(d.children[q]));else if(0<S.dataTransfer.files.length)b.importFiles(S.dataTransfer.files,0,0,b.maxImageSize,I(S));else if(0<=mxUtils.indexOf(S.dataTransfer.types,"text/uri-list")){var U=decodeURIComponent(S.dataTransfer.getData("text/uri-list"));(/(\.jpg)($|\?)/i.test(U)||
/(\.png)($|\?)/i.test(U)||/(\.gif)($|\?)/i.test(U)||/(\.svg)($|\?)/i.test(U))&&b.loadImage(U,function(N){x(U,null,0,0,N.width,N.height);d.scrollTop=d.scrollHeight})}S.stopPropagation();S.preventDefault()}var A=[];f=document.createElement("div");f.style.height="100%";var K=document.createElement("div");K.style.whiteSpace="nowrap";K.style.height="40px";f.appendChild(K);mxUtils.write(K,mxResources.get("filename")+":");null==e&&(e=b.defaultLibraryName+".xml");var H=document.createElement("input");H.setAttribute("value", | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
V};var T=mxShape.prototype.paintGlassEffect;mxShape.prototype.paintGlassEffect=function(W,V,Q,X,Z,Y){null!=W.handJiggle&&W.handJiggle.constructor==m?(W.handJiggle.passThrough=!0,T.apply(this,arguments),W.handJiggle.passThrough=!1):T.apply(this,arguments)}})();Editor.fastCompress=function(m){return null==m||0==m.length||"undefined"===typeof pako?m:Graph.arrayBufferToString(pako.deflateRaw(m))};Editor.fastDecompress=function(m){return null==m||0==m.length||"undefined"===typeof pako?m:pako.inflateRaw(Graph.stringToArrayBuffer(atob(m)), | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
TrelloClient.prototype.getFile=function(b,e,f,c,k){k=null!=k?k:!1;var l=mxUtils.bind(this,function(){var u=b.split(this.SEPARATOR),x=!0,E=window.setTimeout(mxUtils.bind(this,function(){x=!1;f({code:App.ERROR_TIMEOUT,retry:l})}),this.ui.timeout);Trello.cards.get(u[0]+"/attachments/"+u[1],mxUtils.bind(this,function(D){window.clearTimeout(E);if(x){var A=/\.png$/i.test(D.name),K={Authorization:'OAuth oauth_consumer_key="'+Trello.key()+'", oauth_token="'+Trello.token()+'"'};/\.v(dx|sdx?)$/i.test(D.name)||
/\.gliffy$/i.test(D.name)||!this.ui.useCanvasForExport&&A?this.ui.convertFile(PROXY_URL+"?url="+encodeURIComponent(D.url),D.name,D.mimeType,this.extension,e,f,null,K):(x=!0,E=window.setTimeout(mxUtils.bind(this,function(){x=!1;f({code:App.ERROR_TIMEOUT})}),this.ui.timeout),this.ui.editor.loadUrl(PROXY_URL+"?url="+encodeURIComponent(D.url),mxUtils.bind(this,function(H){window.clearTimeout(E);if(x){D.compoundId=b;if(0<(A?H.lastIndexOf(","):-1)){var d=this.ui.extractGraphModelFromPng(H);null!=d&&0<d.length&&
(H=d)}k?e(new TrelloLibrary(this.ui,H,D)):e(new TrelloFile(this.ui,H,D))}}),mxUtils.bind(this,function(H,d){window.clearTimeout(E);x&&(401==d.status?this.authenticate(l,f,!0):f())}),A||null!=D.mimeType&&"image/"==D.mimeType.substring(0,6),null,null,null,K))}}),mxUtils.bind(this,function(D){window.clearTimeout(E);x&&(null!=D&&401==D.status?this.authenticate(l,f,!0):f())}))});this.authenticate(l,f)};TrelloClient.prototype.insertLibrary=function(b,e,f,c,k){this.insertFile(b,e,f,c,!0,k)}; | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
EditorUi.prototype.createCellLookup=function(b,e,f){f=null!=f?f:{};f[b.getId()]={cell:b,prev:e};var c=b.getChildCount();e=null;for(var k=0;k<c;k++){var l=b.getChildAt(k);this.createCellLookup(l,e,f);e=l}return f}; | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
DrawioFile.prototype.patch=function(b,e,f,c){if(null!=b){var k=this.ui.editor.undoManager,l=k.history.slice(),u=k.indexOfNextAdd,x=this.ui.editor.graph;x.container.style.visibility="hidden";var E=this.changeListenerEnabled;this.changeListenerEnabled=f;var D=x.foldingEnabled,A=x.mathEnabled,K=x.cellRenderer.redraw;x.cellRenderer.redraw=function(t){t.view.graph.isEditing(t.cell)&&(t.view.graph.scrollCellToVisible(t.cell),t.view.graph.cellEditor.resize());K.apply(this,arguments)};x.model.beginUpdate(); | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
function(d){var g=e.apply(this,arguments);if(null==g)try{var n=d.indexOf("<mxfile ");if(0<=n){var q=d.lastIndexOf("</mxfile>");q>n&&(g=d.substring(n,q+15).replace(/>/g,">").replace(/</g,"<").replace(/\\"/g,'"').replace(/\n/g,""))}else{var t=mxUtils.parseXml(d),v=this.editor.extractGraphModel(t.documentElement,null!=this.pages||"hidden"==this.diagramContainer.style.visibility);g=null!=v?mxUtils.getXml(v):""}}catch(B){}return g};EditorUi.prototype.validateFileData=function(d){if(null!= | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
mxAsyncCanvas.prototype.image=function(b,e,f,c,k,l,u,x){k=this.rewriteImageSource(k);b=this.htmlCanvas.images[k];null==b&&(b=new Image,b.onload=mxUtils.bind(this,function(){this.decWaitCounter()}),b.onerror=mxUtils.bind(this,function(){this.decWaitCounter()}),this.incWaitCounter(),this.htmlCanvas.images[k]=b,b.src=k)};mxAsyncCanvas.prototype.fill=function(){};mxAsyncCanvas.prototype.stroke=function(){};mxAsyncCanvas.prototype.fillAndStroke=function(){}; | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
mxResources.get("oneDriveInvalidDeviceName")}))};OneDriveClient.prototype.moveFile=function(e,f,c,k){f=this.getItemRef(f);var l=this.getItemRef(e);f.driveId!=l.driveId?k({message:mxResources.get("cannotMoveOneDrive",null,"Moving a file between accounts is not supported yet.")}):this.writeFile(this.getItemURL(e),JSON.stringify({parentReference:f}),"PATCH","application/json",c,k)};OneDriveClient.prototype.insertLibrary=function(e,f,c,k,l){this.insertFile(e,f,c,k,!0,l)};OneDriveClient.prototype.insertFile= | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
DropboxFile.prototype.getRevisions=function(b,e){var f=this.ui.dropbox.client.filesListRevisions({path:this.stat.path_lower,limit:100});f.then(mxUtils.bind(this,function(c){try{for(var k=[],l=c.entries.length-1;0<=l;l--)mxUtils.bind(this,function(u){k.push({modifiedDate:u.client_modified,fileSize:u.size,getXml:mxUtils.bind(this,function(x,E){this.ui.dropbox.readFile({path:this.stat.path_lower,rev:u.rev},x,E)}),getUrl:mxUtils.bind(this,function(x){return this.ui.getUrl(window.location.pathname+"?rev="+
u.rev+"&chrome=0&nav=1&layers=1&edit=_blank"+(null!=x?"&page="+x:""))+window.location.hash})})})(c.entries[l]);b(k)}catch(u){e(u)}}));f["catch"](function(c){e(c)})};DropboxFile.prototype.getLatestVersion=function(b,e){this.ui.dropbox.getFile(this.getId(),b,e)};DropboxFile.prototype.updateDescriptor=function(b){this.stat=b.stat};DropboxFile.prototype.save=function(b,e,f,c,k){this.doSave(this.getTitle(),b,e,f,c,k)};DropboxFile.prototype.saveAs=function(b,e,f){this.doSave(b,!1,e,f)}; | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
if(null!=v.hoverIcons){var P=v.hoverIcons.update;v.hoverIcons.update=function(){B.freehand.isDrawing()||P.apply(this,arguments)}}if(null!=B.freehand){var R=B.freehand.createStyle;B.freehand.createStyle=function(Q){return R.apply(this,arguments)+"sketch=0;"}}v.editor.addListener("statusChanged",mxUtils.bind(this,function(){v.setStatusText(v.editor.getStatus())}));v.setStatusText(v.editor.getStatus());var M=v.menus.get("viewZoom");if(null!=M){var p=function(Q){if(mxEvent.isAltDown(Q))v.hideCurrentMenu(), | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
Format.prototype.init;Format.prototype.init=function(){D.apply(this,arguments);this.editorUi.editor.addListener("fileLoaded",this.update)};var A=Format.prototype.refresh;Format.prototype.refresh=function(){null!=this.editorUi.getCurrentFile()||"1"==urlParams.embed||this.editorUi.editor.chromeless?A.apply(this,arguments):this.clear()};DiagramFormatPanel.prototype.isMathOptionVisible=function(m){return"simple"==Editor.currentTheme||"sketch"==Editor.currentTheme||"min"==Editor.currentTheme};var K=DiagramFormatPanel.prototype.addOptions; | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
500)});g("#refreshOD").addEventListener("click",function(){null!=L&&(e(null),F.apply(this,L))});D&&g("#odBackBtn").addEventListener("click",D);A&&g("#odSubmitBtn").addEventListener("click",q);null!=H?(D=H.pop(),"sharepoint"==H[0].driveId&&I(g("#odSharepoint")),C=H,F(D.driveId,D.folderId,D.siteId,D.name)):F()};App=function(b,e,f){EditorUi.call(this,b,e,null!=f?f:"1"==urlParams.lightbox||"min"==uiTheme&&"0"!=urlParams.chrome);mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||(window.onunload=mxUtils.bind(this,function(){var c=this.getCurrentFile();if(null!=c&&c.isModified()){var k={category:"DISCARD-FILE-"+c.getHash(),action:(c.savingFile?"saving":"")+(c.savingFile&&null!=c.savingFileTime?"_"+Math.round((Date.now()-c.savingFileTime.getTime())/1E3):"")+(null!=c.saveLevel?"-sl_"+c.saveLevel:"")+"-age_"+(null!=
c.ageStart?Math.round((Date.now()-c.ageStart.getTime())/1E3):"x")+(this.editor.autosave?"":"-nosave")+(c.isAutosave()?"":"-noauto")+"-open_"+(null!=c.opened?Math.round((Date.now()-c.opened.getTime())/1E3):"x")+"-save_"+(null!=c.lastSaved?Math.round((Date.now()-c.lastSaved.getTime())/1E3):"x")+"-change_"+(null!=c.lastChanged?Math.round((Date.now()-c.lastChanged.getTime())/1E3):"x")+"-alive_"+Math.round((Date.now()-App.startTime.getTime())/1E3),label:null!=c.sync?"client_"+c.sync.clientId:"nosync"};
c.constructor==DriveFile&&null!=c.desc&&null!=this.drive&&(k.label+=(null!=this.drive.user?"-user_"+this.drive.user.id:"-nouser")+"-rev_"+c.desc.headRevisionId+"-mod_"+c.desc.modifiedDate+"-size_"+c.getSize()+"-mime_"+c.desc.mimeType);EditorUi.logEvent(k)}}));this.editor.addListener("autosaveChanged",mxUtils.bind(this,function(){var c=this.getCurrentFile();null!=c&&EditorUi.logEvent({category:(this.editor.autosave?"ON":"OFF")+"-AUTOSAVE-FILE-"+c.getHash(),action:"changed",label:"autosave_"+(this.editor.autosave? | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
StorageFile.prototype.rename=function(b,e,f){var c=this.getTitle();c!=b?StorageFile.getFileInfo(this.ui,b,mxUtils.bind(this,function(k){var l=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]),l,f):l()}),f):e()};StorageFile.prototype.open=function(){DrawioFile.prototype.open.apply(this,arguments);this.saveFile(this.getTitle())}; | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
g&&g!=mxConstants.NONE&&B.push("highlight="+("#"==g.charAt(0)?g.substring(1):g)),null!=t&&0<t.length&&B.push("edit="+encodeURIComponent(t)),v&&B.push("layers=1"),this.editor.graph.foldingEnabled&&B.push("nav=1"));n&&null!=this.currentPage&&null!=this.pages&&this.currentPage!=this.pages[0]&&B.push("page-id="+this.currentPage.getId());return B};EditorUi.prototype.createLink=function(d,g,n,q,t,v,B,F,I,G){I=this.createUrlParameters(d,g,n,q,t,v,I);d=this.getCurrentFile();g=!0;null!=B?n="#U"+encodeURIComponent(B):
(d=this.getCurrentFile(),F||null==d||d.constructor!=window.DriveFile?n="#R"+encodeURIComponent(n?this.getFileData(!0,null,null,null,null,null,null,!0,null,!1):Graph.compress(mxUtils.getXml(this.editor.getGraphXml()))):(n="#"+d.getHash(),g=!1));g&&null!=d&&null!=d.getTitle()&&d.getTitle()!=this.defaultFilename&&I.push("title="+encodeURIComponent(d.getTitle()));G&&1<n.length&&(I.push("open="+n.substring(1)),n="");return(q&&"1"!=urlParams.dev?EditorUi.lightboxHost:mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||
!/.*\.draw\.io$/.test(window.location.hostname)?EditorUi.drawHost:"https://"+window.location.host)+"/"+(0<I.length?"?"+I.join("&"):"")+n};EditorUi.prototype.createHtml=function(d,g,n,q,t,v,B,F,I,G,S,U){this.getBasenames();var N={};""!=t&&t!=mxConstants.NONE&&(N.highlight=t);"auto"!==q&&(N.target=q);G||(N.lightbox=!1);N.nav=this.editor.graph.foldingEnabled;n=parseInt(n);isNaN(n)||100==n||(N.zoom=n/100);n=[];B&&(n.push("pages"),N.resize=!0,null!=this.pages&&null!=this.currentPage&&(N.page=mxUtils.indexOf(this.pages, | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
n&&v.setAttribute("resource",n);var P=mxUtils.bind(this,function(R){R=(q?"":Graph.xmlDeclaration+"\n"+Graph.svgFileComment+"\n"+Graph.svgDoctype+"\n")+mxUtils.getXml(R);null!=t&&t(R);return R});g.mathEnabled&&this.editor.addMathCss(v);if(null!=t)this.embedFonts(v,mxUtils.bind(this,function(R){F?this.editor.convertImages(R,mxUtils.bind(this,function(M){P(M)})):P(R)}));else return P(v)};EditorUi.prototype.embedFonts=function(d,g){this.editor.loadFonts(mxUtils.bind(this,function(){try{null!=this.editor.resolvedFontCss&&
this.editor.addFontCss(d,this.editor.resolvedFontCss),this.editor.embedExtFonts(mxUtils.bind(this,function(n){try{null!=n&&this.editor.addFontCss(d,n),g(d)}catch(q){g(d)}}))}catch(n){g(d)}}))};EditorUi.prototype.exportImage=function(d,g,n,q,t,v,B,F,I,G,S,U,N){I=null!=I?I:"png";if(this.spinner.spin(document.body,mxResources.get("exporting"))){var P=this.editor.graph.isSelectionEmpty();n=null!=n?n:P;null==this.thumbImageCache&&(this.thumbImageCache={});try{this.editor.exportToCanvas(mxUtils.bind(this, | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
P()},mxEvent.addListener(A,"scroll",t))}),n)}}))});b?this.user?F():this.updateUser(function(){F()},n,!0):this.authenticate(mxUtils.bind(this,function(){this.updateUser(function(){F()},n,!0)}),n)};GitLabClient.prototype.logout=function(){this.ui.editor.loadUrl(this.redirectUri+"?doLogout=1&state="+encodeURIComponent("cId="+this.clientId+"&domain="+window.location.host));this.clearPersistentToken();this.setUser(null);b=null;this.setToken(null)}})();DrawioComment=function(b,e,f,c,k,l,u){this.file=b;this.id=e;this.content=f;this.modifiedDate=c;this.createdDate=k;this.isResolved=l;this.user=u;this.replies=[]};DrawioComment.prototype.addReplyDirect=function(b){null!=b&&this.replies.push(b)};DrawioComment.prototype.addReply=function(b,e,f,c,k){e()};DrawioComment.prototype.editComment=function(b,e,f){e()};DrawioComment.prototype.deleteComment=function(b,e){b()};DriveComment=function(b,e,f,c,k,l,u,x){DrawioComment.call(this,b,e,f,c,k,l,u);this.pCommentId=x};mxUtils.extend(DriveComment,DrawioComment);DriveComment.prototype.addReply=function(b,e,f,c,k){b={content:b.content};c?b.verb="resolve":k&&(b.verb="reopen");this.file.ui.drive.executeRequest({url:"/files/"+this.file.getId()+"/comments/"+this.id+"/replies",params:b,method:"POST"},mxUtils.bind(this,function(l){e(l.replyId)}),f)}; | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
B)}})));d(v);v.onversionchange=function(){v.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(v){try{t=t||"objects";Array.isArray(t)||(t=[t],d=[d],g=[g]);var B=v.transaction(t,"readwrite");B.oncomplete=n;B.onerror= | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
href:I,target:G,allowOpener:S}),"*")}}};EditorUi.prototype.createEmbedButton=function(d,g,n,q){var t="simple"==Editor.currentTheme||"sketch"==Editor.currentTheme||"min"==Editor.currentTheme,v=document.createElement("button");v.setAttribute("title",d+(null!=n?" ("+n+")":""));v.style.marginLeft="6px";mxUtils.write(v,d);t?(v.className=q?"gePrimaryBtn":"",v.style.marginLeft="8px",v.style.padding="6px"):v.className="geBigButton"+(q?"":" geBigStandardButton");mxEvent.addListener(v,"click",g);return v}; | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
mxEdgeHandler.prototype.init = function()
{
edgeHandlerInit.apply(this, arguments);
var update = mxUtils.bind(this, function()
{
if (this.linkHint != null)
{
this.linkHint.style.display = (this.graph.getSelectionCount() == 1) ? '' : 'none';
}
if (this.labelShape != null)
{
this.labelShape.node.style.display = (this.graph.isEnabled() &&
this.graph.getSelectionCount() <= this.graph.graphHandler.maxCells) ?
'' : 'none';
}
});
this.changeHandler = mxUtils.bind(this, function(sender, evt)
{
this.updateLinkHint(this.graph.getLinkForCell(this.state.cell),
this.graph.getLinksForState(this.state));
update();
this.redrawHandles();
});
this.graph.getSelectionModel().addListener(mxEvent.CHANGE, this.changeHandler);
this.graph.getModel().addListener(mxEvent.CHANGE, this.changeHandler);
var link = this.graph.getLinkForCell(this.state.cell);
var links = this.graph.getLinksForState(this.state);
if (link != null || (links != null && links.length > 0))
{
this.updateLinkHint(link, links);
this.redrawHandles();
}
}; | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
else{if(0<A.length){var G=JSON.parse(A);localStorage.setItem(e,JSON.stringify(G))}else localStorage.removeItem(e);this.hideDialog();this.alert(mxResources.get("restartForChangeRequired"))}}catch(C){this.handleError(C)}}),null,mxResources.get("close"),null,null,null,!0,null,null,p,k,n);this.showDialog(c.container,620,460,!0,!1);c.init()};EditorUi.prototype.showBackgroundImageDialog=function(c,e,k,n){c=null!=c?c:mxUtils.bind(this,function(p,t,y,A){t||(p=new ChangePageSetup(this,n?y:null,p),p.ignoreColor=
!n,null!=A&&n&&(p.shadowVisible=A),this.editor.graph.model.execute(p))});c=new BackgroundImageDialog(this,c,e,k,n);this.showDialog(c.container,400,n?240:220,!0,!0);c.init()};EditorUi.prototype.showLibraryDialog=function(c,e,k,n,p){c=new LibraryDialog(this,c,e,k,n,p);this.showDialog(c.container,640,440,!0,!1,mxUtils.bind(this,function(t){t&&null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.showSplash()}));c.init()};var l=EditorUi.prototype.createFormat;EditorUi.prototype.createFormat=function(c){var e= | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
EditorUi.prototype.setScrollbars=function(a){var b=this.editor.graph,e=b.container.style.overflow;b.scrollbars=a;this.editor.updateGraphComponents();e!=b.container.style.overflow&&(b.container.scrollTop=0,b.container.scrollLeft=0,b.view.scaleAndTranslate(1,0,0),this.resetScrollbars());this.fireEvent(new mxEventObject("scrollbarsChanged"))};EditorUi.prototype.hasScrollbars=function(){return this.editor.graph.scrollbars}; | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
da.getAttribute("section");ma=da.getAttribute("subsection");if(null==oa&&(ja=ia.indexOf("/"),oa=ia.substring(0,ja),null==ma)){var va=ia.indexOf("/",ja+1);-1<va&&(ma=ia.substring(ja+1,va))}ja=sa[oa];null==ja&&(ja=[],sa[oa]=ja);ia=da.getAttribute("clibs");null!=la[ia]&&(ia=la[ia]);ia={url:da.getAttribute("url"),libs:da.getAttribute("libs"),title:da.getAttribute("title"),tooltip:da.getAttribute("name")||da.getAttribute("url"),preview:da.getAttribute("preview"),clibs:ia,tags:da.getAttribute("tags")};
ja.push(ia);null!=ma&&(ja=ta[oa],null==ja&&(ja={},ta[oa]=ja),oa=ja[ma],null==oa&&(oa=[],ja[ma]=oa),oa.push(ia))}da=da.nextSibling}B.stop();S()}})};O.appendChild(pa);O.appendChild(xa);O.appendChild(ha);var Ua=!1,ka=E;/^https?:\/\//.test(ka)&&!b.editor.isCorsEnabledForUrl(ka)&&(ka=PROXY_URL+"?url="+encodeURIComponent(ka));B.spin(ha);null!=n?n(function(da,la){Da=da;U=Ea=la;Va()},Va):Va();W=sa}mxEvent.addListener(m,"keypress",function(da){b.dialog.container.firstChild==O&&13==da.keyCode&&G()});n=document.createElement("div"); | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
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(T){return new g(T,Editor.createRoughCanvas(T),this)};var x=mxShape.prototype.createHandJiggle;mxShape.prototype.createHandJiggle=function(T){return this.outline||null==this.style||"0"==mxUtils.getValue(this.style,"sketch","0")?x.apply(this,arguments):"comic"==mxUtils.getValue(this.style, | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
retry:Z})},U)});Z()}catch(Y){null!=F&&F(Y)}};Editor.prototype.getErrorMessage=function(g){var x=mxResources.get("error")+" "+g.getStatus();try{var F=g.getText(),M=JSON.parse(F);null!=M&&null!=M.error&&null!=M.error.message&&(x=M.error.message+" ("+x+")")}catch(P){}return x};Editor.prototype.absoluteCssFonts=function(g){var x=null;if(null!=g){var F=g.split("url(");if(0<F.length){x=[F[0]];g=window.location.pathname;var M=null!=g?g.lastIndexOf("/"):-1;0<=M&&(g=g.substring(0,M+1));M=document.getElementsByTagName("base"); | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
"4px");null!=Y&&ca.setAttribute("title",Y);null!=ba&&(U=function(){ba.isEnabled()?(ca.removeAttribute("disabled"),ca.style.cursor="pointer"):(ca.setAttribute("disabled","disabled"),ca.style.cursor="default")},ba.addListener("stateChanged",U),y.addListener("enabledChanged",U),U());return ca}function e(U,X,Z){Z=document.createElement("div");Z.className="geMenuItem";Z.style.display="inline-block";Z.style.verticalAlign="top";Z.style.marginRight="6px";Z.style.padding="0 4px 0 4px";Z.style.height="30px"; | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
W};var P=mxShape.prototype.paintGlassEffect;mxShape.prototype.paintGlassEffect=function(T,W,U,X,Z,Y){null!=T.handJiggle&&T.handJiggle.constructor==g?(T.handJiggle.passThrough=!0,P.apply(this,arguments),T.handJiggle.passThrough=!1):P.apply(this,arguments)}})();Editor.fastCompress=function(g){return null==g||0==g.length||"undefined"===typeof pako?g:Graph.arrayBufferToString(pako.deflateRaw(g))};Editor.fastDecompress=function(g){return null==g||0==g.length||"undefined"===typeof pako?g:pako.inflateRaw(Graph.stringToArrayBuffer(atob(g)),
{to:"string"})};Editor.extractGraphModel=function(g,x,F){if(null!=g&&"undefined"!==typeof pako){var M=g.ownerDocument.getElementsByTagName("div"),P=[];if(null!=M&&0<M.length)for(var T=0;T<M.length;T++)if("mxgraph"==M[T].getAttribute("class")){P.push(M[T]);break}0<P.length&&(M=P[0].getAttribute("data-mxgraph"),null!=M?(P=JSON.parse(M),null!=P&&null!=P.xml&&(g=mxUtils.parseXml(P.xml),g=g.documentElement)):(P=P[0].getElementsByTagName("div"),0<P.length&&(M=mxUtils.getTextContent(P[0]),M=Graph.decompress(M, | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
Editor.createRoughCanvas=function(g){var x=rough.canvas({getContext:function(){return g}});x.draw=function(F){var M=F.sets||[];F=F.options||this.getDefaultOptions();for(var P=0;P<M.length;P++){var T=M[P];switch(T.type){case "path":null!=F.stroke&&this._drawToContext(g,T,F);break;case "fillPath":this._drawToContext(g,T,F);break;case "fillSketch":this.fillSketch(g,T,F)}}};x.fillSketch=function(F,M,P){var T=g.state.strokeColor,W=g.state.strokeWidth,U=g.state.strokeAlpha,X=g.state.dashed,Z=P.fillWeight; | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
function(g){if(null!=g){Editor.prototype.fontCss=g;var x=document.getElementsByTagName("script")[0];if(null!=x&&null!=x.parentNode){var F=document.createElement("style");F.setAttribute("type","text/css");F.appendChild(document.createTextNode(g));x.parentNode.insertBefore(F,x);g=g.split("url(");for(F=1;F<g.length;F++){var M=g[F].indexOf(")");M=Editor.trimCssUrl(g[F].substring(0,M));var P=document.createElement("link");P.setAttribute("rel","preload");P.setAttribute("href",M);P.setAttribute("as","font");
P.setAttribute("crossorigin","");x.parentNode.insertBefore(P,x)}}}};Editor.trimCssUrl=function(g){return g.replace(RegExp("^[\\s\"']+","g"),"").replace(RegExp("[\\s\"']+$","g"),"")};Editor.GOOGLE_FONTS="https://fonts.googleapis.com/css?family=";Editor.GUID_ALPHABET="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_";Editor.GUID_LENGTH=20;Editor.guid=function(g){g=null!=g?g:Editor.GUID_LENGTH;for(var x=[],F=0;F<g;F++)x.push(Editor.GUID_ALPHABET.charAt(Math.floor(Math.random()*Editor.GUID_ALPHABET.length))); | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
P.getGlobalVariable=function(xa){return"page"==xa?ha.getName():"pagenumber"==xa?1:ea.apply(this,arguments)};document.body.appendChild(P.container);P.model.setRoot(ha.root)}if(null!=C.layerIds){var na=P.model,Aa=na.getChildCells(na.getRoot()),Fa={};for(pa=0;pa<C.layerIds.length;pa++)Fa[C.layerIds[pa]]=!0;for(pa=0;pa<Aa.length;pa++)na.setVisible(Aa[pa],Fa[Aa[pa].id]||!1)}this.editor.exportToCanvas(mxUtils.bind(this,function(xa){W(xa.toDataURL("image/png"))}),C.width,null,C.background,mxUtils.bind(this, | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
return V}),C=!0);return C};var y=p.stop;p.stop=function(){y.call(this);this.active=!1;null!=p.status&&null!=p.status.parentNode&&p.status.parentNode.removeChild(p.status);p.status=null};p.pause=function(){return function(){}};return p};EditorUi.prototype.isCompatibleString=function(c){try{var e=mxUtils.parseXml(c),k=this.editor.extractGraphModel(e.documentElement,!0);return null!=k&&0==k.getElementsByTagName("parsererror").length}catch(n){}return!1};EditorUi.prototype.isVisioData=function(c){return 8< | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
e.parentNode&&e.parentNode.removeChild(e)}))};var E=!1;EditorUi.prototype.initFormatWindow=function(){if(!E&&null!=this.formatWindow){E=!0;var I=this.formatWindow.window.toggleMinimized,c=240;this.formatWindow.window.toggleMinimized=function(){I.apply(this,arguments);this.minimized?(c=parseInt(this.div.style.width),this.div.style.width="140px",this.table.style.width="140px",this.div.style.left=parseInt(this.div.style.left)+c-140+"px"):(this.div.style.width=c+"px",this.table.style.width=this.div.style.width,
this.div.style.left=Math.max(0,parseInt(this.div.style.left)-c+140)+"px");this.fit()};mxEvent.addListener(this.formatWindow.window.title,"dblclick",mxUtils.bind(this,function(e){mxEvent.getSource(e)==this.formatWindow.window.title&&this.formatWindow.window.toggleMinimized()}))}};var R=EditorUi.prototype.init;EditorUi.prototype.init=function(){function I(U,X,Z){var Y=t.menus.get(U),ba=C.addMenu(mxResources.get(U),mxUtils.bind(this,function(){Y.funct.apply(this,arguments)}),G);ba.className="geMenuItem"; | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
g);mxEvent.addListener(this.container,"mousemove",g);mxEvent.addListener(this.container,"mouseleave",function(P){x=null});this.isMouseInsertPoint=function(){return null!=x};var F=this.getInsertPoint;this.getInsertPoint=function(){return null!=x?this.getPointForEvent(x):F.apply(this,arguments)};var M=this.layoutManager.getLayout;this.layoutManager.getLayout=function(P){var T=this.graph.getCellStyle(P);if(null!=T&&"rack"==T.childLayout){var W=new mxStackLayout(this.graph,!1);W.gridSize=null!=T.rackUnitSize?
parseFloat(T.rackUnitSize):"undefined"!==typeof mxRackContainer?mxRackContainer.unitSize:20;W.marginLeft=T.marginLeft||0;W.marginRight=T.marginRight||0;W.marginTop=T.marginTop||0;W.marginBottom=T.marginBottom||0;W.allowGaps=T.allowGaps||0;W.horizontal="1"==mxUtils.getValue(T,"horizontalRack","0");W.resizeParent=!1;W.fill=!0;return W}return M.apply(this,arguments)};this.updateGlobalUrlVariables()};var k=Graph.prototype.postProcessCellStyle;Graph.prototype.postProcessCellStyle=function(g,x){return Graph.processFontStyle(k.apply(this, | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
"keys",Ea,"values",Ta,"cells",ba.getSelectionCells()))}finally{ba.getModel().endUpdate()}}function P(qa,sa,ta){var Da=mxUtils.getOffset(g,!0),Ea=mxUtils.getOffset(qa,!0);sa.style.position="absolute";sa.style.left=Ea.x-Da.x+"px";sa.style.top=Ea.y-Da.y+"px";sa.style.width=qa.offsetWidth+"px";sa.style.height=qa.offsetHeight-(ta?4:0)+"px";sa.style.zIndex=5}function T(qa,sa,ta){var Da=document.createElement("div");Da.style.width="32px";Da.style.height="4px";Da.style.margin="2px";Da.style.border="1px solid black"; | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
[];this.traverse(q,!0,mxUtils.bind(this,function(D,L){var K=null!=L&&this.isTreeEdge(L);K&&u.push(L);D==q||null!=L&&!K||u.push(D);return(null==L||K)&&(D==q||!this.model.isCollapsed(D))}));this.model.setCollapsed(q,d);for(var z=0;z<u.length;z++)this.model.setVisible(u[z],!d)}finally{this.model.endUpdate()}};Graph.prototype.isTreeEdge=function(d){return!this.isEdgeIgnored(d)};Graph.prototype.getTreeEdges=function(d,q,u,z,D,L){return this.model.filterCells(this.getEdges(d,q,u,z,D,L),mxUtils.bind(this,
function(K){return this.isTreeEdge(K)}))};Graph.prototype.getIncomingTreeEdges=function(d,q){return this.getTreeEdges(d,q,!0,!1,!1)};Graph.prototype.getOutgoingTreeEdges=function(d,q){return this.getTreeEdges(d,q,!1,!0,!1)};var f=EditorUi.prototype.init;EditorUi.prototype.init=function(){f.apply(this,arguments);this.editor.isChromelessView()&&!this.editor.editable||this.addTrees()};EditorUi.prototype.addTrees=function(){function d(J){return k.isVertex(J)&&u(J)}function q(J){var m=!1;null!=J&&(m="1"== | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
(this.editor.graph.isEditing()&&null!=this.editor.graph.cellEditor.textarea?this.editor.graph.cellEditor.textarea.focus():(mxUtils.clearSelection(),this.editor.graph.container.focus()))}),0)))};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)}}; | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
0,0,80,30,"ellipse");L(K)}finally{u.getModel().endUpdate()}if("horizontalTree"==l){var E=new mxCompactTreeLayout(u);E.edgeRouting=!1;E.levelDistance=30;z="edgeStyle=elbowEdgeStyle;elbow=horizontal;"}else"verticalTree"==l?(E=new mxCompactTreeLayout(u,!1),E.edgeRouting=!1,E.levelDistance=30,z="edgeStyle=elbowEdgeStyle;elbow=vertical;"):"radialTree"==l?(E=new mxRadialTreeLayout(u,!1),E.edgeRouting=!1,E.levelDistance=80):"verticalFlow"==l?E=new mxHierarchicalLayout(u,mxConstants.DIRECTION_NORTH):"horizontalFlow"==
l?E=new mxHierarchicalLayout(u,mxConstants.DIRECTION_WEST):"circle"==l?E=new mxCircleLayout(u):(E=new mxFastOrganicLayout(u,!1),E.forceConstant=80);if(null!=E){var R=function(k,n){u.getModel().beginUpdate();try{null!=k&&k(),E.execute(u.getDefaultParent(),K)}catch(p){throw p;}finally{k=new mxMorphing(u),k.addListener(mxEvent.DONE,mxUtils.bind(this,function(){u.getModel().endUpdate();null!=n&&n()})),k.startAnimation()}},I=mxEdgeHandler.prototype.connect;mxEdgeHandler.prototype.connect=function(k,n,
p,t,y){I.apply(this,arguments);R()};u.resizeCell=function(){mxGraph.prototype.resizeCell.apply(this,arguments);R()};u.connectionHandler.addListener(mxEvent.CONNECT,function(){R()})}var c=mxUtils.button(mxResources.get("close"),function(){b.confirm(mxResources.get("areYouSure"),function(){null!=q.parentNode&&(u.destroy(),q.parentNode.removeChild(q));b.hideDialog()})});c.className="geBtn";b.editor.cancelFirst&&d.appendChild(c);var e=mxUtils.button(mxResources.get("insert"),function(k){u.clearCellOverlays(); | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
Graph.customFontElements={};Graph.recentCustomFonts={};Graph.isGoogleFontUrl=function(g){return g.substring(0,Editor.GOOGLE_FONTS.length)==Editor.GOOGLE_FONTS};Graph.isCssFontUrl=function(g){return Graph.isGoogleFontUrl(g)};Graph.createFontElement=function(g,x){var F=Graph.fontMapping[x];null==F&&Graph.isCssFontUrl(x)?(g=document.createElement("link"),g.setAttribute("rel","stylesheet"),g.setAttribute("type","text/css"),g.setAttribute("charset","UTF-8"),g.setAttribute("href",x)):(null==F&&(F='@font-face {\nfont-family: "'+
g+'";\nsrc: url("'+x+'");\n}'),g=document.createElement("style"),mxUtils.write(g,F));return g};Graph.addFont=function(g,x,F){if(null!=g&&0<g.length&&null!=x&&0<x.length){var M=g.toLowerCase();if("helvetica"!=M&&"arial"!=g&&"sans-serif"!=M){var P=Graph.customFontElements[M];null!=P&&P.url!=x&&(P.elt.parentNode.removeChild(P.elt),P=null);null==P?(P=x,"http:"==x.substring(0,5)&&(P=PROXY_URL+"?url="+encodeURIComponent(x)),P={name:g,url:x,elt:Graph.createFontElement(g,P)},Graph.customFontElements[M]=P, | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
DiagramFormatPanel.prototype.addOptions=function(g){g=R.apply(this,arguments);var x=this.editorUi,F=x.editor.graph;if(F.isEnabled()){var M=x.getCurrentFile();null!=M&&M.isAutosaveOptional()&&g.appendChild(this.createOption(mxResources.get("autosave"),function(){return x.editor.autosave},function(W){x.editor.setAutosave(W);x.editor.autosave&&M.isModified()&&M.fileChanged()},{install:function(W){this.listener=function(){W(x.editor.autosave)};x.editor.addListener("autosaveChanged",this.listener)},destroy:function(){x.editor.removeListener(this.listener)}}))}if(this.isMathOptionVisible()&& | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
var P=null;null!=M&&0<M.length&&(P=M[0].getAttribute("href"));for(var T=1;T<F.length;T++)if(M=F[T].indexOf(")"),0<M){var W=Editor.trimCssUrl(F[T].substring(0,M));this.graph.isRelativeUrl(W)&&(W=null!=P?P+W:window.location.protocol+"//"+window.location.hostname+("/"==W.charAt(0)?"":g)+W);x.push('url("'+W+'"'+F[T].substring(M))}else x.push(F[T])}else x=[g]}return null!=x?x.join(""):null};Editor.prototype.mapFontUrl=function(g,x,F){/^https?:\/\//.test(x)&&!this.isCorsEnabledForUrl(x)&&(x=PROXY_URL+"?url="+
encodeURIComponent(x));F(g,x)};Editor.prototype.embedCssFonts=function(g,x){var F=g.split("url("),M=0;null==this.cachedFonts&&(this.cachedFonts={});var P=mxUtils.bind(this,function(){if(0==M){for(var X=[F[0]],Z=1;Z<F.length;Z++){var Y=F[Z].indexOf(")");X.push('url("');X.push(this.cachedFonts[Editor.trimCssUrl(F[Z].substring(0,Y))]);X.push('"'+F[Z].substring(Y))}x(X.join(""))}});if(0<F.length){for(g=1;g<F.length;g++){var T=F[g].indexOf(")"),W=null,U=F[g].indexOf("format(",T);0<U&&(W=Editor.trimCssUrl(F[g].substring(U+ | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
else if("sfnt"==W||/(\.sfnt)($|\?)/i.test(X))Z="application/font-sfnt";this.mapFontUrl(Z,X,mxUtils.bind(this,function(Y,ba){this.loadUrl(ba,mxUtils.bind(this,function(fa){this.cachedFonts[X]=fa;M--;P()}),mxUtils.bind(this,function(fa){M--;P()}),!0,null,"data:"+Y+";charset=utf-8;base64,")}))}})(Editor.trimCssUrl(F[g].substring(0,T)),W)}P()}else x(g)};Editor.prototype.loadFonts=function(g){null!=this.fontCss&&null==this.resolvedFontCss?this.embedCssFonts(this.fontCss,mxUtils.bind(this,function(x){this.resolvedFontCss=
x;null!=g&&g()})):null!=g&&g()};Editor.prototype.createGoogleFontCache=function(){var g={},x;for(x in Graph.fontMapping)Graph.isCssFontUrl(x)&&(g[x]=Graph.fontMapping[x]);return g};Editor.prototype.embedExtFonts=function(g){var x=this.graph.getCustomFonts();if(0<x.length){var F=[],M=0;null==this.cachedGoogleFonts&&(this.cachedGoogleFonts=this.createGoogleFontCache());for(var P=mxUtils.bind(this,function(){0==M&&this.embedCssFonts(F.join(""),g)}),T=0;T<x.length;T++)mxUtils.bind(this,function(W,U){Graph.isCssFontUrl(U)? | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
function(O){E=O};this.setAutoScroll=function(O){R=O};this.setOpenFill=function(O){I=O};this.setStopClickEnabled=function(O){k=O};this.setSelectInserted=function(O){n=O};this.setSmoothing=function(O){l=O};this.setPerfectFreehandMode=function(O){t=O};this.isPerfectFreehandMode=function(){return t};this.setBrushSize=function(O){p.size=O};this.getBrushSize=function(){return p.size};var y=function(O){e=O;b.getRubberband().setEnabled(!O);b.graphHandler.setSelectEnabled(!O);b.graphHandler.setMoveEnabled(!O); | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
p=-1,t=function(){null!=z?(null!=D&&D(p),p=z(n)):n()};this.drawRuler=t;this.sizeListener=f=u(function(){var y=e.container;l?(y=y.offsetHeight+L,I.height!=y&&(I.height=y,R.style.height=y+"px",t())):(y=y.offsetWidth+L,I.width!=y&&(I.width=y,R.style.width=y+"px",t()))},10);this.pageListener=function(){t()};this.scrollListener=d=u(function(){var y=l?e.container.scrollTop:e.container.scrollLeft;K.lastScroll!=y&&(K.lastScroll=y,t())},10);this.unitListener=function(y,A){K.setUnit(A.getProperty("unit"))}; | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
mxResources.get("loading"))&&d.getPublicUrl(d.getCurrentFile(),function(v){d.spinner.stop();null!=v?(v=new EmbedDialog(d,'<img src="'+(m.constructor!=DriveFile?v:"https://drive.google.com/uc?id="+m.getId())+'"/>'),d.showDialog(v.container,450,240,!0,!0),v.init()):d.handleError({message:mxResources.get("invalidPublicUrl")})})}));d.actions.put("embedImage",new Action(mxResources.get("image")+"...",function(){d.showEmbedImageDialog(function(m,v,B,H,g,x){d.spinner.spin(document.body,mxResources.get("loading"))&& | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
Ba(Editor.parseDiagramNode(ea)));return ea},Ba=function(ea){var ha=ea.getAttribute("background");if(null==ha||""==ha||ha==mxConstants.NONE)ha=D.defaultPageBackgroundColor;u.style.backgroundColor=ha;(new mxCodec(ea.ownerDocument)).decode(ea,D.getModel());D.maxFitScale=1;D.fit(8);D.center();return ea};B.style.display="none";B.innerText="";y=aa;A=ca;K=parseSelectFunction=null;E=0;if("mxfile"==ra.nodeName){aa=ra.getElementsByTagName("diagram");K=[];for(ca=0;ca<aa.length;ca++)K.push(aa[ca]);E=Math.min(L, | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
encodeURIComponent(x));F(g,x)};Editor.prototype.embedCssFonts=function(g,x){var F=g.split("url("),M=0;null==this.cachedFonts&&(this.cachedFonts={});var P=mxUtils.bind(this,function(){if(0==M){for(var X=[F[0]],Z=1;Z<F.length;Z++){var Y=F[Z].indexOf(")");X.push('url("');X.push(this.cachedFonts[Editor.trimCssUrl(F[Z].substring(0,Y))]);X.push('"'+F[Z].substring(Y))}x(X.join(""))}});if(0<F.length){for(g=1;g<F.length;g++){var T=F[g].indexOf(")"),W=null,U=F[g].indexOf("format(",T);0<U&&(W=Editor.trimCssUrl(F[g].substring(U+
7,F[g].indexOf(")",U))));mxUtils.bind(this,function(X){if(null==this.cachedFonts[X]){this.cachedFonts[X]=X;M++;var Z="application/x-font-ttf";if("svg"==W||/(\.svg)($|\?)/i.test(X))Z="image/svg+xml";else if("otf"==W||"embedded-opentype"==W||/(\.otf)($|\?)/i.test(X))Z="application/x-font-opentype";else if("woff"==W||/(\.woff)($|\?)/i.test(X))Z="application/font-woff";else if("woff2"==W||/(\.woff2)($|\?)/i.test(X))Z="application/font-woff2";else if("eot"==W||/(\.eot)($|\?)/i.test(X))Z="application/vnd.ms-fontobject";
else if("sfnt"==W||/(\.sfnt)($|\?)/i.test(X))Z="application/font-sfnt";this.mapFontUrl(Z,X,mxUtils.bind(this,function(Y,ba){this.loadUrl(ba,mxUtils.bind(this,function(fa){this.cachedFonts[X]=fa;M--;P()}),mxUtils.bind(this,function(fa){M--;P()}),!0,null,"data:"+Y+";charset=utf-8;base64,")}))}})(Editor.trimCssUrl(F[g].substring(0,T)),W)}P()}else x(g)};Editor.prototype.loadFonts=function(g){null!=this.fontCss&&null==this.resolvedFontCss?this.embedCssFonts(this.fontCss,mxUtils.bind(this,function(x){this.resolvedFontCss= | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
(EditorUi.debug("EditorUi.generateOpenAiMermaidDiagram","\nprompt:",c,"\nresponse:",V,"\nresult:",S),this.spinner.stop(),e(S,N,O,Q))}),A)}),A,mxUtils.bind(this,function(N){3>n++?t.clear()&&(this.spinner.stop(),p()):A(N)}))}),A);else{var C={message:mxResources.get("error")+" "+G.getStatus()};try{C=JSON.parse(G.getText()),C=C.error}catch(V){}A(C)}}),A)}),k)});p()};EditorUi.prototype.extractMermaidMindmap=function(c){for(0<c[1].indexOf("orientation")&&c.splice(1,1);1<c.length&&""==c[1];)c.splice(1,1); | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
mxUtils.bind(this,function(P){this.spinner.stop();x(Graph.xmlDeclaration+"\n"+Graph.svgDoctype+"\n"+mxUtils.getXml(P))})))}else O=N+".svg",g=this.getFileData(!1,!0,null,mxUtils.bind(this,function(P){this.spinner.stop();x(P)}),n)}}catch(P){this.handleError(P)}};EditorUi.prototype.createDownloadRequest=function(c,e,k,n,p,t,y,A,G,C,V,S,N){c=this.downloadRequestBuilder(c,e,k,n,p,t,y,A,G,C,V,S,N);e="";for(var O in c)k=c[O],null!=k&&(e+=O+"="+encodeURIComponent(k)+"&");return new mxXmlRequest(EXPORT_URL,
e)};EditorUi.prototype.downloadRequestBuilder=function(c,e,k,n,p,t,y,A,G,C,V,S,N){var O=this.editor.graph,Q=O.getGraphBounds();k=this.getFileData(!0,null,null,null,k,0==t?!1:"xmlpng"!=e,null,null,null,!Editor.defaultCompressed,"pdf"==e);var J=null,m=null,v=null;if(Q.width*Q.height>MAX_AREA||k.length>MAX_REQUEST_SIZE)throw{message:mxResources.get("drawingTooLarge")};C=C?"1":"0";"pdf"==e&&(null!=V?(J=V.from,m=V.to):0==t&&(v="1"));"xmlpng"==e&&(C="1",e="png");if(("xmlpng"==e||"svg"==e)&&null!=this.pages&& | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
g[x[F][P]];null!=T?""!=T&&M.push(T):M.push(x[F][P])}x[F]=M}};Graph.prototype.getCellsForAction=function(g,x){x=this.getCellsById(g.cells).concat(this.getCellsForTags(g.tags,null,x));if(null!=g.excludeCells){for(var F=[],M=0;M<x.length;M++)0>g.excludeCells.indexOf(x[M].id)&&F.push(x[M]);x=F}return x};Graph.prototype.getCellsById=function(g){var x=[];if(null!=g)for(var F=0;F<g.length;F++)if("*"==g[F]){var M=this.model.getRoot();x=x.concat(this.model.filterDescendants(function(T){return T!=M},M))}else{var P=
this.model.getCell(g[F]);null!=P&&x.push(P)}return x};var Q=Graph.prototype.isCellVisible;Graph.prototype.isCellVisible=function(g){return Q.apply(this,arguments)&&!this.isAllTagsHidden(this.getTagsForCell(g))};Graph.prototype.setHiddenTags=function(g){this.hiddenTags=g;this.fireEvent(new mxEventObject("hiddenTagsChanged"))};Graph.prototype.toggleHiddenTag=function(g){var x=mxUtils.indexOf(this.hiddenTags,g);0>x?this.hiddenTags.push(g):0<=x&&this.hiddenTags.splice(x,1);this.fireEvent(new mxEventObject("hiddenTagsChanged"))}; | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
46;EditorUi.prototype.footerHeight=0;Graph.prototype.editAfterInsert=!mxClient.IS_IOS&&!mxClient.IS_ANDROID;Editor.styleElt=document.createElement("style");Editor.styleElt.type="text/css";Editor.styleElt.innerHTML=Editor.createMinimalCss();document.getElementsByTagName("head")[0].appendChild(Editor.styleElt);Editor.prototype.isChromelessView=function(){return!1};Graph.prototype.isLightboxView=function(){return!1};var q=EditorUi.prototype.refresh;EditorUi.prototype.refresh=function(I){q.apply(this,
arguments);null!=this.tabContainer&&(this.tabContainer.style.right="62px",this.diagramContainer.style.bottom=this.tabContainerHeight+"px")};var u=EditorUi.prototype.updateActionStates;EditorUi.prototype.updateActionStates=function(){u.apply(this,arguments);this.menus.get("save").setEnabled(null!=this.getCurrentFile()||"1"==urlParams.embed)};var z=Menus.prototype.addShortcut;Menus.prototype.addShortcut=function(I,c){null!=c.shortcut&&900>d&&!mxClient.IS_IOS?I.firstChild.nextSibling.setAttribute("title", | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
null,"Templates"),function(){xa.style.display="";pa.style.display="";ha.style.left="160px";X(0);ha.scrollTop=0;ha.innerText="";v=0;T!=Ia&&(Ia=T,sa=W,Ea=U,xa.innerText="",S(),T=null)});P.push(N);k.appendChild(N);var Z=function(da){xa.style.display="none";pa.style.display="none";ha.style.left="30px";X(da?-1:1);null==T&&(T=Ia);ha.scrollTop=0;ha.innerText="";B.spin(ha);var la=function(ma,oa,ia){v=0;B.stop();Ia=ma;ia=ia||{};var ja=0,va;for(va in ia)ja+=ia[va].length;if(oa)ha.innerText=oa;else if(0==ma.length&&
0==ja)ha.innerText=mxResources.get("noDiagrams",null,"No Diagrams Found");else if(ha.innerText="",0<ja){xa.style.display="";ha.style.left="160px";xa.innerText="";Ea=0;sa={"draw.io":ma};for(va in ia)sa[va]=ia[va];S()}else t(!0)};da?I(Y.value,la):R(la)};R&&(N=mxUtils.button(mxResources.get("Recent",null,"Recent"),function(){Z()}),k.appendChild(N),P.push(N));if(I){N=document.createElement("span");N.style.marginLeft="10px";N.innerText=mxResources.get("search")+":";k.appendChild(N);var Y=document.createElement("input"); | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
P.style.borderCollapse="collapse";P.style.borderSpacing="0px";P.style.width="100%";var T=document.createElement("tbody"),W=(new Date).toDateString();null!=b.currentPage&&null!=b.pages&&(L=mxUtils.indexOf(b.pages,b.currentPage));for(I=f.length-1;0<=I;I--){var U=function(X){var Z=new Date(X.modifiedDate),Y=null;if(0<=Z.getTime()){var ba=function(ca){c.stop();z.innerText="";var aa=mxUtils.parseXml(ca),ra=b.editor.extractGraphModel(aa.documentElement,!0);if(null!=ra){var za=function(ea){null!=ea&&(ea=
Ba(Editor.parseDiagramNode(ea)));return ea},Ba=function(ea){var ha=ea.getAttribute("background");if(null==ha||""==ha||ha==mxConstants.NONE)ha=D.defaultPageBackgroundColor;u.style.backgroundColor=ha;(new mxCodec(ea.ownerDocument)).decode(ea,D.getModel());D.maxFitScale=1;D.fit(8);D.center();return ea};B.style.display="none";B.innerText="";y=aa;A=ca;K=parseSelectFunction=null;E=0;if("mxfile"==ra.nodeName){aa=ra.getElementsByTagName("diagram");K=[];for(ca=0;ca<aa.length;ca++)K.push(aa[ca]);E=Math.min(L, | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
"";U.style.textOverflow="";U.style.whiteSpace="";U.style.cursor="text";U.style.color="";U.setAttribute("contentEditable","true");mxUtils.setPrefixedStyle(U.style,"user-select","text");U.focus();document.execCommand("selectAll",!1,null);t=function(){U.removeAttribute("contentEditable");U.style.cursor="pointer";X.title=U.innerHTML;H()};mxEvent.consume(fa)}};mxEvent.addListener(U,"click",T);mxEvent.addListener(M,"dblclick",T);c.appendChild(M);mxEvent.addListener(M,"dragstart",function(fa){null==V&&null!= | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
mxResources.get("loading")))for(var x=c.length,F=x,M=[],P=mxUtils.bind(this,function(W,U){M[W]=U;if(0==--F){this.spinner.stop();if(null!=A)A(M);else{var X=[];H.getModel().beginUpdate();try{for(W=0;W<M.length;W++){var Z=M[W]();null!=Z&&(X=X.concat(Z))}}finally{H.getModel().endUpdate()}}t(X)}}),T=0;T<x;T++)mxUtils.bind(this,function(W){var U=c[W];if(null!=U){var X=new FileReader;X.onload=mxUtils.bind(this,function(Z){if(null==y||y(U))try{if("image/"==U.type.substring(0,6))if("image/svg"==U.type.substring(0, | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
za.push(ra[Ba]);U.setSelectionCells(za)}function T(ra){U.setHiddenTags(ra?[]:X.slice());P();U.refresh()}function W(ra,za){Y.innerText="";if(0<ra.length){var Ba=document.createElement("table");Ba.setAttribute("cellpadding","2");Ba.style.boxSizing="border-box";Ba.style.tableLayout="fixed";Ba.style.width="100%";var ea=document.createElement("tbody");if(null!=ra&&0<ra.length)for(var ha=0;ha<ra.length;ha++)(function(pa){function na(){var sa=U.getCellsForTags([pa],null,null,!0);U.isEnabled()?U.setSelectionCells(sa):
U.highlightCells(sa,null,null,70)}var Aa=0>mxUtils.indexOf(U.hiddenTags,pa),Fa=document.createElement("tr"),xa=document.createElement("td");xa.style.align="center";xa.style.width="16px";var Ga=document.createElement("img");Ga.setAttribute("src",Aa?Editor.visibleImage:Editor.hiddenImage);Ga.setAttribute("title",mxResources.get(Aa?"hideIt":"show",[pa]));mxUtils.setOpacity(Ga,Aa?75:25);Ga.style.verticalAlign="middle";Ga.style.cursor="pointer";Ga.style.width="16px";if(x||Editor.isDarkMode())Ga.style.filter= | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
T[W];T.stroke!=mxConstants.NONE&&null!=T.stroke||delete this.nextShape.options.stroke;T.filled||delete this.nextShape.options.fill;this.passThrough=!0;this.rc.draw(this.nextShape);this.passThrough=!1}};g.prototype.stroke=function(){this.passThrough?this.originalStroke.apply(this.canvas,arguments):this.drawPath(this.getStyle(!0,!1))};g.prototype.fill=function(){this.passThrough?this.originalFill.apply(this.canvas,arguments):this.drawPath(this.getStyle(!1,!0))};g.prototype.fillAndStroke=function(){this.passThrough?
this.originalFillAndStroke.apply(this.canvas,arguments):this.drawPath(this.getStyle(!0,!0))};g.prototype.destroy=function(){this.canvas.lineTo=this.originalLineTo;this.canvas.moveTo=this.originalMoveTo;this.canvas.close=this.originalClose;this.canvas.quadTo=this.originalQuadTo;this.canvas.curveTo=this.originalCurveTo;this.canvas.arcTo=this.originalArcTo;this.canvas.close=this.originalClose;this.canvas.fill=this.originalFill;this.canvas.stroke=this.originalStroke;this.canvas.fillAndStroke=this.originalFillAndStroke; | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
EditorUi.prototype.updateDiagram=function(c){function e(H){var g=new mxCellOverlay(H.image||p.warningImage,H.tooltip,H.align,H.valign,H.offset);g.addListener(mxEvent.CLICK,function(x,F){n.alert(H.tooltip)});return g}var k=null,n=this;if(null!=c&&0<c.length&&(k=mxUtils.parseXml(c),c=null!=k?k.documentElement:null,null!=c&&"updates"==c.nodeName)){var p=this.editor.graph,t=p.getModel();t.beginUpdate();var y=null;try{for(c=c.firstChild;null!=c;){if("update"==c.nodeName){var A=t.getCell(c.getAttribute("id")); | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
mxDualRuler.prototype.setUnit=function(b){this.vRuler.setUnit(b);this.hRuler.setUnit(b)};mxDualRuler.prototype.setStyle=function(b){this.vRuler.setStyle(b);this.hRuler.setStyle(b)};mxDualRuler.prototype.destroy=function(){this.vRuler.destroy();this.hRuler.destroy();this.ui.refresh=this.editorUiRefresh;mxGuide.prototype.move=this.origGuideMove;mxGuide.prototype.destroy=this.origGuideDestroy;this.ui.getDiagramContainerOffset=this.editorUiGetDiagContOffset};function mxFreehand(b){var f=null!=b.view&&null!=b.view.canvas?b.view.canvas.ownerSVGElement:null;if(null!=b.container&&null!=f){b.addListener(mxEvent.ESCAPE,mxUtils.bind(this,function(){this.stopDrawing()}));var l=mxFreehand.prototype.NORMAL_SMOOTHING,d=null,q=[],u,z=[],D,L=!1,K=!0,E=!0,R=!0,I=!0,c=[],e=!1,k=!1,n=!1,p={size:5,thinning:.5,smoothing:.5,streamline:.5,start:{taper:0,cap:!0},end:{taper:0,cap:!0}},t=!0;this.setClosedPath=function(O){L=O};this.setAutoClose=function(O){K=O};this.setAutoInsert= | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
"sketchStyle","rough")?this.createComicCanvas(T):this.createRoughCanvas(T)};var F=mxImageShape.prototype.paintVertexShape;mxImageShape.prototype.paintVertexShape=function(T,W,U,X,Z){null!=T.handJiggle&&T.handJiggle.passThrough||F.apply(this,arguments)};var M=mxShape.prototype.paint;mxShape.prototype.paint=function(T){var W=T.addTolerance,U=!0;null!=this.style&&(U="1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1"));if(null!=T.handJiggle&&T.handJiggle.constructor==g&&!this.outline){T.save();
var X=this.fill,Z=this.stroke;this.stroke=this.fill=null;var Y=this.configurePointerEvents,ba=T.setStrokeColor;T.setStrokeColor=function(){};var fa=T.setFillColor;T.setFillColor=function(){};U||null==X||(this.configurePointerEvents=function(){});T.handJiggle.passThrough=!0;M.apply(this,arguments);T.handJiggle.passThrough=!1;T.setFillColor=fa;T.setStrokeColor=ba;this.configurePointerEvents=Y;this.stroke=Z;this.fill=X;T.restore();U&&null!=X&&(T.addTolerance=function(){})}M.apply(this,arguments);T.addTolerance=
W};var P=mxShape.prototype.paintGlassEffect;mxShape.prototype.paintGlassEffect=function(T,W,U,X,Z,Y){null!=T.handJiggle&&T.handJiggle.constructor==g?(T.handJiggle.passThrough=!0,P.apply(this,arguments),T.handJiggle.passThrough=!1):P.apply(this,arguments)}})();Editor.fastCompress=function(g){return null==g||0==g.length||"undefined"===typeof pako?g:Graph.arrayBufferToString(pako.deflateRaw(g))};Editor.fastDecompress=function(g){return null==g||0==g.length||"undefined"===typeof pako?g:pako.inflateRaw(Graph.stringToArrayBuffer(atob(g)), | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
l.style.verticalAlign="middle";l.className="geBtn";t.appendChild(l);b.isOffline()&&!mxClient.IS_CHROMEAPP&&(l.style.display="none");l=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});l.style.verticalAlign="middle";l.className="geBtn";b.editor.cancelFirst&&t.appendChild(l);LinkDialog.selectedDocs=null;LinkDialog.filePicked=function(y){if(y.action==google.picker.Action.PICKED){LinkDialog.selectedDocs=y.docs;var A=y.docs[0].url;"application/mxe"==y.docs[0].mimeType||null!=y.docs[0].mimeType&&
"application/vnd.jgraph."==y.docs[0].mimeType.substring(0,23)?A="https://www.draw.io/#G"+y.docs[0].id:"application/vnd.google-apps.folder"==y.docs[0].mimeType&&(A="https://drive.google.com/#folders/"+y.docs[0].id);E.value=A;E.focus()}else LinkDialog.selectedDocs=null;E.focus()};"undefined"!=typeof google&&"undefined"!=typeof google.picker&&null!=b.drive&&D(IMAGE_PATH+"/google-drive-logo.svg",mxResources.get("googlePlus"),function(){b.spinner.spin(document.body,mxResources.get("authorizing"))&&b.drive.checkToken(mxUtils.bind(this, | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
function L(){if("reset"==k.value)b.resetRecent("Folders"),k.innerHTML="",t={},D();else if("pickFolder-"==k.value.substring(0,11)){var y=k.value.substring(11);k.value=y;z(y)}else if(null!=b.editor.diagramFileTypes&&"drawio"==b.editor.diagramFileTypes[e.value].extension){y=b.getExtensionForService(t[k.value].mode);var A=c.value;null!=y&&0>f.indexOf(".")&&0>A.indexOf(".")&&(c.value=A+y)}}d=null!=d?d:!0;q=null!=q?q:!0;var K=document.createElement("div");K.style.whiteSpace="nowrap";var E=document.createElement("div"); | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
"260px";e.style.textAlign="center";e.style.fontSize="22px";e.style.color="#a0c3ff";mxUtils.write(e,mxResources.get("dragImagesHere"));l.appendChild(e);var k={},n=null,p=null,t=null;R=function(V){"true"!=mxEvent.getSource(V).getAttribute("contentEditable")&&null!=t&&(t(),t=null,mxEvent.consume(V))};mxEvent.addListener(c,"mousedown",R);mxEvent.addListener(c,"pointerdown",R);mxEvent.addListener(c,"touchstart",R);var y=new mxUrlConverter,A=!1;if(null!=d)for(R=0;R<d.length;R++)f=d[R],D(f.data,null,0,0, | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
function(S){return"page"==S&&null!=G&&null!=G[A]?G[A].getAttribute("name"):"pagenumber"==S?A+1:"pagecount"==S?null!=G?G.length:1:C.apply(this,arguments)};p.getLinkForCell=function(){return null};l=b.createToolbarButton(Editor.zoomInImage,mxResources.get("zoomIn"),function(){p.zoomIn()},20);E=b.createToolbarButton(Editor.zoomInImage,mxResources.get("zoomOut"),function(){p.zoomOut()},20);f=b.createToolbarButton(Editor.zoomFitImage,mxResources.get("fit"),function(){1==p.view.scale?(p.maxFitScale=8,p.fit(8)): | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
y:Q.constObj.point.y,dx:Q.constObj.dx,dy:Q.constObj.dy};var J=0,m=0,v=I.geometry,B=mxUtils.format((Q.geometry.x+3-v.x)/v.width);Q=mxUtils.format((Q.geometry.y+3-v.y)/v.height);0>B?(J=B*v.width,B=0):1<B&&(J=(B-1)*v.width,B=1);0>Q?(m=Q*v.height,Q=0):1<Q&&(m=(Q-1)*v.height,Q=1);return{x:B,y:Q,dx:parseInt(J),dy:parseInt(m)}}function K(Q){if(1==R.getSelectionCount()){var J=R.getSelectionCell();Q&&(J.constObj=null);Q=L(J);V.value=100*Q.x;N.value=100*Q.y;S.value=Q.dx;O.value=Q.dy;C.style.visibility=""}else C.style.visibility=
"hidden"}var E=document.createElement("div");E.style.width="350px";E.style.height="350px";E.style.overflow="hidden";E.style.border="1px solid lightGray";E.style.boxSizing="border-box";mxEvent.disableContextMenu(E);d.appendChild(E);var R=new Graph(E);R.autoExtend=!1;R.autoScroll=!1;R.setGridEnabled(!1);R.setEnabled(!0);R.setPanning(!0);R.setConnectable(!1);R.setTooltips(!1);R.minFitScale=null;R.maxFitScale=null;R.centerZoom=!0;R.maxFitScale=2;E=f.geometry;var I=new mxCell(f.value,new mxGeometry(0, | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
"text/xml"):this.handleError({message:mxResources.get(413==Y.status?"drawingTooLarge":"invalidOrMissingFile")},mxResources.get("errorLoadingFile")))})):(this.spinner.stop(),this.showError(mxResources.get("error"),mxResources.get("notInOffline"))):Z(H,g)}}));B.stopPropagation();B.preventDefault()})),mxEvent.addListener(G,"dragleave",function(B){G.style.cursor="";G.style.backgroundColor="";B.stopPropagation();B.preventDefault()}));S=S.cloneNode(!1);S.setAttribute("src",Editor.editImage);S.setAttribute("title", | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
H,g,x,F){u=mxEvent.isAltDown(k)?u:t.getCenterInsertPoint(new mxRectangle(0,0,x,F));var M=null;t.getModel().beginUpdate();try{M="txt"==H?b.insertAsPreText(g,u.x,u.y):t.insertVertex(null,null,null,u.x,u.y,x,F,"shape=image;noLabel=1;verticalAlign=top;aspect=fixed;imageAspect=0;image="+b.convertDataUri(g)+";"),t.setAttributeForCell(M,"plantUmlData",JSON.stringify({data:B,format:H},null,2))}finally{t.getModel().endUpdate()}null!=M&&(t.setSelectionCell(M),t.scrollCellToVisible(M))},t=b.editor.graph,y="plantUmlTxt"== | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
else{var p=this.createDarkStyle();this.createTimeout(null,mxUtils.bind(this,function(t){p.onerror=mxUtils.bind(this,function(y){t.clear()&&k(Error(mxResources.get("errorLoadingFile")+" "+p.getAttribute("href")))});p.onload=mxUtils.bind(this,function(){t.clear()&&(this.darkStyle=p,n())});document.getElementsByTagName("head")[0].appendChild(p)}),mxUtils.bind(this,function(){k(Error(mxResources.get("timeout")+" "+p.getAttribute("href")))}))}};EditorUi.prototype.setPagesVisible=function(c){Editor.pagesVisible!=
c&&(Editor.pagesVisible=c,mxSettings.settings.pagesVisible=c,mxSettings.save(),this.fireEvent(new mxEventObject("pagesVisibleChanged")))};EditorUi.prototype.setSidebarTitles=function(c,e){this.sidebar.sidebarTitles!=c&&(this.sidebar.sidebarTitles=c,this.sidebar.refresh(),Editor.isSettingsEnabled()&&e&&(mxSettings.settings.sidebarTitles=c,mxSettings.save()),this.fireEvent(new mxEventObject("sidebarTitlesChanged")))};EditorUi.prototype.saveScrollState=function(){var c=this.editor.graph.view.translate, | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
this.editor.graph.getInsertPoint();this.importFiles([y.getAsFile()],A.x,A.y,this.maxImageSize);mxEvent.consume(e)}break}}}}catch(G){}}),!1)}};EditorUi.prototype.installNativeClipboardHandler=function(){function c(){window.setTimeout(function(){k.innerHTML=" ";k.focus();document.execCommand("selectAll",!1,null)},0)}var e=this.editor.graph,k=document.createElement("div");k.setAttribute("autocomplete","off");k.setAttribute("autocorrect","off");k.setAttribute("autocapitalize","off");k.setAttribute("spellcheck", | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
(null==Q.getCell()||Q.getCell()==I)};R.panningHandler.isForcePanningEvent=function(Q){return 2==Q.evt.button};var c=R.isCellSelectable;R.isCellSelectable=function(Q){return Q==I?!1:c.apply(this,arguments)};R.getLinkForCell=function(){return null};var e=R.view.getState(I);E=R.getAllConnectionConstraints(e);for(var k=0;null!=E&&k<E.length;k++){var n=R.getConnectionPoint(e,E[k]);u(n.x-3,n.y-3,E[k])}R.fit(8);R.center();k=b.createToolbarButton(Editor.zoomInImage,mxResources.get("zoomIn"),function(){R.zoomIn()}, | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
mxUtils.write(v,mxResources.get("showStartScreen"));mxEvent.addListener(v,"click",function(H){mxEvent.getSource(H)!=m&&(m.checked=!m.checked)});header=v}v=[[mxResources.get("reset"),function(){d.confirm(mxResources.get("areYouSure"),function(){try{localStorage.removeItem(Editor.configurationKey),d.hideDialog(),d.alert(mxResources.get("restartForChangeRequired"))}catch(H){d.handleError(H)}})}]];if(!d.isOfflineApp()&&isLocalStorage&&d.mode!=App.MODE_ATLAS){var B=d.actions.get("plugins");null==B||"sketch"!= | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
return this.editor.embedExtFonts(c)};EditorUi.prototype.exportToCanvas=function(c,e,k,n,p,t,y,A,G,C,V,S,N,O,Q,J){EditorUi.logEvent("SHOULD NOT BE CALLED: exportToCanvas");return this.editor.exportToCanvas(c,e,k,n,p,t,y,A,G,C,V,S,N,O,Q,J)};EditorUi.prototype.createImageUrlConverter=function(){EditorUi.logEvent("SHOULD NOT BE CALLED: createImageUrlConverter");return this.editor.createImageUrlConverter()};EditorUi.prototype.convertImages=function(c,e,k,n){EditorUi.logEvent("SHOULD NOT BE CALLED: convertImages");
return this.editor.convertImages(c,e,k,n)};EditorUi.prototype.convertImageToDataUri=function(c,e){EditorUi.logEvent("SHOULD NOT BE CALLED: convertImageToDataUri");return this.editor.convertImageToDataUri(c,e)};EditorUi.prototype.base64Encode=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: base64Encode");return Editor.base64Encode(c)};EditorUi.prototype.updateCRC=function(c,e,k,n){EditorUi.logEvent("SHOULD NOT BE CALLED: updateCRC");return Editor.updateCRC(c,e,k,n)};EditorUi.prototype.crc32=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: crc32"); | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
function(J){if(e.isEnabled()&&1==e.getSelectionCount()){var m=e.getSelectionCell(),v=mxEvent.isControlDown(J)?null:e.getIncomingTreeEdges(m);J=[];if(null!=v&&0<v.length&&(v=e.getOutgoingTreeEdges(e.model.getTerminal(v[0],!0)),null!=v))for(var B=0;B<v.length;B++)J.push(e.model.getTerminal(v[B],!1));0==J.length&&(J=e.model.getChildren(e.model.getParent(m)));e.setSelectionCells(J)}},null,null,"Alt+Shift+S");var p=e.removeCells;e.removeCells=function(J,m){m=null!=m?m:!0;null==J&&(J=this.getDeletableCells(this.getSelectionCells()));
m&&(J=this.getDeletableCells(this.addAllEdges(J)));for(var v=[],B=0;B<J.length;B++){var H=J[B];k.isEdge(H)&&u(H)&&(v.push(H),H=k.getTerminal(H,!1));if(d(H)){var g=[];e.traverse(H,!0,function(x,F){var M=null!=F&&e.isTreeEdge(F);M&&g.push(F);(null==F||M)&&g.push(x);return null==F||M});0<g.length&&(v=v.concat(g),H=e.getIncomingTreeEdges(J[B]),J=J.concat(H))}else null!=H&&v.push(J[B])}J=v;return p.apply(this,arguments)};c.hoverIcons.getStateAt=function(J,m,v){return d(J.cell)?null:this.graph.view.getState(this.graph.getCellAt(m, | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
6)this.curveTo(fa[ca],fa[ca+1],fa[ca+2],fa[ca+3],fa[ca+4],fa[ca+5]);this.lastX=Y;this.lastY=ba}};g.prototype.rect=function(T,W,U,X){this.passThrough?this.originalRect.apply(this.canvas,arguments):(this.path=[],this.nextShape=this.rc.generator.rectangle(T,W,U,X,this.getStyle(!0,!0)))};g.prototype.ellipse=function(T,W,U,X){this.passThrough?this.originalEllipse.apply(this.canvas,arguments):(this.path=[],this.nextShape=this.rc.generator.ellipse(T+U/2,W+X/2,U,X,this.getStyle(!0,!0)))};g.prototype.roundrect= | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
!1,!0)}finally{G.model.endUpdate()}}}catch(H){if(p)throw H;this.handleError(H)}return A};EditorUi.prototype.updatePageLinks=function(c,e){for(var k=0;k<e.length;k++)this.updatePageLinksForCell(c,e[k].root),null!=e[k].viewState&&this.updateBackgroundPageLink(c,e[k].viewState.backgroundImage)};EditorUi.prototype.updateBackgroundPageLink=function(c,e){try{if(null!=e&&Graph.isPageLink(e.originalSrc)){var k=c[e.originalSrc.substring(e.originalSrc.indexOf(",")+1)];null!=k&&(e.originalSrc="data:page/id,"+ | 0 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | vulnerable |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.