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 |
---|---|---|---|---|---|---|---|
function(n){u.value=n.target.result};g.readAsText(d)}},!1));e.appendChild(v);mxEvent.addListener(v,"change",function(){var d=k();if(0==u.value.length||u.value==H)H=d,u.value=H});b.isOffline()||"mermaid"!=f&&"plantUml"!=f||(E=mxUtils.button(mxResources.get("help"),function(){b.openLink("mermaid"==f?"https://mermaid-js.github.io/mermaid/#/":"https://plantuml.com/")}),E.className="geBtn",e.appendChild(E));E=mxUtils.button(mxResources.get("close"),function(){u.value==H?b.hideDialog():b.confirm(mxResources.get("areYouSure"),
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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.loadFonts=function(d){EditorUi.logEvent("SHOULD NOT BE CALLED: loadFonts");return this.editor.loadFonts(d)};EditorUi.prototype.createSvgDataUri=function(d){EditorUi.logEvent("SHOULD NOT BE CALLED: createSvgDataUri");return Editor.createSvgDataUri(d)};EditorUi.prototype.embedCssFonts=function(d,g){EditorUi.logEvent("SHOULD NOT BE CALLED: embedCssFonts");return this.editor.embedCssFonts(d,g)};EditorUi.prototype.embedExtFonts=function(d){EditorUi.logEvent("SHOULD NOT BE CALLED: embedExtFonts");
return this.editor.embedExtFonts(d)};EditorUi.prototype.exportToCanvas=function(d,g,n,q,t,x,B,G,I,F,U,R,N,Q,P,M){EditorUi.logEvent("SHOULD NOT BE CALLED: exportToCanvas");return this.editor.exportToCanvas(d,g,n,q,t,x,B,G,I,F,U,R,N,Q,P,M)};EditorUi.prototype.createImageUrlConverter=function(){EditorUi.logEvent("SHOULD NOT BE CALLED: createImageUrlConverter");return this.editor.createImageUrlConverter()};EditorUi.prototype.convertImages=function(d,g,n,q){EditorUi.logEvent("SHOULD NOT BE CALLED: convertImages");
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
this.editor.addFontCss(d,this.editor.resolvedFontCss),this.editor.embedExtFonts(mxUtils.bind(this,function(n){try{null!=n&&this.editor.addFontCss(d,n),g(d)}catch(q){g(d)}}))}catch(n){g(d)}}))};EditorUi.prototype.exportImage=function(d,g,n,q,t,x,B,G,I,F,U,R,N){I=null!=I?I:"png";if(this.spinner.spin(document.body,mxResources.get("exporting"))){var Q=this.editor.graph.isSelectionEmpty();n=null!=n?n:Q;null==this.thumbImageCache&&(this.thumbImageCache={});try{this.editor.exportToCanvas(mxUtils.bind(this,
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
|
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
|
!1;m.connectionHandler.createEdgeState=function(n){n=m.createEdge(null,null,null,null,null,u);return new mxCellState(this.graph.view,n,this.graph.getCellStyle(n))};var v=m.getDefaultParent(),E=mxUtils.bind(this,function(n){var q=new mxCellOverlay(this.connectImage,"Add outgoing");q.cursor="hand";q.addListener(mxEvent.CLICK,function(t,x){m.connectionHandler.reset();m.clearSelection();var B=m.getCellGeometry(n),G;L(function(){G=m.insertVertex(v,null,"Entry",B.x,B.y,80,30,"rounded=1;");E(G);m.view.refresh(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
|
method:"POST",params:{title:c,properties:[{key:"channel",value:Editor.guid()}]}},k,m)};DriveClient.prototype.renameFile=function(f,c,k,m){null!=f&&null!=c&&this.executeRequest(this.createDriveRequest(f,{title:c}),k,m)};DriveClient.prototype.moveFile=function(f,c,k,m){null!=f&&null!=c&&this.executeRequest(this.createDriveRequest(f,{parents:[{kind:"drive#fileLink",id:c}]}),k,m)};DriveClient.prototype.createDriveRequest=function(f,c){return{url:"/files/"+f+"?uploadType=multipart&supportsAllDrives=true",
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
c):k(!1)};OneDriveClient.prototype.checkToken=function(e,f){null==b||null==this.tokenRefreshThread||6E4>this.tokenExpiresOn-Date.now()?this.authenticate(e,null!=f?f:this.emptyFn):e()};OneDriveClient.prototype.getItemRef=function(e){var f=e.split("/");return 1<f.length?{driveId:f[0],id:f[1]}:{id:e}};OneDriveClient.prototype.getItemURL=function(e,f){var c=e.split("/");return 1<c.length?(e=c[1],(f?"":this.baseUrl)+"/drives/"+c[0]+("root"==e?"/root":"/items/"+e)):(f?"":this.baseUrl)+"/me/drive/items/"+
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
var Ma=null,Oa=fa;null!=na?wa.setAttribute("title",mxResources.get(na,null,na)):null!=oa&&0<oa.length&&wa.setAttribute("title",oa);if(null!=ka){wa.style.display="inline-flex";wa.style.justifyContent="center";wa.style.alignItems="center";ia=document.createElement("img");ia.setAttribute("src",ka);ia.setAttribute("alt",oa);ia.style.maxWidth=Fa+"px";ia.style.maxHeight=pa+"px";J=ia;var Xa=ka.replace(".drawio.xml","").replace(".drawio","").replace(".xml","");wa.appendChild(ia);ia.onerror=function(){this.src!=
Xa?this.src=Xa:(this.src=Editor.errorImage,this.onerror=null)};mxEvent.addGestureListeners(wa,mxUtils.bind(this,function(Na){F(wa,null,null,fa,xa,Aa)}),null,null);mxEvent.addListener(wa,"dblclick",function(Na){I();mxEvent.consume(Na)})}else if(!Ja&&null!=fa&&0<fa.length){var Sa=function(Na){K.setAttribute("disabled","disabled");wa.style.backgroundColor="transparent";wa.style.border="1px solid transparent";C.spin(ha);La(fa,function(Ya,Wa){C.stop();null!=Ya&&(F(wa,Ya,ma,null,null,Aa,Wa),Na&&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
|
W[V];W.stroke!=mxConstants.NONE&&null!=W.stroke||delete this.nextShape.options.stroke;W.filled||delete this.nextShape.options.fill;this.passThrough=!0;this.rc.draw(this.nextShape);this.passThrough=!1}};l.prototype.stroke=function(){this.passThrough?this.originalStroke.apply(this.canvas,arguments):this.drawPath(this.getStyle(!0,!1))};l.prototype.fill=function(){this.passThrough?this.originalFill.apply(this.canvas,arguments):this.drawPath(this.getStyle(!1,!0))};l.prototype.fillAndStroke=function(){this.passThrough?
this.originalFillAndStroke.apply(this.canvas,arguments):this.drawPath(this.getStyle(!0,!0))};l.prototype.destroy=function(){this.canvas.lineTo=this.originalLineTo;this.canvas.moveTo=this.originalMoveTo;this.canvas.close=this.originalClose;this.canvas.quadTo=this.originalQuadTo;this.canvas.curveTo=this.originalCurveTo;this.canvas.arcTo=this.originalArcTo;this.canvas.close=this.originalClose;this.canvas.fill=this.originalFill;this.canvas.stroke=this.originalStroke;this.canvas.fillAndStroke=this.originalFillAndStroke;
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
d.shortcut):u.apply(this,arguments)};EditorUi.prototype.toggleFormatPanel=function(H){null!=this.formatWindow?this.formatWindow.window.setVisible(null!=H?H:!this.formatWindow.window.isVisible()):b(this)};EditorUi.prototype.isFormatPanelVisible=function(){return null!=this.formatWindow&&this.formatWindow.window.isVisible()||null==this.formatWindow&&0<this.formatWidth};DiagramFormatPanel.prototype.isMathOptionVisible=function(){return!0};var v=EditorUi.prototype.destroy;EditorUi.prototype.destroy=function(){this.destroyWindows();
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
function(d,g,n,q,t,x,B,G){function I(Q){var P=" ",M="";q&&(P=" onclick=\"(function(img){if(img.wnd!=null&&!img.wnd.closed){img.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==img.wnd){img.wnd.postMessage(decodeURIComponent(img.getAttribute('src')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);img.wnd=window.open('"+EditorUi.lightboxHost+"/?client=1"+(null!=U?"&page="+U:"")+(t?"&edit=_blank":"")+(x?"&layers=1":"")+"');}})(this);\"",M+=
"cursor:pointer;");d&&(M+="max-width:100%;");var p="";n&&(p=' width="'+Math.round(F.width)+'" height="'+Math.round(F.height)+'"');B('<img src="'+Q+'"'+p+(""!=M?' style="'+M+'"':"")+P+"/>")}var F=this.editor.graph.getGraphBounds(),U=this.getSelectedPageIndex();if(this.isExportToCanvas())this.editor.exportToCanvas(mxUtils.bind(this,function(Q){var P=q?this.getFileData(!0):null;Q=this.createImageDataUri(Q,P,"png");I(Q)}),null,null,null,mxUtils.bind(this,function(Q){G({message:mxResources.get("unknownError")})}),
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
DriveClient.prototype.authorize=function(f,c,k,m,u){this.isExtAuth&&!f?window.parent.driveAuth(mxUtils.bind(this,function(v){this.updateAuthInfo(v,!0,!0,c,k)}),k):(new mxXmlRequest(this.redirectUri+"?getState=1",null,"GET")).send(mxUtils.bind(this,function(v){200<=v.getStatus()&&299>=v.getStatus()?this.authorizeStep2(v.getText(),f,c,k,m,u):null!=k&&k(v)}),k)};DriveClient.prototype.updateAuthInfo=function(f,c,k,m,u){b=f.access_token;delete f.access_token;f.expires=Date.now()+1E3*parseInt(f.expires_in);
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
null!=ua&&null!=ua.originalSrc&&(ua=l.createImageForPageLink(ua.originalSrc,ka));ja.background=xa;ja.backgroundImage=null!=ua?new mxImage(ua.src,ua.width,ua.height,ua.x,ua.y):null;ja.pageVisible=fa;ja.mathEnabled=oa;var Ka=ja.getGraphBounds;ja.getGraphBounds=function(){var Aa=Ka.apply(this,arguments),La=this.backgroundImage;if(null!=La&&null!=La.width&&null!=La.height){var Da=this.view.translate,wa=this.view.scale;Aa=mxRectangle.fromRectangle(Aa);Aa.add(new mxRectangle((Da.x+La.x)*wa,(Da.y+La.y)*
wa,La.width*wa,La.height*wa))}return Aa};var Ja=ja.getGlobalVariable;ja.getGlobalVariable=function(Aa){return"page"==Aa?ka.getName():"pagenumber"==Aa?ia+1:"pagecount"==Aa?null!=l.pages?l.pages.length:1:Ja.apply(this,arguments)};document.body.appendChild(ja.container);l.updatePageRoot(ka);ja.model.setRoot(ka.root)}na=Ha(ja,na,ia!=ma,ka.getId());ja!=T&&ja.container.parentNode.removeChild(ja.container)}}else na=Ha(T);null==na||null==na.wnd?l.handleError({message:mxResources.get("errorUpdatingPreview")}):
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
c,k,!0,u):this.getXmlFile(v,c,k)}else k({message:mxResources.get("loggedOut")})}catch(D){if(null!=k)k(D);else throw D;}}),k)};DriveClient.prototype.isGoogleRealtimeMimeType=function(f){return null!=f&&"application/vnd.jgraph.mxfile."==f.substring(0,30)};DriveClient.prototype.getXmlFile=function(f,c,k,m,u){try{var v={Authorization:"Bearer "+b},E=f.downloadUrl;if(null==E)null!=k&&k({message:mxResources.get("exportOptionsDisabledDetails")});else{var D=0,A=mxUtils.bind(this,function(){this.ui.editor.loadUrl(E,
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
var GoogleSitesDialog=function(b,e){function f(){var U=null!=F&&null!=F.getTitle()?F.getTitle():this.defaultFilename;if(G.checked&&""!=H.value){var R="https://www.draw.io/gadget.xml?type=4&diagram="+encodeURIComponent(mxUtils.htmlEntities(H.value));null!=U&&(R+="&title="+encodeURIComponent(U));0<I.length&&(R+="&s="+I);""!=d.value&&"0"!=d.value&&(R+="&border="+d.value);""!=L.value&&(R+="&height="+L.value);R+="&pan="+(g.checked?"1":"0");R+="&zoom="+(n.checked?"1":"0");R+="&fit="+(B.checked?"1":"0");
R+="&resize="+(x.checked?"1":"0");R+="&x0="+Number(A.value);R+="&y0="+E;k.mathEnabled&&(R+="&math=1");t.checked?R+="&edit=_blank":q.checked&&(R+="&edit="+encodeURIComponent(mxUtils.htmlEntities(window.location.href)));D.value=R}else F.constructor==DriveFile||F.constructor==DropboxFile?(R="https://www.draw.io/gadget.xml?embed=0&diagram=",""!=H.value?R+=encodeURIComponent(mxUtils.htmlEntities(H.value))+"&type=3":(R+=F.getHash().substring(1),R=F.constructor==DropboxFile?R+"&type=2":R+"&type=1"),null!=
U&&(R+="&title="+encodeURIComponent(U)),""!=L.value&&(U=parseInt(L.value)+parseInt(A.value),R+="&height="+U),D.value=R):D.value=""}var c=document.createElement("div"),k=b.editor.graph,m=k.getGraphBounds(),u=k.view.scale,v=Math.floor(m.x/u-k.view.translate.x),E=Math.floor(m.y/u-k.view.translate.y);mxUtils.write(c,mxResources.get("googleGadget")+":");mxUtils.br(c);var D=document.createElement("input");D.setAttribute("type","text");D.style.marginBottom="8px";D.style.marginTop="2px";D.style.width="410px";
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
38==M.keyCode?(H(p,mxConstants.DIRECTION_NORTH),mxEvent.consume(M)):39==M.keyCode?(H(p,mxConstants.DIRECTION_EAST),mxEvent.consume(M)):40==M.keyCode&&(H(p,mxConstants.DIRECTION_SOUTH),mxEvent.consume(M)))}}catch(C){d.handleError(C)}mxEvent.isConsumed(M)||F.apply(this,arguments)};var U=g.connectVertex;g.connectVertex=function(M,p,y,C,K,l,z){var J=g.getIncomingTreeEdges(M);if(c(M)){var O=v(M),T=O==mxConstants.DIRECTION_EAST||O==mxConstants.DIRECTION_WEST,W=p==mxConstants.DIRECTION_EAST||p==mxConstants.DIRECTION_WEST;
return O==p||0==J.length?A(M,p):T==W?D(M):E(M,p!=mxConstants.DIRECTION_NORTH&&p!=mxConstants.DIRECTION_WEST)}return U.apply(this,arguments)};g.getSubtree=function(M){var p=[M];!k(M)&&!c(M)||u(M)||g.traverse(M,!0,function(y,C){var K=null!=C&&g.isTreeEdge(C);K&&0>mxUtils.indexOf(p,C)&&p.push(C);(null==C||K)&&0>mxUtils.indexOf(p,y)&&p.push(y);return null==C||K});return p};var R=mxVertexHandler.prototype.init;mxVertexHandler.prototype.init=function(){R.apply(this,arguments);(k(this.state.cell)||c(this.state.cell))&&
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
DrawioFileSync.prototype.patchRealtime=function(b,e,f,c){var k=null;if(this.file.isRealtime()){k=this.extractRemove(this.ui.diffPages(this.file.getShadowPages(),this.ui.pages));var m=this.extractRemove(this.extractLocal(k)),u=(null==f?b:b.concat(f)).concat([m]);this.file.ownPages=this.ui.applyPatches(this.file.ownPages,u,!0,e);mxUtils.isEmptyObject(m)?this.scheduleCleanup(null!=c?!1:null):this.file.fileChanged(!1);EditorUi.debug("DrawioFileSync.patchRealtime",[this],"patches",b,"backup",e,"own",f,
"all",k,"local",m,"applied",u,"immediate",c)}return k};DrawioFileSync.prototype.isRealtimeActive=function(){return this.ui.editor.autosave};
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
function(d,g,n,q,t,x,B){if(null!=d){t=null!=t?t:Error(d);t.stack=null!=t.stack?t.stack:"";x=null!=x?x:0>d.indexOf("NetworkError")&&0>d.indexOf("SecurityError")&&0>d.indexOf("NS_ERROR_FAILURE")&&0>d.indexOf("out of memory")?"SEVERE":"CONFIG";try{EditorUi.enableLogging&&"1"!=urlParams.dev&&d!=EditorUi.lastErrorMessage&&0>d.indexOf("extension:")&&0>t.stack.indexOf("extension:")&&0>t.stack.indexOf("<anonymous>:")&&(EditorUi.lastErrorMessage=d,(new Image).src=(null!=window.DRAWIO_LOG_URL?window.DRAWIO_LOG_URL:
"")+"/log?severity="+x+"&v="+encodeURIComponent(EditorUi.VERSION)+"&msg=clientError:"+encodeURIComponent(d)+":url:"+encodeURIComponent(window.location.href)+":lnum:"+encodeURIComponent(n)+(null!=q?":colno:"+encodeURIComponent(q):"")+(""!=t.stack?"&stack="+encodeURIComponent(t.stack):""))}catch(G){}try{B||null==window.console||console.error(x,d,g,n,q,t)}catch(G){}}};EditorUi.logEvent=function(d){if("1"==urlParams.dev)EditorUi.debug("logEvent",d);else if(EditorUi.enableLogging)try{var g=null!=window.DRAWIO_LOG_URL?
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
for(var g=[],n=2;n<d.length;n++){var q=mxUtils.trim(d[n]);"["!=q&&"]"!=q&&"%%"!=q.substring(0,2)&&"##"!=q.substring(0,2)&&(q=d[n].replace(/[-|>]/g," "),""!=mxUtils.trim(q)&&" "==q.charAt(0)&&g.push(q))}return"mindmap\nroot(("+mxUtils.trim(d[1])+"))\n"+g.join("\n")};EditorUi.prototype.extractMermaidDeclaration=function(d){"o\n\n"==d.substring(0,3)&&(d=d.substring(3));var g=d.split("```");g=1<g.length?g:d.split("<pre>");g=1<g.length?g:d.split("~~~");g=1<g.length?g:d.split("%%");g=1<g.length?g:d.split("(Begins)");
g=mxUtils.trim(1>=g.length?d:g[1]);var n=g.split("\n");if(0<n.length&&"mermaid"==mxUtils.trim(n[0])||1<n.length&&0<=mxUtils.indexOf(EditorUi.mermaidDiagramTypes,n[1]))n.shift(),g=mxUtils.trim(n.join("\n")),n=g.split("\n");var q=n[0].split(" ")[0].replace(/:$/,"");try{"mindmap"==q&&2<n.length&&(g=this.extractMermaidMindmap(n))}catch(t){}"@"!=q.charAt(0)&&0>mxUtils.indexOf(EditorUi.mermaidDiagramTypes,q)&&(g="classDiagram\n"+g);EditorUi.debug("EditorUi.extractMermaidDeclaration","\nlines:",n,"\ntype:",
q,"\nvalue:",d,"\ntext:",g);return g};EditorUi.prototype.removeMermaidComments=function(d){d=d.split("\n");for(var g=[],n=0;n<d.length;n++)"%%"!=d[n].substring(0,2)&&g.push(d[n]);return g.join("\n")};EditorUi.prototype.generateMermaidImage=function(d,g,n,q,t){d=this.removeMermaidComments(d);var x=mxUtils.bind(this,function(G){this.loadingMermaid=!1;null!=q?q(G):this.handleError(G)}),B=mxUtils.bind(this,function(){try{this.loadingMermaid=!1;g=null!=g?g:mxUtils.clone(EditorUi.defaultMermaidConfig);
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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.desc.modifiedDate+"-size_"+f.getSize()+"-mime_"+f.desc.mimeType+(this.ui.editor.autosave?"":"-nosave")+(f.isAutosave()?"":"-noauto")+(f.changeListenerEnabled?"":"-nolisten")+(f.inConflictState?"-conflict":"")+(f.invalidChecksum?"-invalid":""),label:(null!=this.user?"user_"+this.user.id:"nouser")+(null!=f.sync?"-client_"+f.sync.clientId:"-nosync")})}catch(ca){}}else"1"==urlParams.test&&Y.headRevisionId==t&&EditorUi.debug("DriveClient: Remote Etag Changed","local",z,"remote",Y.etag,"rev",f.desc.headRevisionId,
"response",[Y],"file",[f]),H(Z,Y)}catch(ca){d(ca)}}),mxUtils.bind(this,function(){H(Z)})):H(Z)}catch(Y){d(Y)}}}))}catch(Z){d(Z)}}),O=mxUtils.bind(this,function(W){f.saveLevel=9;if(W||null==z)J(W);else{var V=!0,S=null;try{S=window.setTimeout(mxUtils.bind(this,function(){V=!1;H({code:App.ERROR_TIMEOUT})}),3*this.ui.timeout)}catch(X){}this.executeRequest({url:"/files/"+f.getId()+"?supportsAllDrives=true&fields="+this.catchupFields},mxUtils.bind(this,function(X){window.clearTimeout(S);if(V){f.saveLevel=
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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);this.enumerationState=0};var U=mxGraphView.prototype.stateValidated;mxGraphView.prototype.stateValidated=function(l){null!=l.shape&&this.redrawEnumerationState(l);return U.apply(this,arguments)};mxGraphView.prototype.createEnumerationValue=function(l){l=decodeURIComponent(mxUtils.getValue(l.style,"enumerateValue",""));""==l&&(l=++this.enumerationState);return'<div style="padding:2px;border:1px solid gray;background:yellow;border-radius:2px;">'+mxUtils.htmlEntities(l)+"</div>"};mxGraphView.prototype.redrawEnumerationState=
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
this.ui.getEmbeddedPng(mxUtils.bind(this,function(d){A(e.meta.last_commit_id,d)}),c,this.ui.getCurrentFile()!=e?e.getData():null,H.scale,H.border)}else A(e.meta.last_commit_id,Base64.encode(e.getData()))});k?this.getFile(u+"/"+v+"/"+E+"/"+D,mxUtils.bind(this,function(H){e.meta.last_commit_id=H.meta.last_commit_id;L()}),c):L()};GitLabClient.prototype.pickFolder=function(e){this.showGitLabDialog(!1,e,!0)};GitLabClient.prototype.pickFile=function(e){e=null!=e?e:mxUtils.bind(this,function(f){this.ui.loadFile("A"+
encodeURIComponent(f))});this.showGitLabDialog(!0,e)};GitLabClient.prototype.showGitLabDialog=function(e,f,c){var k=null,m=null,u=null,v=null,E=document.createElement("div");E.style.whiteSpace="nowrap";E.style.overflow="hidden";E.style.height="304px";var D=document.createElement("h3");mxUtils.write(D,mxResources.get(e?"selectFile":"selectFolder"));D.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:12px";E.appendChild(D);var A=document.createElement("div");A.style.whiteSpace=
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
"...",function(){var Z=[{layout:"mxOrgChartLayout",config:{branchOptimizer:parseInt(T.value),parentChildSpacing:parseInt(S.value),siblingSpacing:parseInt(X.value)}}];c.hideDialog();c.showCustomLayoutDialog(JSON.stringify(Z,null,2))});O.className="geBtn";J=new CustomDialog(c,J,function(){null==C&&(C=2);c.loadOrgChartLayouts(z)},null,null,null,O);c.showDialog(J.container,355,140,!0,!0)},y,null,m());p.addSeparator(y);p.addItem(mxResources.get("parallels"),null,mxUtils.bind(this,function(){c.tryAndHandle(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
|
2));return r}(Graph.arrayBufferToString(pako.deflateRaw(d))),!0);"txt"!=g&&(B.responseType="blob");B.onload=function(G){if(200<=this.status&&300>this.status)if("txt"==g)n(this.response);else{var I=new FileReader;I.readAsDataURL(this.response);I.onloadend=function(F){var U=new Image;U.onload=function(){try{var R=U.width,N=U.height;if(0==R&&0==N){var Q=I.result,P=Q.indexOf(","),M=decodeURIComponent(escape(atob(Q.substring(P+1)))),p=mxUtils.parseXml(M).getElementsByTagName("svg");0<p.length&&(R=parseFloat(p[0].getAttribute("width")),
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
|
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
|
if(null!=x.hoverIcons){var Q=x.hoverIcons.update;x.hoverIcons.update=function(){B.freehand.isDrawing()||Q.apply(this,arguments)}}if(null!=B.freehand){var P=B.freehand.createStyle;B.freehand.createStyle=function(S){return P.apply(this,arguments)+"sketch=0;"}}x.editor.addListener("statusChanged",mxUtils.bind(this,function(){x.setStatusText(x.editor.getStatus())}));x.setStatusText(x.editor.getStatus());var M=x.menus.get("viewZoom");if(null!=M){var p=function(S){if(mxEvent.isAltDown(S))x.hideCurrentMenu(),
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
f.setCellStyles(mxConstants.STYLE_ROTATION,Number(t.value),[e[B]])}}finally{f.getModel().endUpdate()}});x.className="geBtn gePrimaryBtn";mxEvent.addListener(k,"keypress",function(B){13==B.keyCode&&x.click()});m=document.createElement("div");m.style.marginTop="20px";m.style.textAlign="right";b.editor.cancelFirst?(m.appendChild(c),m.appendChild(x)):(m.appendChild(x),m.appendChild(c));k.appendChild(m);this.container=k},LibraryDialog=function(b,e,f,c,k,m){function u(U){for(U=document.elementFromPoint(U.clientX,
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
parseFloat(W.rackUnitSize):"undefined"!==typeof mxRackContainer?mxRackContainer.unitSize:20;V.marginLeft=W.marginLeft||0;V.marginRight=W.marginRight||0;V.marginTop=W.marginTop||0;V.marginBottom=W.marginBottom||0;V.allowGaps=W.allowGaps||0;V.horizontal="1"==mxUtils.getValue(W,"horizontalRack","0");V.resizeParent=!1;V.fill=!0;return V}return O.apply(this,arguments)};this.updateGlobalUrlVariables()};var n=Graph.prototype.postProcessCellStyle;Graph.prototype.postProcessCellStyle=function(l,z){return Graph.processFontStyle(n.apply(this,
arguments))};var q=mxSvgCanvas2D.prototype.updateTextNodes;mxSvgCanvas2D.prototype.updateTextNodes=function(l,z,J,O,T,W,V,S,X,Z,Y){q.apply(this,arguments);Graph.processFontAttributes(Y)};var t=mxText.prototype.redraw;mxText.prototype.redraw=function(){t.apply(this,arguments);null!=this.node&&"DIV"==this.node.nodeName&&Graph.processFontAttributes(this.node)};Graph.prototype.createTagsDialog=function(l,z,J,O){function T(){for(var sa=S.getSelectionCells(),za=[],Ba=0;Ba<sa.length;Ba++)S.isCellVisible(sa[Ba])&&
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
null!=window.console&&console.error(ha,S)}});/(\.v(dx|sdx?))($|\?)/i.test(S.name)||/(\.vs(x|sx?))($|\?)/i.test(S.name)?t(null,S.type,g+V*l,n+V*l,240,160,S.name,function(Z){T(V,function(){return Z})},S):"image"==S.type.substring(0,5)||"application/pdf"==S.type?X.readAsDataURL(S):X.readAsText(S)}})(W)});if(M){M=[];for(y=0;y<d.length;y++)M.push(d[y]);d=M;this.confirmImageResize(function(K){P=K;C()},I)}else C()};EditorUi.prototype.isBlankFile=function(){return null!=this.pages&&1==this.pages.length&&
this.isDiagramEmpty()&&this.currentPage.getName()==mxResources.get("pageWithNumber",[1])};EditorUi.prototype.confirmImageResize=function(d,g){g=null!=g?g:!1;var n=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},q=isLocalStorage||mxClient.IS_CHROMEAPP?mxSettings.getResizeImages():null,t=function(x,B){if(x||g)mxSettings.setResizeImages(x?B:null),mxSettings.save();n();d(B)};null==q||g?this.showDialog((new ConfirmDialog(this,mxResources.get("resizeLargeImages"),function(x){t(x,
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
n)});G()};GitHubClient.prototype.logout=function(){this.clearPersistentToken();this.setUser(null);b=null}})();TrelloFile=function(b,e,f){DrawioFile.call(this,b,e);this.meta=f;this.saveNeededCounter=0};mxUtils.extend(TrelloFile,DrawioFile);TrelloFile.prototype.getHash=function(){return"T"+encodeURIComponent(this.meta.compoundId)};TrelloFile.prototype.getMode=function(){return App.MODE_TRELLO};TrelloFile.prototype.isAutosave=function(){return!0};TrelloFile.prototype.getTitle=function(){return this.meta.name};TrelloFile.prototype.isRenamable=function(){return!1};TrelloFile.prototype.getSize=function(){return this.meta.bytes};
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
App.prototype.start=function(){try{var b=this;null!=this.bg&&null!=this.bg.parentNode&&this.bg.parentNode.removeChild(this.bg);this.restoreLibraries();this.spinner.stop();window.onerror=function(u,v,E,D,A){"ResizeObserver loop limit exceeded"!=u&&(EditorUi.logError("Uncaught: "+(null!=u?u:""),v,E,D,A,null,!0),b.handleError({message:u},mxResources.get("unknownError"),null,null,null,null,!0))};if("1"!=urlParams.client&&"1"!=urlParams.embed){try{isLocalStorage&&window.addEventListener("storage",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
|
focus:function(){q.focus()}}};EditorUi.prototype.createUrlParameters=function(d,g,n,q,t,x,B){B=null!=B?B:[];q&&("https://viewer.diagrams.net"==EditorUi.lightboxHost&&"1"!=urlParams.dev||B.push("lightbox=1"),"auto"!=d&&B.push("target="+d),null!=g&&g!=mxConstants.NONE&&B.push("highlight="+("#"==g.charAt(0)?g.substring(1):g)),null!=t&&0<t.length&&B.push("edit="+encodeURIComponent(t)),x&&B.push("layers=1"),this.editor.graph.foldingEnabled&&B.push("nav=1"));n&&null!=this.currentPage&&null!=this.pages&&
this.currentPage!=this.pages[0]&&B.push("page-id="+this.currentPage.getId());return B};EditorUi.prototype.createLink=function(d,g,n,q,t,x,B,G,I,F){I=this.createUrlParameters(d,g,n,q,t,x,I);d=this.getCurrentFile();g=!0;null!=B?n="#U"+encodeURIComponent(B):(d=this.getCurrentFile(),G||null==d||d.constructor!=window.DriveFile?n="#R"+encodeURIComponent(n?this.getFileData(!0,null,null,null,null,null,null,!0,null,!1):Graph.compress(mxUtils.getXml(this.editor.getGraphXml()))):(n="#"+d.getHash(),g=!1));g&&
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
null,d,mxResources.get("ok"),g);this.showDialog(d.container,n||340,100,!0,!1);d.init()};EditorUi.prototype.confirm=function(d,g,n,q,t,x){d=null!=d?d:"";var B=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},G=Math.min(220,28*Math.ceil(Math.max(1,d.length)/50));d=new ConfirmDialog(this,d,function(){B();null!=g&&g()},function(){B();null!=n&&n()},q,t,null,null,null,null,G);this.showDialog(d.container,340,46+G,!0,x);d.init()};EditorUi.prototype.showBanner=function(d,g,n,
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
m?"&page="+m:""))+window.location.hash})})(f.items[c]);b(f.items)}),e)};DriveFile.prototype.getLatestVersion=function(b,e){this.ui.drive.getFile(this.getId(),b,e,!0)};DriveFile.prototype.getChannelId=function(){var b=this.ui.drive.getCustomProperty(this.desc,"channel");null!=b&&(b="G-"+this.getId()+"."+b);return b};DriveFile.prototype.getChannelKey=function(){return this.ui.drive.getCustomProperty(this.desc,"key")};DriveFile.prototype.getLastModifiedDate=function(){return new Date(this.desc.modifiedDate)};
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
k&&(401===u.getStatus()?c?f({code:u.getStatus(),message:this.getErrorMessage(u,mxResources.get("accessDenied"))}):(this.logout(),this.authenticate(mxUtils.bind(this,function(){this.updateUser(e,f,!0)}),f)):200>u.getStatus()||300<=u.getStatus()?f({message:mxResources.get("accessDenied")}):(this.setUser(this.createUser(JSON.parse(u.getText()))),e()))}),f)};GitHubClient.prototype.createUser=function(e){return new DrawioUser(e.id,e.email,e.name)};GitHubClient.prototype.authenticate=function(e,f){(new mxXmlRequest(this.redirectUri+
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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==this.cachedGoogleFonts[S]?(O++,this.loadUrl(S,mxUtils.bind(this,function(X){this.cachedGoogleFonts[S]=X;J.push(X+"\n");O--;T()}),mxUtils.bind(this,function(X){O--;J.push("@import url("+S+");\n");T()}))):J.push(this.cachedGoogleFonts[S]+"\n"):J.push('@font-face {font-family: "'+V+'";src: url("'+S+'")}\n')})(z[W].name,z[W].url);T()}else l()};Editor.prototype.addMathCss=function(l){l=l.getElementsByTagName("defs");if(null!=l&&0<l.length)for(var z=document.getElementsByTagName("style"),J=0;J<z.length;J++){var O=
mxUtils.getTextContent(z[J]);0>O.indexOf("mxPageSelector")&&0<O.indexOf("MathJax")&&l[0].appendChild(z[J].cloneNode(!0))}};Editor.prototype.addFontCss=function(l,z){z=null!=z?z:this.absoluteCssFonts(this.fontCss);if(null!=z){var J=l.getElementsByTagName("defs"),O=l.ownerDocument;0==J.length?(J=null!=O.createElementNS?O.createElementNS(mxConstants.NS_SVG,"defs"):O.createElement("defs"),null!=l.firstChild?l.insertBefore(J,l.firstChild):l.appendChild(J)):J=J[0];l=null!=O.createElementNS?O.createElementNS(mxConstants.NS_SVG,
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
"#000000")),ta=mxUtils.setStyle(ta,mxConstants.STYLE_GRADIENTCOLOR,mxUtils.getValue(pa,mxConstants.STYLE_GRADIENTCOLOR,null)),O.getModel().isVertex(ya[Ca])&&(ta=mxUtils.setStyle(ta,mxConstants.STYLE_FONTCOLOR,mxUtils.getValue(pa,mxConstants.STYLE_FONTCOLOR,null))));O.getModel().setStyle(ya[Ca],ta)}}finally{O.getModel().endUpdate()}}));ea.className="geStyleButton";ea.style.width="36px";ea.style.height=10>=this.defaultColorSchemes.length?"24px":"30px";ea.style.margin="0px 6px 6px 0px";if(null!=Ba){var ha=
Editor.isDarkMode()?"2px solid":"1px solid";null!=Ba.border&&(ha=Ba.border);null!=Ba.gradient?mxClient.IS_IE&&10>document.documentMode?ea.style.filter="progid:DXImageTransform.Microsoft.Gradient(StartColorStr='"+Ba.fill+"', EndColorStr='"+Ba.gradient+"', GradientType=0)":ea.style.backgroundImage="linear-gradient("+Ba.fill+" 0px,"+Ba.gradient+" 100%)":Ba.fill==mxConstants.NONE?ea.style.background="url('"+Dialog.prototype.noColorImage+"')":ea.style.backgroundColor=""==Ba.fill?mxUtils.getValue(O.defaultVertexStyle,
mxConstants.STYLE_FILLCOLOR,Editor.isDarkMode()?Editor.darkColor:"#ffffff"):Ba.fill||mxUtils.getValue(O.defaultVertexStyle,mxConstants.STYLE_FILLCOLOR,Editor.isDarkMode()?Editor.darkColor:"#ffffff");ea.style.border=Ba.stroke==mxConstants.NONE?ha+" transparent":""==Ba.stroke?ha+" "+mxUtils.getValue(O.defaultVertexStyle,mxConstants.STYLE_STROKECOLOR,Editor.isDarkMode()?"#ffffff":Editor.darkColor):ha+" "+(Ba.stroke||mxUtils.getValue(O.defaultVertexStyle,mxConstants.STYLE_STROKECOLOR,Editor.isDarkMode()?
"#ffffff":Editor.darkColor));null!=Ba.title&&ea.setAttribute("title",Ba.title)}else{ha=mxUtils.getValue(O.defaultVertexStyle,mxConstants.STYLE_FILLCOLOR,"#ffffff");var qa=mxUtils.getValue(O.defaultVertexStyle,mxConstants.STYLE_STROKECOLOR,"#000000");ea.style.backgroundColor=ha;ea.style.border="1px solid "+qa}ea.style.borderRadius="0";T.appendChild(ea)});T.innerText="";for(var za=0;za<ba.length;za++)0<za&&0==mxUtils.mod(za,4)&&mxUtils.br(T),sa(ba[za])});null==this.format.currentScheme?Y(Math.min(S.length-
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
g.addListener(mxEvent.SIZE,e);g.container.addEventListener("scroll",c);g.view.addListener("unitChanged",this.unitListener);b.addListener("pageViewChanged",this.pageListener);b.addListener("pageScaleChanged",this.pageListener);b.addListener("pageFormatChanged",this.pageListener);this.setStyle=function(B){A=B;L.style.background=A.bkgClr;q()};this.origGuideMove=mxGuide.prototype.move;mxGuide.prototype.move=function(B,G,I,F){if(f&&4<B.height||!f&&4<B.width){if(null!=D.guidePart)try{d.putImageData(D.guidePart.imgData1,
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
k.getSelectedItem();if(null!=v)if(f&&"object"==typeof v.folder)e({value:[v]});else{if(!v.folder&&this.ui.spinner.spin(document.body,mxResources.get("loading"))){var E=OneDriveFile.prototype.getIdOf(v);this.executeRequest(this.getItemURL(E),mxUtils.bind(this,function(D){this.ui.spinner.stop();200<=D.getStatus()&&299>=D.getStatus()?(D=JSON.parse(D.getText()),e(E,{value:[D]})):this.ui.handleError({code:D.getStatus()})}),mxUtils.bind(this,function(D){this.ui.spinner.stop();this.ui.handleError(D)}))}}else return mxResources.get("invalidSel",
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
ca:null)},b.mode!=App.MODE_GOOGLE||null==b.stateArg||null==b.stateArg.folderId)}}function F(fa,ma,na,oa,ia,ka,xa){null!=ba&&(ba.style.backgroundColor="transparent",ba.style.border="1px solid transparent");K.removeAttribute("disabled");da=ma;aa=na;ca=ka;ba=fa;sa=oa;za=xa;Ba=ia;ba.style.backgroundColor=v;ba.style.border=E}function U(fa,ma,na,oa,ia,ka,xa,ua,Ka,Ja,Aa){function La(Na,Ya){null==Ma?(Oa=Na,Oa=/^https?:\/\//.test(Oa)&&!b.editor.isCorsEnabledForUrl(Oa)?PROXY_URL+"?url="+encodeURIComponent(Oa):
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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.saveFile=function(b,e,f,c,k,m,u){if(this.isEditable())if(this.savingFile)null!=c&&c({code:App.ERROR_BUSY});else{var v=mxUtils.bind(this,function(E){if(this.getTitle()==b)try{this.savingFileTime=new Date;this.setShadowModified(!1);this.savingFile=!0;var D=this.getCurrentEtag(),A=this.data;this.peer.saveFile(this,mxUtils.bind(this,function(L){this.setModified(this.getShadowModified());this.savingFile=!1;this.setDescriptorEtag(this.meta,L);this.fileSaved(A,D,mxUtils.bind(this,function(){this.contentChanged();
null!=f&&f()}),c)}),mxUtils.bind(this,function(L){this.savingFile=!1;this.isConflict(L)?(this.inConflictState=!0,null!=c&&(L.commitMessage=E,c(L))):null!=c&&c(L)}),m,E)}catch(L){if(this.savingFile=!1,null!=c)c(L);else throw L;}else this.savingFileTime=new Date,this.setShadowModified(!1),this.savingFile=!0,this.ui.pickFolder(this.getMode(),mxUtils.bind(this,function(L){this.peer.insertFile(b,this.getData(),mxUtils.bind(this,function(H){this.setModified(this.getShadowModified());this.savingFile=!1;
null!=f&&f();this.ui.fileLoaded(H)}),mxUtils.bind(this,function(){this.savingFile=!1;null!=c&&c()}),!1,L,E)}))});null!=u?v(u):this.peer.showCommitDialog(this.meta.name,null==this.getDescriptorEtag(this.meta)||this.meta.isNew,mxUtils.bind(this,function(E){v(E)}),c)}else null!=f&&f()};GitHubLibrary=function(b,e,f){GitHubFile.call(this,b,e,f)};mxUtils.extend(GitHubLibrary,GitHubFile);GitHubLibrary.prototype.doSave=function(b,e,f){this.saveFile(b,!1,e,f)};GitHubLibrary.prototype.open=function(){};(function(){var b=null;window.GitHubClient=function(e,f){DrawioClient.call(this,e,f||"ghauth")};mxUtils.extend(GitHubClient,DrawioClient);GitHubClient.prototype.clientId="test.draw.io"==window.location.hostname?"Iv1.1218f5567fbc258a":window.DRAWIO_GITHUB_ID;GitHubClient.prototype.extension=".drawio";GitHubClient.prototype.baseUrl=DRAWIO_GITHUB_API_URL;GitHubClient.prototype.baseHostUrl=DRAWIO_GITHUB_URL;GitHubClient.prototype.redirectUri=window.location.protocol+"//"+window.location.host+"/github2";
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
A)}),null,null,function(v){f?e({value:[v]}):e(OneDriveFile.prototype.getIdOf(v))},mxUtils.bind(this,function(v){this.ui.showError(mxResources.get("error"),v)}),f,null,null,null,null,c)})};OneDriveClient.prototype.pickFolder=function(e,f){var c=mxUtils.bind(this,function(m){this.ui.showError(mxResources.get("error"),m&&m.message?m.message:m)}),k=mxUtils.bind(this,function(m){var u=this.inlinePicker?this.createInlinePicker(e,!0):mxUtils.bind(this,function(){OneDrive.save({clientId:this.clientId,action:"query",
openInNewWindow:!0,advanced:{endpointHint:mxClient.IS_IE11?null:this.endpointHint,redirectUri:this.pickerRedirectUri,queryParameters:"select=id,name,parentReference",accessToken:b,isConsumerAccount:!1},success:mxUtils.bind(this,function(v){e(v);mxClient.IS_IE11&&(b=v.accessToken)}),cancel:mxUtils.bind(this,function(){}),error:c})});m?u():this.ui.confirm(mxResources.get("useRootFolder"),mxUtils.bind(this,function(){e({value:[this.rootId]})}),u,mxResources.get("yes"),mxResources.get("noPickFolder")+
"...",!0);null==this.user&&this.updateUser(this.emptyFn,this.emptyFn,!0)});null==b||6E4>this.tokenExpiresOn-Date.now()?this.authenticate(mxUtils.bind(this,function(){k(this.inlinePicker&&f)}),c):k(f)};OneDriveClient.prototype.pickFile=function(e,f){e=null!=e?e:mxUtils.bind(this,function(m){this.ui.loadFile("W"+encodeURIComponent(m))});var c=mxUtils.bind(this,function(m){this.ui.showError(mxResources.get("error"),m&&m.message?m.message:m)}),k=this.inlinePicker?this.createInlinePicker(e,null,f):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
|
e};OneDriveClient.prototype.getLibrary=function(e,f,c){this.getFile(e,f,c,!1,!0)};OneDriveClient.prototype.removeExtraHtmlContent=function(e){var f=e.lastIndexOf('<html><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8"><meta name="Robots" ');0<f&&(e=e.substring(0,f));return e};OneDriveClient.prototype.getFile=function(e,f,c,k,m){m=null!=m?m:!1;this.executeRequest(this.getItemURL(e),mxUtils.bind(this,function(u){if(200<=u.getStatus()&&299>=u.getStatus()){var v=JSON.parse(u.getText()),
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
0<Object.getOwnPropertyNames(z).length&&this.container.appendChild(this.addProperties(this.createPanel(),z,l))}};var d=StyleFormatPanel.prototype.addStyleOps;StyleFormatPanel.prototype.addStyleOps=function(l){var z=this.editorUi.getSelectionState();1==z.cells.length?this.addActions(l,["copyStyle","pasteStyle"]):1<=z.cells.length&&this.addActions(l,["pasteStyle","pasteData"]);return d.apply(this,arguments)};EditorUi.prototype.propertiesCollapsed=!0;StyleFormatPanel.prototype.addProperties=function(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
|
"none",d.style.display="none");var q=document.createElement("option"),t=!1,x=!1,B=function(M,p){t||null!=M&&x||(L.checked?null!=p&&p(q.selected?null:d.value):""==H.value||b.isOffline()?(I.value="",F.value="",null!=p&&p("")):(H.value=mxUtils.trim(H.value),b.loadImage(H.value,function(y){I.value=y.width;F.value=y.height;null!=p&&p(H.value)},function(){b.showError(mxResources.get("error"),mxResources.get("fileNotFound"),mxResources.get("ok"));I.value="";F.value="";null!=p&&p(null)})))},G=mxUtils.bind(this,
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
function(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
|
161==d.charCodeAt(4)&&177==d.charCodeAt(5)&&26==d.charCodeAt(6)&&225==d.charCodeAt(7)||60==d.charCodeAt(0)&&63==d.charCodeAt(1)&&120==d.charCodeAt(2)&&109==d.charCodeAt(3)&&108==d.charCodeAt(3))};var b=EditorUi.prototype.createKeyHandler;EditorUi.prototype.createKeyHandler=function(d){var g=b.apply(this,arguments);if(!this.editor.chromeless||this.editor.editable){var n=g.getFunction,q=this.editor.graph,t=this;g.getFunction=function(x){if(q.isSelectionEmpty()&&null!=t.pages&&0<t.pages.length){var B=
t.getSelectedPageIndex();if(mxEvent.isShiftDown(x)){if(37==x.keyCode)return function(){0<B&&t.movePage(B,B-1)};if(38==x.keyCode)return function(){0<B&&t.movePage(B,0)};if(39==x.keyCode)return function(){B<t.pages.length-1&&t.movePage(B,B+1)};if(40==x.keyCode)return function(){B<t.pages.length-1&&t.movePage(B,t.pages.length-1)}}else if(mxEvent.isControlDown(x)||mxClient.IS_MAC&&mxEvent.isMetaDown(x)){if(37==x.keyCode)return function(){0<B&&t.selectNextPage(!1)};if(38==x.keyCode)return function(){0<
B&&t.selectPage(t.pages[0])};if(39==x.keyCode)return function(){B<t.pages.length-1&&t.selectNextPage(!0)};if(40==x.keyCode)return function(){B<t.pages.length-1&&t.selectPage(t.pages[t.pages.length-1])}}}return!(65<=x.keyCode&&90>=x.keyCode)||q.isSelectionEmpty()||mxEvent.isAltDown(x)||mxEvent.isShiftDown(x)||mxEvent.isControlDown(x)||mxClient.IS_MAC&&mxEvent.isMetaDown(x)?n.apply(this,arguments):null}}return g};var e=EditorUi.prototype.extractGraphModelFromHtml;EditorUi.prototype.extractGraphModelFromHtml=
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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.getCurrentCellStyle(M).treeMoving);return p}function m(M){var p=!1;null!=M&&(M=n.getParent(M),p=g.view.getState(M),p="tree"==(null!=p?p.style:g.getCellStyle(M)).containerType);return p}function u(M){var p=!1;null!=M&&(M=n.getParent(M),p=g.view.getState(M),g.view.getState(M),p=null!=(null!=p?p.style:g.getCellStyle(M)).childLayout);return p}function v(M){M=g.view.getState(M);if(null!=M){var p=g.getIncomingTreeEdges(M.cell);if(0<p.length&&(p=g.view.getState(p[0]),null!=p&&(p=p.absolutePoints,null!=
p&&0<p.length&&(p=p[p.length-1],null!=p)))){if(p.y==M.y&&Math.abs(p.x-M.getCenterX())<M.width/2)return mxConstants.DIRECTION_SOUTH;if(p.y==M.y+M.height&&Math.abs(p.x-M.getCenterX())<M.width/2)return mxConstants.DIRECTION_NORTH;if(p.x>M.getCenterX())return mxConstants.DIRECTION_WEST}}return mxConstants.DIRECTION_EAST}function E(M,p){p=null!=p?p:!0;g.model.beginUpdate();try{var y=g.model.getParent(M),C=g.getIncomingTreeEdges(M),K=g.cloneCells([C[0],M]);g.model.setTerminal(K[0],g.model.getTerminal(C[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
|
!0,f,c))}catch(d){c(d)}finally{null!=H&&H.close()}}else null!=H&&H.close()}),A.focus())}),mxUtils.bind(this,function(){u&&(window.onOneDriveCallback=null,u=!1,c({message:mxResources.get("accessDenied"),retry:m}))}))});m()}else c({code:App.ERROR_BUSY})};OneDriveClient.prototype.getAccountTypeAndEndpoint=function(e,f){this.get(this.baseUrl+"/me/drive/root",mxUtils.bind(this,function(c){try{if(200<=c.getStatus()&&299>=c.getStatus()){var k=JSON.parse(c.getText());0<k.webUrl.indexOf(".sharepoint.com")?
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
l+'";\nsrc: url("'+z+'");\n}'),l=document.createElement("style"),mxUtils.write(l,J));return l};Graph.addFont=function(l,z,J){if(null!=l&&0<l.length&&null!=z&&0<z.length){var O=l.toLowerCase();if("helvetica"!=O&&"arial"!=l&&"sans-serif"!=O){var T=Graph.customFontElements[O];null!=T&&T.url!=z&&(T.elt.parentNode.removeChild(T.elt),T=null);null==T?(T=z,"http:"==z.substring(0,5)&&(T=PROXY_URL+"?url="+encodeURIComponent(z)),T={name:l,url:z,elt:Graph.createFontElement(l,T)},Graph.customFontElements[O]=T,
Graph.recentCustomFonts[O]=T,z=document.getElementsByTagName("head")[0],null!=J&&("link"==T.elt.nodeName.toLowerCase()?(T.elt.onload=J,T.elt.onerror=J):J()),null!=z&&z.appendChild(T.elt)):null!=J&&J()}else null!=J&&J()}else null!=J&&J();return l};Graph.getFontUrl=function(l,z){l=Graph.customFontElements[l.toLowerCase()];null!=l&&(z=l.url);return z};Graph.processFontAttributes=function(l){l=l.getElementsByTagName("*");for(var z=0;z<l.length;z++){var J=l[z].getAttribute("data-font-src");if(null!=J){var 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
|
c,k):k()})):k({message:this.invalidFilenameRegExs[0].test(f)?mxResources.get("oneDriveCharsNotAllowed"):mxResources.get("oneDriveInvalidDeviceName")}))};OneDriveClient.prototype.moveFile=function(e,f,c,k){f=this.getItemRef(f);var m=this.getItemRef(e);f.driveId!=m.driveId?k({message:mxResources.get("cannotMoveOneDrive",null,"Moving a file between accounts is not supported yet.")}):this.writeFile(this.getItemURL(e),JSON.stringify({parentReference:f}),"PATCH","application/json",c,k)};OneDriveClient.prototype.insertLibrary=
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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.formatWindow;null!=g?g.window.setVisible(null!=d?d:!this.isFormatPanelVisible()):v.apply(this,arguments)};EditorUi.prototype.toggleShapesPanel=function(d){var g=EditorUi.prototype.hsplitPosition;0==g&&(g=134);var n=this.hsplitPosition,q=mxUtils.bind(this,function(){this.hsplitPosition=t;this.refresh();this.diagramContainer.scrollLeft-=n-this.hsplitPosition}),t=d?g:0;mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform",0==t?"translateX(0)":"translateX(-100%)");0!=t&&q();window.setTimeout(mxUtils.bind(this,
function(){mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform",0==t?"translateX(-100%)":"translateX(0)");mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transition","transform 0.3s ease-in-out");mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform-origin","top left");window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transition",null);mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform",null);mxUtils.setPrefixedStyle(this.sidebarContainer.style,
"transform-origin",null);0==t&&q()}),300)}),10)};EditorUi.prototype.isShapesPanelVisible=function(){return 0<this.hsplitPosition};var E=EditorUi.prototype.isFormatPanelVisible;EditorUi.prototype.isFormatPanelVisible=function(){var d=this.formatWindow;return null!=d?d.window.isVisible():E.apply(this,arguments)};var D=EditorUi.prototype.refresh;EditorUi.prototype.refresh=function(d){if(null!=this.sketchWrapperElt&&null!=this.sketchWrapperElt.parentNode){d=null!=d?d:!0;if("1"!=urlParams.embedInline){var g=
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
n,null,null,null,q)},null,null,null,q)},null,null,null,q)},null,null,null,q):mxscript(DRAWIO_BASE_URL+"/js/orgchart.min.js",n,null,null,null,q))}),onerror)};EditorUi.prototype.importCsv=function(d,g){this.loadOrgChartLayouts(mxUtils.bind(this,function(){this.doImportCsv(d,g)}))};EditorUi.prototype.doImportCsv=function(d,g){try{var n=d.split("\n"),q=[],t=[],x=[],B={};if(0<n.length){var G={},I=this.editor.graph,F=null,U=null,R=null,N=null,Q=null,P=null,M=null,p="whiteSpace=wrap;html=1;",y=null,C=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
|
EditorUi.prototype.diffCell=function(b,e){function f(u){return null!=u&&"object"===typeof u&&"number"===typeof u.nodeType&&"string"===typeof u.nodeName&&"function"===typeof u.getAttribute}var c={};b.vertex!=e.vertex&&(c.vertex=e.vertex?1:0);b.edge!=e.edge&&(c.edge=e.edge?1:0);b.connectable!=e.connectable&&(c.connectable=e.connectable?1:0);if((null!=b.parent?null==e.parent:null!=e.parent)||null!=b.parent&&null!=e.parent&&b.parent.getId()!=e.parent.getId())c.parent=null!=e.parent?e.parent.getId():"";
if((null!=b.source?null==e.source:null!=e.source)||null!=b.source&&null!=e.source&&b.source.getId()!=e.source.getId())c.source=null!=e.source?e.source.getId():"";if((null!=b.target?null==e.target:null!=e.target)||null!=b.target&&null!=e.target&&b.target.getId()!=e.target.getId())c.target=null!=e.target?e.target.getId():"";f(b.value)&&f(e.value)?b.value.isEqualNode(e.value)||(c.xmlValue=mxUtils.getXml(e.value)):b.value!=e.value&&(f(e.value)?c.xmlValue=mxUtils.getXml(e.value):c.value=null!=e.value?
e.value:null);b.style!=e.style&&(c.style=e.style);b.visible!=e.visible&&(c.visible=e.visible?1:0);b.collapsed!=e.collapsed&&(c.collapsed=e.collapsed?1:0);if(!this.isObjectEqual(b.geometry,e.geometry,new mxGeometry)){var k=this.codec.encode(e.geometry);null!=k&&(c.geometry=mxUtils.getXml(k))}for(var m in b)this.cellProperties[m]||"function"===typeof b[m]||"function"===typeof e[m]||b[m]==e[m]||(c[m]=void 0===e[m]?null:e[m]);for(m in e)m in b||this.cellProperties[m]||"function"===typeof b[m]||"function"===
typeof e[m]||b[m]==e[m]||(c[m]=void 0===e[m]?null:e[m]);return c};EditorUi.prototype.resolveCrossReferences=function(b,e){var f={};mxUtils.isEmptyObject(e)||(this.adoptTheirPages(b,e,f),this.adoptTheirCells(b,e,f));EditorUi.debug("EditorUi.resolveCrossReferences",[this],"ownDiff",b,"theirDiff",e,"resolve",f);return f};
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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.setUser(null);b=null};DriveClient.prototype.execute=function(f){var c=mxUtils.bind(this,function(k){this.ui.showAuthDialog(this,!0,mxUtils.bind(this,function(m,u){this.authorize(!1,mxUtils.bind(this,function(){null!=u&&u();f()}),mxUtils.bind(this,function(v){var E=null!=v.message?v.message:mxResources.get("cannotLogin");null!=v&&null!=v.error&&403==v.error.code&&null!=v.error.data&&0<v.error.data.length&&"domainPolicy"==v.error.data[0].reason&&(E=v.error.message);this.logout();this.ui.showError(mxResources.get("error"),
E,mxResources.get("help"),mxUtils.bind(this,function(){this.ui.openLink("https://www.drawio.com/doc/faq/gsuite-authorisation-troubleshoot")}),null,mxResources.get("ok"))}),m)}))});this.authorize(!0,f,c)};DriveClient.prototype.executeRequest=function(f,c,k){try{var m=!0,u=null,v=0;null!=this.requestThread&&window.clearTimeout(this.requestThread);var E=mxUtils.bind(this,function(){try{this.requestThread=null;this.currentRequest=f;null!=u&&window.clearTimeout(u);u=window.setTimeout(mxUtils.bind(this,
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
c,v):m(v)});null==b?this.authenticate(function(){u(!0)},c):u(!1)};DropboxClient.prototype.checkExists=function(e,f,c){var k=mxUtils.bind(this,function(){return this.client.filesGetMetadata({path:"/"+e.toLowerCase(),include_deleted:!1})});this.executePromise(k,mxUtils.bind(this,function(m){c?f(!1,!0,m):this.ui.confirm(mxResources.get("replaceIt",[e]),function(){f(!0,!0,m)},function(){f(!1,!0,m)})}),function(m){f(!0,!1)})};DropboxClient.prototype.renameFile=function(e,f,c,k){if(/[\\\/:\?\*"\|]/.test(f))k({message:mxResources.get("dropboxCharsNotAllowed")});
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
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
|
F){var Ca=P&&this.isResampleImageSize(S.size,U)?Math.min(1,Math.min(q/la,q/ya)):1;return t(qa,S.type,g+V*l,n+V*l,Math.round(la*Ca),Math.round(ya*Ca),S.name)}this.handleError({message:mxResources.get("imageTooBig")});return null}))}),P,q,U,S.size)}),mxUtils.bind(this,function(){this.handleError({message:mxResources.get("invalidOrMissingFile")})})))}else Y=Z.target.result,t(Y,S.type,g+V*l,n+V*l,240,160,S.name,function(ha){T(V,function(){return ha})},S)}catch(ha){T(V,mxUtils.bind(this,function(){return 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
|
T.setAttribute("crossorigin","");z.parentNode.insertBefore(T,z)}}}};Editor.trimCssUrl=function(l){return l.replace(RegExp("^[\\s\"']+","g"),"").replace(RegExp("[\\s\"']+$","g"),"")};Editor.GOOGLE_FONTS="https://fonts.googleapis.com/css?family=";Editor.GUID_ALPHABET="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_";Editor.GUID_LENGTH=20;Editor.guid=function(l){l=null!=l?l:Editor.GUID_LENGTH;for(var z=[],J=0;J<l;J++)z.push(Editor.GUID_ALPHABET.charAt(Math.floor(Math.random()*Editor.GUID_ALPHABET.length)));
return z.join("")};Editor.updateStatusInterval=1E4;Editor.prototype.appName="draw.io";Editor.prototype.diagramFileTypes=[{description:"diagramXmlDesc",extension:"drawio",mimeType:"text/xml"},{description:"diagramPngDesc",extension:"png",mimeType:"image/png"},{description:"diagramSvgDesc",extension:"svg",mimeType:"image/svg"},{description:"diagramHtmlDesc",extension:"html",mimeType:"text/html"},{description:"diagramXmlDesc",extension:"xml",mimeType:"text/xml"}];Editor.prototype.libraryFileTypes=[{description:"Library (.drawiolib, .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
|
g.getCurrentCellStyle(M).treeMoving);return p}function m(M){var p=!1;null!=M&&(M=n.getParent(M),p=g.view.getState(M),p="tree"==(null!=p?p.style:g.getCellStyle(M)).containerType);return p}function u(M){var p=!1;null!=M&&(M=n.getParent(M),p=g.view.getState(M),g.view.getState(M),p=null!=(null!=p?p.style:g.getCellStyle(M)).childLayout);return p}function v(M){M=g.view.getState(M);if(null!=M){var p=g.getIncomingTreeEdges(M.cell);if(0<p.length&&(p=g.view.getState(p[0]),null!=p&&(p=p.absolutePoints,null!=
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
mxEvent.getClientX(Q),mxEvent.getClientY(Q))},R=function(Q){for(d.push(Q);d.length>f;)d.shift()},N=function(Q){var P=d.length;if(1===P%2||P>=f){var M=0,p=0,y,C=0;for(y=Q;y<P;y++)C++,Q=d[y],M+=Q.x,p+=Q.y;return{x:M/C,y:p/C}}return null}}}mxFreehand.prototype.NO_SMOOTHING=1;mxFreehand.prototype.MILD_SMOOTHING=4;mxFreehand.prototype.NORMAL_SMOOTHING=8;mxFreehand.prototype.VERY_SMOOTH_SMOOTHING=12;mxFreehand.prototype.SUPER_SMOOTH_SMOOTHING=16;mxFreehand.prototype.HYPER_SMOOTH_SMOOTHING=20;function P2PCollab(b,e,f){function c(C,K){try{if(!N){var l=e.file.getCurrentUser();if(R&&null!=l&&null!=l.displayName){var z={from:G,id:n,type:C,sessionId:e.clientId,userId:l.id,username:l.displayName,data:K,protocol:DrawioFileSync.PROTOCOL,editor:EditorUi.VERSION};z={bytes:e.objectToString(z),data:"aes"};z=JSON.stringify(z);Q&&"cursor"!=C&&EditorUi.debug("P2PCollab: sending to socket server",[z]);n++;l=!Q&&("cursor"==C||"selectionChange"==C);U&&!l&&y("message",z);if(l)for(p2pId in F)F[p2pId].send(z)}}}catch(J){null!=
window.console&&console.error(J,C,K)}}function k(C){if(b.shareCursorPosition&&!A.isMouseDown){var K=mxUtils.getOffset(A.container),l=A.view.translate,z=A.view.scale,J=null!=b.currentPage?b.currentPage.getId():null;c("cursor",{pageId:J,x:Math.round((C.getX()-K.x+A.container.scrollLeft)/z-l.x),y:Math.round((C.getY()-K.y+A.container.scrollTop)/z-l.y)})}}function m(C,K){var l=null!=b.currentPage?b.currentPage.getId():null;if(null!=C&&null!=C.cursor&&null!=C.lastCursor)if(null!=C.lastCursor.hide||!b.isShowRemoteCursors()||
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
sa.className="gePropHeaderCell";var za=document.createElement("img");za.src=Sidebar.prototype.expandedImage;za.style.verticalAlign="middle";sa.appendChild(za);mxUtils.write(sa,mxResources.get("property"));ba.style.cursor="pointer";var Ba=function(){var pa=da.querySelectorAll(".gePropNonHeaderRow");if(Y.editorUi.propertiesCollapsed){za.src=Sidebar.prototype.collapsedImage;var ra="none";for(var va=l.childNodes.length-1;0<=va;va--)try{var Ga=l.childNodes[va],Ea=Ga.nodeName.toUpperCase();"INPUT"!=Ea&&
"SELECT"!=Ea||l.removeChild(Ga)}catch(Qa){}}else za.src=Sidebar.prototype.expandedImage,ra="";for(va=0;va<pa.length;va++)pa[va].style.display=ra};mxEvent.addListener(ba,"click",function(){Y.editorUi.propertiesCollapsed=!Y.editorUi.propertiesCollapsed;Ba()});ba.appendChild(sa);sa=document.createElement("th");sa.className="gePropHeaderCell";sa.innerHTML=mxResources.get("value");ba.appendChild(sa);da.appendChild(ba);var ea=!1,ha=!1;ba=null;1==J.vertices.length&&0==J.edges.length?ba=J.vertices[0].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
|
function(){window.openFile=null});if(!g){var t=this.dialog,x=t.close;this.dialog.close=mxUtils.bind(this,function(B){Editor.useLocalStorage=q;x.apply(t,arguments);B&&null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.showSplash()})}}};EditorUi.prototype.importZipFile=function(d,g,n){var q=this,t=mxUtils.bind(this,function(){this.loadingExtensions=!1;"undefined"!==typeof JSZip?JSZip.loadAsync(d).then(function(x){if(mxUtils.isEmptyObject(x.files))n();else{var B=0,G,I=!1;x.forEach(function(F,U){F=
U.name.toLowerCase();"diagram/diagram.xml"==F?(I=!0,U.async("string").then(function(R){0==R.indexOf("<mxfile ")?g(R):n()})):0==F.indexOf("versions/")&&(F=parseInt(F.substr(9)),F>B&&(B=F,G=U))});0<B?G.async("string").then(function(F){(new XMLHttpRequest).upload&&q.isRemoteFileFormat(F,d.name)?q.isOffline()?q.showError(mxResources.get("error"),mxResources.get("notInOffline"),null,n):q.parseFileData(F,mxUtils.bind(this,function(U){4==U.readyState&&(200<=U.status&&299>=U.status?g(U.responseText):n())}),
d.name):n()}):I||n()}},function(x){n(x)}):n()});"undefined"!==typeof JSZip||this.loadingExtensions||this.isOffline(!0)?t():(this.loadingExtensions=!0,mxscript("js/extensions.min.js",t,null,null,null,n))};EditorUi.prototype.importFile=function(d,g,n,q,t,x,B,G,I,F,U,R){F=null!=F?F:!0;var N=!1,Q=null,P=mxUtils.bind(this,function(M){var p=null;null!=M&&"<mxlibrary"==M.substring(0,10)?this.loadLibrary(new LocalLibrary(this,M,B)):p=this.importXml(M,n,q,F,null,null!=R?mxEvent.isControlDown(R):null);null!=
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
k&&(401===u.getStatus()?c?f({code:u.getStatus(),message:this.getErrorMessage(u,mxResources.get("accessDenied"))}):(this.logout(),this.authenticate(mxUtils.bind(this,function(){this.updateUser(e,f,!0)}),f)):200>u.getStatus()||300<=u.getStatus()?f({message:mxResources.get("accessDenied")}):(this.setUser(this.createUser(JSON.parse(u.getText()))),e()))}),f)};GitHubClient.prototype.createUser=function(e){return new DrawioUser(e.id,e.email,e.name)};GitHubClient.prototype.authenticate=function(e,f){(new mxXmlRequest(this.redirectUri+
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
DrawioFile.prototype.save=function(b,e,f,c,k,m){try{if(EditorUi.debug("DrawioFile.save",[this],"revision",b,"unloading",c,"overwrite",k,"manual",m,"saving",this.savingFile,"editable",this.isEditable(),"invalidChecksum",this.invalidChecksum),this.isEditable())if(!k&&this.invalidChecksum)if(null!=f)f({message:mxResources.get("checksum")});else throw Error(mxResources.get("checksum"));else this.updateFileData(),this.clearAutosave(),null!=e&&e();else if(null!=f)f({message:mxResources.get("readOnly")});
else throw Error(mxResources.get("readOnly"));}catch(u){if(null!=f)f(u);else throw u;}};DrawioFile.prototype.createData=function(){var b=this.ui.pages;if(this.isRealtime()&&(this.ui.pages=this.ownPages,null!=this.ui.currentPage)){var e=this.ui.getPageById(this.ui.currentPage.getId(),this.ownPages);null!=e&&(e.viewState=this.ui.editor.graph.getViewState(),e.needsUpdate=!0)}e=this.ui.getFileData(null,null,null,null,null,null,null,null,this,!this.isCompressed());this.ui.pages=b;return 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
|
S;ua.disableEdgeStyle=!1;this.executeLayout(function(){ua.execute(I.getDefaultParent(),Ua);I.moveCells(Ua,aa,ca)},!0,Z);Z=null}else if("orgchart"==ba){I.view.validate();var Ka=new mxOrgChartLayout(I,2,S,V),Ja=Ka.isVertexIgnored;Ka.isVertexIgnored=function(Da){return Ja.apply(this,arguments)||0>mxUtils.indexOf(x,Da)};this.executeLayout(function(){Ka.execute(I.getDefaultParent());na()},!0,Z);Z=null}else if("organic"==ba||"auto"==ba&&Ua.length>x.length){I.view.validate();var Aa=new mxFastOrganicLayout(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
|
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
|
EditorUi.prototype.isRevisionHistoryEnabled=function(){var d=this.getCurrentFile();return null!=d&&(d.constructor==DriveFile&&d.isEditable()||d.constructor==DropboxFile)};EditorUi.prototype.getServiceName=function(){return"draw.io"};EditorUi.prototype.addRemoteServiceSecurityCheck=function(d){d.setRequestHeader("Content-Language","da, mi, en, de-DE")};EditorUi.prototype.loadUrl=function(d,g,n,q,t,x,B,G){EditorUi.logEvent("SHOULD NOT BE CALLED: loadUrl");return this.editor.loadUrl(d,g,n,q,t,x,B,G)};
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
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
|
EditorUi.prototype.hideDialog=function(a,b,e){null!=this.dialogs&&0<this.dialogs.length&&(null==e||e==this.dialog.container.firstChild)&&(e=this.dialogs.pop(),0==e.close(a,b)?this.dialogs.push(e):(this.dialog=0<this.dialogs.length?this.dialogs[this.dialogs.length-1]:null,this.editor.fireEvent(new mxEventObject("hideDialog")),null==this.dialog&&null!=this.editor.graph.container&&"hidden"!=this.editor.graph.container.style.visibility&&window.setTimeout(mxUtils.bind(this,function(){null==this.editor||
null!=this.dialogs&&0!=this.dialogs.length||(this.editor.graph.isEditing()&&null!=this.editor.graph.cellEditor.textarea?this.editor.graph.cellEditor.textarea.focus():(mxUtils.clearSelection(),this.editor.graph.container.focus()))}),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);mxEvent.addListener(this.container,"mousemove",l);mxEvent.addListener(this.container,"mouseleave",function(T){z=null});this.isMouseInsertPoint=function(){return null!=z};var J=this.getInsertPoint;this.getInsertPoint=function(){return null!=z?this.getPointForEvent(z):J.apply(this,arguments)};var O=this.layoutManager.getLayout;this.layoutManager.getLayout=function(T){var W=this.graph.getCellStyle(T);if(null!=W&&"rack"==W.childLayout){var V=new mxStackLayout(this.graph,!1);V.gridSize=null!=W.rackUnitSize?
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
0;g<this.pages.length;g++)this.updatePageRoot(this.pages[g]),this.addBasenamesForCell(this.pages[g].root,d);else this.addBasenamesForCell(this.editor.graph.model.getRoot(),d);g=[];for(var n in d)g.push(n);return g};EditorUi.prototype.addBasenamesForCell=function(d,g){function n(B){if(null!=B){var G=B.lastIndexOf(".");0<G&&(B=B.substring(G+1,B.length));null==g[B]&&(g[B]=!0)}}var q=this.editor.graph,t=q.getCellStyle(d);n(mxStencilRegistry.getBasenameForStencil(t[mxConstants.STYLE_SHAPE]));q.model.isEdge(d)&&
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
na[Xa],0<ja.length&&(oa=document.createElement("div"),oa.className="geTempDlgImportCat",oa.innerText=mxResources.get(Xa,null,Xa),ba.appendChild(oa),F(ja,fa,ma,null,!0))}function U(ja,fa){qa.innerText="";B();var ma=Math.floor(qa.offsetWidth/150)-1;fa=!fa&&ja.length>ma?ma:ja.length;for(var na=0;na<fa;na++){var oa=ja[na];oa.isCategory=!0;var ia=document.createElement("div"),ka=mxResources.get(oa.title);null==ka&&(ka=oa.title.substring(0,1).toUpperCase()+oa.title.substring(1));ia.className="geTempDlgNewDiagramCatItem";
ia.setAttribute("title",ka);ka=mxUtils.htmlEntities(ka);15<ka.length&&(ka=ka.substring(0,15)+"…");null==O&&(I(!0),B(ia,"geTempDlgNewDiagramCatItemActive",oa));var xa=document.createElement("div");xa.className="geTempDlgNewDiagramCatItemImg";var ua=document.createElement("img");ua.src=NEW_DIAGRAM_CATS_PATH+"/"+oa.img;xa.appendChild(ua);ia.appendChild(xa);xa=document.createElement("div");xa.className="geTempDlgNewDiagramCatItemLbl";xa.innerHTML=ka;ia.appendChild(xa);qa.appendChild(ia);(function(Ka,
Ja){mxEvent.addListener(ia,"click",function(){O!=Ja&&(I(!0),B(Ja,"geTempDlgNewDiagramCatItemActive",Ka))});mxEvent.addListener(ia,"dblclick",G)})(oa,ia)}ia=document.createElement("div");ia.className="geTempDlgNewDiagramCatItem";ka=mxResources.get("showAllTemps");ia.setAttribute("title",ka);xa=document.createElement("div");xa.className="geTempDlgNewDiagramCatItemImg";xa.innerText="...";xa.style.fontSize="32px";ia.appendChild(xa);xa=document.createElement("div");xa.className="geTempDlgNewDiagramCatItemLbl";
xa.innerText=ka;ia.appendChild(xa);qa.appendChild(ia);mxEvent.addListener(ia,"click",function(){function Ka(){var Aa=Ja.querySelector(".geTemplateDrawioCatLink");null!=Aa?Aa.click():setTimeout(Ka,200)}ca=!0;var Ja=C.querySelector(".geTemplatesList");Ja.style.display="block";Ba.style.width="";Ca.style.display="";Ca.value="";Y=null;Ka()});da.style.display=ja.length<=ma?"none":""}function R(ja,fa,ma){function na(Oa,Xa){Oa=mxResources.get(Oa,null,Oa.substring(0,1).toUpperCase()+Oa.substring(1));var Sa=
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
height:Math.round(k.height),border:100}))));m=new EmbedDialog(this,this.getLinkForPage(b,f,m));this.showDialog(m.container,450,240,!0,!0);m.init()}))};(function(){mxCodecRegistry.getCodec(ChangePageSetup).exclude.push("page")})();(function(){var b=new mxObjectCodec(new MovePage,["ui"]);b.beforeDecode=function(e,f,c){c.ui=e.ui;return f};b.afterDecode=function(e,f,c){e=c.oldIndex;c.oldIndex=c.newIndex;c.newIndex=e;return c};mxCodecRegistry.register(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
|
DrawioFile.prototype.updateFile=function(b,e,f,c,k){null!=f&&f()||(EditorUi.debug("DrawioFile.updateFile",[this],"immediate",k,"invalidChecksum",this.invalidChecksum),this.ui.getCurrentFile()!=this||this.invalidChecksum?null!=e&&e():this.getLatestVersion(mxUtils.bind(this,function(m){try{null!=f&&f()||(EditorUi.debug("DrawioFile.updateFile",[this],"invalidChecksum",this.invalidChecksum,"latestFile",[m]),this.ui.getCurrentFile()!=this||this.invalidChecksum?null!=e&&e():null!=m?this.mergeFile(m,b,e,
c,k):this.reloadFile(b,e))}catch(u){null!=e&&e(u)}}),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
|
this.createDarkStyle();this.createTimeout(null,mxUtils.bind(this,function(x){t.onerror=mxUtils.bind(this,function(B){x.clear()&&n(Error(mxResources.get("errorLoadingFile")+" "+t.getAttribute("href")))});t.onload=mxUtils.bind(this,function(){x.clear()&&(this.darkStyle=t,q())});document.getElementsByTagName("head")[0].appendChild(t)}),mxUtils.bind(this,function(){n(Error(mxResources.get("timeout")+" "+t.getAttribute("href")))}))}};EditorUi.prototype.setPagesVisible=function(d){Editor.pagesVisible!=
d&&(Editor.pagesVisible=d,mxSettings.settings.pagesVisible=d,mxSettings.save(),this.fireEvent(new mxEventObject("pagesVisibleChanged")))};EditorUi.prototype.setSidebarTitles=function(d,g){this.sidebar.sidebarTitles!=d&&(this.sidebar.sidebarTitles=d,this.sidebar.refresh(),Editor.isSettingsEnabled()&&g&&(mxSettings.settings.sidebarTitles=d,mxSettings.save()),this.fireEvent(new mxEventObject("sidebarTitlesChanged")))};EditorUi.prototype.saveScrollState=function(){var d=this.editor.graph.view.translate,
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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.apply(this,arguments);null==z&&null!=this.globalVars&&(z=this.globalVars[l]);return z};Graph.prototype.getDefaultStylesheet=function(){if(null==this.defaultStylesheet){var l=this.themes["default-style2"];this.defaultStylesheet=(new mxCodec(l.ownerDocument)).decode(l)}return this.defaultStylesheet};Graph.prototype.isViewer=function(){return urlParams.viewer};var G=Graph.prototype.getSvg;Graph.prototype.getSvg=function(l,z,J,O,T,W,V,S,X,Z,Y,aa,ca,da){var ba=null,sa=null,za=null;aa||null==this.themes||
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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.libraryLoaded(d,q,n.documentElement.getAttribute("title"),g)}else throw{message:mxResources.get("notALibraryFile")};};EditorUi.prototype.getLibraryStorageHint=function(d){return""};EditorUi.prototype.libraryLoaded=function(d,g,n,q){if(null!=this.sidebar){d.constructor!=LocalLibrary&&mxSettings.addCustomLibrary(d.getHash());var t=null;if(d.constructor!=StorageLibrary||".scratchpad"!=d.title){null==this.openLibraries&&(this.openLibraries=[]);for(var x=0;x<this.openLibraries.length;x++)if(this.openLibraries[x].file.getHash()==
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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){var Ca=P&&this.isResampleImageSize(S.size,U)?Math.min(1,Math.min(q/la,q/ya)):1;return t(qa,S.type,g+V*l,n+V*l,Math.round(la*Ca),Math.round(ya*Ca),S.name)}this.handleError({message:mxResources.get("imageTooBig")});return null}))}),P,q,U,S.size)}),mxUtils.bind(this,function(){this.handleError({message:mxResources.get("invalidOrMissingFile")})})))}else Y=Z.target.result,t(Y,S.type,g+V*l,n+V*l,240,160,S.name,function(ha){T(V,function(){return ha})},S)}catch(ha){T(V,mxUtils.bind(this,function(){return 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
|
var A=urlParams.title;A=null!=A?decodeURIComponent(A):this.defaultFilename;D=new LocalFile(this,D,A,!0);null!=window.location.hash&&"#P"==window.location.hash.substring(0,2)&&(D.getHash=function(){return window.location.hash.substring(1)});this.fileLoaded(D);this.getCurrentFile().setModified(!this.editor.chromeless)}),v=window.opener||window.parent;if(v!=window){var E=urlParams.create;null!=E?u(v[decodeURIComponent(E)]):(E=urlParams.data,null!=E?u(decodeURIComponent(E)):this.installMessageHandler(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
|
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
|
Editor.globalVars;if(null!=urlParams.vars)try{this.globalVars=null!=this.globalVars?mxUtils.clone(this.globalVars):{};var l=JSON.parse(decodeURIComponent(urlParams.vars));if(null!=l)for(var z in l)this.globalVars[z]=l[z]}catch(J){null!=window.console&&console.log("Error in vars URL parameter: "+J)}};Graph.prototype.getExportVariables=function(){return null!=this.globalVars?mxUtils.clone(this.globalVars):{}};var B=Graph.prototype.getGlobalVariable;Graph.prototype.getGlobalVariable=function(l){var z=
B.apply(this,arguments);null==z&&null!=this.globalVars&&(z=this.globalVars[l]);return z};Graph.prototype.getDefaultStylesheet=function(){if(null==this.defaultStylesheet){var l=this.themes["default-style2"];this.defaultStylesheet=(new mxCodec(l.ownerDocument)).decode(l)}return this.defaultStylesheet};Graph.prototype.isViewer=function(){return urlParams.viewer};var G=Graph.prototype.getSvg;Graph.prototype.getSvg=function(l,z,J,O,T,W,V,S,X,Z,Y,aa,ca,da){var ba=null,sa=null,za=null;aa||null==this.themes||
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
function(e,f,c,k,m){this.insertFile(e,f,c,k,!0,m)};OneDriveClient.prototype.insertFile=function(e,f,c,k,m,u){this.isValidFilename(e)?(m=null!=m?m:!1,this.checkExists(u,e,!0,mxUtils.bind(this,function(v){if(v){v="/me/drive/root";null!=u&&(v=this.getItemURL(u,!0));var E=mxUtils.bind(this,function(D){m?c(new OneDriveLibrary(this.ui,f,D)):c(new OneDriveFile(this.ui,f,D))});v=this.baseUrl+v+"/children/"+encodeURIComponent(e)+"/content";4E6<=f.length?this.writeFile(v,"","PUT",null,mxUtils.bind(this,function(D){this.writeLargeFile(this.getItemURL(D.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
|
y),(l==mxLanguage||""==l&&null==mxLanguage)&&p.addCheckmark(J,Editor.checkmarkImage));return J});C("");p.addSeparator(y);for(var K in mxLanguageMap)C(K)})));var d=Menus.prototype.createMenubar;Menus.prototype.createMenubar=function(p){var y=d.apply(this,arguments);if(("1"!=urlParams.embed||"1"==urlParams.atlas)&&null!=y&&Editor.enableSimpleTheme&&"atlassian"!=c.getServiceName()){var C=this.get("appearance");if(null!=C){var K=y.addMenu("",C.funct);K.setAttribute("title",mxResources.get("appearance"));
K.className="geToolbarButton geAdaptiveAsset";K.style.backgroundPosition="center center";K.style.backgroundRepeat="no-repeat";K.style.backgroundSize="100% 100%";K.style.display="inline-block";K.style.cursor="pointer";K.style.zIndex="1";K.style.position="absolute";K.style.height="18px";K.style.width="18px";"atlas"==Editor.currentTheme?(K.style.filter="invert(100%)",K.style.right="11px",K.style.top="10px"):(K.style.right="10px",K.style.top="5px");document.body.appendChild(K);y.langIcon=K;C=mxUtils.bind(this,
function(){var l=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;K.style.display="atlas"==Editor.currentTheme||"min"==Editor.currentTheme||"sketch"==Editor.currentTheme?"none":"";K.style.backgroundImage="simple"==Editor.currentTheme?750>l?"url("+Editor.thinDoubleArrowRightImage+")":"url("+(Editor.isDarkMode()?Editor.thinDarkImage:Editor.thinLightImage)+")":"url("+(Editor.isDarkMode()?Editor.darkModeImage:Editor.lightModeImage)+")"});this.editorUi.addListener("currentThemeChanged",
C);this.editorUi.addListener("darkModeChanged",C);mxEvent.addListener(window,"resize",C);C()}}return y}}c.customLayoutConfig=[{layout:"mxHierarchicalLayout",config:{orientation:"west",intraCellSpacing:30,interRankCellSpacing:100,interHierarchySpacing:60,parallelEdgeSpacing:10}}];c.actions.addAction("runLayout",function(){c.showCustomLayoutDialog(JSON.stringify(c.customLayoutConfig,null,2))});A=this.get("viewZoom");var g=A.funct;A.funct=mxUtils.bind(this,function(p,y){g.apply(this,arguments);"sketch"!=
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
"https://app.diagrams.net/";var B=d.editor.getEditBlankUrl;this.editor.getEditBlankUrl=function(C){C=null!=C?C:"";"1"==urlParams.dev&&(C+=(0<C.length?"&":"?")+"dev=1");return B.apply(this,arguments)};var G=g.addClickHandler;g.addClickHandler=function(C,K,l){var z=K;K=function(J,O){if(null==O){var T=mxEvent.getSource(J);"a"==T.nodeName.toLowerCase()&&(O=T.getAttribute("href"))}null!=O&&g.isCustomLink(O)&&(mxEvent.isTouchEvent(J)||!mxEvent.isPopupTrigger(J))&&g.customLinkClicked(O)&&mxEvent.consume(J);
null!=z&&z(J,O)};G.call(this,C,K,l)};m.apply(this,arguments);mxClient.IS_SVG&&this.editor.graph.addSvgShadow(g.view.canvas.ownerSVGElement,null,!0);if(null!=this.menus){var I=Menus.prototype.addPopupMenuItems;this.menus.addPopupMenuItems=function(C,K,l){g.isSelectionEmpty()&&"simple"==Editor.currentTheme&&this.addMenuItems(C,["zoomIn","zoomOut","-"],null,l);I.apply(this,arguments);g.isSelectionEmpty()||null==d.addSelectionToScratchpad||this.addMenuItems(C,["-","addToScratchpad"],null,l);g.isSelectionEmpty()&&
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
y:P.constObj.point.y,dx:P.constObj.dx,dy:P.constObj.dy};var M=0,p=0,y=H.geometry,C=mxUtils.format((P.geometry.x+3-y.x)/y.width);P=mxUtils.format((P.geometry.y+3-y.y)/y.height);0>C?(M=C*y.width,C=0):1<C&&(M=(C-1)*y.width,C=1);0>P?(p=P*y.height,P=0):1<P&&(p=(P-1)*y.height,P=1);return{x:C,y:P,dx:parseInt(M),dy:parseInt(p)}}function D(P){if(1==L.getSelectionCount()){var M=L.getSelectionCell();P&&(M.constObj=null);P=E(M);U.value=100*P.x;N.value=100*P.y;R.value=P.dx;Q.value=P.dy;F.style.visibility=""}else F.style.visibility=
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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 SaveDialog=function(b,e,f,c,k,m,u){function v(Q,P,M,p,y,C){var K=null;if(null==c||0>mxUtils.indexOf(c,Q))if(y=null!=y?y:b.getTitleForService(Q),0<=mxUtils.indexOf(I,Q)||null!=b.getServiceForName(Q)){K=document.createElement("option");if("pick"==C)K.innerHTML=mxUtils.htmlEntities(y)+" – "+mxUtils.htmlEntities(mxResources.get("pickFolder"))+"...",K.setAttribute("value","pickFolder-"+Q),K.setAttribute("title",y+" - "+mxResources.get("pickFolder")+"...");else{var l=Q+(null!=
M?"-"+M:""),z=R[l];null!=z&&null!=z.option&&z.option.parentNode.removeChild(z.option);z=null;if(null!=P){"/"==P.charAt(P.length-1)&&(P=P.substring(0,P.length-1));"/"==P.charAt(0)&&(P=P.substring(1));z=P;var J=z.lastIndexOf("/");0<=J&&(z=z.substring(J+1));25<z.length&&(z=z.substring(0,25)+"...")}K.innerHTML=(null!=z?mxUtils.htmlEntities(z)+" – ":"")+mxUtils.htmlEntities(y);K.setAttribute("title",y+(null!=P?" ("+P+")":"")+(null!=M&&decodeURIComponent(M)!=P?" ["+M+"]":""));
K.setAttribute("value",l);R[l]={option:K,mode:Q,path:P,id:M};SaveDialog.lastValue==l?p=!0:null==p&&("root"==C?p=b.mode==Q:"pickFolder-"==B.value.substring(0,11)&&(p=!0));p&&K.setAttribute("selected","selected")}B.appendChild(K)}return K}function E(Q){b.pickFolder(Q,function(P){var M=null;Q==App.MODE_GOOGLE&&null!=P.docs&&0<P.docs.length?M={mode:Q,path:P.docs[0].name,id:P.docs[0].id}:Q==App.MODE_ONEDRIVE&&null!=P.value&&0<P.value.length?M={mode:Q,path:P.value[0].name,id:P.value[0].id}:(Q==App.MODE_GITHUB||
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
arguments))};var q=mxSvgCanvas2D.prototype.updateTextNodes;mxSvgCanvas2D.prototype.updateTextNodes=function(l,z,J,O,T,W,V,S,X,Z,Y){q.apply(this,arguments);Graph.processFontAttributes(Y)};var t=mxText.prototype.redraw;mxText.prototype.redraw=function(){t.apply(this,arguments);null!=this.node&&"DIV"==this.node.nodeName&&Graph.processFontAttributes(this.node)};Graph.prototype.createTagsDialog=function(l,z,J,O){function T(){for(var sa=S.getSelectionCells(),za=[],Ba=0;Ba<sa.length;Ba++)S.isCellVisible(sa[Ba])&&
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
mxJsCanvas.prototype.roundrect=function(b,e,f,c,k,m){this.begin();this.moveTo(b+k,e);this.lineTo(b+f-k,e);this.quadTo(b+f,e,b+f,e+m);this.lineTo(b+f,e+c-m);this.quadTo(b+f,e+c,b+f-k,e+c);this.lineTo(b+k,e+c);this.quadTo(b,e+c,b,e+c-m);this.lineTo(b,e+m);this.quadTo(b,e,b+k,e)};mxJsCanvas.prototype.ellipse=function(b,e,f,c){this.ctx.save();this.ctx.translate(b+f/2,e+c/2);this.ctx.scale(f/2,c/2);this.ctx.beginPath();this.ctx.arc(0,0,1,0,2*Math.PI,!1);this.ctx.restore()};
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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
|
DrawioFile.prototype.commentsRefreshNeeded=function(){return!0};DrawioFile.prototype.commentsSaveNeeded=function(){return!1};DrawioFile.prototype.getComments=function(b,e){b([])};DrawioFile.prototype.addComment=function(b,e,f){e(Date.now())};DrawioFile.prototype.canReplyToReplies=function(){return!0};DrawioFile.prototype.canComment=function(){return!0};DrawioFile.prototype.newComment=function(b,e){return new DrawioComment(this,null,b,Date.now(),Date.now(),!1,e)};LocalFile=function(b,e,f,c,k,m){DrawioFile.call(this,b,e);this.title=f;this.mode=c?null:App.MODE_DEVICE;this.fileHandle=k;this.desc=m};mxUtils.extend(LocalFile,DrawioFile);LocalFile.prototype.isAutosave=function(){return null!=this.fileHandle&&!this.invalidFileHandle&&DrawioFile.prototype.isAutosave.apply(this,arguments)};LocalFile.prototype.isAutosaveOptional=function(){return null!=this.fileHandle};LocalFile.prototype.getMode=function(){return this.mode};LocalFile.prototype.getTitle=function(){return this.title};
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
focus:function(){q.focus()}}};EditorUi.prototype.createUrlParameters=function(d,g,n,q,t,x,B){B=null!=B?B:[];q&&("https://viewer.diagrams.net"==EditorUi.lightboxHost&&"1"!=urlParams.dev||B.push("lightbox=1"),"auto"!=d&&B.push("target="+d),null!=g&&g!=mxConstants.NONE&&B.push("highlight="+("#"==g.charAt(0)?g.substring(1):g)),null!=t&&0<t.length&&B.push("edit="+encodeURIComponent(t)),x&&B.push("layers=1"),this.editor.graph.foldingEnabled&&B.push("nav=1"));n&&null!=this.currentPage&&null!=this.pages&&
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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!=ba&&(this.shapeBackgroundColor=za,this.shapeForegroundColor=sa,this.stylesheet=ba,this.refresh());return Ba};var I=mxCellRenderer.prototype.destroy;mxCellRenderer.prototype.destroy=function(l){I.apply(this,arguments);null!=l.secondLabel&&(l.secondLabel.destroy(),l.secondLabel=null)};mxCellRenderer.prototype.getShapesForState=function(l){return[l.shape,l.text,l.secondLabel,l.control]};var F=mxGraphView.prototype.resetValidationState;mxGraphView.prototype.resetValidationState=function(){F.apply(this,
arguments);this.enumerationState=0};var U=mxGraphView.prototype.stateValidated;mxGraphView.prototype.stateValidated=function(l){null!=l.shape&&this.redrawEnumerationState(l);return U.apply(this,arguments)};mxGraphView.prototype.createEnumerationValue=function(l){l=decodeURIComponent(mxUtils.getValue(l.style,"enumerateValue",""));""==l&&(l=++this.enumerationState);return'<div style="padding:2px;border:1px solid gray;background:yellow;border-radius:2px;">'+mxUtils.htmlEntities(l)+"</div>"};mxGraphView.prototype.redrawEnumerationState=
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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);null==this.user&&this.updateUser(this.emptyFn,this.emptyFn,!0)});null==b||6E4>this.tokenExpiresOn-Date.now()?this.authenticate(mxUtils.bind(this,function(){k(this.inlinePicker&&f)}),c):k(f)};OneDriveClient.prototype.pickFile=function(e,f){e=null!=e?e:mxUtils.bind(this,function(m){this.ui.loadFile("W"+encodeURIComponent(m))});var c=mxUtils.bind(this,function(m){this.ui.showError(mxResources.get("error"),m&&m.message?m.message:m)}),k=this.inlinePicker?this.createInlinePicker(e,null,f):mxUtils.bind(this,
function(){OneDrive.open({clientId:this.clientId,action:"query",multiSelect:!1,advanced:{endpointHint:mxClient.IS_IE11?null:this.endpointHint,redirectUri:this.pickerRedirectUri,queryParameters:"select=id,name,parentReference,webUrl",accessToken:b,isConsumerAccount:!1},success:mxUtils.bind(this,function(m){null!=m&&null!=m.value&&0<m.value.length&&(mxClient.IS_IE11&&(b=m.accessToken),e(OneDriveFile.prototype.getIdOf(m.value[0]),m))}),cancel:mxUtils.bind(this,function(){}),error:c});null==this.user&&
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+
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
return U}),F=!0);return F};var B=t.stop;t.stop=function(){B.call(this);this.active=!1;null!=t.status&&null!=t.status.parentNode&&t.status.parentNode.removeChild(t.status);t.status=null};t.pause=function(){return function(){}};return t};EditorUi.prototype.isCompatibleString=function(d){try{var g=mxUtils.parseXml(d),n=this.editor.extractGraphModel(g.documentElement,!0);return null!=n&&0==n.getElementsByTagName("parsererror").length}catch(q){}return!1};EditorUi.prototype.isVisioData=function(d){return 8<
d.length&&(208==d.charCodeAt(0)&&207==d.charCodeAt(1)&&17==d.charCodeAt(2)&&224==d.charCodeAt(3)&&161==d.charCodeAt(4)&&177==d.charCodeAt(5)&&26==d.charCodeAt(6)&&225==d.charCodeAt(7)||80==d.charCodeAt(0)&&75==d.charCodeAt(1)&&3==d.charCodeAt(2)&&4==d.charCodeAt(3)||80==d.charCodeAt(0)&&75==d.charCodeAt(1)&&3==d.charCodeAt(2)&&6==d.charCodeAt(3))};EditorUi.prototype.isRemoteVisioData=function(d){return 8<d.length&&(208==d.charCodeAt(0)&&207==d.charCodeAt(1)&&17==d.charCodeAt(2)&&224==d.charCodeAt(3)&&
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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
|
e.w,e.h,e,e.aspect,e.title);mxEvent.addListener(d,"dragleave",function(U){g.style.cursor="";for(var R=mxEvent.getSource(U);null!=R;){if(R==d||R==g){U.stopPropagation();U.preventDefault();break}R=R.parentNode}});var I=function(U){return function(R,N,Q,P,M,p,y,C,K){null!=K&&(/(\.v(dx|sdx?))($|\?)/i.test(K.name)||/(\.vs(x|sx?))($|\?)/i.test(K.name))?b.importVisio(K,mxUtils.bind(this,function(l){v(l,N,Q,P,M,p,y,"fixed",mxEvent.isAltDown(U)?null:y.substring(0,y.lastIndexOf(".")).replace(/_/g," "))})):
null!=K&&(new XMLHttpRequest).upload&&b.isRemoteFileFormat(R,K.name)?b.isExternalDataComms()?b.parseFile(K,mxUtils.bind(this,function(l){4==l.readyState&&(b.spinner.stop(),200<=l.status&&299>=l.status&&(v(l.responseText,N,Q,P,M,p,y,"fixed",mxEvent.isAltDown(U)?null:y.substring(0,y.lastIndexOf(".")).replace(/_/g," ")),d.scrollTop=d.scrollHeight))})):(b.spinner.stop(),b.showError(mxResources.get("error"),mxResources.get("notInOffline"))):(v(R,N,Q,P,M,p,y,"fixed",mxEvent.isAltDown(U)?null:y.substring(0,
y.lastIndexOf(".")).replace(/_/g," ")),d.scrollTop=d.scrollHeight)}};mxEvent.addListener(d,"dragover",E);mxEvent.addListener(d,"drop",D);mxEvent.addListener(g,"dragover",E);mxEvent.addListener(g,"drop",D);f.appendChild(d);c=document.createElement("div");c.style.textAlign="right";c.style.marginTop="20px";L=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog(!0)});L.setAttribute("id","btnCancel");L.className="geBtn";b.editor.cancelFirst&&c.appendChild(L);"draw.io"!=b.getServiceName()||
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
|
https://cwe.mitre.org/data/definitions/78.html
|
safe
|
"checked"):(H=parseInt(p[5]),B.value=H,q.setAttribute("checked","checked"),x.style.visibility="visible"):n.setAttribute("checked","checked")):f=null}else f=null}catch(T){}d.style=g+(f?f:k());d.vertex=!0;A.addCell(d,null,null,null,null);A.selectAll();A.addListener(mxEvent.CELLS_MOVED,F);A.addListener(mxEvent.CELLS_RESIZED,F);var z=A.graphHandler.mouseUp,J=A.graphHandler.mouseDown;A.graphHandler.mouseUp=function(){z.apply(this,arguments);D.style.backgroundColor="#fff9"};A.graphHandler.mouseDown=function(){J.apply(this,
arguments);D.style.backgroundColor=""};A.dblClick=function(){};var O=A.getSelectionModel().changeSelection;A.getSelectionModel().changeSelection=function(){O.call(this,[d],[d])}};E.onerror=function(){E.onload=null;E.src=Editor.errorImage};E.setAttribute("src",e);E.style.maxWidth="300px";E.style.maxHeight="300px";v.appendChild(E);u.appendChild(v);var D=document.createElement("div");D.style.width="300px";D.style.height="300px";D.style.overflow="hidden";D.style.backgroundColor="#fff9";u.appendChild(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
|
height:Math.round(k.height),border:100}))));m=new EmbedDialog(this,this.getLinkForPage(b,f,m));this.showDialog(m.container,450,240,!0,!0);m.init()}))};(function(){mxCodecRegistry.getCodec(ChangePageSetup).exclude.push("page")})();(function(){var b=new mxObjectCodec(new MovePage,["ui"]);b.beforeDecode=function(e,f,c){c.ui=e.ui;return f};b.afterDecode=function(e,f,c){e=c.oldIndex;c.oldIndex=c.newIndex;c.newIndex=e;return c};mxCodecRegistry.register(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
|
null!=z&&z(J,O)};G.call(this,C,K,l)};m.apply(this,arguments);mxClient.IS_SVG&&this.editor.graph.addSvgShadow(g.view.canvas.ownerSVGElement,null,!0);if(null!=this.menus){var I=Menus.prototype.addPopupMenuItems;this.menus.addPopupMenuItems=function(C,K,l){g.isSelectionEmpty()&&"simple"==Editor.currentTheme&&this.addMenuItems(C,["zoomIn","zoomOut","-"],null,l);I.apply(this,arguments);g.isSelectionEmpty()||null==d.addSelectionToScratchpad||this.addMenuItems(C,["-","addToScratchpad"],null,l);g.isSelectionEmpty()&&
"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,
| 1 |
JavaScript
|
CWE-78
|
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
|
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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.