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 |
---|---|---|---|---|---|---|---|
var X=this.fill,Z=this.stroke;this.stroke=this.fill=null;var Y=this.configurePointerEvents,aa=W.setStrokeColor;W.setStrokeColor=function(){};var ca=W.setFillColor;W.setFillColor=function(){};S||null==X||(this.configurePointerEvents=function(){});W.handJiggle.passThrough=!0;O.apply(this,arguments);W.handJiggle.passThrough=!1;W.setFillColor=ca;W.setStrokeColor=aa;this.configurePointerEvents=Y;this.stroke=Z;this.fill=X;W.restore();S&&null!=X&&(W.addTolerance=function(){})}O.apply(this,arguments);W.addTolerance= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
DrawioFile.prototype.reloadFile=function(b,e){try{this.ui.spinner.stop();var f=mxUtils.bind(this,function(){EditorUi.debug("DrawioFile.reloadFile",[this],"hash",this.getHash(),"modified",this.isModified(),"backupPatch",this.backupPatch);this.stats.fileReloaded++;if(""==this.getHash())this.mergeLatestVersion(null!=this.backupPatch?[this.backupPatch]:null,mxUtils.bind(this,function(){this.backupPatch=null;null!=b&&b()}),e);else{var c=this.ui.editor.graph,k=c.getSelectionCells(),m=c.getViewState(),u=
this.ui.currentPage;this.ui.loadFile(this.getHash(),!0,null,mxUtils.bind(this,function(){if(null==this.ui.fileLoadedError){this.ui.restoreViewState(u,m,k);null!=this.backupPatch&&this.patch([this.backupPatch]);var v=this.ui.getCurrentFile();null!=v&&(v.stats=this.stats);null!=b&&b()}}),!0)}});this.isModified()&&null==this.backupPatch?this.ui.confirm(mxResources.get("allChangesLost"),mxUtils.bind(this,function(){this.handleFileSuccess("manual"==DrawioFile.SYNC)}),f,mxResources.get("cancel"),mxResources.get("discardChanges")):
f()}catch(c){null!=e&&e(c)}};DrawioFile.prototype.mergeLatestVersion=function(b,e,f){this.getLatestVersion(mxUtils.bind(this,function(c){this.ui.editor.graph.model.beginUpdate();try{this.ui.replaceFileData(c.getData()),null!=b&&this.patch(b)}finally{this.ui.editor.graph.model.endUpdate()}this.inConflictState=this.invalidChecksum=!1;this.setDescriptor(c.getDescriptor());this.descriptorChanged();null!=e&&e()}),f)}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
App.prototype.save=function(b,e){var f=this.getCurrentFile();if(null!=f&&this.spinner.spin(document.body,mxResources.get("saving"))){var c=mxUtils.bind(this,function(k){this.handleError(k)});this.createTimeout(3*this.timeout,mxUtils.bind(this,function(k){this.editor.setStatus("");this.editor.graph.isEditing()&&this.editor.graph.stopEditing();var m=mxUtils.bind(this,function(){k.clear()&&(f.handleFileSuccess(!0),null!=e&&e())}),u=mxUtils.bind(this,function(v){k.clear()&&(f.isModified()&&Editor.addRetryToError(v,
mxUtils.bind(this,function(){this.save(b,e)})),f.handleFileError(v,null==v||"AbortError"!=v.name))});try{b==f.getTitle()?f.save(!0,m,u):f.saveAs(b,m,u)}catch(v){u(v)}}),c)}};App.prototype.getExtensionForService=function(b){b=this.getServiceForName(b);return null!=b?b.extension:".drawio"}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
function(){null!=x&&(x(),x=null);b.showImageDialog(mxResources.get("addImageUrl"),"",function(U,R,N){G=!1;if(null!=U){if("data:image/"==U.substring(0,11)){var Q=U.indexOf(",");0<Q&&(U=U.substring(0,Q)+";base64,"+U.substring(Q+1))}v(U,null,0,0,R,N);d.scrollTop=d.scrollHeight}})});e.setAttribute("id","btnAddImageUrl");e.className="geBtn";c.appendChild(e);this.saveBtnClickHandler=function(U,R,N,Q){b.saveLibrary(U,R,N,Q)};e=mxUtils.button(mxResources.get("save"),mxUtils.bind(this,function(){null!=x&& | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
n)});G()};GitHubClient.prototype.logout=function(){this.clearPersistentToken();this.setUser(null);b=null}})();TrelloFile=function(b,e,f){DrawioFile.call(this,b,e);this.meta=f;this.saveNeededCounter=0};mxUtils.extend(TrelloFile,DrawioFile);TrelloFile.prototype.getHash=function(){return"T"+encodeURIComponent(this.meta.compoundId)};TrelloFile.prototype.getMode=function(){return App.MODE_TRELLO};TrelloFile.prototype.isAutosave=function(){return!0};TrelloFile.prototype.getTitle=function(){return this.meta.name};TrelloFile.prototype.isRenamable=function(){return!1};TrelloFile.prototype.getSize=function(){return this.meta.bytes}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
function(){window.clearTimeout(O);J&&z(Editor.svgBrokenImage.src)});else{var T=new Image;this.crossOriginImages&&(T.crossOrigin="anonymous");T.onload=function(){window.clearTimeout(O);if(J)try{var W=document.createElement("canvas"),V=W.getContext("2d");W.height=T.height;W.width=T.width;V.drawImage(T,0,0);z(W.toDataURL())}catch(S){z(Editor.svgBrokenImage.src)}};T.onerror=function(){window.clearTimeout(O);J&&z(Editor.svgBrokenImage.src)};T.src=l}}catch(W){z(Editor.svgBrokenImage.src)}};Editor.prototype.convertImages= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
return this.editor.embedExtFonts(d)};EditorUi.prototype.exportToCanvas=function(d,g,n,q,t,x,B,G,I,F,U,R,N,Q,P,M){EditorUi.logEvent("SHOULD NOT BE CALLED: exportToCanvas");return this.editor.exportToCanvas(d,g,n,q,t,x,B,G,I,F,U,R,N,Q,P,M)};EditorUi.prototype.createImageUrlConverter=function(){EditorUi.logEvent("SHOULD NOT BE CALLED: createImageUrlConverter");return this.editor.createImageUrlConverter()};EditorUi.prototype.convertImages=function(d,g,n,q){EditorUi.logEvent("SHOULD NOT BE CALLED: convertImages"); | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
f,c,k,m){this.insertFile(e,f,c,k,!0,m,!1)};GitHubClient.prototype.insertFile=function(e,f,c,k,m,u,v){m=null!=m?m:!1;u=u.split("/");var E=u[0],D=u[1],A=u[2],L=u.slice(3,u.length).join("/");0<L.length&&(L+="/");L+=e;this.checkExists(E+"/"+D+"/"+A+"/"+L,!0,mxUtils.bind(this,function(H,d){H?m?(v||(f=Base64.encode(f)),this.showCommitDialog(e,!0,mxUtils.bind(this,function(g){this.writeFile(E,D,A,L,g,f,d,mxUtils.bind(this,function(n){try{var q=JSON.parse(n.getText());c(this.createGitHubFile(E,D,A,q.content,
m))}catch(t){k(t)}}),k)}),k)):c(new GitHubFile(this.ui,f,{org:E,repo:D,ref:A,name:e,path:L,sha:d,isNew:!0})):k()}))};GitHubClient.prototype.showCommitDialog=function(e,f,c,k){var m=this.ui.spinner.pause();e=new FilenameDialog(this.ui,mxResources.get(f?"addedFile":"updateFile",[e]),mxResources.get("ok"),mxUtils.bind(this,function(u){m();c(u)}),mxResources.get("commitMessage"),null,null,null,null,mxUtils.bind(this,function(){k()}),null,280);this.ui.showDialog(e.container,400,80,!0,!1);e.init()};GitHubClient.prototype.writeFile= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
"message",C))}}catch(Y){null!=window.console&&console.warn(Y,C,K)}}function v(C,K){if(!Q&&SimplePeer.WEBRTC_SUPPORT){var l=new SimplePeer({initiator:K,config:{iceServers:[{urls:"stun:54.89.235.160:3478"}]}});l.on("signal",function(z){y("sendSignal",{to:C,from:G,signal:z})});l.on("error",function(z){delete I[C];EditorUi.debug("P2PCollab: p2p socket error",z);!N&&K&&l.destroyed&&x[C]&&(EditorUi.debug("P2PCollab: p2p socket reconnecting",C),v(C,!0))});l.on("connect",function(){delete I[C];null==F[C]||
F[C].destroyed?(F[C]=l,x[C]=!0,EditorUi.debug("P2PCollab: p2p socket connected",C)):(l.noP2PMapDel=!0,l.destroy(),EditorUi.debug("P2PCollab: p2p socket duplicate",C))});l.on("close",function(){l.noP2PMapDel||(EditorUi.debug("P2PCollab: p2p socket closed",C),D(t[C]),delete F[C])});l.on("data",u);return I[C]=l}}function E(C,K){D(K||t[C]);null!=C&&(delete t[C],x[C]=!1)}function D(C){var K=g[C];if(null!=K){var l=K.selection,z;for(z in l)null!=l[z]&&l[z].destroy();null!=K.cursor&&null!=K.cursor.parentNode&& | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
f?A=new mxHierarchicalLayout(m,mxConstants.DIRECTION_WEST):"circle"==f?A=new mxCircleLayout(m):(A=new mxFastOrganicLayout(m,!1),A.forceConstant=80);if(null!=A){var L=function(n,q){m.getModel().beginUpdate();try{null!=n&&n(),A.execute(m.getDefaultParent(),D)}catch(t){throw t;}finally{n=new mxMorphing(m),n.addListener(mxEvent.DONE,mxUtils.bind(this,function(){m.getModel().endUpdate();null!=q&&q()})),n.startAnimation()}},H=mxEdgeHandler.prototype.connect;mxEdgeHandler.prototype.connect=function(n,q, | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
function(W,V,S,X,Z,Y){this.passThrough?this.originalRoundrect.apply(this.canvas,arguments):(this.begin(),this.moveTo(W+Z,V),this.lineTo(W+S-Z,V),this.quadTo(W+S,V,W+S,V+Y),this.lineTo(W+S,V+X-Y),this.quadTo(W+S,V+X,W+S-Z,V+X),this.lineTo(W+Z,V+X),this.quadTo(W,V+X,W,V+X-Y),this.lineTo(W,V+Y),this.quadTo(W,V,W+Z,V))};l.prototype.drawPath=function(W){if(0<this.path.length){this.passThrough=!0;try{this.rc.path(this.path.join(" "),W)}catch(S){}this.passThrough=!1}else if(null!=this.nextShape){for(var V in W)this.nextShape.options[V]= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
function(Q){A=Q};this.setAutoScroll=function(Q){L=Q};this.setOpenFill=function(Q){H=Q};this.setStopClickEnabled=function(Q){n=Q};this.setSelectInserted=function(Q){q=Q};this.setSmoothing=function(Q){f=Q};this.setPerfectFreehandMode=function(Q){x=Q};this.isPerfectFreehandMode=function(){return x};this.setBrushSize=function(Q){t.size=Q};this.getBrushSize=function(){return t.size};var B=function(Q){g=Q;b.getRubberband().setEnabled(!Q);b.graphHandler.setSelectEnabled(!Q);b.graphHandler.setMoveEnabled(!Q);
b.container.style.cursor=Q?"crosshair":"";b.fireEvent(new mxEventObject("freehandStateChanged"))};this.startDrawing=function(){B(!0)};this.isDrawing=function(){return g};var G=mxUtils.bind(this,function(Q){if(c){var P=v.length,M=n&&0<u.length&&null!=v&&2>v.length;M||u.push.apply(u,v);v=[];u.push(null);k.push(c);c=null;(M||A)&&this.stopDrawing();A&&(!M||2<=P)&&this.startDrawing();mxEvent.consume(Q)}}),I=new mxCell;I.edge=!0;var F=function(){var Q=b.getCurrentCellStyle(I);Q=mxUtils.getValue(b.currentVertexStyle, | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
M):R.y+R.height>M+Q&&(R.height=M+Q-R.y,R.y=Math.min(R.y,M+Q));var p=(R.x-P)/N*100;N=100-(R.x+R.width-P)/N*100;P=(R.y-M)/Q*100;R=100-(R.y+R.height-M)/Q*100;return"inset("+mxUtils.format(P)+"% "+mxUtils.format(N)+"% "+mxUtils.format(R)+"% "+mxUtils.format(p)+"%"+(F?" round "+H+"%":U?" round 50%":"")+")"}function m(F){null!=A&&(!0!==F&&(A.model.setGeometry(d,L.clone()),H=5,B.value=H),A.model.setStyle(d,g+k()),A.selectAll(),x.style.visibility=q.checked?"visible":"hidden")}var u=document.createElement("div"), | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
"-rev_"+this.ui.hashValue(v):"")+(null!=t?"-latest_"+t:"")+(null!=n?"-latestRev_"+this.ui.hashValue(n.getCurrentRevisionId()):""));EditorUi.logEvent({category:"CHECKSUM-ERROR-SYNC-FILE-"+H,action:k,label:"user_"+L+(null!=this.sync?"-client_"+this.sync.clientId:"-nosync")+"-bytes_"+d+"-patches_"+e.length+"-size_"+this.getSize()})}catch(x){}}),b)}}catch(n){}}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
z?null:{from:Math.max(0,Math.min(l-1,da-1)),to:Math.max(0,Math.min(l-1,ba-1))}}c.downloadFile("pdf",null,null,!X.checked,p?!0:!O.checked&&null==da,!Z.checked,null!=aa&&aa.checked,null,null,Y.checked,null!=ca&&ca.checked,da)}),null,mxResources.get("export"));c.showDialog(y.container,300,C,!0,!0)}else c.showDialog((new PrintDialog(c,mxResources.get("formatPdf"))).container,360,null!=c.pages&&1<c.pages.length&&(c.editor.editable||"1"!=urlParams["hide-pages"])?470:390,!0,!0)}));c.actions.addAction("open...", | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
V};var T=mxShape.prototype.paintGlassEffect;mxShape.prototype.paintGlassEffect=function(W,V,S,X,Z,Y){null!=W.handJiggle&&W.handJiggle.constructor==l?(W.handJiggle.passThrough=!0,T.apply(this,arguments),W.handJiggle.passThrough=!1):T.apply(this,arguments)}})();Editor.fastCompress=function(l){return null==l||0==l.length||"undefined"===typeof pako?l:Graph.arrayBufferToString(pako.deflateRaw(l))};Editor.fastDecompress=function(l){return null==l||0==l.length||"undefined"===typeof pako?l:pako.inflateRaw(Graph.stringToArrayBuffer(atob(l)), | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
console.log("Error in MathJax.typeset: "+S.toString())}};window.MathJax=null!=z?z:{options:{skipHtmlTags:{"[+]":["text"]}},loader:{load:["html"==urlParams["math-output"]?"output/chtml":"output/svg","input/tex","input/asciimath","ui/safe"]},startup:{pageReady:function(){for(var V=0;V<Editor.mathJaxQueue.length;V++)Editor.doMathJaxRender(Editor.mathJaxQueue[V])}}};Editor.MathJaxRender=function(V){"undefined"!==typeof MathJax&&"function"===typeof MathJax.typeset?Editor.doMathJaxRender(V):Editor.mathJaxQueue.push(V)}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
"4px");null!=Y&&da.setAttribute("title",Y);null!=aa&&(S=function(){aa.isEnabled()?(da.removeAttribute("disabled"),da.style.cursor="pointer"):(da.setAttribute("disabled","disabled"),da.style.cursor="default")},aa.addListener("stateChanged",S),B.addListener("enabledChanged",S),S());return da}function g(S,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";
Z.style.position="relative";Z.style.top="0px";for(var Y=0;Y<S.length;Y++)null!=S[Y]&&(S[Y].style.margin="0px",S[Y].style.boxShadow="none",Z.appendChild(S[Y]));null!=X&&mxUtils.setOpacity(Z,X);null!=x.statusContainer?G.insertBefore(Z,x.statusContainer):G.appendChild(Z);return Z}function n(){for(var S=G.firstChild;null!=S;){var X=S.nextSibling;"geMenuItem"!=S.className&&"geItem"!=S.className||S.parentNode.removeChild(S);S=X}I=G.firstChild;c=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
ma=Ja;ia++}0==Ka.length?sa.innerText=mxResources.get("noResultsFor",[ja]):F(Ka,!0)}}function M(ja){if(Y!=ja||V!=aa)q(),Ba.scrollTop=0,ba.innerText="",sa.innerText=mxResources.get("searchResults")+' "'+ja+'"',Ua=null,ca?P(ja):v&&(ja?(Fa.spin(ba),l=!1,K=!0,v(ja,Va,function(){n(mxResources.get("searchFailed"));Va([])},V?null:m)):Q(V)),Y=ja,aa=V}function p(ja){null!=Ua&&clearTimeout(Ua);13==ja.keyCode?M(Ca.value):Ua=setTimeout(function(){M(Ca.value)},1E3)}var y='<div class="geTempDlgHeader"><img src="/images/draw.io-logo.svg" class="geTempDlgHeaderLogo"><input type="search" class="geTempDlgSearchBox" '+ | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
return U}),F=!0);return F};var B=t.stop;t.stop=function(){B.call(this);this.active=!1;null!=t.status&&null!=t.status.parentNode&&t.status.parentNode.removeChild(t.status);t.status=null};t.pause=function(){return function(){}};return t};EditorUi.prototype.isCompatibleString=function(d){try{var g=mxUtils.parseXml(d),n=this.editor.extractGraphModel(g.documentElement,!0);return null!=n&&0==n.getElementsByTagName("parsererror").length}catch(q){}return!1};EditorUi.prototype.isVisioData=function(d){return 8< | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
StorageFile.listFiles=function(b,e,f,c){b.getDatabaseItems(function(k){var m=[];if(null!=k)for(var u=0;u<k.length;u++)"."==k[u].title.charAt(0)||null!=e&&k[u].type!=e||m.push(k[u]);f(m)},function(){null==b.database?f(StorageFile.listLocalStorageFiles(e)):null!=c&&c()},"filesInfo")};StorageFile.deleteFile=function(b,e,f,c){b.removeDatabaseItem([e,e],f,function(){null==b.database?(localStorage.removeItem(e),f()):null!=c&&c()},["files","filesInfo"])};StorageLibrary=function(b,e,f){StorageFile.call(this,b,e,f)};mxUtils.extend(StorageLibrary,StorageFile);StorageLibrary.prototype.type="L";StorageLibrary.prototype.isAutosave=function(){return!0};StorageLibrary.prototype.saveAs=function(b,e,f){this.saveFile(b,!1,e,f)};StorageLibrary.prototype.getHash=function(){return"L"+encodeURIComponent(this.title)};StorageLibrary.prototype.getTitle=function(){return".scratchpad"==this.title?mxResources.get("scratchpad"):this.title}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
GitHubFile.prototype.setDescriptorEtag=function(b,e){b.sha=e};GitHubFile.prototype.save=function(b,e,f,c,k,m){this.doSave(this.getTitle(),e,f,c,k,m)};GitHubFile.prototype.saveAs=function(b,e,f){this.doSave(b,e,f)};GitHubFile.prototype.doSave=function(b,e,f,c,k,m){var u=this.meta.name;this.meta.name=b;DrawioFile.prototype.save.apply(this,[null,mxUtils.bind(this,function(){this.meta.name=u;this.saveFile(b,!1,e,f,c,k,m)}),f,c,k])}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
!navigator.onLine||!d&&("1"==urlParams.stealth||"1"==urlParams.lockdown)};EditorUi.prototype.isExternalDataComms=function(){return"1"!=urlParams.offline&&!this.isOffline()&&!this.isOfflineApp()};EditorUi.prototype.createSpinner=function(d,g,n){var q=null==d||null==g;n=null!=n?n:24;var t=new Spinner({lines:12,length:n,width:Math.round(n/3),radius:Math.round(n/2),rotate:0,color:Editor.isDarkMode()?"#c0c0c0":"#000",speed:1.5,trail:60,shadow:!1,hwaccel:!1,zIndex:2E9}),x=t.spin;t.spin=function(G,I){var F=
!1;this.active||(x.call(this,G),this.active=!0,null!=I&&(q&&(g=Math.max(document.body.clientHeight||0,document.documentElement.clientHeight||0)/2,d=document.body.clientWidth/2-2),F=document.createElement("div"),F.style.position="absolute",F.style.whiteSpace="nowrap",F.style.background="#4B4243",F.style.color="white",F.style.fontFamily=Editor.defaultHtmlFont,F.style.fontSize="9pt",F.style.padding="6px",F.style.paddingLeft="10px",F.style.paddingRight="10px",F.style.zIndex=2E9,F.style.left=Math.max(0,
d)+"px",F.style.top=Math.max(0,g+70)+"px",mxUtils.setPrefixedStyle(F.style,"borderRadius","6px"),mxUtils.setPrefixedStyle(F.style,"transform","translate(-50%,-50%)"),Editor.isDarkMode()||mxUtils.setPrefixedStyle(F.style,"boxShadow","2px 2px 3px 0px #ddd"),"..."!=I.substring(I.length-3,I.length)&&"!"!=I.charAt(I.length-1)&&(I+="..."),F.innerHTML=I,G.appendChild(F),t.status=F),this.pause=mxUtils.bind(this,function(){var U=function(){};this.active&&(U=mxUtils.bind(this,function(){this.spin(G,I)}));this.stop();
return U}),F=!0);return F};var B=t.stop;t.stop=function(){B.call(this);this.active=!1;null!=t.status&&null!=t.status.parentNode&&t.status.parentNode.removeChild(t.status);t.status=null};t.pause=function(){return function(){}};return t};EditorUi.prototype.isCompatibleString=function(d){try{var g=mxUtils.parseXml(d),n=this.editor.extractGraphModel(g.documentElement,!0);return null!=n&&0==n.getElementsByTagName("parsererror").length}catch(q){}return!1};EditorUi.prototype.isVisioData=function(d){return 8< | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
DriveComment.prototype.deleteComment=function(b,e){this.file.ui.drive.executeRequest(this.pCommentId?{url:"/files/"+this.file.getId()+"/comments/"+this.pCommentId+"/replies/"+this.id,method:"DELETE"}:{url:"/files/"+this.file.getId()+"/comments/"+this.id,method:"DELETE"},b,e)};function mxODPicker(b,e,f,c,k,m,u,v,E,D,A,L,H,d){function g(V,S){S=S||document;return S.querySelector(V)}function n(V,S,X){if(null==V["@microsoft.graph.downloadUrl"])if(null==V.parentReference)X();else{c(V.id,V.parentReference.driveId,function(aa){n(aa,S,X)},X);return}var Z=new XMLHttpRequest;Z.open("GET",V["@microsoft.graph.downloadUrl"]);var Y=V.file?"image/png"==V.file.mimeType:!1;Z.onreadystatechange=function(){if(4==this.readyState){if(200<=this.status&&299>=this.status)try{var aa=Z.responseText;
Y&&(aa="data:image/png;base64,"+Editor.base64Encode(aa),aa=Editor.extractGraphModelFromPng(aa));var ca=mxUtils.parseXml(aa),da="mxlibrary"==ca.documentElement.nodeName?ca.documentElement:Editor.extractGraphModel(ca.documentElement);if(null!=da){S(da.ownerDocument);return}}catch(ba){}X()}};Y&&Z.overrideMimeType&&Z.overrideMimeType("text/plain; charset=x-user-defined");Z.send()}function q(){L&&null!=P?Q.exportToCanvas(function(V){V=EditorUi.prototype.createImageDataUri(V,null,"png");u(M,V);m(M)},400, | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
"checked"):(H=parseInt(p[5]),B.value=H,q.setAttribute("checked","checked"),x.style.visibility="visible"):n.setAttribute("checked","checked")):f=null}else f=null}catch(T){}d.style=g+(f?f:k());d.vertex=!0;A.addCell(d,null,null,null,null);A.selectAll();A.addListener(mxEvent.CELLS_MOVED,F);A.addListener(mxEvent.CELLS_RESIZED,F);var z=A.graphHandler.mouseUp,J=A.graphHandler.mouseDown;A.graphHandler.mouseUp=function(){z.apply(this,arguments);D.style.backgroundColor="#fff9"};A.graphHandler.mouseDown=function(){J.apply(this, | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
OneDriveFile.prototype.doSave=function(b,e,f,c,k,m){var u=this.meta.name;this.meta.name=b;DrawioFile.prototype.save.apply(this,[null,mxUtils.bind(this,function(){this.meta.name=u;this.saveFile(b,e,f,c,k,m)}),c,k,m])}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
this.endpointHint=k.webUrl.replace("/Documents","/_layouts/15/onedrive.aspx"):this.endpointHint=this.defEndpointHint;var m=JSON.parse(this.getPersistentToken(!0));null!=m&&(m.endpointHint=this.endpointHint,this.setPersistentToken(JSON.stringify(m),!m.remember));e();return}}catch(u){}f({message:mxResources.get("unknownError")+" (Code: "+c.getStatus()+")"})}),f)};OneDriveClient.prototype.executeRequest=function(e,f,c){var k=mxUtils.bind(this,function(m){var u=!0,v=window.setTimeout(mxUtils.bind(this, | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
retry:k})}),mxUtils.bind(this,function(){m&&(window.onGitLabCallback=null,m=!1,c({message:mxResources.get("accessDenied"),retry:k}))}))});k()}else c({code:App.ERROR_BUSY})};GitLabClient.prototype.executeRequest=function(e,f,c,k){var m=mxUtils.bind(this,function(v){var E=!0,D=window.setTimeout(mxUtils.bind(this,function(){E=!1;c({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout")})}),this.ui.timeout),A=this.authToken+" "+b;e.setRequestHeaders=function(L,H){L.setRequestHeader("Authorization",
A);L.setRequestHeader("PRIVATE_TOKEN",A);L.setRequestHeader("Content-Type","application/json")};e.send(mxUtils.bind(this,function(){window.clearTimeout(D);if(E)if(200<=e.getStatus()&&299>=e.getStatus()||k&&404==e.getStatus())f(e);else if(401===e.getStatus())v?c({message:mxResources.get("accessDenied"),retry:mxUtils.bind(this,function(){this.authenticate(function(){u(!0)},c)})}):this.authenticate(function(){m(!0)},c);else if(403===e.getStatus()){var L=!1;try{var H=JSON.parse(e.getText());null!=H&& | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
App.prototype.exportFile=function(b,e,f,c,k,m){k==App.MODE_DROPBOX?null!=this.dropbox&&this.spinner.spin(document.body,mxResources.get("saving"))&&this.dropbox.insertFile(e,c?this.base64ToBlob(b,f):b,mxUtils.bind(this,function(){this.spinner.stop()}),mxUtils.bind(this,function(u){this.spinner.stop();this.handleError(u)})):k==App.MODE_GOOGLE?null!=this.drive&&this.spinner.spin(document.body,mxResources.get("saving"))&&this.drive.insertFile(e,b,m,mxUtils.bind(this,function(u){this.spinner.stop()}),
mxUtils.bind(this,function(u){this.spinner.stop();this.handleError(u)}),f,c):k==App.MODE_ONEDRIVE?null!=this.oneDrive&&this.spinner.spin(document.body,mxResources.get("saving"))&&this.oneDrive.insertFile(e,c?this.base64ToBlob(b,f):b,mxUtils.bind(this,function(){this.spinner.stop()}),mxUtils.bind(this,function(u){this.spinner.stop();this.handleError(u)}),!1,m):k==App.MODE_GITHUB?null!=this.gitHub&&this.spinner.spin(document.body,mxResources.get("saving"))&&this.gitHub.insertFile(e,b,mxUtils.bind(this,
function(){this.spinner.stop()}),mxUtils.bind(this,function(u){this.spinner.stop();this.handleError(u)}),!0,m,c):k==App.MODE_GITLAB?null!=this.gitHub&&this.spinner.spin(document.body,mxResources.get("saving"))&&this.gitLab.insertFile(e,b,mxUtils.bind(this,function(){this.spinner.stop()}),mxUtils.bind(this,function(u){this.spinner.stop();this.handleError(u)}),!0,m,c):k==App.MODE_TRELLO?null!=this.trello&&this.spinner.spin(document.body,mxResources.get("saving"))&&this.trello.insertFile(e,c?this.base64ToBlob(b,
f):b,mxUtils.bind(this,function(){this.spinner.stop()}),mxUtils.bind(this,function(u){this.spinner.stop();this.handleError(u)}),!1,m):k==App.MODE_BROWSER&&(f=mxUtils.bind(this,function(){localStorage.setItem(e,b)}),null==localStorage.getItem(e)?f():this.confirm(mxResources.get("replaceIt",[e]),f))}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
d.name):n()}):I||n()}},function(x){n(x)}):n()});"undefined"!==typeof JSZip||this.loadingExtensions||this.isOffline(!0)?t():(this.loadingExtensions=!0,mxscript("js/extensions.min.js",t,null,null,null,n))};EditorUi.prototype.importFile=function(d,g,n,q,t,x,B,G,I,F,U,R){F=null!=F?F:!0;var N=!1,Q=null,P=mxUtils.bind(this,function(M){var p=null;null!=M&&"<mxlibrary"==M.substring(0,10)?this.loadLibrary(new LocalLibrary(this,M,B)):p=this.importXml(M,n,q,F,null,null!=R?mxEvent.isControlDown(R):null);null!=
G&&G(p)});"image"==g.substring(0,5)?(I=!1,"image/png"==g.substring(0,9)&&(g=U?null:this.extractGraphModelFromPng(d),null!=g&&0<g.length&&(Q=this.importXml(g,n,q,F,null,null!=R?mxEvent.isControlDown(R):null),I=!0)),I||(g=this.editor.graph,I=d.indexOf(";"),0<I&&(d=d.substring(0,I)+d.substring(d.indexOf(",",I+1))),F&&g.isGridEnabled()&&(n=g.snap(n),q=g.snap(q)),Q=[g.insertVertex(null,null,"",n,q,t,x,"shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image="+
d+";")])):/(\.*<graphml )/.test(d)?(N=!0,this.importGraphML(d,P)):null!=I&&null!=B&&(/(\.v(dx|sdx?))($|\?)/i.test(B)||/(\.vs(x|sx?))($|\?)/i.test(B))?(N=!0,this.importVisio(I,P)):(new XMLHttpRequest).upload&&this.isRemoteFileFormat(d,B)?this.isOffline()?this.showError(mxResources.get("error"),mxResources.get("notInOffline")):(N=!0,t=mxUtils.bind(this,function(M){4==M.readyState&&(200<=M.status&&299>=M.status?P(M.responseText):null!=G&&(G(null),this.showError(mxResources.get("error"),413==M.status? | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
DiagramFormatPanel.prototype.addOptions=function(l){l=L.apply(this,arguments);var z=this.editorUi,J=z.editor.graph;if(J.isEnabled()){var O=z.getCurrentFile();null!=O&&O.isAutosaveOptional()&&l.appendChild(this.createOption(mxResources.get("autosave"),function(){return z.editor.autosave},function(V){z.editor.setAutosave(V);z.editor.autosave&&O.isModified()&&O.fileChanged()},{install:function(V){this.listener=function(){V(z.editor.autosave)};z.editor.addListener("autosaveChanged",this.listener)},destroy:function(){z.editor.removeListener(this.listener)}}))}if(this.isMathOptionVisible()&&
J.isEnabled()&&"undefined"!==typeof MathJax){var T=this.createOption(mxResources.get("mathematicalTypesetting"),function(){return J.mathEnabled},function(V){z.actions.get("mathematicalTypesetting").funct()},{install:function(V){this.listener=function(){V(J.mathEnabled)};z.addListener("mathEnabledChanged",this.listener)},destroy:function(){z.removeListener(this.listener)}});l.appendChild(T);var W=z.menus.createHelpLink("https://www.drawio.com/doc/faq/math-typesetting");W.style.position="relative";
W.style.marginLeft="6px";T.appendChild(W)}return l};mxCellRenderer.prototype.defaultVertexShape.prototype.customProperties=[{name:"arcSize",dispName:"Arc Size",type:"float",min:0,defVal:mxConstants.LINE_ARCSIZE},{name:"absoluteArcSize",dispName:"Abs. Arc Size",type:"bool",defVal:!1}];mxCellRenderer.defaultShapes.link.prototype.customProperties=[{name:"width",dispName:"Width",type:"float",min:0,defVal:4}];mxCellRenderer.defaultShapes.flexArrow.prototype.customProperties=[{name:"width",dispName:"Width", | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
t,x,B){H.apply(this,arguments);L()};m.resizeCell=function(){mxGraph.prototype.resizeCell.apply(this,arguments);L()};m.connectionHandler.addListener(mxEvent.CONNECT,function(){L()})}var d=mxUtils.button(mxResources.get("close"),function(){b.confirm(mxResources.get("areYouSure"),function(){null!=k.parentNode&&(m.destroy(),k.parentNode.removeChild(k));b.hideDialog()})});d.className="geBtn";b.editor.cancelFirst&&c.appendChild(d);var g=mxUtils.button(mxResources.get("insert"),function(n){m.clearCellOverlays(); | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
arguments))};var q=mxSvgCanvas2D.prototype.updateTextNodes;mxSvgCanvas2D.prototype.updateTextNodes=function(l,z,J,O,T,W,V,S,X,Z,Y){q.apply(this,arguments);Graph.processFontAttributes(Y)};var t=mxText.prototype.redraw;mxText.prototype.redraw=function(){t.apply(this,arguments);null!=this.node&&"DIV"==this.node.nodeName&&Graph.processFontAttributes(this.node)};Graph.prototype.createTagsDialog=function(l,z,J,O){function T(){for(var sa=S.getSelectionCells(),za=[],Ba=0;Ba<sa.length;Ba++)S.isCellVisible(sa[Ba])&& | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
1)),null!=u&&0<u.length&&(m=u));this.insertFile(e.name,m,mxUtils.bind(this,function(v){f(e.name,v)}),c)}),mxUtils.bind(this,function(){this.ui.spinner.stop()})):(this.ui.spinner.stop(),c({message:mxResources.get("errorLoadingFile")}))}),c,k)}})();OneDriveFile=function(b,e,f){DrawioFile.call(this,b,e);this.meta=f};mxUtils.extend(OneDriveFile,DrawioFile);OneDriveFile.prototype.autosaveDelay=500;OneDriveFile.prototype.isRealtimeSupported=function(){return!0}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
Editor.isDarkMode()?{outBkgClr:Editor.darkColor,cornerClr:Editor.darkColor,strokeClr:"#505759",fontClr:"#BBBBBB",guideClr:"#0088cf"}:{outBkgClr:"#e8e9ed",cornerClr:"#fbfbfb",strokeClr:"#dadce0",fontClr:"#BBBBBB",guideClr:"#0000BB"};L.style[f?"borderRight":"borderBottom"]="0.5px solid "+A.strokeClr;L.style.borderLeft="0.5px solid "+A.strokeClr});this.updateStyle();b.diagramContainer.appendChild(L);mxEvent.disableContextMenu(L);this.editorUiRefresh=b.refresh;b.refresh=function(B){D.editorUiRefresh.apply(b,
arguments);k()};k();var H=document.createElement("canvas");H.width=L.offsetWidth;H.height=L.offsetHeight;L.style.overflow="hidden";H.style.position="relative";L.appendChild(H);var d=H.getContext("2d");this.ui=b;var g=b.editor.graph;this.graph=g;this.container=L;this.canvas=H;var n=function(B,G,I,F,U){B=Math.round(B);G=Math.round(G);I=Math.round(I);F=Math.round(F);d.beginPath();d.moveTo(B+.5,G+.5);d.lineTo(I+.5,F+.5);d.stroke();U&&(f?(d.save(),d.translate(B,G),d.rotate(-Math.PI/2),d.fillText(U,0,0), | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
l);z[0].parentNode.appendChild(W)}}};Editor.prototype.csvToArray=function(l){if(0<l.length){var z="",J=[""],O=0,T=!0,W;l=$jscomp.makeIterator(l);for(W=l.next();!W.done;W=l.next())W=W.value,'"'===W?(T&&W===z&&(J[O]+=W),T=!T):","===W&&T?W=J[++O]="":J[O]+=W,z=W;return J}return[]};Editor.prototype.getProxiedUrl=function(l){if((/test\.draw\.io$/.test(window.location.hostname)||/app\.diagrams\.net$/.test(window.location.hostname))&&!this.isCorsEnabledForUrl(l)){var z=/(\.v(dx|sdx?))($|\?)/i.test(l)||/(\.vs(x|sx?))($|\?)/i.test(l);
z=/\.png$/i.test(l)||/\.pdf$/i.test(l)||z;var J="t="+(new Date).getTime();l=PROXY_URL+"?url="+encodeURIComponent(l)+"&"+J+(z?"&base64=1":"")}return l};Editor.prototype.isCorsEnabledForUrl=function(l){if(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||l.substring(0,window.location.origin.length)==window.location.origin)return!0;null!=urlParams.cors&&null==this.corsRegExp&&(this.corsRegExp=new RegExp(decodeURIComponent(urlParams.cors)));return null!=this.corsRegExp&&this.corsRegExp.test(l)||"https://raw.githubusercontent.com/"=== | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
EditorUi.prototype.resolveOwnUpdatedCells=function(b,e,f,c){if(null!=b)for(var k in b){var m=e[k];null!=m?(c.inserted[k]||(c.cells[EditorUi.DIFF_INSERT].push(m),c.inserted[k]=!0),c.cells[EditorUi.DIFF_UPDATE][k]=b[k]):null!=f&&(m=f[k],null!=m&&(this.adoptParentCell(k,m,e,c),this.adoptTerminalCell(k,m,e,!0,c,k),this.adoptTerminalCell(k,m,e,!1,c,k)))}}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
EditorUi.prototype.isObjectEqual=function(b,e,f){if(null==b&&null==e)return!0;if(null!=b?null==e:null!=e)return!1;var c=function(k,m){return null==f||f[k]!=m?!0===m?1:m:void 0};return JSON.stringify(b,c)==JSON.stringify(e,c)};var mxSettings={currentVersion:18,defaultFormatWidth:600>screen.width?"0":"240",key:Editor.settingsKey,getLanguage:function(){return mxSettings.settings.language},setLanguage:function(b){mxSettings.settings.language=b},isMainSettings:function(){return".drawio-config"==mxSettings.key},getMainSettings:function(){var b=localStorage.getItem(".drawio-config");null==b?(b=mxSettings.getDefaults(),delete b.isNew):(b=JSON.parse(b),b.version=mxSettings.currentVersion);return b},getUi:function(){return mxSettings.isMainSettings()? | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
d;else if("mxfile"==d.nodeName){var q=d.getElementsByTagName("diagram");if(0<q.length){n=q[0];var t=g.getGlobalVariable;g.getGlobalVariable=function(x){return"page"==x?n.getAttribute("name")||mxResources.get("pageWithNumber",[1]):"pagenumber"==x?1:t.apply(this,arguments)}}}null!=n&&(d=Editor.parseDiagramNode(n))}q=this.editor.graph;try{this.editor.graph=g,this.editor.setGraphXml(d)}catch(x){}finally{this.editor.graph=q}return d};EditorUi.prototype.getSvgFileProperties=function(d){return this.getPngFileProperties(d)}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
""),F.setAttribute("selected","selected"),mxUtils.write(F,mxResources.get("pickFolder")+"..."),B.insertBefore(F,B.firstChild);U=B.value}function A(){if("reset"==B.value)b.resetRecent("Folders"),B.innerHTML="",R={},D();else if("pickFolder-"==B.value.substring(0,11)){var Q=B.value.substring(11);B.value=U;E(Q)}else if(null!=x&&null!=R[B.value]&&null!=b.editor.diagramFileTypes&&"drawio"==b.editor.diagramFileTypes[x.value].extension){Q=b.getExtensionForService(R[B.value].mode);var P=t.value;null!=Q&&0>
e.indexOf(".")&&0>P.indexOf(".")&&(t.value=P+Q)}N.innerHTML="";mxUtils.write(N,mxResources.get("download"==B.value||"_blank"==B.value?"ok":"save"));""==B.value?N.setAttribute("disabled","disabled"):N.removeAttribute("disabled")}var L=document.createElement("div");L.style.display="flex";L.style.flexWrap="wrap";L.style.whiteSpace="nowrap";var H=document.createElement("div");H.style.display="grid";H.style.gap="5px 8px";H.style.gridAutoRows="auto auto 44px";H.style.gridAutoColumns="0fr minmax(0,1fr)"; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
n?(d=n?d:btoa(unescape(encodeURIComponent(d))),q.document.write('<html><img style="max-width:100%;" src="data:'+g+";base64,"+d+'"/></html>')):q.document.write("<html>"+d+"</html>"):q.document.write("<html><pre>"+mxUtils.htmlEntities(d,!1)+"</pre></html>"),q.document.close())};var c=EditorUi.prototype.addChromelessToolbarItems;EditorUi.prototype.isChromelessImageExportEnabled=function(){return"draw.io"!=this.getServiceName()||/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname)}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
DrawioFile.prototype.commentsRefreshNeeded=function(){return!0};DrawioFile.prototype.commentsSaveNeeded=function(){return!1};DrawioFile.prototype.getComments=function(b,e){b([])};DrawioFile.prototype.addComment=function(b,e,f){e(Date.now())};DrawioFile.prototype.canReplyToReplies=function(){return!0};DrawioFile.prototype.canComment=function(){return!0};DrawioFile.prototype.newComment=function(b,e){return new DrawioComment(this,null,b,Date.now(),Date.now(),!1,e)};LocalFile=function(b,e,f,c,k,m){DrawioFile.call(this,b,e);this.title=f;this.mode=c?null:App.MODE_DEVICE;this.fileHandle=k;this.desc=m};mxUtils.extend(LocalFile,DrawioFile);LocalFile.prototype.isAutosave=function(){return null!=this.fileHandle&&!this.invalidFileHandle&&DrawioFile.prototype.isAutosave.apply(this,arguments)};LocalFile.prototype.isAutosaveOptional=function(){return null!=this.fileHandle};LocalFile.prototype.getMode=function(){return this.mode};LocalFile.prototype.getTitle=function(){return this.title}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
d.shortcut):u.apply(this,arguments)};EditorUi.prototype.toggleFormatPanel=function(H){null!=this.formatWindow?this.formatWindow.window.setVisible(null!=H?H:!this.formatWindow.window.isVisible()):b(this)};EditorUi.prototype.isFormatPanelVisible=function(){return null!=this.formatWindow&&this.formatWindow.window.isVisible()||null==this.formatWindow&&0<this.formatWidth};DiagramFormatPanel.prototype.isMathOptionVisible=function(){return!0};var v=EditorUi.prototype.destroy;EditorUi.prototype.destroy=function(){this.destroyWindows(); | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
return y});null!=I?(c.clonePages=I,I=null):(I=c.clonePages,c.clonePages=function(){var p=Date.now(),y=I.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.clonePages",[this],"time",Date.now()-p+" ms","args",arguments);return y});null!=F?(c.getHashValueForPages=F,F=null):(F=c.getHashValueForPages,c.getHashValueForPages=function(){var p=Date.now(),y=F.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.getHashValueForPages",[this],"time",Date.now()-p+" ms","args",arguments);return y}); | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
fa.getAttribute("section");na=fa.getAttribute("subsection");if(null==oa&&(ka=ia.indexOf("/"),oa=ia.substring(0,ka),null==na)){var xa=ia.indexOf("/",ka+1);-1<xa&&(na=ia.substring(ka+1,xa))}ka=ra[oa];null==ka&&(ka=[],ra[oa]=ka);ia=fa.getAttribute("clibs");null!=ma[ia]&&(ia=ma[ia]);ia={url:fa.getAttribute("url"),libs:fa.getAttribute("libs"),title:fa.getAttribute("title"),tooltip:fa.getAttribute("name")||fa.getAttribute("url"),preview:fa.getAttribute("preview"),clibs:ia,tags:fa.getAttribute("tags")};
ka.push(ia);null!=na&&(ka=va[oa],null==ka&&(ka={},va[oa]=ka),oa=ka[na],null==oa&&(oa=[],ka[na]=oa),oa.push(ia))}fa=fa.nextSibling}C.stop();R()}})};Q.appendChild(qa);Q.appendChild(ta);Q.appendChild(ha);var Ua=!1,ja=A;/^https?:\/\//.test(ja)&&!b.editor.isCorsEnabledForUrl(ja)&&(ja=PROXY_URL+"?url="+encodeURIComponent(ja));C.spin(ha);null!=q?q(function(fa,ma){Ga=fa;S=Ea=ma;Va()},Va):Va();V=ra}mxEvent.addListener(p,"keypress",function(fa){b.dialog.container.firstChild==Q&&13==fa.keyCode&&I()});q=document.createElement("div"); | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
function(){Trello.get("search",{query:""==mxUtils.trim(c)?"is:open":c,cards_limit:100,cards_page:g-1},mxUtils.bind(this,function(t){this.ui.spinner.stop();t=null!=t?t.cards:null;if(null==t||0==t.length)mxUtils.write(v,mxResources.get("noFiles"));else{1==g&&(v.appendChild(E(mxResources.get("filterCards")+"...",mxUtils.bind(this,function(){var B=new FilenameDialog(this.ui,c,mxResources.get("ok"),mxUtils.bind(this,function(G){null!=G&&(c=G,d())}),mxResources.get("filterCards"),null,null,"http://help.trello.com/article/808-searching-for-cards-all-boards");
this.ui.showDialog(B.container,300,80,!0,!1);B.init()}))),mxUtils.br(v));for(var x=0;x<t.length;x++)mxUtils.bind(this,function(B){v.appendChild(E(B.name,mxUtils.bind(this,function(){b?(f=B.id,A()):(this.ui.hideDialog(),e(B.id))})))})(t[x]);100==t.length&&(v.appendChild(L),H=function(){v.scrollTop>=v.scrollHeight-v.offsetHeight&&n()},mxEvent.addListener(v,"scroll",H))}}),mxUtils.bind(this,function(t){401==t.status?this.authenticate(q,D,!0):null!=D&&D({message:t.responseText})}))});q()});d()}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
"/pid2/mxPidInstruments.js"];mxStencilRegistry.libraries.pid2misc=[SHAPES_PATH+"/pid2/mxPidMisc.js",STENCIL_PATH+"/pid/misc.xml"];mxStencilRegistry.libraries.pid2valves=[SHAPES_PATH+"/pid2/mxPidValves.js"];mxStencilRegistry.libraries.pidFlowSensors=[STENCIL_PATH+"/pid/flow_sensors.xml"];mxMarker.getPackageForType=function(l){var z=null;null!=l&&0<l.length&&("ER"==l.substring(0,2)?z="mxgraph.er":"sysML"==l.substring(0,5)&&(z="mxgraph.sysml"));return z};var M=mxMarker.createMarker;mxMarker.createMarker= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
":");var x="#0000ff",B=null;B=mxUtils.button("",mxUtils.bind(this,function(G){this.pickColor(x||"none",function(I){x=I;n()});mxEvent.consume(G)}));n();B.style.padding=mxClient.IS_FF?"4px 2px 4px 2px":"4px";B.style.marginLeft="4px";B.style.height="22px";B.style.width="22px";B.style.position="relative";B.style.top=mxClient.IS_IE||mxClient.IS_IE11||mxClient.IS_EDGE?"6px":"1px";B.className="geColorBtn";d.appendChild(B);mxUtils.br(d);return{getColor:function(){return x},getTarget:function(){return q.value}, | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
K,l,z,J){m=mxEvent.isAltDown(n)?m:x.getCenterInsertPoint(new mxRectangle(0,0,z,J));var O=null;x.getModel().beginUpdate();try{O="txt"==K?b.insertAsPreText(l,m.x,m.y):x.insertVertex(null,null,null,m.x,m.y,z,J,"shape=image;noLabel=1;verticalAlign=top;aspect=fixed;imageAspect=0;image="+b.convertDataUri(l)+";"),x.setAttributeForCell(O,"plantUmlData",JSON.stringify({data:C,format:K},null,2))}finally{x.getModel().endUpdate()}null!=O&&(x.setSelectionCell(O),x.scrollCellToVisible(O))},x=b.editor.graph,B="plantUmlTxt"== | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
"image/svg"!=v.file.mimeType.substring(0,9)||"application/pdf"==v.file.mimeType))}}else this.isExtAuth?c({message:mxResources.get("fileNotFoundOrDenied"),ownerEmail:null!=window.urlParams?urlParams.ownerEml:null}):c(this.parseRequestText(u))}),c)};OneDriveClient.prototype.renameFile=function(e,f,c,k){null!=e&&null!=f&&(this.isValidFilename(f)?this.checkExists(e.getParentId(),f,!1,mxUtils.bind(this,function(m){m?this.writeFile(this.getItemURL(e.getId()),JSON.stringify({name:f}),"PATCH","application/json", | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
x.defaultLibraryName=mxResources.get("untitledLibrary");var G=document.createElement("div");G.className="geMenubarContainer";var I=null,F=new Menubar(x,G);x.statusContainer=x.createStatusContainer();x.statusContainer.style.position="relative";x.statusContainer.style.maxWidth="";x.statusContainer.style.color="gray";x.statusContainer.style.cursor="default";var U=x.hideCurrentMenu;x.hideCurrentMenu=function(){U.apply(this,arguments);this.editor.graph.popupMenuHandler.hideMenu()};var R=x.descriptorChanged; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
d.nodeName&&(B=d.hasAttribute("max-scale")?parseFloat(d.getAttribute("max-scale")):1);d=d.nextSibling}}finally{x.endUpdate()}null!=B&&this.chromelessResize&&this.chromelessResize(!0,B)}return n};EditorUi.prototype.getCopyFilename=function(d,g){var n=null!=d&&null!=d.getTitle()?d.getTitle():this.defaultFilename;d="";var q=n.lastIndexOf(".");0<=q&&(d=n.substring(q),n=n.substring(0,q));if(g){g=n;var t=new Date;n=t.getFullYear();q=t.getMonth()+1;var x=t.getDate(),B=t.getHours(),G=t.getMinutes();t=t.getSeconds(); | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
function(){n.checked&&(null==g||g.checked)?x.removeAttribute("disabled"):x.setAttribute("disabled","disabled")}));mxUtils.br(d);return{getLink:function(){return n.checked?"blank"===x.value?"_blank":t:null},getEditInput:function(){return n},getEditSelect:function(){return x}}};EditorUi.prototype.addLinkSection=function(d,g){function n(){var G=document.createElement("div");G.style.width="100%";G.style.height="100%";G.style.boxSizing="border-box";null!=x&&x!=mxConstants.NONE?(G.style.border="1px solid black", | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
function(l,z,J,O){null==O&&(O=this.createImageUrlConverter());var T=0,W=J||{};J=mxUtils.bind(this,function(V,S){V=l.getElementsByTagName(V);for(var X=0;X<V.length;X++)mxUtils.bind(this,function(Z){try{if(null!=Z){var Y=O.convert(Z.getAttribute(S));if(null!=Y&&"data:"!=Y.substring(0,5)){var aa=W[Y];null==aa?(T++,this.convertImageToDataUri(Y,function(ca){null!=ca&&(W[Y]=ca,Z.setAttribute(S,ca));T--;0==T&&z(l)})):Z.setAttribute(S,aa)}else null!=Y&&Z.setAttribute(S,Y)}}catch(ca){}})(V[X])});J("image",
"xlink:href");J("img","src");0==T&&z(l)};Editor.base64Encode=function(l){for(var z="",J=0,O=l.length,T,W,V;J<O;){T=l.charCodeAt(J++)&255;if(J==O){z+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(T>>2);z+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((T&3)<<4);z+="==";break}W=l.charCodeAt(J++);if(J==O){z+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(T>>2);z+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((T& | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
k&&(401===u.getStatus()?c?f({code:u.getStatus(),message:this.getErrorMessage(u,mxResources.get("accessDenied"))}):(this.logout(),this.authenticate(mxUtils.bind(this,function(){this.updateUser(e,f,!0)}),f)):200>u.getStatus()||300<=u.getStatus()?f({message:mxResources.get("accessDenied")}):(this.setUser(this.createUser(JSON.parse(u.getText()))),e()))}),f)};GitHubClient.prototype.createUser=function(e){return new DrawioUser(e.id,e.email,e.name)};GitHubClient.prototype.authenticate=function(e,f){(new mxXmlRequest(this.redirectUri+
"?getState=1",null,"GET")).send(mxUtils.bind(this,function(c){200<=c.getStatus()&&299>=c.getStatus()?this.authenticateStep2(c.getText(),e,f):null!=f&&f(c)}),f)};GitHubClient.prototype.authenticateStep2=function(e,f,c){if(null==window.onGitHubCallback){var k=mxUtils.bind(this,function(){var m=!0;null!=this.getPersistentToken(!0)?(new mxXmlRequest(this.redirectUri+"?state="+encodeURIComponent("cId="+this.clientId+"&domain="+window.location.host+"&token="+e),null,"GET")).send(mxUtils.bind(this,function(u){200<= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
function(Q){A=Q};this.setAutoScroll=function(Q){L=Q};this.setOpenFill=function(Q){H=Q};this.setStopClickEnabled=function(Q){n=Q};this.setSelectInserted=function(Q){q=Q};this.setSmoothing=function(Q){f=Q};this.setPerfectFreehandMode=function(Q){x=Q};this.isPerfectFreehandMode=function(){return x};this.setBrushSize=function(Q){t.size=Q};this.getBrushSize=function(){return t.size};var B=function(Q){g=Q;b.getRubberband().setEnabled(!Q);b.graphHandler.setSelectEnabled(!Q);b.graphHandler.setMoveEnabled(!Q); | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
function(d,g,n){var q=new XMLHttpRequest;q.open("POST",OPEN_URL);q.setRequestHeader("Content-Type","application/x-www-form-urlencoded");q.onreadystatechange=function(){g(q)};q.send("format=xml&filename="+encodeURIComponent(n)+"&data="+encodeURIComponent(d));try{EditorUi.logEvent({category:"GLIFFY-IMPORT-FILE",action:"size_"+file.size})}catch(t){}};EditorUi.prototype.isResampleImageSize=function(d,g){g=null!=g?g:this.resampleThreshold;return d>g};EditorUi.prototype.resizeImage=function(d,g,n,q,t,x, | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
g&&!g.isRestricted());g=this.actions.get("findReplace");g.setEnabled("hidden"!=this.diagramContainer.style.visibility);g.label=mxResources.get("find")+(d.isEnabled()?"/"+mxResources.get("replace"):"");d=d.view.getState(d.getSelectionCell());this.actions.get("editShape").setEnabled(q&&null!=d&&null!=d.shape&&null!=d.shape.stencil)};var H=EditorUi.prototype.destroy;EditorUi.prototype.destroy=function(){null!=this.exportDialog&&(this.exportDialog.parentNode.removeChild(this.exportDialog),this.exportDialog=
null);H.apply(this,arguments)};null!=window.ExportDialog&&(ExportDialog.showXmlOption=!1,ExportDialog.showGifOption=!1,ExportDialog.exportFile=function(d,g,n,q,t,x,B,G){var I=d.editor.graph;if("xml"==n)d.hideDialog(),d.saveData(g,"xml",mxUtils.getXml(d.editor.getGraphXml()),"text/xml");else if("svg"==n)d.hideDialog(),d.saveData(g,"svg",mxUtils.getXml(I.getSvg(q,t,x)),"image/svg+xml");else{var F=d.getFileData(!0,null,null,null,null,!0),U=I.getGraphBounds(),R=Math.floor(U.width*t/I.view.scale),N=Math.floor(U.height* | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
return O==p||0==J.length?A(M,p):T==W?D(M):E(M,p!=mxConstants.DIRECTION_NORTH&&p!=mxConstants.DIRECTION_WEST)}return U.apply(this,arguments)};g.getSubtree=function(M){var p=[M];!k(M)&&!c(M)||u(M)||g.traverse(M,!0,function(y,C){var K=null!=C&&g.isTreeEdge(C);K&&0>mxUtils.indexOf(p,C)&&p.push(C);(null==C||K)&&0>mxUtils.indexOf(p,y)&&p.push(y);return null==C||K});return p};var R=mxVertexHandler.prototype.init;mxVertexHandler.prototype.init=function(){R.apply(this,arguments);(k(this.state.cell)||c(this.state.cell))&& | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
Q()},mxEvent.addListener(A,"scroll",t))}),n)}}))});b?this.user?G():this.updateUser(function(){G()},n,!0):this.authenticate(mxUtils.bind(this,function(){this.updateUser(function(){G()},n,!0)}),n)};GitLabClient.prototype.logout=function(){this.ui.editor.loadUrl(this.redirectUri+"?doLogout=1&state="+encodeURIComponent("cId="+this.clientId+"&domain="+window.location.host));this.clearPersistentToken();this.setUser(null);b=null;this.setToken(null)}})();DrawioComment=function(b,e,f,c,k,m,u){this.file=b;this.id=e;this.content=f;this.modifiedDate=c;this.createdDate=k;this.isResolved=m;this.user=u;this.replies=[]};DrawioComment.prototype.addReplyDirect=function(b){null!=b&&this.replies.push(b)};DrawioComment.prototype.addReply=function(b,e,f,c,k){e()};DrawioComment.prototype.editComment=function(b,e,f){e()};DrawioComment.prototype.deleteComment=function(b,e){b()};DriveComment=function(b,e,f,c,k,m,u,v){DrawioComment.call(this,b,e,f,c,k,m,u);this.pCommentId=v};mxUtils.extend(DriveComment,DrawioComment);DriveComment.prototype.addReply=function(b,e,f,c,k){b={content:b.content};c?b.verb="resolve":k&&(b.verb="reopen");this.file.ui.drive.executeRequest({url:"/files/"+this.file.getId()+"/comments/"+this.id+"/replies",params:b,method:"POST"},mxUtils.bind(this,function(m){e(m.replyId)}),f)}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
if(0==U&&0==F)U=M,F=1;else if(Math.abs(U-M)<=(p||1==t&&P?g:0))F+=1;else if(1<F&&P){q=q.slice(0,t+1);break}else if(3<=q.length-t&&!P)F=0,R=U=0!=N?N:0,q.splice(0,0==t?1:t),t=-1;else break;0!=R||p||(U=R=M)}3==q.length&&q[1]==H&&(R=0)}g=function(y,C,K,l){var z=[];if(l){l=Q;var J=0}else l=0,J=Q;z.push(new mxPoint(y.x-l,y.y-J));z.push(new mxPoint(y.x+l,y.y+J));z.push(y);z.push(C);z.push(new mxPoint(C.x-l,C.y-J));z.push(new mxPoint(C.x+l,C.y+J));if(null!=K)return K.points=z,K;y=new mxPolyline(z,mxConstants.GUIDE_COLOR,
mxConstants.GUIDE_STROKEWIDTH);y.dialect=mxConstants.DIALECT_SVG;y.pointerEvents=!1;y.init(L.graph.getView().getOverlayPane());return y};U=function(y,C){if(y&&null!=L.guidesArrHor)for(y=0;y<L.guidesArrHor.length;y++)L.guidesArrHor[y].node.style.visibility="hidden";if(C&&null!=L.guidesArrVer)for(y=0;y<L.guidesArrVer.length;y++)L.guidesArrVer[y].node.style.visibility="hidden"};if(1<F&&F==q.length-1){F=[];N=L.guidesArrHor;D=[];E=0;t=q[0]==H?1:0;P=q[t].y+q[t].height;if(0<R)for(t=0;t<q.length-1;t++)d= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
"0"!=urlParams.pv;Graph.prototype.shadowId="dropShadow";Graph.prototype.svgShadowColor="#3D4574";Graph.prototype.svgShadowOpacity="0.4";Graph.prototype.svgShadowBlur="1.7";Graph.prototype.svgShadowSize="3";Graph.prototype.hiddenTags=[];Graph.prototype.defaultMathEnabled=!1;var g=Graph.prototype.init;Graph.prototype.init=function(){function l(T){z=T}g.apply(this,arguments);this.hiddenTags=[];window.mxFreehand&&(this.freehand=new mxFreehand(this));var z=null;mxEvent.addListener(this.container,"mouseenter", | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
DrawioFile.prototype.commentsRefreshNeeded=function(){return!0};DrawioFile.prototype.commentsSaveNeeded=function(){return!1};DrawioFile.prototype.getComments=function(b,e){b([])};DrawioFile.prototype.addComment=function(b,e,f){e(Date.now())};DrawioFile.prototype.canReplyToReplies=function(){return!0};DrawioFile.prototype.canComment=function(){return!0};DrawioFile.prototype.newComment=function(b,e){return new DrawioComment(this,null,b,Date.now(),Date.now(),!1,e)};LocalFile=function(b,e,f,c,k,m){DrawioFile.call(this,b,e);this.title=f;this.mode=c?null:App.MODE_DEVICE;this.fileHandle=k;this.desc=m};mxUtils.extend(LocalFile,DrawioFile);LocalFile.prototype.isAutosave=function(){return null!=this.fileHandle&&!this.invalidFileHandle&&DrawioFile.prototype.isAutosave.apply(this,arguments)};LocalFile.prototype.isAutosaveOptional=function(){return null!=this.fileHandle};LocalFile.prototype.getMode=function(){return this.mode};LocalFile.prototype.getTitle=function(){return this.title}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
Y+"')";break;default:null==S?C=[{driveId:V}]:C.push({name:Z,driveId:V,folderId:S}),qa=(V?"/drives/"+V:"/me/drive")+(S?"/items/"+S:"/root")+"/children"}ba||(qa+=(0<qa.indexOf("?")?"&":"?")+"select=id,name,description,parentReference,file,createdBy,lastModifiedBy,lastModifiedDateTime,size,folder,remoteItem,@microsoft.graph.downloadUrl");var la=[];ca()}}function I(V){T.className=T.className.replace("odCatSelected","");T=V;T.className+=" odCatSelected"}function F(V){y||(W=null,G("search",null,null,null,
V))}var U="";null==e&&(e=t,U='<div style="text-align: center;" class="odPreview"></div>');null==k&&(k=function(){var V=null;try{V=JSON.parse(localStorage.getItem("mxODPickerRecentList"))}catch(S){}return V});null==m&&(m=function(V){if(null!=V){var S=k()||{};delete V["@microsoft.graph.downloadUrl"];S[V.id]=V;localStorage.setItem("mxODPickerRecentList",JSON.stringify(S))}});U='<div class="odCatsList"><div class="odCatsListLbl">OneDrive</div><div id="odFiles" class="odCatListTitle odCatSelected">'+mxUtils.htmlEntities(mxResources.get("files"))+ | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
f.apply(this,arguments)};var c=Editor.prototype.updateGraphComponents;Editor.prototype.updateGraphComponents=function(){c.apply(this,arguments);this.graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&this.graph.isCssTransformsSupported();this.graph.updateCssTransform()};Editor.initMath=function(l,z){if("undefined"===typeof window.MathJax&&!mxClient.IS_IE&&!mxClient.IS_IE11){var J=function(){O=null;if(0<Editor.mathJaxQueue.length)Editor.doMathJaxRender(Editor.mathJaxQueue.shift());else Editor.onMathJaxDone()}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
function(d){return Editor.extractGraphModelFromPng(d)};EditorUi.prototype.loadImage=function(d,g,n){try{var q=new Image;q.onload=function(){q.width=0<q.width?q.width:120;q.height=0<q.height?q.height:120;g(q)};null!=n&&(q.onerror=n);q.src=d}catch(t){if(null!=n)n(t);else throw t;}};EditorUi.prototype.getDefaultSketchMode=function(){var d="1"==urlParams.sketch;return"0"!=(null!=urlParams.rough?urlParams.rough:d)};var k=EditorUi.prototype.createUi;EditorUi.prototype.createUi=function(){Editor.isSettingsEnabled()&&
(this.doSetSketchMode(null!=mxSettings.settings.sketchMode&&null==urlParams.rough&&null==urlParams.sketch?mxSettings.settings.sketchMode:this.getDefaultSketchMode()),null!=mxSettings.settings.sidebarTitles&&(Sidebar.prototype.sidebarTitles=mxSettings.settings.sidebarTitles),this.formatWidth=mxSettings.getFormatWidth());k.apply(this,arguments)};var m=EditorUi.prototype.init;EditorUi.prototype.init=function(){mxStencilRegistry.allowEval=mxStencilRegistry.allowEval&&!this.isOfflineApp();var d=this,g= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
v=document.createElement("div");v.style.height="300px";v.style.width="300px";v.style.display="inline-flex";v.style.justifyContent="center";v.style.alignItems="center";v.style.position="absolute";var E=document.createElement("img");E.onload=function(){function F(){A.model.setStyle(d,g+k())}A=new Graph(D);A.autoExtend=!1;A.autoScroll=!1;A.setGridEnabled(!1);A.setEnabled(!0);A.setPanning(!1);A.setConnectable(!1);A.getRubberband().setEnabled(!1);A.graphHandler.allowLivePreview=!1;var U=A.createVertexHandler; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
DiagramFormatPanel.prototype.addOptions=function(l){l=L.apply(this,arguments);var z=this.editorUi,J=z.editor.graph;if(J.isEnabled()){var O=z.getCurrentFile();null!=O&&O.isAutosaveOptional()&&l.appendChild(this.createOption(mxResources.get("autosave"),function(){return z.editor.autosave},function(V){z.editor.setAutosave(V);z.editor.autosave&&O.isModified()&&O.fileChanged()},{install:function(V){this.listener=function(){V(z.editor.autosave)};z.editor.addListener("autosaveChanged",this.listener)},destroy:function(){z.editor.removeListener(this.listener)}}))}if(this.isMathOptionVisible()&& | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
f?A=new mxHierarchicalLayout(m,mxConstants.DIRECTION_WEST):"circle"==f?A=new mxCircleLayout(m):(A=new mxFastOrganicLayout(m,!1),A.forceConstant=80);if(null!=A){var L=function(n,q){m.getModel().beginUpdate();try{null!=n&&n(),A.execute(m.getDefaultParent(),D)}catch(t){throw t;}finally{n=new mxMorphing(m),n.addListener(mxEvent.DONE,mxUtils.bind(this,function(){m.getModel().endUpdate();null!=q&&q()})),n.startAnimation()}},H=mxEdgeHandler.prototype.connect;mxEdgeHandler.prototype.connect=function(n,q, | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
G);else{var I=this[q].apply(this,G);n([I])}}else n(null,"Invalid Call: "+q+" is not found.")}catch(F){n(null,"Invalid Call: An error occurred, "+F.message)}};EditorUi.prototype.openDatabase=function(d,g){if(null==this.database){var n=window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB;if(null!=n)try{var q=n.open("database",2);q.onupgradeneeded=function(t){try{var x=q.result;1>t.oldVersion&&x.createObjectStore("objects",{keyPath:"key"});2>t.oldVersion&&(x.createObjectStore("files",{keyPath:"title"}),
x.createObjectStore("filesInfo",{keyPath:"title"}),EditorUi.migrateStorageFiles=isLocalStorage)}catch(B){null!=g&&g(B)}};q.onsuccess=mxUtils.bind(this,function(t){try{var x=q.result;this.database=x;EditorUi.migrateStorageFiles&&(StorageFile.migrate(x),EditorUi.migrateStorageFiles=!1);"app.diagrams.net"!=location.host||this.drawioMigrationStarted||(this.drawioMigrationStarted=!0,this.getDatabaseItem(".drawioMigrated3",mxUtils.bind(this,function(B){if(!B||"1"==urlParams.forceMigration){var G=document.createElement("iframe"); | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
"data:action/json,"+JSON.stringify(q)}}catch(G){}return g};EditorUi.prototype.isRemoteVisioFormat=function(d){return/(\.v(sd|dx))($|\?)/i.test(d)||/(\.vs(s|x))($|\?)/i.test(d)};EditorUi.prototype.importVisio=function(d,g,n,q,t){var x=mxUtils.bind(this,function(B){this.loadingExtensions=!1;null!=n?n(B):this.handleError(B)});this.createTimeout(null,mxUtils.bind(this,function(B){q=null!=q?q:d.name;var G=mxUtils.bind(this,function(F){B.clear()&&x(F)}),I=mxUtils.bind(this,function(){this.loadingExtensions= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
ab,Wa,0,Na,Ya,$a);La.pageSelector=!1;La.mathEnabled=!1;da.checked&&(La.isCellVisible=function(Za){return Aa.isCellSelected(Za)});Na=l.getCurrentFile();null!=Na&&(La.title=Na.getTitle());var hb=La.writeHead;La.writeHead=function(Za){hb.apply(this,arguments);mxClient.IS_GC&&(Za.writeln('<style type="text/css">'),Za.writeln("@media print {"),Za.writeln(".MathJax svg { shape-rendering: crispEdges; }"),Za.writeln("}"),Za.writeln("</style>"));null!=l.editor.fontCss&&(Za.writeln('<style type="text/css">'), | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
mxUtils.bind(this,function(){this.fireEvent(new mxEventObject("darkModeChanged"))}),mxUtils.bind(this,function(g){null!=window.console&&console.error(g);this.editor.setStatus(g.message)}))};EditorUi.prototype.createDarkStyle=function(){var d=document.createElement("link");d.setAttribute("rel","stylesheet");d.setAttribute("href",STYLE_PATH+"/dark.css");d.setAttribute("charset","UTF-8");d.setAttribute("type","text/css");return d};EditorUi.setGraphDarkMode=function(d,g,n){d.view.defaultGridColor=n?mxGraphView.prototype.defaultDarkGridColor:
mxGraphView.prototype.defaultGridColor;d.view.gridColor=d.view.defaultGridColor;d.defaultPageBackgroundColor="1"==urlParams.embedInline?"transparent":n?Editor.darkColor:"#ffffff";d.defaultPageBorderColor=n?"#000000":"#ffffff";d.shapeBackgroundColor=n?Editor.darkColor:"#ffffff";d.shapeForegroundColor=n?Editor.lightColor:"#000000";d.defaultThemeName=n?"darkTheme":"default-style2";d.graphHandler.previewColor=n?"#cccccc":"black";mxGraphHandler.prototype.previewColor=d.graphHandler.previewColor;null!=
g&&(g.style.backgroundColor="1"==urlParams.embedInline?"transparent":n?Editor.darkColor:"#ffffff");d.loadStylesheet();Graph.prototype.defaultPageBackgroundColor=d.defaultPageBackgroundColor;Graph.prototype.defaultPageBorderColor=d.defaultPageBorderColor;Graph.prototype.shapeBackgroundColor=d.shapeBackgroundColor;Graph.prototype.shapeForegroundColor=d.shapeForegroundColor;Graph.prototype.defaultThemeName=d.defaultThemeName};EditorUi.prototype.doSetDarkMode=function(d,g,n){var q=mxUtils.bind(this,function(){if(Editor.darkMode!= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
B);window.setTimeout(mxUtils.bind(this,function(){M()}),U)});mxEvent.addListener(R,"click",mxUtils.bind(this,function(y){var C=mxEvent.getSource(y);C!=Q&&C!=P?(null!=n&&n(),M(),mxEvent.consume(y)):p()}));window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(R.style,"transform",G)}),U/2);window.setTimeout(p,t?4E3:3E4);F=!0}return F};EditorUi.prototype.setCurrentFile=function(d){null!=d&&(d.opened=new Date);this.currentFile=d};EditorUi.prototype.getCurrentFile=function(){return this.currentFile}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
Graph.prototype.selectUnlockedLayer=function(){if(null==this.defaultParent){var l=this.model.getChildCount(this.model.root),z=0;do var J=this.model.getChildAt(this.model.root,z);while(z++<l&&"1"==mxUtils.getValue(this.getCellStyle(J),"locked","0"));null!=J&&this.setDefaultParent(J)}};mxStencilRegistry.libraries.mockup=[SHAPES_PATH+"/mockup/mxMockupButtons.js"];mxStencilRegistry.libraries.arrows2=[SHAPES_PATH+"/mxArrows.js"];mxStencilRegistry.libraries.atlassian=[STENCIL_PATH+"/atlassian.xml",SHAPES_PATH+ | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
d?d:"",extras:JSON.stringify(t),scale:B,border:G,w:R&&isFinite(R)?R:null,h:N&&isFinite(N)?N:null}};EditorUi.prototype.setMode=function(d,g){this.mode=d};EditorUi.prototype.getDiagramId=function(){var d=window.location.hash;null!=d&&0<d.length&&(d=d.substring(1));if(null!=d&&1<d.length){var g=d.indexOf("#");0<=g&&(d=d.substring(0,g))}return d};EditorUi.prototype.getHashObject=function(){var d=window.location.hash,g={};if(null!=d&&0<d.length){var n=d.lastIndexOf("#");if(0<n){d=decodeURIComponent(d.substring(n+
1));try{g=JSON.parse(d)}catch(q){}}}return g};EditorUi.prototype.updateHashObject=function(){if(null!=this.currentFile&&""!=this.currentFile.getHash()&&null!=this.currentPage&&0<this.getSelectedPageIndex()){var d=this.getHashObject();d.pageId=this.currentPage.getId();this.setHashObject(d)}else this.setHashObject(null)};EditorUi.prototype.setHashObject=function(d){if(Editor.enableHashObjects){var g=window.location.hash;if(null==g||""==g)g="#";var n=g.lastIndexOf("#");0<n&&(g=g.substring(0,n));try{null== | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
DrawioFile.prototype.commentsRefreshNeeded=function(){return!0};DrawioFile.prototype.commentsSaveNeeded=function(){return!1};DrawioFile.prototype.getComments=function(b,e){b([])};DrawioFile.prototype.addComment=function(b,e,f){e(Date.now())};DrawioFile.prototype.canReplyToReplies=function(){return!0};DrawioFile.prototype.canComment=function(){return!0};DrawioFile.prototype.newComment=function(b,e){return new DrawioComment(this,null,b,Date.now(),Date.now(),!1,e)};LocalFile=function(b,e,f,c,k,m){DrawioFile.call(this,b,e);this.title=f;this.mode=c?null:App.MODE_DEVICE;this.fileHandle=k;this.desc=m};mxUtils.extend(LocalFile,DrawioFile);LocalFile.prototype.isAutosave=function(){return null!=this.fileHandle&&!this.invalidFileHandle&&DrawioFile.prototype.isAutosave.apply(this,arguments)};LocalFile.prototype.isAutosaveOptional=function(){return null!=this.fileHandle};LocalFile.prototype.getMode=function(){return this.mode};LocalFile.prototype.getTitle=function(){return this.title}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()};var E=ColorDialog.resetRecentColors;ColorDialog.resetRecentColors=function(){E.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()}}"undefined"!==typeof window.EditDataDialog&&(EditDataDialog.getDisplayIdForCell=function(l,z){var J=null;null!=l.editor.graph.getModel().getParent(z)?J=z.getId():null!=l.currentPage&&(J=l.currentPage.getId());return J});if(null!=window.StyleFormatPanel){var D= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
mxAsyncCanvas.prototype.text=function(b,e,f,c,k,m,u,v,E,D,A,L){if(null!=k&&0!=k.length&&(b=this.state.scale,"html"==E&&"function"===typeof html2canvas)){this.incWaitCounter();var H=this.canvasIndex++;html2canvas(k,{onrendered:mxUtils.bind(this,function(d){this.htmlCanvas.subCanvas[H]=d;this.decWaitCounter()}),scale:b,logging:!0})}};mxAsyncCanvas.prototype.finish=function(b){0==this.waitCounter?b():this.onComplete=b};function mxJsCanvas(b){mxAbstractCanvas2D.call(this);this.ctx=b.getContext("2d");this.ctx.textBaseline="top";this.ctx.fillStyle="rgba(255,255,255,0)";this.ctx.strokeStyle="rgba(0, 0, 0, 0)";this.M_RAD_PER_DEG=Math.PI/180;this.images=null==this.images?[]:this.images;this.subCanvas=null==this.subCanvas?[]:this.subCanvas}mxUtils.extend(mxJsCanvas,mxAbstractCanvas2D);mxJsCanvas.prototype.ctx=null;mxJsCanvas.prototype.waitCounter=0;mxJsCanvas.prototype.onComplete=null;mxJsCanvas.prototype.images=null; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
this.ui.showDialog(B.container,300,80,!0,!1);B.init()}))),mxUtils.br(v));for(var x=0;x<t.length;x++)mxUtils.bind(this,function(B){v.appendChild(E(B.name,mxUtils.bind(this,function(){b?(f=B.id,A()):(this.ui.hideDialog(),e(B.id))})))})(t[x]);100==t.length&&(v.appendChild(L),H=function(){v.scrollTop>=v.scrollHeight-v.offsetHeight&&n()},mxEvent.addListener(v,"scroll",H))}}),mxUtils.bind(this,function(t){401==t.status?this.authenticate(q,D,!0):null!=D&&D({message:t.responseText})}))});q()});d()}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
"all",k,"local",m,"applied",u,"immediate",c)}return k};DrawioFileSync.prototype.isRealtimeActive=function(){return this.ui.editor.autosave}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
"\n":"")+Graph.svgDoctype+"\n"+mxUtils.getXml(l))});this.editor.graph.mathEnabled&&this.editor.addMathCss(p);var K=mxUtils.bind(this,function(l){x?(null==this.thumbImageCache&&(this.thumbImageCache={}),this.editor.convertImages(l,C,this.thumbImageCache)):C(l)});N?this.embedFonts(p,K):(this.editor.addFontCss(p),K(p))}catch(l){this.handleError(l)}};EditorUi.prototype.addRadiobox=function(d,g,n,q,t,x,B){return this.addCheckbox(d,n,q,t,x,B,!0,g)};EditorUi.prototype.addCheckbox=function(d,g,n,q,t,x,B,
G){x=null!=x?x:!0;var I=document.createElement("input");I.style.marginRight="8px";I.style.marginTop="16px";I.setAttribute("type",B?"radio":"checkbox");B="geCheckbox-"+Editor.guid();I.id=B;null!=G&&I.setAttribute("name",G);n&&(I.setAttribute("checked","checked"),I.defaultChecked=!0);q&&I.setAttribute("disabled","disabled");x&&(d.appendChild(I),n=document.createElement("label"),mxUtils.write(n,g),n.setAttribute("for",B),d.appendChild(n),t||mxUtils.br(d));return I};EditorUi.prototype.addEditButton=function(d, | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
l?l.getElementsByTagName("parsererror"):null;null!=l&&0<l.length&&(J=z||mxResources.get("invalidChars"),z=l[0].getElementsByTagName("div"),0<z.length&&(J=mxUtils.getTextContent(z[0])));return null!=J?mxUtils.trim(J):J};Editor.addRetryToError=function(l,z){null!=l&&(l=null!=l.error?l.error:l,null==l.retry&&(l.retry=z))};Editor.mermaidToDrawio=function(l,z,J){if("function"===typeof mxMermaidToDrawio)return mxMermaidToDrawio(l,z,J)};Editor.configure=function(l){if(null!=l){Editor.config=l;Editor.configVersion= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
{fill:"#ffcc99",stroke:"#36393d"},{fill:"#cce5ff",stroke:"#36393d"},{fill:"#ffff88",stroke:"#36393d"},{fill:"#cdeb8b",stroke:"#36393d"},{fill:"#ffcccc",stroke:"#36393d"}]];StyleFormatPanel.prototype.customColorSchemes=null;StyleFormatPanel.prototype.findCommonProperties=function(l,z,J){if(null!=z){var O=function(W){if(null!=W)if(J)for(var V=0;V<W.length;V++)z[W[V].name]=W[V];else for(var S in z){var X=!1;for(V=0;V<W.length;V++)if(W[V].name==S&&W[V].type==z[S].type){X=!0;break}X||delete z[S]}},T=this.editorUi.editor.graph.view.getState(l); | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
"') "+(f?" and (title contains '"+f+"')":"")+(c?" and (modifiedDate > '"+c.toISOString()+"')":"")+(k?" and ('me' in owners)":""))+"&orderBy=modifiedDate desc,title"},m,u)};DriveClient.prototype.getCustomProperty=function(f,c){f=f.properties;var k=null;if(null!=f)for(var m=0;m<f.length;m++)if(f[m].key==c){k=f[m].value;break}return k};DriveClient.prototype.getFile=function(f,c,k,m,u){m=null!=m?m:!1;u=null!=u?u:!1;null!=urlParams.rev?this.executeRequest({url:"/files/"+f+"/revisions/"+urlParams.rev+"?supportsAllDrives=true"}, | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
ia()},ia=function(){T=ka;la.className="geTempDlgCreateBtn";fa&&(ya.className="geTempDlgOpenBtn")},ka=T;T=null;"boolean"!==typeof fa&&(fa=ka.isExternal&&L);1==ja?D(ka.url,ka):fa?(ya.className="geTempDlgOpenBtn geTempDlgBtnDisabled geTempDlgBtnBusy",ma()):(la.className="geTempDlgCreateBtn geTempDlgBtnDisabled geTempDlgBtnBusy",ja=null==b.mode||b.mode==App.MODE_GOOGLE||b.mode==App.MODE_BROWSER?mxResources.get("diagramName"):mxResources.get("filename"),ja=new FilenameDialog(b,b.defaultFilename+".drawio", | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
T.setAttribute("crossorigin","");z.parentNode.insertBefore(T,z)}}}};Editor.trimCssUrl=function(l){return l.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(l){l=null!=l?l:Editor.GUID_LENGTH;for(var z=[],J=0;J<l;J++)z.push(Editor.GUID_ALPHABET.charAt(Math.floor(Math.random()*Editor.GUID_ALPHABET.length))); | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
}finally{g.getModel().endUpdate()}x&&(g.setSelectionCell(n),g.scrollCellToVisible(n))}};f=mxUtils.button(mxResources.get("preview"),function(){d(A,L,!1)});f.className="geBtn";E.appendChild(f);f=mxUtils.button(mxResources.get("apply"),function(){d(b.editor.graph,e,!0)});f.className="geBtn gePrimaryBtn";E.appendChild(f);b.editor.cancelFirst||E.appendChild(k);v.appendChild(E);u.appendChild(v);m.appendChild(u);this.container=m},CustomDialog=function(b,e,f,c,k,m,u,v,E,D,A,L){var H=document.createElement("div");
H.appendChild(e);var d=document.createElement("div");d.style.marginTop=null!=L?L:"30px";d.style.textAlign="center";null!=u&&d.appendChild(u);b.isOffline()||null==m||(e=mxUtils.button(mxResources.get("help"),function(){b.openLink(m)}),e.className="geBtn",d.appendChild(e));E=mxUtils.button(E||mxResources.get("cancel"),function(){b.hideDialog();null!=c&&c()});E.className="geBtn";v&&(E.style.display="none");b.editor.cancelFirst&&d.appendChild(E);k=mxUtils.button(k||mxResources.get("ok"),mxUtils.bind(this,
function(){D||b.hideDialog(null,null,this.container);if(null!=f){var g=f();if("string"===typeof g){b.showError(mxResources.get("error"),g);return}}D&&b.hideDialog(null,null,this.container)}));d.appendChild(k);k.className="geBtn gePrimaryBtn";b.editor.cancelFirst||d.appendChild(E);if(null!=A)for(v=0;v<A.length;v++)(function(g,n,q){g=mxUtils.button(g,function(t){n(t)});null!=q&&g.setAttribute("title",q);g.className="geBtn";d.appendChild(g)})(A[v][0],A[v][1],A[v][2]);H.appendChild(d);this.cancelBtn=
E;this.okButton=k;this.container=H},TemplatesDialog=function(b,e,f,c,k,m,u,v,E,D,A,L,H,d,g){function n(ja){ta.innerText=ja;ta.style.display="block";setTimeout(function(){ta.style.display="none"},4E3)}function q(){null!=z&&(z.style.fontWeight="normal",z.style.textDecoration="none",J=z,z=null)}function t(ja,fa,ma,na,oa,ia,ka){if(-1<ja.className.indexOf("geTempDlgRadioBtnActive"))return!1;ja.className+=" geTempDlgRadioBtnActive";C.querySelector(".geTempDlgRadioBtn[data-id="+na+"]").className="geTempDlgRadioBtn "+ | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
g(B)}}),g)};EditorUi.prototype.getDatabaseItemKeys=function(d,g,n){this.openDatabase(mxUtils.bind(this,function(q){try{n=n||"objects";var t=q.transaction([n],"readonly").objectStore(n).getAllKeys();t.onsuccess=function(){d(t.result)};t.onerror=g}catch(x){null!=g&&g(x)}}),g)};EditorUi.prototype.commentsSupported=function(){var d=this.getCurrentFile();return null!=d?d.commentsSupported():!1};EditorUi.prototype.commentsRefreshNeeded=function(){var d=this.getCurrentFile();return null!=d?d.commentsRefreshNeeded(): | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
(0!=g.getStatus()?": "+g.getStatus():"")}))}));EditorUi.debug("DrawioFileSync.fileSaved",[this],"from",E,"to",D,"etag",this.file.getCurrentEtag(),"diff",A,L.length,"bytes","checksum",m)}else this.notify(v),null!=f&&f(),EditorUi.debug("DrawioFileSync.fileSaved",[this],"from",E,"to",D,"etag",this.file.getCurrentEtag())}this.file.setShadowPages(b);this.scheduleCleanup()}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
xa.innerText=ka;ia.appendChild(xa);qa.appendChild(ia);mxEvent.addListener(ia,"click",function(){function Ka(){var Aa=Ja.querySelector(".geTemplateDrawioCatLink");null!=Aa?Aa.click():setTimeout(Ka,200)}ca=!0;var Ja=C.querySelector(".geTemplatesList");Ja.style.display="block";Ba.style.width="";Ca.style.display="";Ca.value="";Y=null;Ka()});da.style.display=ja.length<=ma?"none":""}function R(ja,fa,ma){function na(Oa,Xa){Oa=mxResources.get(Oa,null,Oa.substring(0,1).toUpperCase()+Oa.substring(1));var Sa=
Oa+" ("+Xa.length+")",Ta=Oa=mxUtils.htmlEntities(Oa);15<Oa.length&&(Oa=Oa.substring(0,15)+"…");return{lbl:Oa+" ("+Xa.length+")",fullLbl:Sa,lblOnly:Ta}}function oa(Oa,Xa,Sa,Ta,Pa){mxEvent.addListener(Sa,"click",function(){z!=Sa&&(null!=z?(z.style.fontWeight="normal",z.style.textDecoration="none"):(ha.style.display="none",ea.style.minHeight="100%"),z=Sa,z.style.fontWeight="bold",z.style.textDecoration="underline",Ba.scrollTop=0,K&&(l=!0),sa.innerHTML=Xa,za.style.display="none",F(Pa?fa[Oa]:Ta? | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
d||mxUtils.isEmptyObject(d)||(g=g+"#"+encodeURIComponent(JSON.stringify(d)))}catch(q){}window.location.hash=g}};EditorUi.prototype.loadDescriptor=function(d,g,n){var q=window.location.hash,t=mxUtils.bind(this,function(B){var G=null!=d.data?d.data:"";null!=B&&0<B.length&&(0<G.length&&(G+="\n"),G+=B);B=new LocalFile(this,"csv"!=d.format&&0<G.length?G:this.emptyDiagramXml,null!=urlParams.title?decodeURIComponent(urlParams.title):this.defaultFilename,!0);B.getHash=function(){return q};this.fileLoaded(B); | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
x.scrollCellToVisible(x.getSelectionCell())}}}else{P=function(C){var K=p[C];null==K&&(K=new mxCell(C,new mxGeometry(0,0,80,30),"whiteSpace=wrap;html=1;"),K.vertex=!0,p[C]=K,F.push(K));return K};var p={};F=[];for(G=0;G<q.length;G++)if(";"!=q[G].charAt(0)){var y=q[G].split("->");2<=y.length&&(Q=P(y[0]),M=P(y[y.length-1]),y=new mxCell(2<y.length?y[1]:"",new mxGeometry),y.edge=!0,Q.insertEdge(y,!0),M.insertEdge(y,!1),F.push(y))}if(0<F.length){q=document.createElement("div");q.style.visibility="hidden"; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
d)}),c,this.ui.getCurrentFile()!=e?e.getData():null,H.scale,H.border)}else A(e.meta.sha,Base64.encode(e.getData()))});k?this.getSha(u,v,D,E,mxUtils.bind(this,function(H){e.meta.sha=H;L()}),c):L()};GitHubClient.prototype.pickLibrary=function(e){this.pickFile(e)};GitHubClient.prototype.pickFolder=function(e){this.showGitHubDialog(!1,e,!0)};GitHubClient.prototype.pickFile=function(e){e=null!=e?e:mxUtils.bind(this,function(f){this.ui.loadFile("H"+encodeURIComponent(f))});this.showGitHubDialog(!0,e)}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
gridSize:parseFloat(b.getAttribute("gridSize"))||mxGraph.prototype.gridSize,guidesEnabled:"0"!=b.getAttribute("guides"),foldingEnabled:"0"!=b.getAttribute("fold"),shadowVisible:"1"==b.getAttribute("shadow"),pageVisible:this.isLightboxView()?!1:null!=e?"0"!=e:this.defaultPageVisible,background:null!=m&&0<m.length?m:null,backgroundImage:u,pageScale:isNaN(f)?mxGraph.prototype.pageScale:f,pageFormat:isNaN(c)||isNaN(k)?"undefined"===typeof mxSettings||null!=this.defaultPageFormat?mxGraph.prototype.pageFormat:
mxSettings.getPageFormat():new mxRectangle(0,0,c,k),tooltips:"0"!=b.getAttribute("tooltips"),connect:"0"!=b.getAttribute("connect"),arrows:"0"!=b.getAttribute("arrows"),mathEnabled:"1"==b.getAttribute("math"),selectionCells:null,defaultParent:null,scrollbars:this.defaultScrollbars,scale:1,hiddenTags:[],extFonts:v||[]}}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
mxJsCanvas.prototype.arcTo=function(b,e,f,c,k,m,u){b=mxUtils.arcToCurves(this.lastMoveX,this.lastMoveY,b,e,f,c,k,m,u);if(null!=b)for(e=0;e<b.length;e+=6)this.curveTo(b[e],b[e+1],b[e+2],b[e+3],b[e+4],b[e+5])};mxJsCanvas.prototype.curveTo=function(b,e,f,c,k,m){this.ctx.bezierCurveTo(b,e,f,c,k,m);this.lastMoveX=k;this.lastMoveY=m};mxJsCanvas.prototype.rect=function(b,e,f,c){this.begin();this.moveTo(b,e);this.lineTo(b+f,e);this.lineTo(b+f,e+c);this.lineTo(b,e+c);this.close()}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
this.ui.pages.push(this.ui.createPage());0>mxUtils.indexOf(this.ui.pages,this.ui.currentPage)&&this.ui.selectPage(this.ui.pages[0],!0)}finally{v.container.style.visibility="";v.model.endUpdate();v.cellRenderer.redraw=L;this.changeListenerEnabled=E;f||(k.history=m,k.indexOfNextAdd=u,k.fireEvent(new mxEventObject(mxEvent.CLEAR)));if(null==this.ui.currentPage||this.ui.currentPage.needsUpdate)A!=v.mathEnabled?(this.ui.editor.updateGraphComponents(),v.refresh()):(D!=v.foldingEnabled?v.view.revalidate():
v.view.validate(),v.sizeDidChange());null!=this.sync&&this.isRealtime()&&!c&&(this.sync.snapshot=this.ui.clonePages(this.ui.pages));this.ui.editor.fireEvent(new mxEventObject("pagesPatched","patches",b))}EditorUi.debug("DrawioFile.patch",[this],"patches",b,"resolver",e,"undoable",f)}return b}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
DriveComment.prototype.deleteComment=function(b,e){this.file.ui.drive.executeRequest(this.pCommentId?{url:"/files/"+this.file.getId()+"/comments/"+this.pCommentId+"/replies/"+this.id,method:"DELETE"}:{url:"/files/"+this.file.getId()+"/comments/"+this.id,method:"DELETE"},b,e)};function mxODPicker(b,e,f,c,k,m,u,v,E,D,A,L,H,d){function g(V,S){S=S||document;return S.querySelector(V)}function n(V,S,X){if(null==V["@microsoft.graph.downloadUrl"])if(null==V.parentReference)X();else{c(V.id,V.parentReference.driveId,function(aa){n(aa,S,X)},X);return}var Z=new XMLHttpRequest;Z.open("GET",V["@microsoft.graph.downloadUrl"]);var Y=V.file?"image/png"==V.file.mimeType:!1;Z.onreadystatechange=function(){if(4==this.readyState){if(200<=this.status&&299>=this.status)try{var aa=Z.responseText;
Y&&(aa="data:image/png;base64,"+Editor.base64Encode(aa),aa=Editor.extractGraphModelFromPng(aa));var ca=mxUtils.parseXml(aa),da="mxlibrary"==ca.documentElement.nodeName?ca.documentElement:Editor.extractGraphModel(ca.documentElement);if(null!=da){S(da.ownerDocument);return}}catch(ba){}X()}};Y&&Z.overrideMimeType&&Z.overrideMimeType("text/plain; charset=x-user-defined");Z.send()}function q(){L&&null!=P?Q.exportToCanvas(function(V){V=EditorUi.prototype.createImageDataUri(V,null,"png");u(M,V);m(M)},400, | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
function(e,f){try{var c=JSON.parse(e.getText());null!=c&&null!=c.message&&(f=c.message)}catch(k){}return f};GitHubClient.prototype.showAuthorizeDialog=function(e,f){this.ui.showError(mxResources.get("accessDenied"),mxResources.get("authorizationRequired"),mxResources.get("help"),mxUtils.bind(this,function(){this.ui.openLink("https://www.drawio.com/blog/single-repository-diagrams")}),e,mxResources.get("authorize"),mxUtils.bind(this,function(){this.ui.openLink("test.draw.io"==window.location.hostname?
"https://github.com/apps/diagrams-net-app-test":"https://github.com/apps/draw-io-app")}),mxResources.get("cancel"),f,480,null,!1)};GitHubClient.prototype.executeRequest=function(e,f,c,k,m){var u=mxUtils.bind(this,function(E){var D=!0,A=window.setTimeout(mxUtils.bind(this,function(){D=!1;c({code:App.ERROR_TIMEOUT,retry:v})}),this.ui.timeout),L=this.authToken+" "+b;e.setRequestHeaders=function(H,d){H.setRequestHeader("Authorization",L)};e.send(mxUtils.bind(this,function(){window.clearTimeout(A);var H= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
f.setCellStyles(mxConstants.STYLE_ROTATION,Number(t.value),[e[B]])}}finally{f.getModel().endUpdate()}});x.className="geBtn gePrimaryBtn";mxEvent.addListener(k,"keypress",function(B){13==B.keyCode&&x.click()});m=document.createElement("div");m.style.marginTop="20px";m.style.textAlign="right";b.editor.cancelFirst?(m.appendChild(c),m.appendChild(x)):(m.appendChild(x),m.appendChild(c));k.appendChild(m);this.container=k},LibraryDialog=function(b,e,f,c,k,m){function u(U){for(U=document.elementFromPoint(U.clientX,
U.clientY);null!=U&&U.parentNode!=d;)U=U.parentNode;var R=null;if(null!=U){var N=d.firstChild;for(R=0;null!=N&&N!=U;)N=N.nextSibling,R++}return R}function v(U,R,N,Q,P,M,p,y,C){try{if(b.spinner.stop(),null==R||"image/"==R.substring(0,6))if(null==U&&null!=p||null==n[U]){var K=function(){S.innerText="";S.style.cursor="pointer";S.style.whiteSpace="nowrap";S.style.textOverflow="ellipsis";mxUtils.write(S,null!=X.title&&0<X.title.length?X.title:mxResources.get("untitled"));S.style.color=null==X.title||0== | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.