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 |
---|---|---|---|---|---|---|---|
EditorUi.prototype.setScrollbars=function(a){var b=this.editor.graph,e=b.container.style.overflow;b.scrollbars=a;this.editor.updateGraphComponents();e!=b.container.style.overflow&&(b.container.scrollTop=0,b.container.scrollLeft=0,b.view.scaleAndTranslate(1,0,0),this.resetScrollbars());this.fireEvent(new mxEventObject("scrollbarsChanged"))}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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&&(this.lastAutosaveRevision=(new Date).getTime());this.save(m,mxUtils.bind(this,function(u){this.autosaveCompleted();null!=f&&f(u)}),mxUtils.bind(this,function(u){null!=c&&c(u)}))}else this.isModified()||this.ui.editor.setStatus(""),null!=f&&f(null)}catch(u){null!=c&&c(u)}}),b);EditorUi.debug("DrawioFile.autosave",[this],"thread",k,"delay",b,"saving",this.savingFile);this.autosaveThread=k};DrawioFile.prototype.isAutosaveNow=function(){return!0};DrawioFile.prototype.autosaveCompleted=function(){}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
arguments);null!=this.tabContainer&&(this.tabContainer.style.right="62px",this.diagramContainer.style.bottom=this.tabContainerHeight+"px")};var m=EditorUi.prototype.updateActionStates;EditorUi.prototype.updateActionStates=function(){m.apply(this,arguments);this.menus.get("save").setEnabled(null!=this.getCurrentFile()||"1"==urlParams.embed)};var u=Menus.prototype.addShortcut;Menus.prototype.addShortcut=function(H,d){null!=d.shortcut&&900>c&&!mxClient.IS_IOS?H.firstChild.nextSibling.setAttribute("title",
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 |
DriveFile.prototype.getComments=function(b,e){function f(k,m,u){if(m.deleted)return null;u=new DriveComment(k,m.commentId||m.replyId,m.content,m.modifiedDate,m.createdDate,"resolved"==m.status,m.author.isAuthenticatedUser?c:new DrawioUser(m.author.permissionId,m.author.emailAddress,m.author.displayName,m.author.picture.url),u);for(var v=0;null!=m.replies&&v<m.replies.length;v++)u.addReplyDirect(f(k,m.replies[v],m.commentId));return u}var c=this.ui.getCurrentUser();this.ui.drive.executeRequest({url:"/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 |
"sketchStyle","rough")?this.createComicCanvas(W):this.createRoughCanvas(W)};var J=mxImageShape.prototype.paintVertexShape;mxImageShape.prototype.paintVertexShape=function(W,V,S,X,Z){null!=W.handJiggle&&W.handJiggle.passThrough||J.apply(this,arguments)};var O=mxShape.prototype.paint;mxShape.prototype.paint=function(W){var V=W.addTolerance,S=!0;null!=this.style&&(S="1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1"));if(null!=W.handJiggle&&W.handJiggle.constructor==l&&!this.outline){W.save();
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=
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 |
var l=0,z=0;k.view.states.visit(function(J,O){J=!0;p(O.shape)||(console.log("invalid shape",O.cell.id,O.shape),J=!1);p(O.text)||(console.log("invalid text",O.cell.id,O.text),J=!1);J||l++;z++});console.log("states checked",z,"invalid",l)}));c.actions.addAction("testCheckFile",mxUtils.bind(this,function(){var p=null!=c.pages&&null!=c.getCurrentFile()?c.getCurrentFile().getAnonymizedXmlForPages(c.pages):"";p=new TextareaDialog(c,"Paste Data:",p,function(y){if(0<y.length)try{var C=function(O){function T(ba){if(null==
da[ba]){if(da[ba]=!0,null!=S[ba]){for(;0<S[ba].length;){var sa=S[ba].pop();T(sa)}delete S[ba]}}else mxLog.debug(W+": Visited: "+ba)}var W=O.parentNode.id,V=O.childNodes;O={};for(var S={},X=null,Z={},Y=0;Y<V.length;Y++){var aa=V[Y];if(null!=aa.id&&0<aa.id.length)if(null==O[aa.id]){O[aa.id]=aa.id;var ca=aa.getAttribute("parent");null==ca?null!=X?mxLog.debug(W+": Multiple roots: "+aa.id):X=aa.id:(null==S[ca]&&(S[ca]=[]),S[ca].push(aa.id))}else Z[aa.id]=aa.id}V=Object.keys(Z);0<V.length?(V=W+": "+V.length+
" Duplicates: "+V.join(", "),mxLog.debug(V+" (see console)")):mxLog.debug(W+": Checked");var da={};null==X?mxLog.debug(W+": No root"):(T(X),Object.keys(da).length!=Object.keys(O).length&&(mxLog.debug(W+": Invalid tree: (see console)"),console.log(W+": Invalid tree",S)))};"<"!=y.charAt(0)&&(y=Graph.decompress(y),mxLog.debug("See console for uncompressed XML"),console.log("xml",y));var K=mxUtils.parseXml(y),l=c.getPagesForNode(K.documentElement,"mxGraphModel");if(null!=l&&0<l.length)try{var z=c.getHashValueForPages(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 |
mxAsyncCanvas.prototype.image=function(b,e,f,c,k,m,u,v){k=this.rewriteImageSource(k);b=this.htmlCanvas.images[k];null==b&&(b=new Image,b.onload=mxUtils.bind(this,function(){this.decWaitCounter()}),b.onerror=mxUtils.bind(this,function(){this.decWaitCounter()}),this.incWaitCounter(),this.htmlCanvas.images[k]=b,b.src=k)};mxAsyncCanvas.prototype.fill=function(){};mxAsyncCanvas.prototype.stroke=function(){};mxAsyncCanvas.prototype.fillAndStroke=function(){}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
function(e){var f={message:mxResources.get("unknownError")};try{f=JSON.parse(e.getText()),f.status=e.getStatus(),f.error&&(f.error.status=f.status,f.error.code=f.status)}catch(c){}return f};OneDriveClient.prototype.pickLibrary=function(e){this.pickFile(function(f){e(f)})};OneDriveClient.prototype.createInlinePicker=function(e,f,c){return mxUtils.bind(this,function(){var k=null,m=document.createElement("div");m.style.position="relative";var u=new CustomDialog(this.ui,m,mxUtils.bind(this,function(){var 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 |
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 |
Format.prototype.init;Format.prototype.init=function(){D.apply(this,arguments);this.editorUi.editor.addListener("fileLoaded",this.update)};var A=Format.prototype.refresh;Format.prototype.refresh=function(){null!=this.editorUi.getCurrentFile()||"1"==urlParams.embed||this.editorUi.editor.chromeless?A.apply(this,arguments):this.clear()};DiagramFormatPanel.prototype.isMathOptionVisible=function(l){return"simple"==Editor.currentTheme||"sketch"==Editor.currentTheme||"min"==Editor.currentTheme};var L=DiagramFormatPanel.prototype.addOptions; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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 |
null,null,function(V){console.log(V)},600,null,null,null,null,null,P):(u(M,void 0),m(M))}function t(V){function S(X){O.style.background="transparent";O.innerText="";var Z=document.createElement("div");Z.className="odPreviewStatus";mxUtils.write(Z,X);O.appendChild(Z);N.stop()}if(null!=O)if(O.style.background="transparent",O.innerText="",null==V||V.folder||/\.drawiolib$/.test(V.name))S(mxResources.get("noPreview"));else try{null!=V.remoteItem&&(V=V.remoteItem),l=V,N.spin(O),n(V,function(X){N.stop();
if(l==V)if("mxlibrary"==X.documentElement.nodeName)S(mxResources.get("noPreview"));else{var Z=X.getElementsByTagName("diagram");P=AspectDialog.prototype.createViewer(O,0==Z.length?X.documentElement:Z[0],null,"transparent")}},function(){M=null;S(mxResources.get("notADiagramFile"))})}catch(X){M=null,S(mxResources.get("notADiagramFile"))}}function x(){var V=g(".odFilesBreadcrumb");if(null!=V){V.innerText="";for(var S=0;S<C.length-1;S++){var X=document.createElement("span");X.className="odBCFolder";X.innerHTML= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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.style.verticalAlign="middle";f.className="geBtn";x.appendChild(f);b.isOffline()&&!mxClient.IS_CHROMEAPP&&(f.style.display="none");f=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});f.style.verticalAlign="middle";f.className="geBtn";b.editor.cancelFirst&&x.appendChild(f);LinkDialog.selectedDocs=null;LinkDialog.filePicked=function(B){if(B.action==google.picker.Action.PICKED){LinkDialog.selectedDocs=B.docs;var G=B.docs[0].url;"application/mxe"==B.docs[0].mimeType||null!=B.docs[0].mimeType&&
"application/vnd.jgraph."==B.docs[0].mimeType.substring(0,23)?G="https://www.draw.io/#G"+B.docs[0].id:"application/vnd.google-apps.folder"==B.docs[0].mimeType&&(G="https://drive.google.com/#folders/"+B.docs[0].id);A.value=G;A.focus()}else LinkDialog.selectedDocs=null;A.focus()};"undefined"!=typeof google&&"undefined"!=typeof google.picker&&null!=b.drive&&v(IMAGE_PATH+"/google-drive-logo.svg",mxResources.get("googlePlus"),function(){b.spinner.spin(document.body,mxResources.get("authorizing"))&&b.drive.checkToken(mxUtils.bind(this, | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
this.updateUser(function(){m(!0)},c,u):k(u)});null==b?this.authenticate(function(){m(!0)},c):m(!1)};DropboxClient.prototype.getLibrary=function(e,f,c){this.getFile(e,f,c,!0)};DropboxClient.prototype.getFile=function(e,f,c,k){k=null!=k?k:!1;var m=/\.png$/i.test(e);if(/^https:\/\//i.test(e)||/\.v(dx|sdx?)$/i.test(e)||/\.gliffy$/i.test(e)||/\.pdf$/i.test(e)||!this.ui.useCanvasForExport&&m){var u=mxUtils.bind(this,function(){var v=e.split("/");this.ui.convertFile(e,0<v.length?v[v.length-1]:e,null,this.extension, | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
this.canvas.begin=this.originalBegin;this.canvas.end=this.originalEnd;this.canvas.rect=this.originalRect;this.canvas.ellipse=this.originalEllipse;this.canvas.roundrect=this.originalRoundrect};mxShape.prototype.createRoughCanvas=function(W){return new l(W,Editor.createRoughCanvas(W),this)};var z=mxShape.prototype.createHandJiggle;mxShape.prototype.createHandJiggle=function(W){return this.outline||null==this.style||"0"==mxUtils.getValue(this.style,"sketch","0")?z.apply(this,arguments):"comic"==mxUtils.getValue(this.style,
"sketchStyle","rough")?this.createComicCanvas(W):this.createRoughCanvas(W)};var J=mxImageShape.prototype.paintVertexShape;mxImageShape.prototype.paintVertexShape=function(W,V,S,X,Z){null!=W.handJiggle&&W.handJiggle.passThrough||J.apply(this,arguments)};var O=mxShape.prototype.paint;mxShape.prototype.paint=function(W){var V=W.addTolerance,S=!0;null!=this.style&&(S="1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1"));if(null!=W.handJiggle&&W.handJiggle.constructor==l&&!this.outline){W.save(); | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
function(k){this.savingFile=!1;null!=c&&c(k)})):this.ui.pickFolder(App.MODE_TRELLO,mxUtils.bind(this,function(k){this.ui.trello.insertFile(b,this.getData(),mxUtils.bind(this,function(m){this.savingFile=!1;null!=f&&f();this.ui.fileLoaded(m);0<this.saveNeededCounter&&(this.saveNeededCounter--,this.saveFile(b,e,f,c))}),mxUtils.bind(this,function(){this.savingFile=!1;null!=c&&c()}),!1,k)}))):null!=f&&f()};TrelloLibrary=function(b,e,f){TrelloFile.call(this,b,e,f)};mxUtils.extend(TrelloLibrary,TrelloFile);TrelloLibrary.prototype.doSave=function(b,e,f){this.saveFile(b,!1,e,f)};TrelloLibrary.prototype.open=function(){};TrelloClient=function(b){DrawioClient.call(this,b,"tauth");Trello.setKey(this.key)};mxUtils.extend(TrelloClient,DrawioClient);TrelloClient.prototype.key="e89d109082298ce91f6576f82f458551";TrelloClient.prototype.baseUrl="https://api.trello.com/1/";TrelloClient.prototype.SEPARATOR="|$|";TrelloClient.prototype.maxFileSize=1E7;TrelloClient.prototype.extension=".xml"; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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.checkLicense=function(){var b=this.drive.getUser(),e=null!=b?b.email:null;if(!this.isOffline()&&!this.editor.chromeless&&null!=e&&null!=b.id){var f=e.lastIndexOf("@"),c=0<=f?e.substring(f+1):"";b=Editor.crc32(b.id);mxUtils.post("/license","domain="+encodeURIComponent(c)+"&id="+encodeURIComponent(b)+"&ts="+(new Date).getTime(),mxUtils.bind(this,function(k){try{if(200<=k.getStatus()&&299>=k.getStatus()){var m=k.getText();if(0<m.length){var u=JSON.parse(m);null!=u&&this.handleLicense(u,
c)}}}catch(v){}}))}};App.prototype.handleLicense=function(b,e){};App.prototype.getEditBlankXml=function(){var b=this.getCurrentFile();return null!=b&&this.editor.isChromelessView()&&this.editor.graph.isLightboxView()?b.getData():this.getFileData(!0)};App.prototype.updateActionStates=function(){EditorUi.prototype.updateActionStates.apply(this,arguments);this.actions.get("revisionHistory").setEnabled(this.isRevisionHistoryEnabled())}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
J.apply(this,arguments)};var O=K.restore;K.restore=function(){z--;O.apply(this,arguments)};var T=p.drawShape;p.drawShape=function(W){mxLog.debug("entering shape",W,z);T.apply(this,arguments);mxLog.debug("leaving shape",W,z)};p.drawState(k.getView().getState(k.model.root),K);mxLog.show();mxLog.debug(mxUtils.getXml(l));mxLog.debug("stateCounter",z)}));c.actions.addAction("testShowConsole",function(){mxLog.isVisible()?mxLog.window.fit():mxLog.show();mxLog.window.div.style.zIndex=mxPopupMenu.prototype.zIndex- | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
!q,null!=G&&q&&(t.shadowVisible=G),this.editor.graph.model.execute(t))});d=new BackgroundImageDialog(this,d,g,n,q);this.showDialog(d.container,400,q?240:220,!0,!0);d.init()};EditorUi.prototype.showLibraryDialog=function(d,g,n,q,t){d=new LibraryDialog(this,d,g,n,q,t);this.showDialog(d.container,640,440,!0,!1,mxUtils.bind(this,function(x){x&&null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.showSplash()}));d.init()};var f=EditorUi.prototype.createFormat;EditorUi.prototype.createFormat=function(d){var g=
f.apply(this,arguments);this.editor.graph.addListener("viewStateChanged",mxUtils.bind(this,function(n){this.editor.graph.isSelectionEmpty()&&g.refresh()}));return g};EditorUi.prototype.handleError=function(d,g,n,q,t,x,B){var G=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},I=null!=d&&null!=d.error?d.error:d;if(null!=d&&("1"==urlParams.test||null!=d.stack)&&null!=d.message)try{B?null!=window.console&&console.error("EditorUi.handleError:",d):EditorUi.logError("Caught: "+ | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
null==K.getTerminal(l[z],!0)){K.setTerminal(l[z],M,!0);var J=g.getCellGeometry(l[z]);J.points=null;null!=J.getTerminalPoint(!0)&&J.setTerminalPoint(null,!0)}}finally{K.endUpdate()}return l}}var I={67:d.actions.get("selectChildren"),88:d.actions.get("selectDescendants"),80:d.actions.get("selectParent"),83:d.actions.get("selectSiblings")},F=d.onKeyDown;d.onKeyDown=function(M){try{var p=g.getSelectionCell();if(g.isEnabled()&&!g.isEditing()&&null!=p){var y=mxEvent.isAltDown(M)&&mxEvent.isShiftDown(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 |
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 |
{val:"south",dispName:"South"},{val:"west",dispName:"West"}]},{name:"jettySize",dispName:"Jetty Size",type:"int",min:0,defVal:"auto",allowAuto:!0,isVisible:function(l){return"orthogonalEdgeStyle"==mxUtils.getValue(l.style,mxConstants.STYLE_EDGE,null)}},{name:"fillOpacity",dispName:"Fill Opacity",type:"int",min:0,max:100,defVal:100},{name:"strokeOpacity",dispName:"Stroke Opacity",type:"int",min:0,max:100,defVal:100},{name:"startFill",dispName:"Start Fill",type:"bool",defVal:!0},{name:"endFill",dispName:"End Fill", | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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(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)};DropboxClient.prototype.authenticateStep2=function(e,f,c){if(null==window.onDropboxCallback){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="+ | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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.uncompressPages=function(b){if(null!=b)try{var e=mxUtils.parseXml(b);if("mxfile"==e.documentElement.nodeName){for(var f=e.documentElement.getElementsByTagName("diagram"),c=0;c<f.length;c++){var k=Editor.parseDiagramNode(f[c],!0);null!=k&&(mxUtils.setTextContent(f[c],""),f[c].appendChild(k))}b=mxUtils.getPrettyXml(e.documentElement)}}catch(m){}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 |
"metaEdit","0")?d.showDataDialog(C):n.apply(this,arguments)}}catch(J){d.handleError(J)}};g.getLinkTitle=function(C){return d.getLinkTitle(C)};g.customLinkClicked=function(C){var K=!1;try{d.handleCustomLink(C),K=!0}catch(l){d.handleError(l)}return K};var q=g.parseBackgroundImage;g.parseBackgroundImage=function(C){var K=q.apply(this,arguments);null!=K&&null!=K.src&&Graph.isPageLink(K.src)&&(K={originalSrc:K.src});return K};var t=g.setBackgroundImage;g.setBackgroundImage=function(C){null!=C&&null!=C.originalSrc&&
(C=d.createImageForPageLink(C.originalSrc,d.currentPage,this));t.apply(this,arguments)};this.editor.addListener("pageRenamed",mxUtils.bind(this,function(){g.refreshBackgroundImage()}));this.editor.addListener("pageMoved",mxUtils.bind(this,function(){g.refreshBackgroundImage()}));this.editor.addListener("pagesPatched",mxUtils.bind(this,function(C,K){C=null!=g.backgroundImage?g.backgroundImage.originalSrc:null;if(null!=C){var l=C.indexOf(",");if(0<l)for(C=C.substring(l+1),K=K.getProperty("patches"), | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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.migrate=function(b){var e=StorageFile.listLocalStorageFiles();e.push({title:".scratchpad",type:"L"});var f=b.transaction(["files","filesInfo"],"readwrite");b=f.objectStore("files");f=f.objectStore("filesInfo");for(var c=0;c<e.length;c++){var k=e[c],m=localStorage.getItem(k.title);b.add({title:k.title,data:m});f.add(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 |
na=oa.substring(0,ia),null==ma)){var ka=oa.indexOf("/",ia+1);-1<ka&&(ma=oa.substring(ia+1,ka))}ia=Ga[na];null==ia&&(Ra++,ia=[],Ga[na]=ia);oa=ja.getAttribute("clibs");null!=fa[oa]&&(oa=fa[oa]);oa={url:ja.getAttribute("url"),libs:ja.getAttribute("libs"),title:ja.getAttribute("title")||ja.getAttribute("name"),preview:ja.getAttribute("preview"),clibs:oa,tags:ja.getAttribute("tags")};ia.push(oa);null!=ma&&(ia=Ea[na],null==ia&&(ia={},Ea[na]=ia),na=ia[ma],null==na&&(na=[],ia[ma]=na),na.push(oa))}ja=ja.nextSibling}R(Ga,
Qa,Ia)}})}function Q(ja){u&&(Ba.scrollTop=0,ba.innerText="",Fa.spin(ba),l=!1,K=!0,sa.innerText=mxResources.get("recentDiag"),Y=null,u(Va,function(){n(mxResources.get("cannotLoad"));Va([])},ja?null:m))}function P(ja){if(""==ja)null!=J&&(J.click(),J=null);else{if(null==TemplatesDialog.tagsList[c]){var fa={};for(Ka in Ga)for(var ma=Ga[Ka],na=0;na<ma.length;na++){var oa=ma[na];if(null!=oa.tags)for(var ia=oa.tags.toLowerCase().split(";"),ka=0;ka<ia.length;ka++)null==fa[ia[ka]]&&(fa[ia[ka]]=[]),fa[ia[ka]].push(oa)}TemplatesDialog.tagsList[c]= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
mxDualRuler.prototype.setUnit=function(b){this.vRuler.setUnit(b);this.hRuler.setUnit(b)};mxDualRuler.prototype.setStyle=function(b){this.vRuler.setStyle(b);this.hRuler.setStyle(b)};mxDualRuler.prototype.destroy=function(){this.vRuler.destroy();this.hRuler.destroy();this.ui.refresh=this.editorUiRefresh;mxGuide.prototype.move=this.origGuideMove;mxGuide.prototype.destroy=this.origGuideDestroy;this.ui.getDiagramContainerOffset=this.editorUiGetDiagContOffset};function mxFreehand(b){var e=null!=b.view&&null!=b.view.canvas?b.view.canvas.ownerSVGElement:null;if(null!=b.container&&null!=e){b.addListener(mxEvent.ESCAPE,mxUtils.bind(this,function(){this.stopDrawing()}));var f=mxFreehand.prototype.NORMAL_SMOOTHING,c=null,k=[],m,u=[],v,E=!1,D=!0,A=!0,L=!0,H=!0,d=[],g=!1,n=!1,q=!1,t={size:5,thinning:.5,smoothing:.5,streamline:.5,start:{taper:0,cap:!0},end:{taper:0,cap:!0}},x=!0;this.setClosedPath=function(Q){E=Q};this.setAutoClose=function(Q){D=Q};this.setAutoInsert= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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||(aa.style.backgroundImage="url("+mxWindow.prototype.normalizeImage+")",aa.style.backgroundPosition="right 6px center",aa.style.backgroundRepeat="no-repeat",aa.style.paddingRight="22px");return aa}function d(S,X,Z,Y,aa,ca){var da=document.createElement("a");da.className="geMenuItem";da.style.display="inline-block";da.style.boxSizing="border-box";da.style.height="30px";da.style.padding="6px";da.style.position="relative";da.style.verticalAlign="top";da.style.top="0px";null!=x.statusContainer?G.insertBefore(da,
x.statusContainer):G.appendChild(da);null!=ca?(da.style.backgroundImage="url("+ca+")",da.style.backgroundPosition="center center",da.style.backgroundRepeat="no-repeat",da.style.backgroundSize="24px 24px",da.style.width="34px"):mxUtils.write(da,S);mxEvent.addListener(da,mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,function(ba){ba.preventDefault()}));mxEvent.addListener(da,"click",function(ba){"disabled"!=da.getAttribute("disabled")&&X(ba);mxEvent.consume(ba)});null==Z&&(da.style.marginRight=
"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"; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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 |
OneDriveClient.prototype.rootId={id:"root",name:"root",parentReference:{driveId:"me"}};OneDriveClient.prototype.extension=".drawio";OneDriveClient.prototype.baseUrl="https://graph.microsoft.com/v1.0";OneDriveClient.prototype.authUrl="https://login.microsoftonline.com/"+(window.DRAWIO_MSGRAPH_TENANT_ID||"common");OneDriveClient.prototype.emptyFn=function(){};OneDriveClient.prototype.invalidFilenameRegExs=[/[~"#%\*:<>\?\/\\{\|}]/,/^\.lock$/i,/^CON$/i,/^PRN$/i,/^AUX$/i,/^NUL$/i,/^COM\d$/i,/^LPT\d$/i, | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
mxUtils.write(q,"?"),mxEvent.addGestureListeners(q,mxUtils.bind(this,function(C){this.openLink(EditorUi.scratchpadHelpLink);mxEvent.consume(C)})),U.insertBefore(q,U.firstChild))}F.appendChild(U);F.style.paddingRight=18*U.childNodes.length+"px"}};EditorUi.prototype.addLibraryEntries=function(d,g){for(var n=0;n<d.length;n++){var q=d[n],t=q.data;if(null!=t){t=this.convertDataUri(t);var x="shape=image;verticalLabelPosition=bottom;verticalAlign=top;imageAspect=0;";"fixed"==q.aspect&&(x+="aspect=fixed;");
g.appendChild(this.sidebar.createVertexTemplate(x+"image="+t,q.w,q.h,"",q.title||"",!1,null,!0))}else null!=q.xml&&(t=this.stringToCells("<"==q.xml.charAt(0)?q.xml:Graph.decompress(q.xml)),0<t.length&&g.appendChild(this.sidebar.createVertexTemplateFromCells(t,q.w,q.h,q.title||"",!0,null,!0)))}};EditorUi.prototype.getResource=function(d){return null!=d?d[mxLanguage]||d.main:null};EditorUi.prototype.footerHeight=0;"1"==urlParams.savesidebar&&(Sidebar.prototype.thumbWidth=64,Sidebar.prototype.thumbHeight= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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"; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
var l=null!=b.currentPage?b.currentPage.getId():null,z=K.getProperty("added");K=K.getProperty("removed");c("selectionChange",{pageId:l,removed:z?z.map(C):[],added:K?K.map(C):[]})};A.getSelectionModel().addListener(mxEvent.CHANGE,this.selectionChangeListener);this.cursorHandler=mxUtils.bind(this,function(){for(var C in g)m(g[C])});mxEvent.addListener(A.container,"scroll",this.cursorHandler);A.getView().addListener(mxEvent.SCALE,this.cursorHandler);A.getView().addListener(mxEvent.TRANSLATE,this.cursorHandler); | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
[C],[K])):this.joinFile(!0)}catch(l){p=l,e.file.fireEvent(new mxEventObject("realtimeStateChanged")),EditorUi.debug("P2PCollab:","sendReply error",arguments,l)}});this.sendMessage=c;this.sendDiff=function(C){this.sendMessage("diff",{diff:C})};this.sendNotification=function(C){this.sendMessage("notify",{msg:C})};this.getState=function(){return null!=H?H.readyState:3};this.getLastError=function(){return p};this.mouseListeners={startX:0,startY:0,scrollLeft:0,scrollTop:0,mouseDown:function(C,K){},mouseMove:function(C, | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
"text/xml"):this.handleError({message:mxResources.get(413==Y.status?"drawingTooLarge":"invalidOrMissingFile")},mxResources.get("errorLoadingFile")))})):(this.spinner.stop(),this.showError(mxResources.get("error"),mxResources.get("notInOffline"))):Z(K,l)}}));C.stopPropagation();C.preventDefault()})),mxEvent.addListener(I,"dragleave",function(C){I.style.cursor="";I.style.backgroundColor="";C.stopPropagation();C.preventDefault()}));R=R.cloneNode(!1);R.setAttribute("src",Editor.editImage);R.setAttribute("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)}),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 |
StorageFile.insertFile=function(b,e,f,c,k){var m=mxUtils.bind(this,function(u){var v=function(){var E=new StorageFile(b,f,e);E.saveFile(e,!1,function(){c(E)},k)};u?b.confirm(mxResources.get("replaceIt",[e]),v,k):v()});StorageFile.getFileContent(b,e,function(u){m(null!=u)},function(){m(!1)})};StorageFile.getFileContent=function(b,e,f,c){b.getDatabaseItem(e,function(k){f(null!=k?k.data:null)},mxUtils.bind(this,function(){null==b.database?b.getLocalData(e,f):null!=c&&c()}),"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 |
v?mxUtils.button(mxResources.get("ignore"),v):null;null!=v&&(v.className="geBtn");b.editor.cancelFirst?(d.appendChild(f),null!=v&&d.appendChild(v),d.appendChild(u),d.appendChild(m)):(d.appendChild(m),d.appendChild(u),null!=v&&d.appendChild(v),d.appendChild(f));D.appendChild(d);D.appendChild(g);this.container=D},FindWindow=function(b,e,f,c,k,m){function u(K,l,z,J){if("object"===typeof l.value&&null!=l.value.attributes){l=l.value.attributes;for(var O=0;O<l.length;O++)if("label"!=l[O].nodeName){var T=
mxUtils.trim(l[O].nodeValue.replace(/[\x00-\x1F\x7F-\x9F]|\s+/g," ")).toLowerCase();if(null==K&&(J&&0<=T.indexOf(z)||!J&&T.substring(0,z.length)===z)||null!=K&&K.test(T))return!0}}return!1}function v(){d?(p.removeAttribute("disabled"),y.removeAttribute("disabled")):(p.setAttribute("disabled","disabled"),y.setAttribute("disabled","disabled"));G.value?C.removeAttribute("disabled"):C.setAttribute("disabled","disabled")}function E(K,l,z){P.innerText="";var J=A.model.getDescendants(A.model.getRoot()), | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
function(){return this.user};DriveClient.prototype.getUsersList=function(){var f=[],c=JSON.parse(this.getPersistentToken(!0)),k=null;if(null!=c){null!=c.current&&(k=c.current.userId,f.push(c[k].user),f[0].isCurrent=!0);for(var m in c)"current"!=m&&m!=k&&f.push(c[m].user)}return f};DriveClient.prototype.logout=function(){this.ui.editor.loadUrl(this.redirectUri+"?doLogout=1&userId="+this.userId+"&state="+encodeURIComponent("cId="+this.clientId+"&domain="+window.location.host));this.clearPersistentToken(); | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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.updateDiagram=function(d){function g(K){var l=new mxCellOverlay(K.image||t.warningImage,K.tooltip,K.align,K.valign,K.offset);l.addListener(mxEvent.CLICK,function(z,J){q.alert(K.tooltip)});return l}var n=null,q=this;if(null!=d&&0<d.length&&(n=mxUtils.parseXml(d),d=null!=n?n.documentElement:null,null!=d&&"updates"==d.nodeName)){var t=this.editor.graph,x=t.getModel();x.beginUpdate();var B=null;try{for(d=d.firstChild;null!=d;){if("update"==d.nodeName){var G=x.getCell(d.getAttribute("id")); | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
var PopupDialog=function(b,e,f,c,k){k=null!=k?k:!0;var m=document.createElement("div");m.style.textAlign="left";m.style.height="100%";mxUtils.write(m,mxResources.get("fileOpenLocation"));mxUtils.br(m);mxUtils.br(m);var u=mxUtils.button(mxResources.get("openInThisWindow"),function(){k&&b.hideDialog();null!=c&&c()});u.className="geBtn";u.style.marginBottom="8px";u.style.width="280px";m.appendChild(u);mxUtils.br(m);var v=mxUtils.button(mxResources.get("openInNewWindow"),function(){k&&b.hideDialog();
null!=f&&f();b.openLink(e,null,!0)});v.className="geBtn gePrimaryBtn";v.style.width=u.style.width;m.appendChild(v);mxUtils.br(m);mxUtils.br(m);mxUtils.write(m,mxResources.get("allowPopups"));this.container=m},ImageDialog=function(b,e,f,c,k,m,u,v){function E(){0<L.value.length?x.removeAttribute("disabled"):x.setAttribute("disabled","disabled")}m=null!=m?m:!0;var D=b.editor.graph,A=document.createElement("div");mxUtils.write(A,e);e=document.createElement("div");e.className="geTitle";e.style.backgroundColor= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
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():
!0};EditorUi.prototype.commentsSaveNeeded=function(){var d=this.getCurrentFile();return null!=d?d.commentsSaveNeeded():!1};EditorUi.prototype.getComments=function(d,g){var n=this.getCurrentFile();null!=n?n.getComments(d,g):d([])};EditorUi.prototype.addComment=function(d,g,n){var q=this.getCurrentFile();null!=q?q.addComment(d,g,n):g(Date.now())};EditorUi.prototype.canReplyToReplies=function(){var d=this.getCurrentFile();return null!=d?d.canReplyToReplies():!0};EditorUi.prototype.canComment=function(){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 |
function(F){this.diagramContainer.style.width="10px";this.diagramContainer.style.height="10px";this.diagramContainer.style.border="";this.bottomResizer.style.visibility="hidden";this.rightResizer.style.visibility="hidden";g.style.visibility="hidden";d.style.visibility="hidden";n.style.display="none"}));this.windowResized=mxUtils.bind(this,function(){});this.inlineSizeChanged()};EditorUi.prototype.installImagePasteHandler=function(){if(!mxClient.IS_IE){var d=this.editor.graph;d.container.addEventListener("paste",
mxUtils.bind(this,function(g){if(!mxEvent.isConsumed(g))try{for(var n=g.clipboardData||g.originalEvent.clipboardData,q=!1,t=0;t<n.types.length;t++)if("text/"===n.types[t].substring(0,5)){q=!0;break}if(!q){var x=n.items;for(index in x){var B=x[index];if("file"===B.kind){if(d.isEditing())this.importFiles([B.getAsFile()],0,0,this.maxImageSize,function(I,F,U,R,N,Q){d.insertImage(I,N,Q)},function(){},function(I){return"image/"==I.type.substring(0,6)},function(I){for(var F=0;F<I.length;F++)I[F]()});else{var G=
this.editor.graph.getInsertPoint();this.importFiles([B.getAsFile()],G.x,G.y,this.maxImageSize);mxEvent.consume(g)}break}}}}catch(I){}}),!1)}};EditorUi.prototype.installNativeClipboardHandler=function(){function d(){window.setTimeout(function(){n.innerHTML=" ";n.focus();document.execCommand("selectAll",!1,null)},0)}var g=this.editor.graph,n=document.createElement("div");n.setAttribute("autocomplete","off");n.setAttribute("autocorrect","off");n.setAttribute("autocapitalize","off");n.setAttribute("spellcheck", | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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;K<M.length;K++){var l=g.view.getState(g.model.getTerminal(M[K],!1));null!=l&&(!p&&Math.min(l.x+l.width,y.x+y.width)>=Math.max(l.x,y.x)||p&&Math.min(l.y+l.height,y.y+y.height)>=Math.max(l.y,y.y))&&C.push(l)}C.sort(function(z,J){return p?z.x+z.width-J.x-J.width:z.y+z.height-J.y-J.height})}return C}function H(M,p){var y=v(M),C=p==mxConstants.DIRECTION_EAST||p==mxConstants.DIRECTION_WEST;(y==mxConstants.DIRECTION_EAST||y==mxConstants.DIRECTION_WEST)==C&&y!=p?d.actions.get("selectParent").funct():y==
p?(p=g.getOutgoingTreeEdges(M),null!=p&&0<p.length&&g.setSelectionCell(g.model.getTerminal(p[0],!1))):(y=g.getIncomingTreeEdges(M),null!=y&&0<y.length&&(C=L(g.model.getTerminal(y[0],!0),C,M),M=g.view.getState(M),null!=M&&(M=mxUtils.indexOf(C,M),0<=M&&(M+=p==mxConstants.DIRECTION_NORTH||p==mxConstants.DIRECTION_WEST?-1:1,0<=M&&M<=C.length-1&&g.setSelectionCell(C[M].cell)))))}var d=this,g=d.editor.graph,n=g.getModel(),q=d.menus.createPopupMenu;d.menus.createPopupMenu=function(M,p,y){q.apply(this,arguments); | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
arguments),null!=this.mathEnabled&&this.mathEnabled!=this.ui.isMathEnabled()&&(this.ui.setMathEnabled(this.mathEnabled),this.mathEnabled=!this.mathEnabled),null!=this.shadowVisible&&this.shadowVisible!=this.ui.editor.graph.shadowVisible&&(this.ui.editor.graph.setShadowVisible(this.shadowVisible),this.shadowVisible=!this.shadowVisible)};Editor.prototype.useCanvasForExport=!1;try{var C=document.createElement("canvas"),K=new Image;K.onload=function(){try{C.getContext("2d").drawImage(K,0,0);var l=C.toDataURL("image/png");
Editor.prototype.useCanvasForExport=null!=l&&6<l.length}catch(z){}};K.src="data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1px" height="1px" version="1.1"><foreignObject pointer-events="all" width="1" height="1"><div xmlns="http://www.w3.org/1999/xhtml"></div></foreignObject></svg>')))}catch(l){}Editor.prototype.useCanvasForExport=!1})(); | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
"/dropbox";DropboxClient.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.client.authTokenRevoke().then(mxUtils.bind(this,function(){this.client.setAccessToken(null)}))};DropboxClient.prototype.updateUser=function(e,f,c){var k=!0,m=window.setTimeout(mxUtils.bind(this,function(){k=!1;f({code:App.ERROR_TIMEOUT})}),this.ui.timeout), | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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.loadFileSystemEntry=function(b,e,f){f=null!=f?f:mxUtils.bind(this,function(c){this.handleError(c)});try{b.getFile().then(mxUtils.bind(this,function(c){var k=new FileReader;k.onload=mxUtils.bind(this,function(m){try{if(null!=e){var u=m.target.result;"image/png"==c.type&&(u=this.extractGraphModelFromPng(u));e(new LocalFile(this,u,c.name,null,b,c))}else this.openFileHandle(m.target.result,c.name,c,!1,b)}catch(v){f(v)}});k.onerror=f;"image"!==c.type.substring(0,5)&&"application/pdf"!==c.type||
"image/svg"===c.type.substring(0,9)?k.readAsText(c):k.readAsDataURL(c)}),f)}catch(c){f(c)}}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
Editor.selectFilename=function(a){var b=a.value.lastIndexOf(".");if(0<b){var e=a.value.substring(b+1);"drawio"!=e&&0<=mxUtils.indexOf(["png","svg","html","xml","pdf"],e)&&(e=a.value.lastIndexOf(".drawio.",b),0<e&&(b=e))}b=0<b?b:a.value.length;Editor.selectSubstring(a,0,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 |
EditorUi.lightboxHost+"/?client=1"+(null!=g?"&page="+g:"")+(t?"&edit=_blank":"")+(x?"&layers=1":"")+"');}}})(this);"),N+="cursor:pointer;"),d&&(d=parseInt(G.getAttribute("width")),t=parseInt(G.getAttribute("height")),G.setAttribute("viewBox","-0.5 -0.5 "+d+" "+t),N+="max-width:100%;max-height:"+t+"px;",G.removeAttribute("height")),""!=N&&G.setAttribute("style",N),this.editor.addFontCss(G),this.editor.graph.mathEnabled&&this.editor.addMathCss(G),B(mxUtils.getXml(G))};EditorUi.prototype.timeSince=function(d){d=
Math.floor((new Date-d)/1E3);var g=Math.floor(d/31536E3);if(1<g)return g+" "+mxResources.get("years");g=Math.floor(d/2592E3);if(1<g)return g+" "+mxResources.get("months");g=Math.floor(d/86400);if(1<g)return g+" "+mxResources.get("days");g=Math.floor(d/3600);if(1<g)return g+" "+mxResources.get("hours");g=Math.floor(d/60);return 1<g?g+" "+mxResources.get("minutes"):1==g?g+" "+mxResources.get("minute"):null};EditorUi.prototype.decodeNodeIntoGraph=function(d,g){if(null!=d){var n=null;if("diagram"==d.nodeName)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 |
OneDriveFile.prototype.saveFile=function(b,e,f,c,k,m){if(!this.isEditable())null!=f&&f();else if(!this.savingFile)if(this.getTitle()==b){var u=mxUtils.bind(this,function(){try{this.savingFileTime=new Date;this.setShadowModified(!1);this.savingFile=!0;var v=m||this.constructor!=OneDriveFile||"manual"!=DrawioFile.SYNC&&"auto"!=DrawioFile.SYNC?null:this.getCurrentEtag(),E=this.meta;null!=this.sync&&this.sync.fileSaving();this.ui.oneDrive.saveFile(this,mxUtils.bind(this,function(D,A){this.setModified(this.getShadowModified());
this.savingFile=!1;this.meta=D;this.fileSaved(A,E,mxUtils.bind(this,function(){this.contentChanged();null!=f&&f()}),c)}),mxUtils.bind(this,function(D,A){try{this.savingFile=!1,this.isConflict(A)?(this.inConflictState=!0,null!=this.sync?(this.savingFile=!0,this.sync.fileConflict(null,mxUtils.bind(this,function(){window.setTimeout(mxUtils.bind(this,function(){this.updateFileData();u()}),100+500*Math.random())}),mxUtils.bind(this,function(){this.savingFile=!1;null!=c&&c()}))):null!=c&&c()):null!=c&&
c(D)}catch(L){if(this.savingFile=!1,null!=c)c(L);else throw L;}}),v)}catch(D){if(this.savingFile=!1,null!=c)c(D);else throw D;}});u()}else this.savingFileTime=new Date,this.setShadowModified(!1),this.savingFile=!0,this.ui.oneDrive.insertFile(b,this.getData(),mxUtils.bind(this,function(v){this.setModified(this.getShadowModified());this.savingFile=!1;null!=f&&f();this.ui.fileLoaded(v)}),mxUtils.bind(this,function(){this.savingFile=!1;null!=c&&c()}))}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
c="data:image/jpeg;base64,"+c:/\.gif$/i.test(f)?c="data:image/gif;base64,"+c:/\.pdf$/i.test(f)?c="data:application/pdf;base64,"+c:/\.png$/i.test(f)?(e=this.ui.extractGraphModelFromPng(c),c=null!=e&&0<e.length?e:"data:image/png;base64,"+c):c=Base64.decode(c));return c};GitLabClient.prototype.createGitLabFile=function(e,f,c,k,m,u){var v=DRAWIO_GITLAB_URL+"/";e={org:e,repo:f,ref:c,name:k.file_name,path:k.file_path,html_url:v+e+"/"+f+"/blob/"+c+"/"+k.file_path,download_url:v+e+"/"+f+"/raw/"+c+"/"+k.file_path+
"?inline=false",last_commit_id:k.last_commit_id,refPos:u};k=this.getFileContent(k);return m?new GitLabLibrary(this.ui,k,e):new GitLabFile(this.ui,k,e)};GitLabClient.prototype.insertFile=function(e,f,c,k,m,u,v){m=null!=m?m:!1;u=u.split("/");this.getRefIndex(u,!0,mxUtils.bind(this,function(E,D){var A=Math.max(D-1,0),L=E.slice(0,A).join("/"),H=E[A],d=E[D];path=E.slice(D+1,E.length).join("/");0<path.length&&(path+="/");path+=e;this.checkExists(L+"/"+H+"/"+d+"/"+path,!0,mxUtils.bind(this,function(g,n){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 |
z?z.checked:null,y.value,"embedFonts"==V.value,"lblToSvg"==V.value)}),null,n,q);this.showDialog(n.container,340,R,!0,!0,null,null,null,null,!0);Q.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?Q.select():document.execCommand("selectAll",!1,null)};EditorUi.prototype.showEmbedImageDialog=function(d,g,n,q,t){var x=document.createElement("div");x.style.whiteSpace="nowrap";var B=this.editor.graph;if(null!=g){var G=document.createElement("h3");mxUtils.write(G,g);G.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:4px";
x.appendChild(G)}var I=this.addCheckbox(x,mxResources.get("fit"),!0),F=this.addCheckbox(x,mxResources.get("shadow"),B.shadowVisible&&q,!q),U=this.addCheckbox(x,n),R=this.addCheckbox(x,mxResources.get("lightbox"),!0),N=this.addEditButton(x,R),Q=N.getEditInput(),P=1<B.model.getChildCount(B.model.getRoot()),M=this.addCheckbox(x,mxResources.get("layers"),P,!P);M.style.marginLeft=Q.style.marginLeft;M.style.marginBottom="12px";M.style.marginTop="8px";mxEvent.addListener(R,"change",function(){R.checked?
(P&&M.removeAttribute("disabled"),Q.removeAttribute("disabled")):(M.setAttribute("disabled","disabled"),Q.setAttribute("disabled","disabled"));Q.checked&&R.checked?N.getEditSelect().removeAttribute("disabled"):N.getEditSelect().setAttribute("disabled","disabled")});g=new CustomDialog(this,x,mxUtils.bind(this,function(){d(I.checked,F.checked,U.checked,R.checked,N.getLink(),M.checked)}),null,mxResources.get("embed"),t);this.showDialog(g.container,280,300,!0,!0)};EditorUi.prototype.createEmbedImage= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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.parentNode.parentNode.getAttribute("role")?(this.sharingFailed=!0,D.click(),c(),u=!0):"DIV"==D.nodeName&&"shr-q-shr-r-shr-xb"==D.className&&(u=!0)}u&&(this.sharingObserver.disconnect(),this.sharingObserver=null)})),this.sharingObserver.observe(document,{childList:!0,subtree:!0}))}catch(m){this.ui.handleError(m)}}))};DriveClient.prototype.clearPersistentToken=function(){var f=JSON.parse(this.getPersistentToken(!0))||{};delete f.current;delete f[this.userId];for(var c in f){f.current={userId:c,expires:0};
break}DrawioClient.prototype.setPersistentToken.call(this,JSON.stringify(f))};DriveClient.prototype.setPersistentToken=function(f,c){var k=JSON.parse(this.getPersistentToken(!0))||{};f.userId=this.userId;k.current=f;k[this.userId]={user:this.user};DrawioClient.prototype.setPersistentToken.call(this,JSON.stringify(k),c)}})();DropboxFile=function(b,e,f){DrawioFile.call(this,b,e);this.stat=f};mxUtils.extend(DropboxFile,DrawioFile);DropboxFile.prototype.getId=function(){return this.stat.path_display.substring(1)};DropboxFile.prototype.getHash=function(){return"D"+encodeURIComponent(this.getId())};DropboxFile.prototype.getMode=function(){return App.MODE_DROPBOX};DropboxFile.prototype.isAutosaveOptional=function(){return!0};DropboxFile.prototype.getTitle=function(){return this.stat.name}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
N=parseFloat(p[0].getAttribute("height")))}n(I.result,R,N)}catch(y){q(y)}};U.src=I.result};I.onerror=function(F){q(F)}}else q(G)};B.onerror=function(G){q(G)};B.send()};EditorUi.prototype.insertAsPreText=function(d,g,n){var q=this.editor.graph,t=null;q.getModel().beginUpdate();try{t=q.insertVertex(null,null,"<pre>"+d+"</pre>",g,n,1,1,"text;html=1;align=left;verticalAlign=top;"),q.updateCellSize(t,!0)}finally{q.getModel().endUpdate()}return t};EditorUi.prototype.insertTextAt=function(d,g,n,q,t,x,B, | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
function(){return this.user};DriveClient.prototype.getUsersList=function(){var f=[],c=JSON.parse(this.getPersistentToken(!0)),k=null;if(null!=c){null!=c.current&&(k=c.current.userId,f.push(c[k].user),f[0].isCurrent=!0);for(var m in c)"current"!=m&&m!=k&&f.push(c[m].user)}return f};DriveClient.prototype.logout=function(){this.ui.editor.loadUrl(this.redirectUri+"?doLogout=1&userId="+this.userId+"&state="+encodeURIComponent("cId="+this.clientId+"&domain="+window.location.host));this.clearPersistentToken(); | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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 |
"FONT"==l[z].nodeName?l[z].getAttribute("face"):l[z].style.fontFamily;null!=O&&Graph.addFont(O,J)}}};Graph.processFontStyle=function(l){if(null!=l){var z=mxUtils.getValue(l,"fontSource",null);if(null!=z){var J=mxUtils.getValue(l,mxConstants.STYLE_FONTFAMILY,null);null!=J&&Graph.addFont(J,decodeURIComponent(z))}}return l};Graph.prototype.defaultThemeName="default-style2";Graph.prototype.lastPasteXml=null;Graph.prototype.pasteCounter=0;Graph.prototype.defaultScrollbars="0"!=urlParams.sb;Graph.prototype.defaultPageVisible= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
(ka?"geTempDlgRadioBtnLarge":"geTempDlgRadioBtnSmall");C.querySelector("."+fa).src="/images/"+ma+"-sel.svg";C.querySelector("."+oa).src="/images/"+ia+".svg";return!0}function x(ja,fa,ma,na){function oa(ua,Ka){null==ka?(ua=/^https?:\/\//.test(ua)&&!b.editor.isCorsEnabledForUrl(ua)?PROXY_URL+"?url="+encodeURIComponent(ua):TEMPLATE_PATH+"/"+ua,mxUtils.get(ua,mxUtils.bind(this,function(Ja){200<=Ja.getStatus()&&299>=Ja.getStatus()&&(ka=Ja.getText());Ka(ka)}))):Ka(ka)}function ia(ua,Ka,Ja){if(null!=ua&&
mxUtils.isAncestorNode(document.body,fa)&&(ua=mxUtils.parseXml(ua),ua=Editor.extractGraphModel(ua.documentElement,!0),null!=ua)){"mxfile"==ua.nodeName&&(ua=Editor.parseDiagramNode(ua.getElementsByTagName("diagram")[0]));var Aa=new mxCodec(ua.ownerDocument),La=new mxGraphModel;Aa.decode(ua,La);ua=La.root.getChildAt(0).children||[];b.sidebar.createTooltip(fa,ua,Math.min((window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)-80,1E3),Math.min((window.innerHeight||document.documentElement.clientHeight||
document.body.clientHeight)-80,800),null!=ja.title?mxResources.get(ja.title,null,ja.title):null,!0,new mxPoint(Ka,Ja),!0,null,!0);var Da=document.createElement("div");Da.className="geTempDlgDialogMask";C.appendChild(Da);var wa=b.sidebar.hideTooltip;b.sidebar.hideTooltip=function(){Da&&(C.removeChild(Da),Da=null,wa.apply(this,arguments),b.sidebar.hideTooltip=wa)};mxEvent.addListener(Da,"click",function(){b.sidebar.hideTooltip()})}}var ka=null;if(pa||b.sidebar.currentElt==fa)b.sidebar.hideTooltip(); | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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)),
{to:"string"})};Editor.extractGraphModel=function(l,z,J){if(null!=l&&"undefined"!==typeof pako){var O=l.ownerDocument.getElementsByTagName("div"),T=[];if(null!=O&&0<O.length)for(var W=0;W<O.length;W++)if("mxgraph"==O[W].getAttribute("class")){T.push(O[W]);break}0<T.length&&(O=T[0].getAttribute("data-mxgraph"),null!=O?(T=JSON.parse(O),null!=T&&null!=T.xml&&(l=mxUtils.parseXml(T.xml),l=l.documentElement)):(T=T[0].getElementsByTagName("div"),0<T.length&&(O=mxUtils.getTextContent(T[0]),O=Graph.decompress(O, | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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])),g.model.execute(new ChangePage(this,this.currentPage,this.currentPage,0))),this.editor.setGraphXml(d),null!=this.currentPage&&(this.currentPage.root=this.editor.graph.model.root,g.model.execute(new ChangePage(this,this.currentPage,this.currentPage,0)));if(null!=n)for(t=0;t<n.length;t++)g.model.execute(new ChangePage(this,n[t],null))}finally{g.model.endUpdate()}}};EditorUi.prototype.createFileData=function(d,g,n,q,t,x,B,G,I,F,U){g=null!=g?g:this.editor.graph;t=null!=t?t:!1;I=null!=I?I:!0;U=null!= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
GitHubClient.prototype.maxFileSize=5E7;GitHubClient.prototype.authToken="token";GitHubClient.prototype.setToken=function(e){b=e};GitHubClient.prototype.updateUser=function(e,f,c){var k=!0,m=window.setTimeout(mxUtils.bind(this,function(){k=!1;f({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout")})}),this.ui.timeout),u=new mxXmlRequest(this.baseUrl+"/user",null,"GET"),v=this.authToken+" "+b;u.setRequestHeaders=function(E,D){E.setRequestHeader("Authorization",v)};u.send(mxUtils.bind(this,function(){window.clearTimeout(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 |
DriveFile.prototype.saveFile=function(b,e,f,c,k,m){try{this.isEditable()?this.savingFile||(this.savingFileTime=new Date,this.setShadowModified(!1),this.savingFile=!0,this.createSecret(mxUtils.bind(this,function(u,v){var E=mxUtils.bind(this,function(D,A){try{var L=this.desc;null!=this.sync&&this.sync.fileSaving();this.ui.drive.saveFile(this,A,mxUtils.bind(this,function(H,d,g,n){try{this.savingFile=!1,0!=H?(this.setModified(this.getShadowModified()),e&&(this.lastAutosaveRevision=(new Date).getTime()),
this.autosaveDelay=Math.round(Math.min(1E4,Math.max(DriveFile.prototype.autosaveDelay,this.saveDelay))),this.desc=H,null==v&&Editor.enableRealtimeCache?null!=f&&f(H):this.fileSaved(d,L,mxUtils.bind(this,function(){this.contentChanged();null!=f&&f(H)}),c,v,g,n)):null!=c&&c(H)}catch(q){if(this.savingFile=!1,null!=c)c(q);else throw q;}}),mxUtils.bind(this,function(H,d){try{this.savingFile=!1,this.isConflict(H)?(this.inConflictState=!0,null!=this.sync?(this.savingFile=!0,this.sync.fileConflict(d,mxUtils.bind(this,
function(){window.setTimeout(mxUtils.bind(this,function(){this.updateFileData();this.setShadowModified(!1);E(D,!0)}),100+500*Math.random())}),mxUtils.bind(this,function(){this.savingFile=!1;null!=c&&c()}))):null!=c&&c()):null!=c&&c(H)}catch(g){if(this.savingFile=!1,null!=c)c(g);else throw g;}}),k,k,D,null,u)}catch(H){if(this.savingFile=!1,null!=c)c(H);else throw H;}});E(m,e)}))):null!=f&&f()}catch(u){if(null!=c)c(u);else throw u;}}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
mxAsyncCanvas.prototype.setFontFamily=function(b){this.state.fontFamily=b};mxAsyncCanvas.prototype.setFontStyle=function(b){this.state.fontStyle=b};mxAsyncCanvas.prototype.rect=function(b,e,f,c){};mxAsyncCanvas.prototype.roundrect=function(b,e,f,c,k,m){};mxAsyncCanvas.prototype.ellipse=function(b,e,f,c){};mxAsyncCanvas.prototype.rewriteImageSource=function(b){if("http://"==b.substring(0,7)||"https://"==b.substring(0,8))b="/proxy?url="+encodeURIComponent(b);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 |
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); | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
JSON.stringify(c)+"\r\n---------314159265358979323846\r\nContent-Type: application/octect-stream\r\nContent-Transfer-Encoding: base64\r\n\r\n"+(null!=k?u?k:!window.btoa||mxClient.IS_IE||mxClient.IS_IE11?Base64.encode(k):Graph.base64EncodeUnicode(k):"")+"\r\n---------314159265358979323846--"};m||(f.fullUrl+="&newRevision=false");E&&(f.fullUrl+="&pinned=true");return f};DriveClient.prototype.createLinkPicker=function(){var f=e.linkPicker;if(null==f||e.linkPickerToken!=b){e.linkPickerToken=b;f=(new google.picker.DocsView(google.picker.ViewId.FOLDERS)).setParent("root").setIncludeFolders(!0).setSelectFolderEnabled(!0); | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
l.prototype.lineTo=function(W,V){this.passThrough?this.originalLineTo.apply(this.canvas,arguments):(this.addOp(this.lineOp,W,V),this.lastX=W,this.lastY=V)};l.prototype.moveTo=function(W,V){this.passThrough?this.originalMoveTo.apply(this.canvas,arguments):(this.addOp(this.moveOp,W,V),this.lastX=W,this.lastY=V,this.firstX=W,this.firstY=V)};l.prototype.close=function(){this.passThrough?this.originalClose.apply(this.canvas,arguments):this.addOp(this.closeOp)};l.prototype.quadTo=function(W,V,S,X){this.passThrough? | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
function(P){this.spinner.stop();try{this.saveCanvas(P,t?this.getFileData(!0,null,null,null,n,G):null,I,null==this.pages||0==this.pages.length,U)}catch(M){this.handleError(M)}}),null,this.thumbImageCache,null,mxUtils.bind(this,function(P){this.spinner.stop();this.handleError(P)}),null,n,d||1,g,q,null,null,x,B,F,R,N)}catch(P){this.spinner.stop(),this.handleError(P)}}};EditorUi.prototype.isCorsEnabledForUrl=function(d){return this.editor.isCorsEnabledForUrl(d)};EditorUi.prototype.importXml=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 |
null;EditorUi.prototype.shareCursorPosition=!0;EditorUi.prototype.showRemoteCursors=!0;(function(){EditorUi.prototype.useCanvasForExport=!1;EditorUi.prototype.jpgSupported=!1;try{var d=document.createElement("canvas");EditorUi.prototype.canvasSupported=!(!d.getContext||!d.getContext("2d"))}catch(t){}try{var g=document.createElement("canvas"),n=new Image;n.onload=function(){try{g.getContext("2d").drawImage(n,0,0);var t=g.toDataURL("image/png");EditorUi.prototype.useCanvasForExport=null!=t&&6<t.length}catch(x){}}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
this.isOffline(!0)?window.setTimeout(B,0):(this.loadingMermaid=!0,"1"==urlParams.dev?("1"==urlParams.mermaidToDrawioTest&&mxMermaidToDrawio.addListener(mxUtils.bind(this,function(G){this.importXml(G,null,null,null,null,null,!0)})),mxscript("js/mermaid/mermaid.min.js",B,null,null,null,x)):mxscript("js/extensions.min.js",B,null,null,null,x))};EditorUi.prototype.generatePlantUmlImage=function(d,g,n,q){function t(G,I,F){c1=G>>2;c2=(G&3)<<4|I>>4;c3=(I&15)<<2|F>>6;c4=F&63;r="";r+=x(c1&63);r+=x(c2&63);r+=
x(c3&63);return r+=x(c4&63)}function x(G){if(10>G)return String.fromCharCode(48+G);G-=10;if(26>G)return String.fromCharCode(65+G);G-=26;if(26>G)return String.fromCharCode(97+G);G-=26;return 0==G?"-":1==G?"_":"?"}var B=new XMLHttpRequest;B.open("GET",("txt"==g?PLANT_URL+"/txt/":"png"==g?PLANT_URL+"/png/":PLANT_URL+"/svg/")+function(G){r="";for(i=0;i<G.length;i+=3)r=i+2==G.length?r+t(G.charCodeAt(i),G.charCodeAt(i+1),0):i+1==G.length?r+t(G.charCodeAt(i),0,0):r+t(G.charCodeAt(i),G.charCodeAt(i+1),G.charCodeAt(i+ | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
y,"image(s) from",K.length,"cell(s): ",[K,C])}finally{k.model.endUpdate()}}));c.actions.addAction("testInspect",mxUtils.bind(this,function(){console.log(c,k.getModel())}));c.actions.addAction("testXmlImageExport",mxUtils.bind(this,function(){var p=new mxImageExport,y=k.getGraphBounds(),C=k.view.scale,K=mxUtils.createXmlDocument(),l=K.createElement("output");K.appendChild(l);K=new mxXmlCanvas2D(l);K.translate(Math.floor((1-y.x)/C),Math.floor((1-y.y)/C));K.scale(1/C);var z=0,J=K.save;K.save=function(){z++;
J.apply(this,arguments)};var O=K.restore;K.restore=function(){z--;O.apply(this,arguments)};var T=p.drawShape;p.drawShape=function(W){mxLog.debug("entering shape",W,z);T.apply(this,arguments);mxLog.debug("leaving shape",W,z)};p.drawState(k.getView().getState(k.model.root),K);mxLog.show();mxLog.debug(mxUtils.getXml(l));mxLog.debug("stateCounter",z)}));c.actions.addAction("testShowConsole",function(){mxLog.isVisible()?mxLog.window.fit():mxLog.show();mxLog.window.div.style.zIndex=mxPopupMenu.prototype.zIndex- | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
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 |
message:this.getErrorMessage(e,mxResources.get("error")+" "+e.getStatus())})}),mxUtils.bind(this,function(H){window.clearTimeout(A);D&&c(H)}))}),v=mxUtils.bind(this,function(E){null==this.user?this.updateUser(function(){v(!0)},c,E):u(E)});null==b?this.authenticate(function(){v(!0)},c):v(!1)};GitHubClient.prototype.getLibrary=function(e,f,c){this.getFile(e,f,c,!0)};GitHubClient.prototype.getSha=function(e,f,c,k,m,u,v){var E="&t="+(new Date).getTime();e=new mxXmlRequest(this.baseUrl+"/repos/"+e+"/"+ | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
null,J),0<O.length&&(l=mxUtils.parseXml(O),l=l.documentElement))))}if(null!=l&&"svg"==l.nodeName)if(O=l.getAttribute("content"),null!=O&&"<"!=O.charAt(0)&&"%"!=O.charAt(0)&&(O=unescape(window.atob?atob(O):Base64.decode(cont,O))),null!=O&&"%"==O.charAt(0)&&(O=decodeURIComponent(O)),null!=O&&0<O.length)l=mxUtils.parseXml(O).documentElement;else throw{message:mxResources.get("notADiagramFile")};null==l||z||(T=null,"diagram"==l.nodeName?T=l:"mxfile"==l.nodeName&&(O=l.getElementsByTagName("diagram"),0<
O.length&&(T=O[Math.max(0,Math.min(O.length-1,urlParams.page||0))])),null!=T&&(l=Editor.parseDiagramNode(T,J)));null==l||"mxGraphModel"==l.nodeName||z&&"mxfile"==l.nodeName||(l=null);return l};Editor.parseDiagramNode=function(l,z){var J=mxUtils.trim(mxUtils.getTextContent(l)),O=null;0<J.length?(l=Graph.decompress(J,null,z),null!=l&&0<l.length&&(O=mxUtils.parseXml(l).documentElement)):(l=mxUtils.getChildNodes(l),0<l.length&&(O=mxUtils.createXmlDocument(),O.appendChild(O.importNode(l[0],!0)),O=O.documentElement)); | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
this.updateUser(this.emptyFn,this.emptyFn,!0)});null==b||6E4>this.tokenExpiresOn-Date.now()?this.authenticate(mxUtils.bind(this,function(){this.inlinePicker?k():this.ui.showDialog((new BtnDialog(this.ui,this,mxResources.get("open"),mxUtils.bind(this,function(){this.ui.hideDialog();k()}))).container,300,140,!0,!0)}),c):k()};OneDriveClient.prototype.logout=function(){if(isLocalStorage){var e=localStorage.getItem("odpickerv7cache");null!=e&&'{"odsdkLoginHint":{'==e.substring(0,19)&&localStorage.removeItem("odpickerv7cache")}window.open(this.authUrl+
"/oauth2/v2.0/logout","logout","width=525,height=525,status=no,resizable=yes,toolbar=no,menubar=no,scrollbars=yes");this.ui.editor.loadUrl(this.redirectUri+"?doLogout=1&state="+encodeURIComponent("cId="+this.clientId+"&domain="+window.location.host));this.clearPersistentToken();this.setUser(null);b=null}})();GitHubFile=function(b,e,f){DrawioFile.call(this,b,e);this.meta=f;this.peer=this.ui.gitHub};mxUtils.extend(GitHubFile,DrawioFile);GitHubFile.prototype.share=function(){this.ui.editor.graph.openLink("https://github.com/"+encodeURIComponent(this.meta.org)+"/"+encodeURIComponent(this.meta.repo)+"/settings/access")}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
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(d,g){mxSettings.setUi(d);(g=this.doSetCurrentTheme(d)||g)||this.alert(mxResources.get("restartForChangeRequired"))};EditorUi.prototype.isDefaultTheme=function(d){return""==d||"dark"==d||"default"==d||"kennedy"==d||null==d};EditorUi.prototype.doSetCurrentTheme=function(d,g,n){function q(I){return"simple"==I||0==g&&"sketch"==I}g=null!=g?g:150;var t=Editor.currentTheme,x=q(t)&&this.isDefaultTheme(d)||this.isDefaultTheme(t)&&q(d),B=x&&"sketch"!=d&&"sketch"!=t;if(x&&!this.themeSwitching){Editor.currentTheme= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
var T=null;null!=O&&0<O.length&&(T=O[0].getAttribute("href"));for(var W=1;W<J.length;W++)if(O=J[W].indexOf(")"),0<O){var V=Editor.trimCssUrl(J[W].substring(0,O));this.graph.isRelativeUrl(V)&&(V=null!=T?T+V:window.location.protocol+"//"+window.location.hostname+("/"==V.charAt(0)?"":l)+V);z.push('url("'+V+'"'+J[W].substring(O))}else z.push(J[W])}else z=[l]}return null!=z?z.join(""):null};Editor.prototype.mapFontUrl=function(l,z,J){/^https?:\/\//.test(z)&&!this.isCorsEnabledForUrl(z)&&(z=PROXY_URL+"?url="+
encodeURIComponent(z));J(l,z)};Editor.prototype.embedCssFonts=function(l,z){var J=l.split("url("),O=0;null==this.cachedFonts&&(this.cachedFonts={});var T=mxUtils.bind(this,function(){if(0==O){for(var X=[J[0]],Z=1;Z<J.length;Z++){var Y=J[Z].indexOf(")");X.push('url("');X.push(this.cachedFonts[Editor.trimCssUrl(J[Z].substring(0,Y))]);X.push('"'+J[Z].substring(Y))}z(X.join(""))}});if(0<J.length){for(l=1;l<J.length;l++){var W=J[l].indexOf(")"),V=null,S=J[l].indexOf("format(",W);0<S&&(V=Editor.trimCssUrl(J[l].substring(S+ | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
u=this.client.usersGetCurrentAccount();u.then(mxUtils.bind(this,function(v){window.clearTimeout(m);k&&(this.setUser(new DrawioUser(v.account_id,v.email,v.name.display_name)),e())}));u["catch"](mxUtils.bind(this,function(v){window.clearTimeout(m);k&&(null==v||401!==v.status||c?f({message:mxResources.get("accessDenied")}):(this.setUser(null),this.client.setAccessToken(null),b=null,this.authenticate(mxUtils.bind(this,function(){this.updateUser(e,f,!0)}),f)))}))};DropboxClient.prototype.authenticate= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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.currentTheme&&"min"!=Editor.currentTheme||this.addMenuItems(p,["-","outline","fullscreen"],y)});A=this.get("layout");var n=A.funct;A.funct=function(p,y){n.apply(this,arguments);p.addItem(mxResources.get("orgChart"),null,function(){var C=null,K=20,l=20,z=function(){"undefined"!==typeof mxOrgChartLayout&&null!=C&&c.tryAndHandle(mxUtils.bind(this,function(){var Z=c.editor.graph,Y=new mxOrgChartLayout(Z,C,K,l),aa=Z.getDefaultParent();1<Z.model.getChildCount(Z.getSelectionCell())&&(aa=Z.getSelectionCell());
Y.execute(aa)}))},J=document.createElement("div"),O=document.createElement("div");O.style.marginTop="6px";O.style.display="inline-block";O.style.width="140px";mxUtils.write(O,mxResources.get("orgChartType")+": ");J.appendChild(O);var T=document.createElement("select");T.style.width="200px";T.style.boxSizing="border-box";O=[mxResources.get("linear"),mxResources.get("hanger2"),mxResources.get("hanger4"),mxResources.get("fishbone1"),mxResources.get("fishbone2"),mxResources.get("1ColumnLeft"),mxResources.get("1ColumnRight"), | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
"metaEdit","0")?d.showDataDialog(C):n.apply(this,arguments)}}catch(J){d.handleError(J)}};g.getLinkTitle=function(C){return d.getLinkTitle(C)};g.customLinkClicked=function(C){var K=!1;try{d.handleCustomLink(C),K=!0}catch(l){d.handleError(l)}return K};var q=g.parseBackgroundImage;g.parseBackgroundImage=function(C){var K=q.apply(this,arguments);null!=K&&null!=K.src&&Graph.isPageLink(K.src)&&(K={originalSrc:K.src});return K};var t=g.setBackgroundImage;g.setBackgroundImage=function(C){null!=C&&null!=C.originalSrc&& | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
x&&t.apply(this,arguments)});n=n||{};n.callbackId=this.remoteInvokeCallbacks.length;this.remoteInvokeCallbacks.push({callback:G,error:I});d=JSON.stringify({event:"remoteInvoke",funtionName:d,functionArgs:g,msgMarkers:n});null!=this.remoteWin?this.remoteWin.postMessage(d,"*"):this.remoteInvokeQueue.push(d)};EditorUi.prototype.handleRemoteInvoke=function(d,g){var n=mxUtils.bind(this,function(F,U){var R={event:"remoteInvokeResponse",msgMarkers:d.msgMarkers};null!=U?R.error={errResp:U}:null!=F&&(R.resp=
F);this.remoteWin.postMessage(JSON.stringify(R),"*")});try{var q=d.funtionName,t=this.remoteInvokableFns[q];if(null!=t&&"function"===typeof this[q]){if(t.allowedDomains){for(var x=!1,B=0;B<t.allowedDomains.length;B++)if(g=="https://"+t.allowedDomains[B]){x=!0;break}if(!x){n(null,"Invalid Call: "+q+" is not allowed.");return}}var G=d.functionArgs;Array.isArray(G)||(G=[]);if(t.isAsync)G.push(function(){n(Array.prototype.slice.apply(arguments))}),G.push(function(F){n(null,F||"Unkown Error")}),this[q].apply(this,
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"}), | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
function(k){this.savingFile=!1;null!=c&&c(k)})):this.ui.pickFolder(App.MODE_TRELLO,mxUtils.bind(this,function(k){this.ui.trello.insertFile(b,this.getData(),mxUtils.bind(this,function(m){this.savingFile=!1;null!=f&&f();this.ui.fileLoaded(m);0<this.saveNeededCounter&&(this.saveNeededCounter--,this.saveFile(b,e,f,c))}),mxUtils.bind(this,function(){this.savingFile=!1;null!=c&&c()}),!1,k)}))):null!=f&&f()};TrelloLibrary=function(b,e,f){TrelloFile.call(this,b,e,f)};mxUtils.extend(TrelloLibrary,TrelloFile);TrelloLibrary.prototype.doSave=function(b,e,f){this.saveFile(b,!1,e,f)};TrelloLibrary.prototype.open=function(){};TrelloClient=function(b){DrawioClient.call(this,b,"tauth");Trello.setKey(this.key)};mxUtils.extend(TrelloClient,DrawioClient);TrelloClient.prototype.key="e89d109082298ce91f6576f82f458551";TrelloClient.prototype.baseUrl="https://api.trello.com/1/";TrelloClient.prototype.SEPARATOR="|$|";TrelloClient.prototype.maxFileSize=1E7;TrelloClient.prototype.extension=".xml"; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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);ImageDialog.filePicked=function(M){M.action==google.picker.Action.PICKED&&null!=M.docs[0].thumbnails&&(M=M.docs[0].thumbnails[M.docs[0].thumbnails.length-1],null!=M&&(H.value=M.url,B()));H.focus()};v.appendChild(L);v.appendChild(d);mxUtils.br(v);mxUtils.br(v);D?(L.setAttribute("checked","checked"),L.checked=!0):(A.setAttribute("checked","checked"),A.checked=!0);!E&&L.checked&&(mxUtils.write(q,mxResources.get("pageNotFound")),q.setAttribute("disabled","disabled"),q.setAttribute("selected","selected"), | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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 |
"260px";g.style.textAlign="center";g.style.fontSize="22px";g.style.color="#a0c3ff";mxUtils.write(g,mxResources.get("dragImagesHere"));f.appendChild(g);var n={},q=null,t=null,x=null;L=function(U){"true"!=mxEvent.getSource(U).getAttribute("contentEditable")&&null!=x&&(x(),x=null,mxEvent.consume(U))};mxEvent.addListener(d,"mousedown",L);mxEvent.addListener(d,"pointerdown",L);mxEvent.addListener(d,"touchstart",L);var B=new mxUrlConverter,G=!1;if(null!=c)for(L=0;L<c.length;L++)e=c[L],v(e.data,null,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 |
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 |
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 |
mxUtils.getTextContent(Y[Z]);W=b.stringToCells(Graph.decompress(z));var aa=b.editor.graph.getBoundingBoxFromGeometry(W);v(null,null,0,0,0,0,{xml:z,w:aa.width,h:aa.height})}P=!0}}catch(ca){null!=window.console&&console.log("Error in library dialog: "+ca)}P||(b.spinner.stop(),b.handleError({message:mxResources.get("errorLoadingFile")}))}}catch(ca){null!=window.console&&console.log("Error in library dialog: "+ca)}return null}function E(U){U.dataTransfer.dropEffect=null!=q?"move":"copy";U.stopPropagation(); | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
y.init()}else{var C=function(K){return{id:K.id,isExt:!0,url:K.downloadUrl,title:K.title,imgUrl:K.thumbnailLink,changedBy:K.lastModifyingUserName,lastModifiedOn:K.modifiedDate}};p=new TemplatesDialog(c,function(K,l,z){var J=z.libs,O=z.clibs;c.pickFolder(c.mode,function(T){c.createFile(l,K,null!=J&&0<J.length?J:null,null,function(){c.hideDialog()},null,T,null,null!=O&&0<O.length?O:null)},null==c.stateArg||null==c.stateArg.folderId)},null,null,null,"user",function(K,l,z){var J=new Date;J.setDate(J.getDate()- | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
var CommentsWindow=function(b,e,f,c,k,m){function u(){for(var N=x.getElementsByTagName("div"),Q=0,P=0;P<N.length;P++)"none"!=N[P].style.display&&N[P].parentNode==x&&Q++;B.style.display=0==Q?"block":"none"}function v(N,Q,P,M){function p(){Q.removeChild(K);Q.removeChild(l);C.style.display="block";y.style.display="block"}n={div:Q,comment:N,saveCallback:P,deleteOnCancel:M};var y=Q.querySelector(".geCommentTxt"),C=Q.querySelector(".geCommentActionsList"),K=document.createElement("textarea");K.className= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
l[1].geometry.width)/2:(T.x+T.width)/V-W.x+-z.x+10,l[1].geometry.y-=l[1].geometry.height+z.y+40):(l[1].geometry.x=K==mxConstants.DIRECTION_WEST?l[1].geometry.x-(l[1].geometry.width+z.x+40):l[1].geometry.x+(l[1].geometry.width-z.x+40),l[1].geometry.y=null==T?M.geometry.y+(M.geometry.height-l[1].geometry.height)/2:(T.y+T.height)/V-W.y+-z.y+10);return g.addCells(l,y)}finally{g.model.endUpdate()}}function L(M,p,y){M=g.getOutgoingTreeEdges(M);y=g.view.getState(y);var C=[];if(null!=y&&null!=M){for(var K=
0;K<M.length;K++){var l=g.view.getState(g.model.getTerminal(M[K],!1));null!=l&&(!p&&Math.min(l.x+l.width,y.x+y.width)>=Math.max(l.x,y.x)||p&&Math.min(l.y+l.height,y.y+y.height)>=Math.max(l.y,y.y))&&C.push(l)}C.sort(function(z,J){return p?z.x+z.width-J.x-J.width:z.y+z.height-J.y-J.height})}return C}function H(M,p){var y=v(M),C=p==mxConstants.DIRECTION_EAST||p==mxConstants.DIRECTION_WEST;(y==mxConstants.DIRECTION_EAST||y==mxConstants.DIRECTION_WEST)==C&&y!=p?d.actions.get("selectParent").funct():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 |
1),"image/png",!0);t.apply(this,arguments)}))}),null,this.thumbImageCache,null,mxUtils.bind(this,function(G){B.stop();null!=this.exportDialog&&null!=this.exportDialog.parentNode&&(this.exportDialog.parentNode.removeChild(this.exportDialog),this.exportDialog=null);this.handleError(G)}),null,null,null,null,null,null,null,Editor.defaultBorder)}mxEvent.consume(q)}),Editor.cameraImage,mxResources.get("export"))}};EditorUi.prototype.saveData=function(d,g,n,q,t){this.isLocalFileSave()?this.saveLocalFile(n,
d,q,t,g):this.saveRequest(d,g,mxUtils.bind(this,function(x,B){return this.createEchoRequest(n,x,q,t,g,B)}),n,t,q)};EditorUi.prototype.saveRequest=function(d,g,n,q,t,x,B){B=null!=B?B:!mxClient.IS_IOS||!navigator.standalone;var G=mxUtils.bind(this,function(U,R,N,Q){if("_blank"==R||null!=U&&0<U.length){var P=n("_blank"==R?null:U,R==App.MODE_DEVICE||"download"==R||null==R||"_blank"==R?"0":"1");null!=P&&(R==App.MODE_DEVICE||"download"==R||"_blank"==R?P.simulate(document,"_blank"):(N=mxUtils.bind(this, | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
this.getId()+"/comments"},mxUtils.bind(this,function(k){for(var m=[],u=0;u<k.items.length;u++){var v=f(this,k.items[u]);null!=v&&m.push(v)}b(m)}),e)};DriveFile.prototype.addComment=function(b,e,f){b={content:b.content};this.ui.drive.executeRequest({url:"/files/"+this.getId()+"/comments",method:"POST",params:b},mxUtils.bind(this,function(c){e(c.commentId)}),f)};DriveFile.prototype.canReplyToReplies=function(){return!1};DriveFile.prototype.canComment=function(){return this.desc.canComment}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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.insertFile=function(b,e,f,c,k){var m=mxUtils.bind(this,function(u){var v=function(){var E=new StorageFile(b,f,e);E.saveFile(e,!1,function(){c(E)},k)};u?b.confirm(mxResources.get("replaceIt",[e]),v,k):v()});StorageFile.getFileContent(b,e,function(u){m(null!=u)},function(){m(!1)})};StorageFile.getFileContent=function(b,e,f,c){b.getDatabaseItem(e,function(k){f(null!=k?k.data:null)},mxUtils.bind(this,function(){null==b.database?b.getLocalData(e,f):null!=c&&c()}),"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 |
"simple"==Editor.currentTheme&&this.addMenuItems(C,["-","exitGroup","home"],null,l)};var F=Menus.prototype.addPopupMenuEditItems;this.menus.addPopupMenuEditItems=function(C,K,l){if(d.editor.graph.isSelectionEmpty())F.apply(this,arguments),d.menus.addMenuItems(C,["copyAsImage"],null,l);else if(this.isShowCellEditItems()?this.addPopupDeleteItem(C,K,l):this.addPopupMenuArrangeItems(C,K,l),this.addMenuItems(C,"- cut copy copyAsImage duplicate -".split(" "),null,l),this.isShowCellEditItems()||this.addPopupDeleteItem(C,
K,l),this.addMenuItems(C,["lockUnlock","-"],null,l),!this.isShowStyleItems()){if(1==g.getSelectionCount()&&!g.isCellLocked(K)&&g.isCellEditable(K)&&(this.addSubmenu("editCell",C,null,mxResources.get("edit")),C.addSeparator(),g.getModel().isEdge(K))){this.addSubmenu("line",C);var z=g.getModel().getGeometry(K);null!=z&&null!=z.points&&0<z.points.length&&this.addMenuItems(C,["clearWaypoints"],null,l)}1==g.getSelectionCount()&&this.addMenuItems(C,["enterGroup"],null,l);z=d.getSelectionState();null!=z.mergeCell?
this.addMenuItem(C,"mergeCells"):(1<z.style.colspan||1<z.style.rowspan)&&this.addMenuItem(C,"unmergeCells")}};this.menus.isShowStyleItems=function(){return"simple"!=Editor.currentTheme&&"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme};this.menus.isShowHistoryItems=function(){return"simple"!=Editor.currentTheme};this.menus.isShowArrangeItems=this.menus.isShowStyleItems;this.menus.isShowCellEditItems=this.menus.isShowStyleItems}d.actions.get("print").funct=function(){d.showDialog((new PrintDialog(d)).container, | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
DrawioFileSync.prototype.cleanup=function(b,e,f){var c=this.cleanupThread;window.clearTimeout(this.cleanupThread);this.cleanupThread=null;if(this.isValidState()&&!this.file.inConflictState&&this.file.isRealtime()&&!this.file.isModified()){var k=[this.ui.diffPages(this.ui.pages,this.file.ownPages)];this.file.theirPages=this.ui.clonePages(this.file.ownPages);"1"==urlParams.test&&EditorUi.debug("DrawioFileSync.cleanup",[this],"thread",c,"patches",k,"checkFile",f,"checksum",this.ui.getHashValueForPages(this.ui.pages));
this.file.ignorePatches(k)||this.file.patch(k);f?this.file.getLatestVersion(mxUtils.bind(this,function(m){try{if(this.isValidState()&&!this.file.inConflictState&&this.file.isRealtime()){var u=m.getShadowPages();k=[this.ui.diffPages(this.ui.pages,u),this.ui.diffPages(u,this.file.ownPages)];this.file.ignorePatches(k)||this.file.patch(k);EditorUi.debug("DrawioFileSync.cleanup",[this],"newFile",m,"patches",k)}null!=b&&b()}catch(v){null!=e&&e(v)}}),e):(document.hidden||"1"!=urlParams.test||"1"!=urlParams.checksum||
this.testChecksum(),null!=b&&b())}else null!=b&&(b(),EditorUi.debug("DrawioFileSync.cleanup",[this],"checkFile",f,"modified",this.file.isModified()))}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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 |
"center";f=mxUtils.button(mxResources.get("cancel"),function(){b.spinner.stop();b.hideDialog()});f.className="geBtn";b.editor.cancelFirst&&v.appendChild(f);ImageDialog.filePicked=function(B){B.action==google.picker.Action.PICKED&&null!=B.docs[0].thumbnails&&(B=B.docs[0].thumbnails[B.docs[0].thumbnails.length-1],null!=B&&(L.value=B.url));L.focus()};if(Graph.fileSupport){if(null==b.imgDlgFileInputElt){var t=document.createElement("input");t.setAttribute("multiple","multiple");t.setAttribute("type", | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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.