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
typeof mxMermaidToDrawio)ea=ca=va;va=g.cloneNode(!0);ma.appendChild(va);Ma=function(Pa){M=null!=b.sidebar.tooltip&&"none"!=b.sidebar.tooltip.style.display};Oa=function(Pa){M||y(Ra,mxEvent.getClientX(Pa),mxEvent.getClientY(Pa),Qa,Ca)};mxEvent.addGestureListeners(Qa,Ma,null,Oa);mxEvent.addGestureListeners(va,Ma,null,Oa)},function(va){b.handleError(va)})});Ja.setAttribute("disabled","disabled");Ja.className="geBtn gePrimaryBtn";oa=function(){window.setTimeout(function(){""!=la.value?Ja.removeAttribute("disabled"): Ja.setAttribute("disabled","disabled")},0)};ka=urlParams["smart-template"];null!=ka&&"1"!=ka&&(la.value=decodeURIComponent(ka),oa(),"1"==urlParams["smart-template-generate"]&&window.setTimeout(function(){Ja.click()},0));mxEvent.addListener(la,"change",oa);mxEvent.addListener(la,"keydown",oa);mxEvent.addListener(la,"cut",oa);mxEvent.addListener(la,"paste",oa);mxEvent.addListener(la,"keydown",function(Ha){13==Ha.keyCode&&Ja.click()});oa=document.createElement("div");oa.style.height="40px";oa.style.marginTop=
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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!=aa&&(this.shapeBackgroundColor=za,this.shapeForegroundColor=ra,this.stylesheet=aa,this.refresh());return Ba};var G=mxCellRenderer.prototype.destroy;mxCellRenderer.prototype.destroy=function(g){G.apply(this,arguments);null!=g.secondLabel&&(g.secondLabel.destroy(),g.secondLabel=null)};mxCellRenderer.prototype.getShapesForState=function(g){return[g.shape,g.text,g.secondLabel,g.control]};var B=mxGraphView.prototype.resetValidationState;mxGraphView.prototype.resetValidationState=function(){B.apply(this,
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
k&&t.setAttribute("resource",k);var P=mxUtils.bind(this,function(N){N=(n?"":Graph.xmlDeclaration+"\n"+Graph.svgFileComment+"\n"+Graph.svgDoctype+"\n")+mxUtils.getXml(N);null!=p&&p(N);return N});e.mathEnabled&&this.editor.addMathCss(t);if(null!=p)this.embedFonts(t,mxUtils.bind(this,function(N){C?this.editor.convertImages(N,mxUtils.bind(this,function(H){P(H)})):P(N)}));else return P(t)};EditorUi.prototype.embedFonts=function(c,e){this.editor.loadFonts(mxUtils.bind(this,function(){try{null!=this.editor.resolvedFontCss&& this.editor.addFontCss(c,this.editor.resolvedFontCss),this.editor.embedExtFonts(mxUtils.bind(this,function(k){try{null!=k&&this.editor.addFontCss(c,k),e(c)}catch(n){e(c)}}))}catch(k){e(c)}}))};EditorUi.prototype.exportImage=function(c,e,k,n,p,t,y,C,G,B,V,R,O){G=null!=G?G:"png";if(this.spinner.spin(document.body,mxResources.get("exporting"))){var P=this.editor.graph.isSelectionEmpty();k=null!=k?k:P;null==this.thumbImageCache&&(this.thumbImageCache={});try{this.editor.exportToCanvas(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
p.geometry.height+=G.gridSize}finally{G.getModel().endUpdate()}return[p]}}return[]};EditorUi.prototype.formatFileSize=function(c){var e=-1;do c/=1024,e++;while(1024<c);return Math.max(c,.1).toFixed(1)+" kB; MB; GB; TB;PB;EB;ZB;YB".split(";")[e]};EditorUi.prototype.convertDataUri=function(c){if("data:"==c.substring(0,5)){var e=c.indexOf(";");0<e&&(c=c.substring(0,e)+c.substring(c.indexOf(",",e+1)))}return c};EditorUi.prototype.isRemoteFileFormat=function(c,e){return/("contentType":\s*"application\/gliffy\+json")/.test(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
T.fillStyle=W;return T};g.prototype.begin=function(){this.passThrough?this.originalBegin.apply(this.canvas,arguments):this.path=[]};g.prototype.end=function(){this.passThrough&&this.originalEnd.apply(this.canvas,arguments)};g.prototype.addOp=function(){if(null!=this.path&&(this.path.push(arguments[0]),2<arguments.length))for(var S=2;S<arguments.length;S+=2)this.lastX=arguments[S-1],this.lastY=arguments[S],this.path.push(this.canvas.format(this.lastX)),this.path.push(this.canvas.format(this.lastY))};
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
function(P){E=P};this.setAutoScroll=function(P){U=P};this.setOpenFill=function(P){J=P};this.setStopClickEnabled=function(P){k=P};this.setSelectInserted=function(P){n=P};this.setSmoothing=function(P){l=P};this.setPerfectFreehandMode=function(P){t=P};this.isPerfectFreehandMode=function(){return t};this.setBrushSize=function(P){p.size=P};this.getBrushSize=function(){return p.size};var y=function(P){e=P;b.getRubberband().setEnabled(!P);b.graphHandler.setSelectEnabled(!P);b.graphHandler.setMoveEnabled(!P);
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
t.descriptorChanged=function(){R.apply(this,arguments);var T=t.getCurrentFile();if(null!=T&&null!=T.getTitle()){var X=T.getMode();"google"==X?X="googleDrive":"github"==X?X="gitHub":"gitlab"==X?X="gitLab":"onedrive"==X&&(X="oneDrive");X=mxResources.get(X);C.setAttribute("title",T.getTitle()+(null!=X?" ("+X+")":""))}else C.removeAttribute("title")};t.setStatusText(t.editor.getStatus());C.appendChild(t.statusContainer);t.buttonContainer=document.createElement("div");t.buttonContainer.style.cssText="display:flex;justify-content:flex-end;padding-right:10px;gap:6px;white-space:nowrap;background-color:inherit;align-items:center;min-width:0;margin-left:auto;";
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
"sketchStyle","rough")?this.createComicCanvas(S):this.createRoughCanvas(S)};var F=mxImageShape.prototype.paintVertexShape;mxImageShape.prototype.paintVertexShape=function(S,W,T,X,Z){null!=S.handJiggle&&S.handJiggle.passThrough||F.apply(this,arguments)};var M=mxShape.prototype.paint;mxShape.prototype.paint=function(S){var W=S.addTolerance,T=!0;null!=this.style&&(T="1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1"));if(null!=S.handJiggle&&S.handJiggle.constructor==g&&!this.outline){S.save(); var X=this.fill,Z=this.stroke;this.stroke=this.fill=null;var Y=this.configurePointerEvents,ba=S.setStrokeColor;S.setStrokeColor=function(){};var fa=S.setFillColor;S.setFillColor=function(){};T||null==X||(this.configurePointerEvents=function(){});S.handJiggle.passThrough=!0;M.apply(this,arguments);S.handJiggle.passThrough=!1;S.setFillColor=fa;S.setStrokeColor=ba;this.configurePointerEvents=Y;this.stroke=Z;this.fill=X;S.restore();T&&null!=X&&(S.addTolerance=function(){})}M.apply(this,arguments);S.addTolerance= W};var Q=mxShape.prototype.paintGlassEffect;mxShape.prototype.paintGlassEffect=function(S,W,T,X,Z,Y){null!=S.handJiggle&&S.handJiggle.constructor==g?(S.handJiggle.passThrough=!0,Q.apply(this,arguments),S.handJiggle.passThrough=!1):Q.apply(this,arguments)}})();Editor.fastCompress=function(g){return null==g||0==g.length||"undefined"===typeof pako?g:Graph.arrayBufferToString(pako.deflateRaw(g))};Editor.fastDecompress=function(g){return null==g||0==g.length||"undefined"===typeof pako?g:pako.inflateRaw(Graph.stringToArrayBuffer(atob(g)),
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
"metaEdit","0")?c.showDataDialog(A):k.apply(this,arguments)}}catch(F){c.handleError(F)}};e.getLinkTitle=function(A){return c.getLinkTitle(A)};e.customLinkClicked=function(A){var I=!1;try{c.handleCustomLink(A),I=!0}catch(g){c.handleError(g)}return I};var n=e.parseBackgroundImage;e.parseBackgroundImage=function(A){var I=n.apply(this,arguments);null!=I&&null!=I.src&&Graph.isPageLink(I.src)&&(I={originalSrc:I.src});return I};var p=e.setBackgroundImage;e.setBackgroundImage=function(A){null!=A&&null!=A.originalSrc&&
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
"\n":"")+Graph.svgDoctype+"\n"+mxUtils.getXml(g))});this.editor.graph.mathEnabled&&this.editor.addMathCss(m);var I=mxUtils.bind(this,function(g){t?(null==this.thumbImageCache&&(this.thumbImageCache={}),this.editor.convertImages(g,A,this.thumbImageCache)):A(g)});O?this.embedFonts(m,I):(this.editor.addFontCss(m),I(m))}catch(g){this.handleError(g)}};EditorUi.prototype.addRadiobox=function(c,e,k,n,p,t,y){return this.addCheckbox(c,k,n,p,t,y,!0,e)};EditorUi.prototype.addCheckbox=function(c,e,k,n,p,t,y, C){t=null!=t?t:!0;var G=document.createElement("input");G.style.marginRight="8px";G.style.marginTop="16px";G.setAttribute("type",y?"radio":"checkbox");y="geCheckbox-"+Editor.guid();G.id=y;null!=C&&G.setAttribute("name",C);k&&(G.setAttribute("checked","checked"),G.defaultChecked=!0);n&&G.setAttribute("disabled","disabled");t&&(c.appendChild(G),k=document.createElement("label"),mxUtils.write(k,e),k.setAttribute("for",y),c.appendChild(k),p||mxUtils.br(c));return G};EditorUi.prototype.addEditButton=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
null!=window.console&&console.error(ha,T)}});/(\.v(dx|sdx?))($|\?)/i.test(T.name)||/(\.vs(x|sx?))($|\?)/i.test(T.name)?p(null,T.type,e+W*g,k+W*g,240,160,T.name,function(Z){Q(W,function(){return Z})},T):"image"==T.type.substring(0,5)||"application/pdf"==T.type?X.readAsDataURL(T):X.readAsText(T)}})(S)});if(H){H=[];for(v=0;v<c.length;v++)H.push(c[v]);c=H;this.confirmImageResize(function(I){N=I;A()},G)}else A()};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(c,e){e=null!=e?e:!1;var k=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},n=isLocalStorage||mxClient.IS_CHROMEAPP?mxSettings.getResizeImages():null,p=function(t,y){if(t||e)mxSettings.setResizeImages(t?y:null),mxSettings.save();k();c(y)};null==n||e?this.showDialog((new ConfirmDialog(this,mxResources.get("resizeLargeImages"),function(t){p(t,
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
"metaEdit","0")?c.showDataDialog(A):k.apply(this,arguments)}}catch(F){c.handleError(F)}};e.getLinkTitle=function(A){return c.getLinkTitle(A)};e.customLinkClicked=function(A){var I=!1;try{c.handleCustomLink(A),I=!0}catch(g){c.handleError(g)}return I};var n=e.parseBackgroundImage;e.parseBackgroundImage=function(A){var I=n.apply(this,arguments);null!=I&&null!=I.src&&Graph.isPageLink(I.src)&&(I={originalSrc:I.src});return I};var p=e.setBackgroundImage;e.setBackgroundImage=function(A){null!=A&&null!=A.originalSrc&& (A=c.createImageForPageLink(A.originalSrc,c.currentPage,this));p.apply(this,arguments)};this.editor.addListener("pageRenamed",mxUtils.bind(this,function(){e.refreshBackgroundImage()}));this.editor.addListener("pageMoved",mxUtils.bind(this,function(){e.refreshBackgroundImage()}));this.editor.addListener("pagesPatched",mxUtils.bind(this,function(A,I){A=null!=e.backgroundImage?e.backgroundImage.originalSrc:null;if(null!=A){var g=A.indexOf(",");if(0<g)for(A=A.substring(g+1),I=I.getProperty("patches"),
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
g);mxEvent.addListener(this.container,"mousemove",g);mxEvent.addListener(this.container,"mouseleave",function(Q){x=null});this.isMouseInsertPoint=function(){return null!=x};var F=this.getInsertPoint;this.getInsertPoint=function(){return null!=x?this.getPointForEvent(x):F.apply(this,arguments)};var M=this.layoutManager.getLayout;this.layoutManager.getLayout=function(Q){var S=this.graph.getCellStyle(Q);if(null!=S&&"rack"==S.childLayout){var W=new mxStackLayout(this.graph,!1);W.gridSize=null!=S.rackUnitSize? parseFloat(S.rackUnitSize):"undefined"!==typeof mxRackContainer?mxRackContainer.unitSize:20;W.marginLeft=S.marginLeft||0;W.marginRight=S.marginRight||0;W.marginTop=S.marginTop||0;W.marginBottom=S.marginBottom||0;W.allowGaps=S.allowGaps||0;W.horizontal="1"==mxUtils.getValue(S,"horizontalRack","0");W.resizeParent=!1;W.fill=!0;return W}return M.apply(this,arguments)};this.updateGlobalUrlVariables()};var k=Graph.prototype.postProcessCellStyle;Graph.prototype.postProcessCellStyle=function(g,x){return Graph.processFontStyle(k.apply(this,
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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;p.style.border="3px dotted rgb(254, 137, 12)";p.style.pointerEvents="none";p.style.position="absolute";p.style.top=e+"px";p.style.left=k+"px";p.style.width=Math.max(0,t-3)+"px";p.style.height=Math.max(0,n-3)+"px";null!=c&&c.parentNode==this.editor.graph.container?this.editor.graph.container.appendChild(p):document.body.appendChild(p);return p};EditorUi.prototype.stringToCells=function(c){c=mxUtils.parseXml(c);var e=this.editor.extractGraphModel(c.documentElement);c=[];if(null!=e){var k=new mxCodec(e.ownerDocument), n=new mxGraphModel;k.decode(e,n);e=n.getChildAt(n.getRoot(),0);for(k=0;k<n.getChildCount(e);k++)c.push(n.getChildAt(e,k))}return c};EditorUi.prototype.openFileHandle=function(c,e,k,n,p){if(null!=e&&0<e.length){if(!this.useCanvasForExport&&/(\.png)$/i.test(e)||/(\.pdf)$/i.test(e))e=e.substring(0,e.length-4),/(\.drawio)$/i.test(e)||(e+=".drawio");var t=mxUtils.bind(this,function(C){e=0<=e.lastIndexOf(".")?e.substring(0,e.lastIndexOf("."))+".drawio":e+".drawio";if("<mxlibrary"==C.substring(0,10)){null==
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
0;k<c.length;k++)mxUtils.bind(this,function(n){var p=new FileReader;p.onload=mxUtils.bind(this,function(t){try{this.openFileHandle(t.target.result,n.name,n,e)}catch(y){this.handleError(y)}});p.onerror=mxUtils.bind(this,function(t){this.spinner.stop();this.handleError(t);window.openFile=null});"image"!==n.type.substring(0,5)&&"application/pdf"!==n.type||"image/svg"===n.type.substring(0,9)?p.readAsText(n):p.readAsDataURL(n)})(c[k])};EditorUi.prototype.openLocalFile=function(c,e,k,n,p){var t=this.getCurrentFile(), y=mxUtils.bind(this,function(){window.openFile=null;if(null==e&&null!=this.getCurrentFile()&&this.isDiagramEmpty()){var C=mxUtils.parseXml(c);null!=C&&(this.editor.setGraphXml(C.documentElement),this.editor.graph.selectAll())}else this.fileLoaded(new LocalFile(this,c,e||this.defaultFilename,k,n,p))});if(null!=c&&0<c.length)null==t||!t.isModified()&&(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||null!=n)?y():(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||null!=n)&&null!=t&&t.isModified()?this.confirm(mxResources.get("allChangesLost"), null,y,mxResources.get("cancel"),mxResources.get("discardChanges")):(window.openFile=new OpenFile(function(){window.openFile=null}),window.openFile.setData(c,e),window.openWindow(this.getUrl(),null,mxUtils.bind(this,function(){null!=t&&t.isModified()?this.confirm(mxResources.get("allChangesLost"),null,y,mxResources.get("cancel"),mxResources.get("discardChanges")):y()})));else throw Error(mxResources.get("notADiagramFile"));};EditorUi.prototype.getBasenames=function(){var c={};if(null!=this.pages)for(var e=
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
null==I.getTerminal(g[x],!0)){I.setTerminal(g[x],H,!0);var F=e.getCellGeometry(g[x]);F.points=null;null!=F.getTerminalPoint(!0)&&F.setTerminalPoint(null,!0)}}finally{I.endUpdate()}return g}}var G={67:c.actions.get("selectChildren"),88:c.actions.get("selectDescendants"),80:c.actions.get("selectParent"),83:c.actions.get("selectSiblings")},B=c.onKeyDown;c.onKeyDown=function(H){try{var m=e.getSelectionCell();if(e.isEnabled()&&!e.isEditing()&&null!=m){var v=mxEvent.isAltDown(H)&&mxEvent.isShiftDown(H)? G[H.keyCode]:null;null!=v?(v.funct(H),mxEvent.consume(H)):d(m)&&(v=null,0<e.getIncomingTreeEdges(m).length&&(9==H.which?v=mxEvent.isShiftDown(H)?K(m):E(m):13==H.which&&(v=L(m,!mxEvent.isShiftDown(H)))),null!=v&&0<v.length?(1==v.length&&e.model.isEdge(v[0])?e.setSelectionCell(e.model.getTerminal(v[0],!1)):e.setSelectionCell(v[v.length-1]),null!=c.hoverIcons&&c.hoverIcons.update(e.view.getState(m)),e.startEditingAtCell(m),mxEvent.consume(H)):37==H.keyCode?(J(m,mxConstants.DIRECTION_WEST),mxEvent.consume(H)): 38==H.keyCode?(J(m,mxConstants.DIRECTION_NORTH),mxEvent.consume(H)):39==H.keyCode?(J(m,mxConstants.DIRECTION_EAST),mxEvent.consume(H)):40==H.keyCode&&(J(m,mxConstants.DIRECTION_SOUTH),mxEvent.consume(H)))}}catch(A){c.handleError(A)}mxEvent.isConsumed(H)||B.apply(this,arguments)};var V=e.connectVertex;e.connectVertex=function(H,m,v,A,I,g,x){var F=e.getIncomingTreeEdges(H);if(d(H)){var M=D(H),Q=M==mxConstants.DIRECTION_EAST||M==mxConstants.DIRECTION_WEST,S=m==mxConstants.DIRECTION_EAST||m==mxConstants.DIRECTION_WEST;
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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.fillStyle=W;return T};g.prototype.begin=function(){this.passThrough?this.originalBegin.apply(this.canvas,arguments):this.path=[]};g.prototype.end=function(){this.passThrough&&this.originalEnd.apply(this.canvas,arguments)};g.prototype.addOp=function(){if(null!=this.path&&(this.path.push(arguments[0]),2<arguments.length))for(var S=2;S<arguments.length;S+=2)this.lastX=arguments[S-1],this.lastY=arguments[S],this.path.push(this.canvas.format(this.lastX)),this.path.push(this.canvas.format(this.lastY))};
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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 g=JSON.parse(decodeURIComponent(urlParams.vars));if(null!=g)for(var x in g)this.globalVars[x]=g[x]}catch(F){null!=window.console&&console.log("Error in vars URL parameter: "+F)}};Graph.prototype.getExportVariables=function(){return null!=this.globalVars?mxUtils.clone(this.globalVars):{}};var y=Graph.prototype.getGlobalVariable;Graph.prototype.getGlobalVariable=function(g){var x= y.apply(this,arguments);null==x&&null!=this.globalVars&&(x=this.globalVars[g]);return x};Graph.prototype.getDefaultStylesheet=function(){if(null==this.defaultStylesheet){var g=this.themes["default-style2"];this.defaultStylesheet=(new mxCodec(g.ownerDocument)).decode(g)}return this.defaultStylesheet};Graph.prototype.isViewer=function(){return urlParams.viewer};var C=Graph.prototype.getSvg;Graph.prototype.getSvg=function(g,x,F,M,Q,S,W,T,X,Z,Y,ba,fa,ca){var aa=null,ra=null,za=null;ba||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
k,null,null,null,n)},null,null,null,n)},null,null,null,n)},null,null,null,n):mxscript(DRAWIO_BASE_URL+"/js/orgchart.min.js",k,null,null,null,n))}),onerror)};EditorUi.prototype.importCsv=function(c,e){this.loadOrgChartLayouts(mxUtils.bind(this,function(){this.doImportCsv(c,e)}))};EditorUi.prototype.doImportCsv=function(c,e){try{var k=c.split("\n"),n=[],p=[],t=[],y={};if(0<k.length){var C={},G=this.editor.graph,B=null,V=null,R=null,O=null,P=null,N=null,H=null,m="whiteSpace=wrap;html=1;",v=null,A=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
App.prototype.loadTemplate=function(b,f,l,d,q){var u=!1,z=b,D=null!=d?d:b,L=/(\.v(dx|sdx?))($|\?)/i.test(D)||/(\.vs(x|sx?))($|\?)/i.test(D);d=/\.png$/i.test(D)||/\.pdf$/i.test(D);this.editor.isCorsEnabledForUrl(z)||(u=d||L,z="t="+(new Date).getTime(),z=PROXY_URL+"?url="+encodeURIComponent(b)+"&"+z+(u?"&base64=1":""));this.editor.loadUrl(z,mxUtils.bind(this,function(K){try{var E=u?!window.atob||mxClient.IS_IE||mxClient.IS_IE11?Base64.decode(K):atob(K):K;if(L||this.isVisioData(E))L||(D=q?this.isRemoteVisioData(E)? "raw.vss":"raw.vssx":this.isRemoteVisioData(E)?"raw.vsd":"raw.vsdx"),this.importVisio(this.base64ToBlob(K.substring(K.indexOf(",")+1)),function(U){f(U)},l,D);else if((new XMLHttpRequest).upload&&this.isRemoteFileFormat(E,D))this.isExternalDataComms()?this.parseFileData(E,mxUtils.bind(this,function(U){4==U.readyState&&200<=U.status&&299>=U.status&&"<mxGraphModel"==U.responseText.substring(0,13)&&f(U.responseText)}),b):this.showError(mxResources.get("error"),mxResources.get("notInOffline"),null,l); else if(this.isLucidChartData(E))this.convertLucidChart(E,mxUtils.bind(this,function(U){f(U)}),mxUtils.bind(this,function(U){l(U)}));else{if(/(\.png)($|\?)/i.test(D)||Editor.isPngData(E))E=Editor.extractGraphModelFromPng(K);f(E)}}catch(U){l(U)}}),l,/(\.png)($|\?)/i.test(D)||/(\.v(dx|sdx?))($|\?)/i.test(D)||/(\.vs(x|sx?))($|\?)/i.test(D),null,null,u)};
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
arguments),null!=this.mathEnabled&&this.mathEnabled!=this.ui.isMathEnabled()&&(this.ui.setMathEnabled(this.mathEnabled),this.mathEnabled=!this.mathEnabled),null!=this.shadowVisible&&this.shadowVisible!=this.ui.editor.graph.shadowVisible&&(this.ui.editor.graph.setShadowVisible(this.shadowVisible),this.shadowVisible=!this.shadowVisible)};Editor.prototype.useCanvasForExport=!1;try{var A=document.createElement("canvas"),I=new Image;I.onload=function(){try{A.getContext("2d").drawImage(I,0,0);var g=A.toDataURL("image/png"); Editor.prototype.useCanvasForExport=null!=g&&6<g.length}catch(x){}};I.src="data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1px" height="1px" version="1.1"><foreignObject pointer-events="all" width="1" height="1"><div xmlns="http://www.w3.org/1999/xhtml"></div></foreignObject></svg>')))}catch(g){}Editor.prototype.useCanvasForExport=!1})();
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
Graph.recentCustomFonts[M]=Q,x=document.getElementsByTagName("head")[0],null!=F&&("link"==Q.elt.nodeName.toLowerCase()?(Q.elt.onload=F,Q.elt.onerror=F):F()),null!=x&&x.appendChild(Q.elt)):null!=F&&F()}else null!=F&&F()}else null!=F&&F();return g};Graph.getFontUrl=function(g,x){g=Graph.customFontElements[g.toLowerCase()];null!=g&&(x=g.url);return x};Graph.processFontAttributes=function(g){g=g.getElementsByTagName("*");for(var x=0;x<g.length;x++){var F=g[x].getAttribute("data-font-src");if(null!=F){var M= "FONT"==g[x].nodeName?g[x].getAttribute("face"):g[x].style.fontFamily;null!=M&&Graph.addFont(M,F)}}};Graph.processFontStyle=function(g){if(null!=g){var x=mxUtils.getValue(g,"fontSource",null);if(null!=x){var F=mxUtils.getValue(g,mxConstants.STYLE_FONTFAMILY,null);null!=F&&Graph.addFont(F,decodeURIComponent(x))}}return g};Graph.prototype.defaultThemeName="default-style2";Graph.prototype.lastPasteXml=null;Graph.prototype.pasteCounter=0;Graph.prototype.defaultScrollbars="0"!=urlParams.sb;Graph.prototype.defaultPageVisible=
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
t(c3&63);return r+=t(c4&63)}function t(C){if(10>C)return String.fromCharCode(48+C);C-=10;if(26>C)return String.fromCharCode(65+C);C-=26;if(26>C)return String.fromCharCode(97+C);C-=26;return 0==C?"-":1==C?"_":"?"}var y=new XMLHttpRequest;y.open("GET",("txt"==e?PLANT_URL+"/txt/":"png"==e?PLANT_URL+"/png/":PLANT_URL+"/svg/")+function(C){r="";for(i=0;i<C.length;i+=3)r=i+2==C.length?r+p(C.charCodeAt(i),C.charCodeAt(i+1),0):i+1==C.length?r+p(C.charCodeAt(i),0,0):r+p(C.charCodeAt(i),C.charCodeAt(i+1),C.charCodeAt(i+
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
1),"image/png");c=new ClipboardItem({"image/png":p,"text/html":new Blob(['<img src="'+c+'" width="'+e+'" height="'+k+'">'],{type:"text/html"})});navigator.clipboard.write([c])["catch"](n)};EditorUi.prototype.copyCells=function(c,e){var k=this.editor.graph;if(k.isSelectionEmpty())c.innerText="";else{var n=mxUtils.sortCells(k.model.getTopmostCells(k.getSelectionCells())),p=mxUtils.getXml(k.encodeCells(n));mxUtils.setTextContent(c,encodeURIComponent(p));e?(k.removeCells(n,!1),k.lastPasteXml=null):(k.lastPasteXml= p,k.pasteCounter=0);c.focus();document.execCommand("selectAll",!1,null)}};EditorUi.prototype.copyXml=function(){var c=null;if(Editor.enableNativeCipboard){var e=this.editor.graph;e.isSelectionEmpty()||(c=mxUtils.sortCells(e.getExportableCells(e.model.getTopmostCells(e.getSelectionCells()))),e=mxUtils.getXml(e.encodeCells(c)),navigator.clipboard.writeText(e))}return c};EditorUi.prototype.pasteXml=function(c,e,k,n,p){var t=this.editor.graph,y=null;t.lastPasteXml==c?t.pasteCounter++:(t.lastPasteXml=
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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.model.getChildAt(e,C))};EditorUi.prototype.updatePageLink=function(c,e){if(Graph.isPageLink(e)){var k=c[e.substring(e.indexOf(",")+1)];e=null!=k?"data:page/id,"+k:null}else if("data:action/json,"==e.substring(0,17))try{var n=JSON.parse(e.substring(17));if(null!=n.actions){for(var p=0;p<n.actions.length;p++){var t=n.actions[p];if(null!=t.open&&Graph.isPageLink(t.open)){var y=t.open.substring(t.open.indexOf(",")+1);k=c[y];null!=k?t.open="data:page/id,"+k:null==this.getPageById(y)&&delete t.open}}e= "data:action/json,"+JSON.stringify(n)}}catch(C){}return e};EditorUi.prototype.isRemoteVisioFormat=function(c){return/(\.v(sd|dx))($|\?)/i.test(c)||/(\.vs(s|x))($|\?)/i.test(c)};EditorUi.prototype.importVisio=function(c,e,k,n,p){var t=mxUtils.bind(this,function(y){this.loadingExtensions=!1;null!=k?k(y):this.handleError(y)});this.createTimeout(null,mxUtils.bind(this,function(y){n=null!=n?n:c.name;var C=mxUtils.bind(this,function(B){y.clear()&&t(B)}),G=mxUtils.bind(this,function(){this.loadingExtensions=
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
function(P){E=P};this.setAutoScroll=function(P){U=P};this.setOpenFill=function(P){J=P};this.setStopClickEnabled=function(P){k=P};this.setSelectInserted=function(P){n=P};this.setSmoothing=function(P){l=P};this.setPerfectFreehandMode=function(P){t=P};this.isPerfectFreehandMode=function(){return t};this.setBrushSize=function(P){p.size=P};this.getBrushSize=function(){return p.size};var y=function(P){e=P;b.getRubberband().setEnabled(!P);b.graphHandler.setSelectEnabled(!P);b.graphHandler.setMoveEnabled(!P);
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
this.originalQuadTo.apply(this.canvas,arguments):(this.addOp(this.quadOp,S,W,T,X),this.lastX=T,this.lastY=X)};g.prototype.curveTo=function(S,W,T,X,Z,Y){this.passThrough?this.originalCurveTo.apply(this.canvas,arguments):(this.addOp(this.curveOp,S,W,T,X,Z,Y),this.lastX=Z,this.lastY=Y)};g.prototype.arcTo=function(S,W,T,X,Z,Y,ba){if(this.passThrough)this.originalArcTo.apply(this.canvas,arguments);else{var fa=mxUtils.arcToCurves(this.lastX,this.lastY,S,W,T,X,Z,Y,ba);if(null!=fa)for(var ca=0;ca<fa.length;ca+= 6)this.curveTo(fa[ca],fa[ca+1],fa[ca+2],fa[ca+3],fa[ca+4],fa[ca+5]);this.lastX=Y;this.lastY=ba}};g.prototype.rect=function(S,W,T,X){this.passThrough?this.originalRect.apply(this.canvas,arguments):(this.path=[],this.nextShape=this.rc.generator.rectangle(S,W,T,X,this.getStyle(!0,!0)))};g.prototype.ellipse=function(S,W,T,X){this.passThrough?this.originalEllipse.apply(this.canvas,arguments):(this.path=[],this.nextShape=this.rc.generator.ellipse(S+T/2,W+X/2,T,X,this.getStyle(!0,!0)))};g.prototype.roundrect=
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
"4px";oa.style.marginBottom="4px";oa.style.whiteSpace="nowrap";oa.style.overflowX="auto";oa.style.overflowY="hidden";oa.appendChild(ia);oa.appendChild(Ja);da.appendChild(oa);da.appendChild(ma);return da}function G(){if(ra&&null!=c)l||b.hideDialog(),c(ra,Ba,m.value);else if(d)l||b.hideDialog(),d(ca,m.value,za,ba);else{var da=m.value;null!=da&&0<da.length&&b.pickFolder(b.mode,function(la){b.createFile(da,ca,null!=ba&&0<ba.length?ba:null,null,function(){b.hideDialog()},null,la,null,null!=fa&&0<fa.length? fa:null)},b.mode!=App.MODE_GOOGLE||null==b.stateArg||null==b.stateArg.folderId)}}function B(da,la,ma,oa,ia,ka,wa){null!=aa&&(aa.style.backgroundColor="transparent",aa.style.border="1px solid transparent");I.removeAttribute("disabled");ca=la;ba=ma;fa=ka;aa=da;ra=oa;za=wa;Ba=ia;aa.style.backgroundColor=D;aa.style.border=L}function V(da,la,ma,oa,ia,ka,wa,sa,Ja,Ha,ya){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
Da;var Ea=ba.gridSize*ta.gridSteps*T,Ta=ba.getGraphBounds(),Ka=ta.translate.x*ua,Sa=ta.translate.y*ua,Ia=Ka+(Ta.x-Ka)/ua-fa,Va=Sa+(Ta.y-Sa)/ua-fa,Ua=new Image;Ua.onload=function(){try{for(var ja=-Math.round(Ea-mxUtils.mod((Ka-Ia)*T,Ea)),da=-Math.round(Ea-mxUtils.mod((Sa-Va)*T,Ea));ja<xa;ja+=Ea)for(var la=da;la<Ga;la+=Ea)qa.drawImage(Ua,ja/T,la/T);Aa()}catch(ma){null!=Q&&Q(ma)}};Ua.onerror=function(ja){null!=Q&&Q(ja)};Ua.src=Da}else Aa()}catch(ja){null!=Q&&Q(ja)}});pa.onerror=function(Aa){null!=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.fitDiagramToWindow=function(){var a=this.editor.graph,b=a.isSelectionEmpty()?mxRectangle.fromRectangle(a.getGraphBounds()):a.getBoundingBox(a.getSelectionCells()),e=a.view.translate,f=a.view.scale;b.x=b.x/f-e.x;b.y=b.y/f-e.y;b.width/=f;b.height/=f;null!=a.backgroundImage&&b.add(new mxRectangle(0,0,a.backgroundImage.width,a.backgroundImage.height));0==b.width||0==b.height?(a.zoomTo(1),this.resetScrollbars()):(e=Editor.fitWindowBorders,null!=e&&(b.x-=e.x,b.y-=e.y,b.width+=e.width+ e.x,b.height+=e.height+e.y),a.fitWindow(b))};EditorUi.prototype.hasScrollbars=function(){return this.editor.graph.scrollbars};
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
P==App.MODE_GITLAB)&&null!=N&&0<N.length&&(H={mode:P,path:decodeURIComponent(N),id:N});null!=H&&(C.style.display="",b.addRecent(H,"Folders"),N=D(H.mode,H.path,H.id,!0),N.parentNode.firstChild!=N&&N.parentNode.insertBefore(N,N.parentNode.firstChild),null!=B&&(B.parentNode.removeChild(B),V=N.getAttribute("value"),y.value=V,B=null,E()))},!0,!0,!0,!0)}function K(){var P=b.getRecent("Folders");if(null!=P&&0<P.length){for(var N=0;N<P.length;N++)D(P[N].mode,P[N].path,P[N].id);C.style.display=""}else C.style.display= "none";D(App.MODE_GOOGLE,mxResources.get("myDrive"),"root",null,null,"root");D(App.MODE_GOOGLE,null,null,null,null,"pick");null!=b.oneDrive&&(D(App.MODE_ONEDRIVE,mxResources.get("myFiles"),OneDriveFile.prototype.getIdOf(b.oneDrive.rootId),null,null,"root"),D(App.MODE_ONEDRIVE,null,null,null,null,"pick"));null!=b.dropbox&&D(App.MODE_DROPBOX,"Apps"+b.dropbox.appPath);D(App.MODE_GITHUB,null,null,null,null,"pick");D(App.MODE_GITLAB,null,null,null,null,"pick");D(App.MODE_TRELLO);P=!Editor.useLocalStorage|| "device"==urlParams.storage||null!=b.getCurrentFile()&&"1"!=urlParams.noDevice;EditorUi.nativeFileSupport&&P&&D(App.MODE_DEVICE,null,null,b.mode==App.MODE_DEVICE||null!=d&&0<=mxUtils.indexOf(d,App.MODE_BROWSER)?!0:null);isLocalStorage&&"0"!=urlParams.browser&&D(App.MODE_BROWSER);P&&D("download");Editor.popupsAllowed&&D("_blank",null,null,null,mxResources.get("openInNewWindow"));y.appendChild(C);if("pickFolder-"==y.value.substring(0,11)||"reset"==y.value)B=document.createElement("option"),B.setAttribute("value", ""),B.setAttribute("selected","selected"),mxUtils.write(B,mxResources.get("pickFolder")+"..."),y.insertBefore(B,y.firstChild);V=y.value}function E(){if("reset"==y.value)b.resetRecent("Folders"),y.innerHTML="",R={},K();else if("pickFolder-"==y.value.substring(0,11)){var P=y.value.substring(11);y.value=V;L(P)}else if(null!=t&&null!=R[y.value]&&null!=b.editor.diagramFileTypes&&"drawio"==b.editor.diagramFileTypes[t.value].extension){P=b.getExtensionForService(R[y.value].mode);var N=p.value;null!=P&&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
2));return r}(Graph.arrayBufferToString(pako.deflateRaw(c))),!0);"txt"!=e&&(y.responseType="blob");y.onload=function(C){if(200<=this.status&&300>this.status)if("txt"==e)k(this.response);else{var G=new FileReader;G.readAsDataURL(this.response);G.onloadend=function(B){var V=new Image;V.onload=function(){try{var R=V.width,O=V.height;if(0==R&&0==O){var P=G.result,N=P.indexOf(","),H=decodeURIComponent(escape(atob(P.substring(N+1)))),m=mxUtils.parseXml(H).getElementsByTagName("svg");0<m.length&&(R=parseFloat(m[0].getAttribute("width")), O=parseFloat(m[0].getAttribute("height")))}k(G.result,R,O)}catch(v){n(v)}};V.src=G.result};G.onerror=function(B){n(B)}}else n(C)};y.onerror=function(C){n(C)};y.send()};EditorUi.prototype.insertAsPreText=function(c,e,k){var n=this.editor.graph,p=null;n.getModel().beginUpdate();try{p=n.insertVertex(null,null,"<pre>"+c+"</pre>",e,k,1,1,"text;html=1;align=left;verticalAlign=top;"),n.updateCellSize(p,!0)}finally{n.getModel().endUpdate()}return p};EditorUi.prototype.insertTextAt=function(c,e,k,n,p,t,y,
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
V.style.display="none";u=mxUtils.button(u||mxResources.get("edit"),function(){d.apply(this,[U.value])});u.className="geBtn gePrimaryBtn";c=document.createElement("div");c.style.position="absolute";c.style.bottom="30px";c.style.right="40px";c.style.textAlign="right";e=document.createElement("div");e.className="geToolbarContainer";e.style.cssText="box-shadow:none !important;background-color:transparent;padding:2px;border-style:none !important;bottom:30px;";this.init=function(){function R(H){if(null!= H){var m=H.getAttribute("background");if(null==m||""==m||m==mxConstants.NONE)m=Editor.isDarkMode()?"transparent":"#ffffff";n.style.backgroundColor=m;(new mxCodec(H.ownerDocument)).decode(H,p.getModel());p.maxFitScale=1;p.fit(8);p.center()}return H}function O(H){null!=H&&(H=R(Editor.parseDiagramNode(H)));return H}mxEvent.addListener(V,"change",function(H){C=parseInt(V.value);O(G[C]);mxEvent.consume(H)});if("mxfile"==y.nodeName){var P=y.getElementsByTagName("diagram");G=[];for(var N=0;N<P.length;N++)G.push(P[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
function(M){mxEvent.isConsumed(M)||((mxEvent.isControlDown(M)||mxClient.IS_MAC&&mxEvent.isMetaDown(M))&&13==M.keyCode?(F.click(),mxEvent.consume(M)):27==M.keyCode&&(x.click(),mxEvent.consume(M)))}));F.focus();F.className="geCommentEditBtn gePrimaryBtn";g.appendChild(F);P.insertBefore(g,v);A.style.display="none";v.style.display="none";I.focus()}function L(O,P){P.innerText="";O=new Date(O.modifiedDate);var N=b.timeSince(O);null==N&&(N=mxResources.get("lessThanAMinute"));mxUtils.write(P,mxResources.get("timeAgo", [N],"{1} ago"));P.setAttribute("title",O.toLocaleDateString()+" "+O.toLocaleTimeString())}function K(O){var P=document.createElement("img");P.className="geCommentBusyImg";P.src=IMAGE_PATH+"/spin.gif";O.appendChild(P);O.busyImg=P}function E(O){O.style.border="1px solid red";O.removeChild(O.busyImg)}function U(O){O.style.border="";O.removeChild(O.busyImg)}function J(O,P,N,H,m){function v(S,W,T){var X=document.createElement("li");X.className="geCommentAction";var Z=document.createElement("a");Z.className=
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
Editor.initMath();if("1"==urlParams.configure){var K=window.opener||window.parent,E=function(J){if(J.source==K)try{var c=JSON.parse(J.data);null!=c&&"configure"==c.action&&(mxEvent.removeListener(window,"message",E),Editor.configure(c.config),mxSettings.load(),c.colorSchemeMeta&&mxmeta("color-scheme","dark light"),l())}catch(e){null!=window.console&&console.log("Error in configure message: "+e,J.data)}};mxEvent.addListener(window,"message",E);K.postMessage(JSON.stringify({event:"configure"}),"*")}else{if(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
W};var Q=mxShape.prototype.paintGlassEffect;mxShape.prototype.paintGlassEffect=function(S,W,T,X,Z,Y){null!=S.handJiggle&&S.handJiggle.constructor==g?(S.handJiggle.passThrough=!0,Q.apply(this,arguments),S.handJiggle.passThrough=!1):Q.apply(this,arguments)}})();Editor.fastCompress=function(g){return null==g||0==g.length||"undefined"===typeof pako?g:Graph.arrayBufferToString(pako.deflateRaw(g))};Editor.fastDecompress=function(g){return null==g||0==g.length||"undefined"===typeof pako?g:pako.inflateRaw(Graph.stringToArrayBuffer(atob(g)),
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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=[];if(0<Q.length){Q=Q.split(" ");for(var S={},W=0;W<Q.length;W++)if(null==x||null!=x[Q[W]])S[Q[W]]=!0,F.push(Q[W]);x=S}else return[]}return F};Graph.prototype.getTagsForCells=function(g){for(var x=[],F={},M=0;M<g.length;M++){var Q=this.getTagsForCell(g[M]);if(0<Q.length){Q=Q.split(" ");for(var S=0;S<Q.length;S++)null==F[Q[S]]&&(F[Q[S]]=!0,x.push(Q[S]))}}return x};Graph.prototype.getTagsForCell=function(g){return this.getAttributeForCell(g,"tags","")};Graph.prototype.addTagsForCells=function(g,x){if(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
null,c,mxResources.get("ok"),e);this.showDialog(c.container,k||340,100,!0,!1);c.init()};EditorUi.prototype.confirm=function(c,e,k,n,p,t){c=null!=c?c:"";var y=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},C=Math.min(220,28*Math.ceil(Math.max(1,c.length)/50));c=new ConfirmDialog(this,c,function(){y();null!=e&&e()},function(){y();null!=k&&k()},n,p,null,null,null,null,C);this.showDialog(c.container,340,46+C,!0,t);c.init()};EditorUi.prototype.showBanner=function(c,e,k,
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
"center";l=mxUtils.button(mxResources.get("cancel"),function(){b.spinner.stop();b.hideDialog()});l.className="geBtn";b.editor.cancelFirst&&D.appendChild(l);ImageDialog.filePicked=function(y){y.action==google.picker.Action.PICKED&&null!=y.docs[0].thumbnails&&(y=y.docs[0].thumbnails[y.docs[0].thumbnails.length-1],null!=y&&(U.value=y.url));U.focus()};if(Graph.fileSupport){if(null==b.imgDlgFileInputElt){var p=document.createElement("input");p.setAttribute("multiple","multiple");p.setAttribute("type",
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
var SaveDialog=function(b,f,l,d,q,u,z){function D(P,N,H,m,v,A){var I=null;if(null==d||0>mxUtils.indexOf(d,P))if(v=null!=v?v:b.getTitleForService(P),0<=mxUtils.indexOf(G,P)||null!=b.getServiceForName(P)){I=document.createElement("option");if("pick"==A)I.innerHTML=mxUtils.htmlEntities(v)+"&nbsp;&nbsp;&#8211&nbsp;&nbsp;"+mxUtils.htmlEntities(mxResources.get("pickFolder"))+"...",I.setAttribute("value","pickFolder-"+P),I.setAttribute("title",v+" - "+mxResources.get("pickFolder")+"...");else{var g=P+(null!= H?"-"+H:""),x=R[g];null!=x&&null!=x.option&&x.option.parentNode.removeChild(x.option);x=null;if(null!=N){"/"==N.charAt(N.length-1)&&(N=N.substring(0,N.length-1));"/"==N.charAt(0)&&(N=N.substring(1));x=N;var F=x.lastIndexOf("/");0<=F&&(x=x.substring(F+1));25<x.length&&(x=x.substring(0,25)+"...")}I.innerHTML=(null!=x?mxUtils.htmlEntities(x)+"&nbsp;&nbsp;&#8211&nbsp;&nbsp;":"")+mxUtils.htmlEntities(v);I.setAttribute("title",v+(null!=N?" ("+N+")":"")+(null!=H&&decodeURIComponent(H)!=N?" ["+H+"]":"")); I.setAttribute("value",g);R[g]={option:I,mode:P,path:N,id:H};SaveDialog.lastValue==g?m=!0:null==m&&("root"==A?m=b.mode==P:"pickFolder-"==y.value.substring(0,11)&&(m=!0));m&&I.setAttribute("selected","selected")}y.appendChild(I)}return I}function L(P){b.pickFolder(P,function(N){var H=null;P==App.MODE_GOOGLE&&null!=N.docs&&0<N.docs.length?H={mode:P,path:N.docs[0].name,id:N.docs[0].id}:P==App.MODE_ONEDRIVE&&null!=N.value&&0<N.value.length?H={mode:P,path:N.value[0].name,id:N.value[0].id}:(P==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
fa:null)},b.mode!=App.MODE_GOOGLE||null==b.stateArg||null==b.stateArg.folderId)}}function B(da,la,ma,oa,ia,ka,wa){null!=aa&&(aa.style.backgroundColor="transparent",aa.style.border="1px solid transparent");I.removeAttribute("disabled");ca=la;ba=ma;fa=ka;aa=da;ra=oa;za=wa;Ba=ia;aa.style.backgroundColor=D;aa.style.border=L}function V(da,la,ma,oa,ia,ka,wa,sa,Ja,Ha,ya){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
t=65==(C?parseInt(C[2],10):!1)?!1:t}if(t||this.isOffline()){y.href=URL.createObjectURL(n?this.base64ToBlob(c,k):new Blob([c],{type:k}));t?y.download=e:y.setAttribute("target","_blank");document.body.appendChild(y);try{window.setTimeout(function(){URL.revokeObjectURL(y.href)},2E4),y.click(),y.parentNode.removeChild(y)}catch(G){}}else this.createEchoRequest(c,e,k,n,p).simulate(document,"_blank")}};EditorUi.prototype.createEchoRequest=function(c,e,k,n,p,t){c="xml="+encodeURIComponent(c);return new mxXmlRequest(SAVE_URL, c+(null!=k?"&mime="+k:"")+(null!=p?"&format="+p:"")+(null!=t?"&base64="+t:"")+(null!=e?"&filename="+encodeURIComponent(e):"")+(n?"&binary=1":""))};EditorUi.prototype.base64ToBlob=function(c,e){e=e||"";c=atob(c);for(var k=c.length,n=Math.ceil(k/1024),p=Array(n),t=0;t<n;++t){for(var y=1024*t,C=Math.min(y+1024,k),G=Array(C-y),B=0;y<C;++B,++y)G[B]=c[y].charCodeAt(0);p[t]=new Uint8Array(G)}return new Blob(p,{type:e})};EditorUi.prototype.saveLocalFile=function(c,e,k,n,p,t,y,C){t=null!=t?t:!1;y=null!=y?
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
this.addMenuItem(A,"mergeCells"):(1<x.style.colspan||1<x.style.rowspan)&&this.addMenuItem(A,"unmergeCells")}};this.menus.isShowStyleItems=function(){return"simple"!=Editor.currentTheme&&"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme};this.menus.isShowHistoryItems=function(){return"simple"!=Editor.currentTheme};this.menus.isShowArrangeItems=this.menus.isShowStyleItems;this.menus.isShowCellEditItems=this.menus.isShowStyleItems}c.actions.get("print").funct=function(){c.showDialog((new PrintDialog(c)).container, 360,null!=c.pages&&1<c.pages.length?470:390,!0,!0)};this.defaultFilename=mxResources.get("untitledDiagram");var V=e.getExportVariables;e.getExportVariables=function(){var A=V.apply(this,arguments),I=c.getCurrentFile();null!=I&&(A.filename=I.getTitle());A.pagecount=null!=c.pages?c.pages.length:1;A.page=null!=c.currentPage?c.currentPage.getName():"";A.pagenumber=null!=c.pages&&null!=c.currentPage?mxUtils.indexOf(c.pages,c.currentPage)+1:1;return A};var R=e.getGlobalVariable;e.getGlobalVariable=function(A){var I=
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
y:N.constObj.point.y,dx:N.constObj.dx,dy:N.constObj.dy};var H=0,m=0,v=J.geometry,A=mxUtils.format((N.geometry.x+3-v.x)/v.width);N=mxUtils.format((N.geometry.y+3-v.y)/v.height);0>A?(H=A*v.width,A=0):1<A&&(H=(A-1)*v.width,A=1);0>N?(m=N*v.height,N=0):1<N&&(m=(N-1)*v.height,N=1);return{x:A,y:N,dx:parseInt(H),dy:parseInt(m)}}function K(N){if(1==U.getSelectionCount()){var H=U.getSelectionCell();N&&(H.constObj=null);N=L(H);V.value=100*N.x;O.value=100*N.y;R.value=N.dx;P.value=N.dy;B.style.visibility=""}else B.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
return M==m||0==F.length?E(H,m):Q==S?K(H):L(H,m!=mxConstants.DIRECTION_NORTH&&m!=mxConstants.DIRECTION_WEST)}return V.apply(this,arguments)};e.getSubtree=function(H){var m=[H];!q(H)&&!d(H)||z(H)||e.traverse(H,!0,function(v,A){var I=null!=A&&e.isTreeEdge(A);I&&0>mxUtils.indexOf(m,A)&&m.push(A);(null==A||I)&&0>mxUtils.indexOf(m,v)&&m.push(v);return null==A||I});return m};var R=mxVertexHandler.prototype.init;mxVertexHandler.prototype.init=function(){R.apply(this,arguments);(q(this.state.cell)||d(this.state.cell))&& !z(this.state.cell)&&0<this.graph.getOutgoingTreeEdges(this.state.cell).length&&(this.moveHandle=mxUtils.createImage(Editor.moveImage),this.moveHandle.setAttribute("title","Move Subtree"),this.moveHandle.style.position="absolute",this.moveHandle.style.cursor="pointer",this.moveHandle.style.width="24px",this.moveHandle.style.height="24px",this.graph.container.appendChild(this.moveHandle),mxEvent.addGestureListeners(this.moveHandle,mxUtils.bind(this,function(H){this.graph.graphHandler.start(this.state.cell, mxEvent.getClientX(H),mxEvent.getClientY(H),this.graph.getSubtree(this.state.cell));this.graph.graphHandler.cellWasClicked=!0;this.graph.isMouseTrigger=mxEvent.isMouseEvent(H);this.graph.isMouseDown=!0;c.hoverIcons.reset();mxEvent.consume(H)})))};var O=mxVertexHandler.prototype.redrawHandles;mxVertexHandler.prototype.redrawHandles=function(){O.apply(this,arguments);null!=this.moveHandle&&(this.moveHandle.style.left=this.state.x+this.state.width+(40>this.state.width?10:0)+2+"px",this.moveHandle.style.top=
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
function(fa){"true"!=T.getAttribute("contentEditable")&&mxEvent.consume(fa)});S=function(fa){if(mxClient.IS_IOS||mxClient.IS_FF||!(null==document.documentMode||9<document.documentMode)){var ca=new FilenameDialog(b,X.title||"",mxResources.get("ok"),function(aa){null!=aa&&(X.title=aa,I())},mxResources.get("enterValue"));b.showDialog(ca.container,300,80,!0,!0);ca.init();mxEvent.consume(fa)}else if("true"!=T.getAttribute("contentEditable")){null!=t&&(t(),t=null);if(null==X.title||0==X.title.length)T.innerText= "";T.style.textOverflow="";T.style.whiteSpace="";T.style.cursor="text";T.style.color="";T.setAttribute("contentEditable","true");mxUtils.setPrefixedStyle(T.style,"user-select","text");T.focus();document.execCommand("selectAll",!1,null);t=function(){T.removeAttribute("contentEditable");T.style.cursor="pointer";X.title=T.innerHTML;I()};mxEvent.consume(fa)}};mxEvent.addListener(T,"click",S);mxEvent.addListener(M,"dblclick",S);c.appendChild(M);mxEvent.addListener(M,"dragstart",function(fa){null==V&&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
e.addListener(mxEvent.SIZE,f);e.container.addEventListener("scroll",d);e.view.addListener("unitChanged",this.unitListener);b.addListener("pageViewChanged",this.pageListener);b.addListener("pageScaleChanged",this.pageListener);b.addListener("pageFormatChanged",this.pageListener);this.setStyle=function(y){E=y;U.style.background=E.bkgClr;n()};this.origGuideMove=mxGuide.prototype.move;mxGuide.prototype.move=function(y,C,G,B){if(l&&4<y.height||!l&&4<y.width){if(null!=K.guidePart)try{c.putImageData(K.guidePart.imgData1, K.guidePart.x1,K.guidePart.y1),c.putImageData(K.guidePart.imgData2,K.guidePart.x2,K.guidePart.y2),c.putImageData(K.guidePart.imgData3,K.guidePart.x3,K.guidePart.y3)}catch(g){}var V=K.origGuideMove.apply(this,arguments);try{c.lineWidth=.5;c.strokeStyle=E.guideClr;c.setLineDash([2]);if(l){var R=y.y+V.y+L-this.graph.container.scrollTop;var O=0;var P=R+y.height/2;var N=L/2;var H=R+y.height;var m=0;var v=c.getImageData(O,R-1,L,3);k(O,R,L,R);R--;var A=c.getImageData(N,P-1,L,3);k(N,P,L,P);P--;var I=c.getImageData(m, H-1,L,3);k(m,H,L,H);H--}else R=0,O=y.x+V.x+L-this.graph.container.scrollLeft,P=L/2,N=O+y.width/2,H=0,m=O+y.width,v=c.getImageData(O-1,R,3,L),k(O,R,O,L),O--,A=c.getImageData(N-1,P,3,L),k(N,P,N,L),N--,I=c.getImageData(m-1,H,3,L),k(m,H,m,L),m--;if(null==K.guidePart||K.guidePart.x1!=O||K.guidePart.y1!=R)K.guidePart={imgData1:v,x1:O,y1:R,imgData2:A,x2:N,y2:P,imgData3:I,x3:m,y3:H}}catch(g){}}else V=K.origGuideMove.apply(this,arguments);return V};this.origGuideDestroy=mxGuide.prototype.destroy;mxGuide.prototype.destroy=
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
x?null:{from:Math.max(0,Math.min(g-1,ca-1)),to:Math.max(0,Math.min(g-1,aa-1))}}d.downloadFile("pdf",null,null,!X.checked,m?!0:!M.checked&&null==ca,!Z.checked,null!=ba&&ba.checked,null,null,Y.checked,null!=fa&&fa.checked,ca)}),null,mxResources.get("export"));d.showDialog(v.container,300,A,!0,!0)}else d.showDialog((new PrintDialog(d,mxResources.get("formatPdf"))).container,360,null!=d.pages&&1<d.pages.length&&(d.editor.editable||"1"!=urlParams["hide-pages"])?470:390,!0,!0)}));d.actions.addAction("open...",
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
if(isNaN(V)||isNaN(R))try{var O=B[0].getAttribute("viewBox").split(/\s+/);V=parseFloat(O[2]);R=parseFloat(O[3])}catch(P){V=V||100,R=R||100}k(this.convertDataUri(Editor.createSvgDataUri(G)),V,R)}else null!=p?p():n({message:mxResources.get("invalidInput")})}catch(P){n(P)}});mermaid.mermaidAPI.initialize(e);mermaid.mermaidAPI.render("geMermaidOutput-"+(new Date).getTime(),c).then(function(G){C(G.svg)}).catch(function(G){null!=p?p(G):n(G)})}catch(G){n(G)}});"undefined"!==typeof mermaid||this.loadingMermaid||
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
return this.editor.embedExtFonts(c)};EditorUi.prototype.exportToCanvas=function(c,e,k,n,p,t,y,C,G,B,V,R,O,P,N,H){EditorUi.logEvent("SHOULD NOT BE CALLED: exportToCanvas");return this.editor.exportToCanvas(c,e,k,n,p,t,y,C,G,B,V,R,O,P,N,H)};EditorUi.prototype.createImageUrlConverter=function(){EditorUi.logEvent("SHOULD NOT BE CALLED: createImageUrlConverter");return this.editor.createImageUrlConverter()};EditorUi.prototype.convertImages=function(c,e,k,n){EditorUi.logEvent("SHOULD NOT BE CALLED: convertImages");
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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(C)}));else if(Graph.fileSupport&&(new XMLHttpRequest).upload&&this.isRemoteFileFormat(c,e))this.isOffline()?(this.spinner.stop(),this.showError(mxResources.get("error"),mxResources.get("notInOffline"))):this.parseFile(k,mxUtils.bind(this,function(C){4==C.readyState&&(this.spinner.stop(),200<=C.status&&299>=C.status?t(C.responseText):this.handleError({message:mxResources.get(413==C.status?"drawingTooLarge":"invalidOrMissingFile")},mxResources.get("errorLoadingFile")))}));else if(this.isLucidChartData(c))/(\.json)$/i.test(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
function(O){O=b.base64ToBlob(G,"image/png");O=new ClipboardItem({"image/png":O,"text/html":new Blob(['<img src="data:'+c+";base64,"+G+'">'],{type:"text/html"})});navigator.clipboard.write([O]).then(mxUtils.bind(this,function(){b.alert(mxResources.get("copiedToClipboard"))}))["catch"](mxUtils.bind(this,function(P){b.handleError(P)}))}),k.style.marginTop="6px",k.className="geBtn");L&&Editor.popupsAllowed&&(q.style.cursor="pointer",mxEvent.addGestureListeners(q,null,null,function(O){mxEvent.isPopupTrigger(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
Format.prototype.init;Format.prototype.init=function(){K.apply(this,arguments);this.editorUi.editor.addListener("fileLoaded",this.update)};var E=Format.prototype.refresh;Format.prototype.refresh=function(){null!=this.editorUi.getCurrentFile()||"1"==urlParams.embed||this.editorUi.editor.chromeless?E.apply(this,arguments):this.clear()};DiagramFormatPanel.prototype.isMathOptionVisible=function(g){return"simple"==Editor.currentTheme||"sketch"==Editor.currentTheme||"min"==Editor.currentTheme};var U=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
"geCommentActionLnk";mxUtils.write(Z,S);X.appendChild(Z);mxEvent.addListener(Z,"click",function(Y){W(Y,O);Y.preventDefault();mxEvent.consume(Y)});Q.appendChild(X);T&&(X.style.display="none")}function A(){function S(X){W.push(T);if(null!=X.replies)for(var Z=0;Z<X.replies.length;Z++)T=T.nextSibling,S(X.replies[Z])}var W=[],T=g;S(O);return{pdiv:T,replies:W}}function I(S,W,T,X,Z){function Y(){K(aa);O.addReply(ca,function(ra){ca.id=ra;O.replies.push(ca);U(aa);T&&T()},function(ra){ba();E(aa);b.handleError(ra,
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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)))}var O=t=null;null!=G&&null!=G.helpLink?(t=mxResources.get("help"),O=mxUtils.bind(this,function(){return this.editor.graph.openLink(G.helpLink)})):null!=G&&null!=G.ownerEmail&&(t=mxResources.get("contactOwner"),y+=mxUtils.htmlEntities(" ("+t+": "+G.ownerEmail+")",!1),O=mxUtils.bind(this,function(){return this.openLink("mailto:"+mxUtils.htmlEntities(G.ownerEmail))}));this.showError(e,y,B,k,V,null,null,t,O,null,null,null,n?k:null)}else null!=k&&k()};EditorUi.prototype.alert=function(c,e,k){c=new ErrorDialog(this, null,c,mxResources.get("ok"),e);this.showDialog(c.container,k||340,100,!0,!1);c.init()};EditorUi.prototype.confirm=function(c,e,k,n,p,t){c=null!=c?c:"";var y=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},C=Math.min(220,28*Math.ceil(Math.max(1,c.length)/50));c=new ConfirmDialog(this,c,function(){y();null!=e&&e()},function(){y();null!=k&&k()},n,p,null,null,null,null,C);this.showDialog(c.container,340,46+C,!0,t);c.init()};EditorUi.prototype.showBanner=function(c,e,k,
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
(null==N.getCell()||N.getCell()==J)};U.panningHandler.isForcePanningEvent=function(N){return 2==N.evt.button};var c=U.isCellSelectable;U.isCellSelectable=function(N){return N==J?!1:c.apply(this,arguments)};U.getLinkForCell=function(){return null};var e=U.view.getState(J);E=U.getAllConnectionConstraints(e);for(var k=0;null!=E&&k<E.length;k++){var n=U.getConnectionPoint(e,E[k]);u(n.x-3,n.y-3,E[k])}U.fit(8);U.center();k=b.createToolbarButton(Editor.zoomInImage,mxResources.get("zoomIn"),function(){U.zoomIn()},
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
EditorUi.prototype.isRevisionHistoryEnabled=function(){var c=this.getCurrentFile();return null!=c&&(c.constructor==DriveFile&&c.isEditable()||c.constructor==DropboxFile)};EditorUi.prototype.getServiceName=function(){return"draw.io"};EditorUi.prototype.addRemoteServiceSecurityCheck=function(c){c.setRequestHeader("Content-Language","da, mi, en, de-DE")};EditorUi.prototype.loadUrl=function(c,e,k,n,p,t,y,C){EditorUi.logEvent("SHOULD NOT BE CALLED: loadUrl");return this.editor.loadUrl(c,e,k,n,p,t,y,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
null!=c&&null!=c.getTitle()&&c.getTitle()!=this.defaultFilename&&G.push("title="+encodeURIComponent(c.getTitle()));B&&1<k.length&&(G.push("open="+k.substring(1)),k="");return(n&&"1"!=urlParams.dev?EditorUi.lightboxHost:mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||!/.*\.draw\.io$/.test(window.location.hostname)?EditorUi.drawHost:"https://"+window.location.host)+"/"+(0<G.length?"?"+G.join("&"):"")+k};EditorUi.prototype.createHtml=function(c,e,k,n,p,t,y,C,G,B,V,R){this.getBasenames();var O={};""!= p&&p!=mxConstants.NONE&&(O.highlight=p);"auto"!==n&&(O.target=n);B||(O.lightbox=!1);O.nav=this.editor.graph.foldingEnabled;k=parseInt(k);isNaN(k)||100==k||(O.zoom=k/100);k=[];y&&(k.push("pages"),O.resize=!0,null!=this.pages&&null!=this.currentPage&&(O.page=mxUtils.indexOf(this.pages,this.currentPage)));e&&(k.push("zoom"),O.resize=!0);C&&k.push("layers");G&&k.push("tags");0<k.length&&(B&&k.push("lightbox"),O.toolbar=k.join(" "));null!=V&&0<V.length&&(O.edit=V);null!=c?O.url=c:O.xml=this.getFileData(!0, null,null,null,null,!y);e='<div class="mxgraph" style="'+(t?"max-width:100%;":"")+(""!=k?"border:1px solid transparent;":"")+'" data-mxgraph="'+mxUtils.htmlEntities(JSON.stringify(O))+'"></div>';c=null!=c?"&fetch="+encodeURIComponent(c):"";R(e,'<script type="text/javascript" src="'+(0<c.length?("1"==urlParams.dev?"https://test.draw.io/embed2.js?dev=1":EditorUi.lightboxHost+"/embed2.js?")+c:"1"==urlParams.dev?"https://test.draw.io/js/viewer-static.min.js":window.DRAWIO_VIEWER_URL?window.DRAWIO_VIEWER_URL: EditorUi.lightboxHost+"/js/viewer-static.min.js")+'">\x3c/script>')};EditorUi.prototype.showHtmlDialog=function(c,e,k,n){var p=document.createElement("div");p.style.whiteSpace="nowrap";var t=document.createElement("h3");mxUtils.write(t,mxResources.get("html"));t.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:12px";p.appendChild(t);var y=document.createElement("div");y.style.cssText="border-bottom:1px solid lightGray;padding-bottom:8px;margin-bottom:12px;";var C=document.createElement("input");
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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 g=0,x=0;q.view.states.visit(function(F,M){F=!0;m(M.shape)||(console.log("invalid shape",M.cell.id,M.shape),F=!1);m(M.text)||(console.log("invalid text",M.cell.id,M.text),F=!1);F||g++;x++});console.log("states checked",x,"invalid",g)}));d.actions.addAction("testCheckFile",mxUtils.bind(this,function(){var m=null!=d.pages&&null!=d.getCurrentFile()?d.getCurrentFile().getAnonymizedXmlForPages(d.pages):"";m=new TextareaDialog(d,"Paste Data:",m,function(v){if(0<v.length)try{var A=function(M){function Q(aa){if(null== ca[aa]){if(ca[aa]=!0,null!=T[aa]){for(;0<T[aa].length;){var ra=T[aa].pop();Q(ra)}delete T[aa]}}else mxLog.debug(S+": Visited: "+aa)}var S=M.parentNode.id,W=M.childNodes;M={};for(var T={},X=null,Z={},Y=0;Y<W.length;Y++){var ba=W[Y];if(null!=ba.id&&0<ba.id.length)if(null==M[ba.id]){M[ba.id]=ba.id;var fa=ba.getAttribute("parent");null==fa?null!=X?mxLog.debug(S+": Multiple roots: "+ba.id):X=ba.id:(null==T[fa]&&(T[fa]=[]),T[fa].push(ba.id))}else Z[ba.id]=ba.id}W=Object.keys(Z);0<W.length?(W=S+": "+W.length+ " Duplicates: "+W.join(", "),mxLog.debug(W+" (see console)")):mxLog.debug(S+": Checked");var ca={};null==X?mxLog.debug(S+": No root"):(Q(X),Object.keys(ca).length!=Object.keys(M).length&&(mxLog.debug(S+": Invalid tree: (see console)"),console.log(S+": Invalid tree",T)))};"<"!=v.charAt(0)&&(v=Graph.decompress(v),mxLog.debug("See console for uncompressed XML"),console.log("xml",v));var I=mxUtils.parseXml(v),g=d.getPagesForNode(I.documentElement,"mxGraphModel");if(null!=g&&0<g.length)try{var x=d.getHashValueForPages(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
R.setBackgroundImage(N.viewState.backgroundImage);R.getGlobalVariable=function(H){return"page"==H&&null!=N?N.getName():"pagenumber"==H?1:P.apply(this,arguments)};document.body.appendChild(R.container);null!=N&&R.model.setRoot(N.root)}}y=null!=y?y:this.getXmlFileData(p,t,B,V);G=null!=G?G:this.getCurrentFile();c=this.createFileData(y,R,G,window.location.href,c,e,k,n,p,C,B);R!=this.editor.graph&&R.container.parentNode.removeChild(R.container);return c};EditorUi.prototype.getHtml=function(c,e,k,n,p,t){t=
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
function(c){var e=E.apply(this,arguments);this.addListener("darkModeChanged",mxUtils.bind(this,function(){e.refresh();this.restoreOpenLibraries()}));this.addListener("sketchModeChanged",mxUtils.bind(this,function(){e.refresh();this.restoreOpenLibraries()}));return e};EditorUi.prototype.restoreOpenLibraries=function(){var c=this.openLibraries;this.openLibraries=null;if(null!=c)for(var e=0;e<c.length;e++)this.libraryLoaded(c[e].file,c[e].images,c[e].title,null!=c[e].div?"none"!=c[e].div.style.display: c[e].expand)};var U=EditorUi.prototype.updateActionStates;EditorUi.prototype.updateActionStates=function(){U.apply(this,arguments);var c=this.editor.graph,e=this.getCurrentFile(),k=this.getSelectionState(),n=this.isDiagramActive(),p="1"==urlParams.embed&&this.editor.graph.isEnabled()||null!=e&&e.isEditable();this.actions.get("undo").setEnabled(this.canUndo()&&p);this.actions.get("redo").setEnabled(this.canRedo()&&p);this.actions.get("autosave").setEnabled(null!=e&&e.isEditable()&&e.isAutosaveOptional());
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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.createFile=function(b,f,l,d,q,u,z,D,L,K){d=D?null:null!=d?d:this.mode;if(null!=b&&this.spinner.spin(document.body,mxResources.get("inserting"))){f=null!=f?f:this.emptyDiagramXml;null==f||Editor.defaultCompressed||(f=this.uncompressPages(f));var E=mxUtils.bind(this,function(){this.spinner.stop()}),U=mxUtils.bind(this,function(c){E();null==c&&null==this.getCurrentFile()&&null==this.dialog?this.showSplash():null!=c&&this.handleError(c)});try{var J=mxUtils.bind(this,function(c){E();this.fileCreated(c, l,u,q,L,K)});d==App.MODE_GOOGLE&&null!=this.drive?(null==z&&null!=this.stateArg&&null!=this.stateArg.folderId&&(z=this.stateArg.folderId),this.drive.insertFile(b,f,z,J,U)):d==App.MODE_GITHUB&&null!=this.gitHub?this.gitHub.insertFile(b,f,J,U,!1,z):d==App.MODE_GITLAB&&null!=this.gitLab?this.gitLab.insertFile(b,f,J,U,!1,z):d==App.MODE_TRELLO&&null!=this.trello?this.trello.insertFile(b,f,J,U,!1,z):d==App.MODE_DROPBOX&&null!=this.dropbox?this.dropbox.insertFile(b,f,J,U):d==App.MODE_ONEDRIVE&&null!=this.oneDrive? this.oneDrive.insertFile(b,f,J,U,!1,z):d==App.MODE_BROWSER?StorageFile.insertFile(this,b,f,J,U):!D&&d==App.MODE_DEVICE&&EditorUi.nativeFileSupport?(E(),this.showSaveFilePicker(mxUtils.bind(this,function(c,e){var k=new LocalFile(this,f,e.name,null,c,e);k.saveFile(e.name,!1,mxUtils.bind(this,function(){this.fileCreated(k,l,u,q,L,K)}),U,!0)}),mxUtils.bind(this,function(c){"AbortError"!=c.name&&U(c)}),this.createFileSystemOptions(b))):(E(),this.fileCreated(new LocalFile(this,f,b,null==d),l,u,q,L,K))}catch(c){E(), this.handleError(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
F.apply(this,arguments)};var M=I.restore;I.restore=function(){x--;M.apply(this,arguments)};var Q=m.drawShape;m.drawShape=function(S){mxLog.debug("entering shape",S,x);Q.apply(this,arguments);mxLog.debug("leaving shape",S,x)};m.drawState(q.getView().getState(q.model.root),I);mxLog.show();mxLog.debug(mxUtils.getXml(g));mxLog.debug("stateCounter",x)}));d.actions.addAction("testShowConsole",function(){mxLog.isVisible()?mxLog.window.fit():mxLog.show();mxLog.window.div.style.zIndex=mxPopupMenu.prototype.zIndex-
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
D=document.createElement("div");D.style.height="300px";D.style.width="300px";D.style.display="inline-flex";D.style.justifyContent="center";D.style.alignItems="center";D.style.position="absolute";var L=document.createElement("img");L.onload=function(){function B(){E.model.setStyle(c,e+q())}E=new Graph(K);E.autoExtend=!1;E.autoScroll=!1;E.setGridEnabled(!1);E.setEnabled(!0);E.setPanning(!1);E.setConnectable(!1);E.getRubberband().setEnabled(!1);E.graphHandler.allowLivePreview=!1;var V=E.createVertexHandler; E.createVertexHandler=function(){var Q=V.apply(this,arguments);Q.livePreview=!1;return Q};if(null!=l)try{if("inset"==l.substring(0,5)){var R=c.geometry,O=L.width,P=L.height,N=(300-O)/2,H=(300-P)/2,m=l.match(/\(([^)]+)\)/)[1].split(/[ ,]+/),v=parseFloat(m[0]),A=parseFloat(m[1]),I=parseFloat(m[2]),g=parseFloat(m[3]);isFinite(v)&&isFinite(A)&&isFinite(I)&&isFinite(g)?(R.x=g/100*O+N,R.y=v/100*P+H,R.width=(100-A)/100*O+N-R.x,R.height=(100-I)/100*P+H-R.y,"round"==m[4]?"50%"==m[5]?p.setAttribute("checked", "checked"):(J=parseInt(m[5]),y.value=J,n.setAttribute("checked","checked"),t.style.visibility="visible"):k.setAttribute("checked","checked")):l=null}else l=null}catch(Q){}c.style=e+(l?l:q());c.vertex=!0;E.addCell(c,null,null,null,null);E.selectAll();E.addListener(mxEvent.CELLS_MOVED,B);E.addListener(mxEvent.CELLS_RESIZED,B);var x=E.graphHandler.mouseUp,F=E.graphHandler.mouseDown;E.graphHandler.mouseUp=function(){x.apply(this,arguments);K.style.backgroundColor="#fff9"};E.graphHandler.mouseDown=function(){F.apply(this, arguments);K.style.backgroundColor=""};E.dblClick=function(){};var M=E.getSelectionModel().changeSelection;E.getSelectionModel().changeSelection=function(){M.call(this,[c],[c])}};L.onerror=function(){L.onload=null;L.src=Editor.errorImage};L.setAttribute("src",f);L.style.maxWidth="300px";L.style.maxHeight="300px";D.appendChild(L);z.appendChild(D);var K=document.createElement("div");K.style.width="300px";K.style.height="300px";K.style.overflow="hidden";K.style.backgroundColor="#fff9";z.appendChild(K);
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
function(){b.spinner.stop();if(null==b.linkPicker){var y=b.drive.createLinkPicker();b.linkPicker=y.setCallback(function(C){LinkDialog.filePicked(C)}).build()}b.linkPicker.setVisible(!0)}))});"undefined"!=typeof Dropbox&&"undefined"!=typeof Dropbox.choose&&D(IMAGE_PATH+"/dropbox-logo.svg",mxResources.get("dropbox"),function(){Dropbox.choose({linkType:"direct",cancel:function(){},success:function(y){E.value=y[0].link;E.focus()}})});null!=b.oneDrive&&D(IMAGE_PATH+"/onedrive-logo.svg",mxResources.get("oneDrive"),
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
Da.style.background=ta&&"none"!=ta?ta:"url('"+Dialog.prototype.noColorImage+"')";btn=mxUtils.button("",mxUtils.bind(Y,function(Ea){this.editorUi.pickColor(ta,function(Ta){Da.style.background="none"==Ta?"url('"+Dialog.prototype.noColorImage+"')":Ta;M(qa,Ta,ua)});mxEvent.consume(Ea)}));btn.style.height="12px";btn.style.width="40px";btn.className="geColorBtn";btn.appendChild(Da);return btn}function W(qa,ta,ua,Da,Ea,Ta,Ka){null!=ta&&(ta=ta.split(","),fa.push({name:qa,values:ta,type:ua,defVal:Da,countProperty:Ea, parentRow:Ta,isDeletable:!0,flipBkg:Ka}));btn=mxUtils.button("+",mxUtils.bind(Y,function(Sa){for(var Ia=Ta,Va=0;null!=Ia.nextSibling;)if(Ia.nextSibling.getAttribute("data-pName")==qa)Ia=Ia.nextSibling,Va++;else break;var Ua={type:ua,parentRow:Ta,index:Va,isDeletable:!0,defVal:Da,countProperty:Ea};Va=Z(qa,"",Ua,0==Va%2,Ka);M(qa,Da,Ua);Ia.parentNode.insertBefore(Va,Ia.nextSibling);mxEvent.consume(Sa)}));btn.style.height="16px";btn.style.width="25px";btn.className="geColorBtn";return btn}function T(qa,
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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.useCanvasForExport||".png"!=n||(n=".drawio"),".svg"===n||".xml"===n||".html"===n||".png"===n||".drawio"===n)&&(e=k+n)}c=new LocalFile(this,c,null!=urlParams.title?decodeURIComponent(urlParams.title):e,!0);c.getHash=function(){return b};this.fileLoaded(c,!0)?null!=d&&d():U()||this.handleError({message:mxResources.get("fileNotFound")},mxResources.get("errorLoadingFile"))}else U()||this.handleError({message:mxResources.get("fileNotFound")},mxResources.get("errorLoadingFile"))}),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(P){E=P};this.setAutoScroll=function(P){U=P};this.setOpenFill=function(P){J=P};this.setStopClickEnabled=function(P){k=P};this.setSelectInserted=function(P){n=P};this.setSmoothing=function(P){l=P};this.setPerfectFreehandMode=function(P){t=P};this.isPerfectFreehandMode=function(){return t};this.setBrushSize=function(P){p.size=P};this.getBrushSize=function(){return p.size};var y=function(P){e=P;b.getRubberband().setEnabled(!P);b.graphHandler.setSelectEnabled(!P);b.graphHandler.setMoveEnabled(!P);
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
mxResources.get("loading")))for(var x=c.length,F=x,M=[],Q=mxUtils.bind(this,function(W,T){M[W]=T;if(0==--F){this.spinner.stop();if(null!=C)C(M);else{var X=[];I.getModel().beginUpdate();try{for(W=0;W<M.length;W++){var Z=M[W]();null!=Z&&(X=X.concat(Z))}}finally{I.getModel().endUpdate()}}t(X)}}),S=0;S<x;S++)mxUtils.bind(this,function(W){var T=c[W];if(null!=T){var X=new FileReader;X.onload=mxUtils.bind(this,function(Z){if(null==y||y(T))try{if("image/"==T.type.substring(0,6))if("image/svg"==T.type.substring(0,
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
Editor.currentTheme&&"min"!=Editor.currentTheme||this.addMenuItems(m,["-","outline","fullscreen"],v)});E=this.get("layout");var k=E.funct;E.funct=function(m,v){k.apply(this,arguments);m.addItem(mxResources.get("orgChart"),null,function(){var A=null,I=20,g=20,x=function(){"undefined"!==typeof mxOrgChartLayout&&null!=A&&d.tryAndHandle(mxUtils.bind(this,function(){var Z=d.editor.graph,Y=new mxOrgChartLayout(Z,A,I,g),ba=Z.getDefaultParent();1<Z.model.getChildCount(Z.getSelectionCell())&&(ba=Z.getSelectionCell()); Y.execute(ba)}))},F=document.createElement("div"),M=document.createElement("div");M.style.marginTop="6px";M.style.display="inline-block";M.style.width="140px";mxUtils.write(M,mxResources.get("orgChartType")+": ");F.appendChild(M);var Q=document.createElement("select");Q.style.width="200px";Q.style.boxSizing="border-box";M=[mxResources.get("linear"),mxResources.get("hanger2"),mxResources.get("hanger4"),mxResources.get("fishbone1"),mxResources.get("fishbone2"),mxResources.get("1ColumnLeft"),mxResources.get("1ColumnRight"),
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
EditorUi.prototype.chromelessWindowResize=function(){};var K=Menus.prototype.init;Menus.prototype.init=function(){K.apply(this,arguments);var J=this.editorUi;EditorUi.enablePlantUml&&!J.isOffline()&&J.actions.put("plantUml",new Action(mxResources.get("plantUml")+"...",function(){var k=new ParseDialog(J,mxResources.get("plantUml")+"...","plantUml");J.showDialog(k.container,620,420,!0,!1);k.init()}));J.actions.put("mermaid",new Action(mxResources.get("mermaid")+"...",function(){var k=new ParseDialog(J, mxResources.get("mermaid")+"...","mermaid");J.showDialog(k.container,620,420,!0,!1);k.init()}));var c="horizontalFlow verticalFlow - horizontalTree verticalTree radialTree - organic circle".split(" "),e=function(k,n,p,t){k.addItem(p,null,mxUtils.bind(this,function(){var y=new CreateGraphDialog(J,p,t);J.showDialog(y.container,620,420,!0,!1);y.init()}),n)};this.put("insertLayout",new Menu(mxUtils.bind(this,function(k,n){for(var p=0;p<c.length;p++)"-"==c[p]?k.addSeparator(n):e(k,n,mxResources.get(c[p])+ "...",c[p])})))};EditorUi.prototype.installFormatToolbar=function(J){var c=this.editor.graph,e=document.createElement("div");e.style.cssText="position:absolute;top:10px;z-index:1;border-radius:4px;box-shadow:0px 0px 3px 1px #d1d1d1;padding:6px;white-space:nowrap;background-color:#fff;transform:translate(-50%, 0);left:50%;";c.getSelectionModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(k,n){0<c.getSelectionCount()?(J.appendChild(e),e.innerHTML="Selected: "+c.getSelectionCount()):null!=
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
typeof mxMermaidToDrawio)ea=ca=va;va=g.cloneNode(!0);ma.appendChild(va);Ma=function(Pa){M=null!=b.sidebar.tooltip&&"none"!=b.sidebar.tooltip.style.display};Oa=function(Pa){M||y(Ra,mxEvent.getClientX(Pa),mxEvent.getClientY(Pa),Qa,Ca)};mxEvent.addGestureListeners(Qa,Ma,null,Oa);mxEvent.addGestureListeners(va,Ma,null,Oa)},function(va){b.handleError(va)})});Ja.setAttribute("disabled","disabled");Ja.className="geBtn gePrimaryBtn";oa=function(){window.setTimeout(function(){""!=la.value?Ja.removeAttribute("disabled"):
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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?(m=e.getOutgoingTreeEdges(H),null!=m&&0<m.length&&e.setSelectionCell(e.model.getTerminal(m[0],!1))):(v=e.getIncomingTreeEdges(H),null!=v&&0<v.length&&(A=U(e.model.getTerminal(v[0],!0),A,H),H=e.view.getState(H),null!=H&&(H=mxUtils.indexOf(A,H),0<=H&&(H+=m==mxConstants.DIRECTION_NORTH||m==mxConstants.DIRECTION_WEST?-1:1,0<=H&&H<=A.length-1&&e.setSelectionCell(A[H].cell)))))}var c=this,e=c.editor.graph,k=e.getModel(),n=c.menus.createPopupMenu;c.menus.createPopupMenu=function(H,m,v){n.apply(this,arguments); if(1==e.getSelectionCount()){m=e.getSelectionCell();var A=e.getOutgoingTreeEdges(m);H.addSeparator();0<A.length&&(d(e.getSelectionCell())&&this.addMenuItems(H,["selectChildren"],null,v),this.addMenuItems(H,["selectDescendants"],null,v));d(e.getSelectionCell())?(H.addSeparator(),0<e.getIncomingTreeEdges(m).length&&this.addMenuItems(H,["selectSiblings","selectParent"],null,v)):0<e.model.getEdgeCount(m)&&this.addMenuItems(H,["selectConnections"],null,v)}};c.actions.addAction("selectChildren",function(H){if(e.isEnabled()&&
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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";this.editor.graph.setEnabled(c);null!=this.tabContainer&&(this.tabContainer.style.visibility=c?"":"hidden");null!=this.ruler&&(this.ruler.hRuler.container.style.visibility=c?"":"hidden",this.ruler.vRuler.container.style.visibility=c?"":"hidden");c||this.hideWindows()};EditorUi.prototype.initializeEmbedMode=function(){this.setGraphEnabled(!1);if((window.opener||window.parent)!=window&&("1"!=urlParams.spin||this.spinner.spin(document.body,mxResources.get("loading")))){var c=!1;this.installMessageHandler(mxUtils.bind(this, function(e,k,n,p){c||(c=!0,this.spinner.stop(),this.addEmbedButtons(),this.setGraphEnabled(!0));if(null==e||0==e.length)e=this.emptyDiagramXml;this.setCurrentFile(new EmbedFile(this,e,{}));this.mode=App.MODE_EMBED;this.setFileData(e);if(p)try{var t=this.editor.graph;t.setGridEnabled(!1);t.pageVisible=!1;var y=t.model.cells,C;for(C in y){var G=y[C];null!=G&&null!=G.style&&(G.style+=";sketch=1;"+(-1==G.style.indexOf("fontFamily=")||-1<G.style.indexOf("fontFamily=Helvetica;")?"fontFamily=Architects Daughter;fontSource=https%3A%2F%2Ffonts.googleapis.com%2Fcss%3Ffamily%3DArchitects%2BDaughter;": ""))}}catch(B){console.log(B)}this.editor.isChromelessView()?this.editor.graph.isLightboxView()&&this.lightboxFit():this.showLayersDialog();this.chromelessResize&&this.chromelessResize();this.editor.undoManager.clear();this.editor.modified=null!=n?n:!1;this.updateUi();window.self!==window.top&&window.focus();null!=this.format&&this.format.refresh()}))}};EditorUi.prototype.showLayersDialog=function(){1<this.editor.graph.getModel().getChildCount(this.editor.graph.getModel().getRoot())&&(null==this.actions.layersWindow?
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
"sketchStyle","rough")?this.createComicCanvas(S):this.createRoughCanvas(S)};var F=mxImageShape.prototype.paintVertexShape;mxImageShape.prototype.paintVertexShape=function(S,W,T,X,Z){null!=S.handJiggle&&S.handJiggle.passThrough||F.apply(this,arguments)};var M=mxShape.prototype.paint;mxShape.prototype.paint=function(S){var W=S.addTolerance,T=!0;null!=this.style&&(T="1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1"));if(null!=S.handJiggle&&S.handJiggle.constructor==g&&!this.outline){S.save();
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
g.ownerSVGElement.parentNode.insertBefore(this.webKitForceRepaintNode,g.ownerSVGElement))}};var O=Graph.prototype.refresh;Graph.prototype.refresh=function(){O.apply(this,arguments);this.refreshBackgroundImage()};Graph.prototype.refreshBackgroundImage=function(){null!=this.backgroundImage&&null!=this.backgroundImage.originalSrc&&(this.setBackgroundImage(this.backgroundImage),this.view.validateBackgroundImage())};var P=Graph.prototype.loadStylesheet;Graph.prototype.loadStylesheet=function(){P.apply(this,
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
c?c:"",extras:JSON.stringify(p),scale:y,border:C,w:R&&isFinite(R)?R:null,h:O&&isFinite(O)?O:null}};EditorUi.prototype.setMode=function(c,e){this.mode=c};EditorUi.prototype.getDiagramId=function(){var c=window.location.hash;null!=c&&0<c.length&&(c=c.substring(1));if(null!=c&&1<c.length){var e=c.indexOf("#");0<=e&&(c=c.substring(0,e))}return c};EditorUi.prototype.getHashObject=function(){var c=window.location.hash,e={};if(null!=c&&0<c.length){var k=c.lastIndexOf("#");if(0<k){c=decodeURIComponent(c.substring(k+
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
this.editor.setStatus(""),c?e.reloadFile(mxUtils.bind(this,function(){e.handleFileSuccess("manual"==DrawioFile.SYNC)}),mxUtils.bind(this,function(k){e.handleFileError(k,!0)})):e.synchronizeFile(mxUtils.bind(this,function(){e.handleFileSuccess("manual"==DrawioFile.SYNC)}),mxUtils.bind(this,function(k){e.handleFileError(k,!0)}))))};EditorUi.prototype.getFileData=function(c,e,k,n,p,t,y,C,G,B,V){p=null!=p?p:!0;t=null!=t?t:!1;B=null!=B?B:!Editor.defaultCompressed;var R=this.editor.graph;if(e||!c&&null!= G&&/(\.svg)$/i.test(G.getTitle())){var O=null!=R.themes&&"darkTheme"==R.defaultThemeName;if(O||null!=this.pages&&this.currentPage!=this.pages[0]){var P=R.getGlobalVariable;R=this.createTemporaryGraph(O?R.getDefaultStylesheet():R.getStylesheet());R.setBackgroundImage=this.editor.graph.setBackgroundImage;R.background=this.editor.graph.background;var N=null!=this.pages?this.pages[0]:null;null==N||this.currentPage==N?R.setBackgroundImage(this.editor.graph.backgroundImage):null!=N.viewState&&null!=N.viewState&& R.setBackgroundImage(N.viewState.backgroundImage);R.getGlobalVariable=function(H){return"page"==H&&null!=N?N.getName():"pagenumber"==H?1:P.apply(this,arguments)};document.body.appendChild(R.container);null!=N&&R.model.setRoot(N.root)}}y=null!=y?y:this.getXmlFileData(p,t,B,V);G=null!=G?G:this.getCurrentFile();c=this.createFileData(y,R,G,window.location.href,c,e,k,n,p,C,B);R!=this.editor.graph&&R.container.parentNode.removeChild(R.container);return c};EditorUi.prototype.getHtml=function(c,e,k,n,p,t){t=
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
D?mxUtils.button(mxResources.get("ignore"),D):null;null!=D&&(D.className="geBtn");b.editor.cancelFirst?(c.appendChild(l),null!=D&&c.appendChild(D),c.appendChild(z),c.appendChild(u)):(c.appendChild(u),c.appendChild(z),null!=D&&c.appendChild(D),c.appendChild(l));K.appendChild(c);K.appendChild(e);this.container=K},FindWindow=function(b,f,l,d,q,u){function z(I,g,x,F){if("object"===typeof g.value&&null!=g.value.attributes){g=g.value.attributes;for(var M=0;M<g.length;M++)if("label"!=g[M].nodeName){var Q= mxUtils.trim(g[M].nodeValue.replace(/[\x00-\x1F\x7F-\x9F]|\s+/g," ")).toLowerCase();if(null==I&&(F&&0<=Q.indexOf(x)||!F&&Q.substring(0,x.length)===x)||null!=I&&I.test(Q))return!0}}return!1}function D(){c?(m.removeAttribute("disabled"),v.removeAttribute("disabled")):(m.setAttribute("disabled","disabled"),v.setAttribute("disabled","disabled"));C.value?A.removeAttribute("disabled"):A.setAttribute("disabled","disabled")}function L(I,g,x){N.innerText="";var F=E.model.getDescendants(E.model.getRoot()),
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
B){var Fa=N&&this.isResampleImageSize(T.size,V)?Math.min(1,Math.min(n/na,n/Aa)):1;return p(pa,T.type,e+W*g,k+W*g,Math.round(na*Fa),Math.round(Aa*Fa),T.name)}this.handleError({message:mxResources.get("imageTooBig")});return null}))}),N,n,V,T.size)}),mxUtils.bind(this,function(){this.handleError({message:mxResources.get("invalidOrMissingFile")})})))}else Y=Z.target.result,p(Y,T.type,e+W*g,k+W*g,240,160,T.name,function(ha){Q(W,function(){return ha})},T)}catch(ha){Q(W,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
E.createVertexHandler=function(){var Q=V.apply(this,arguments);Q.livePreview=!1;return Q};if(null!=l)try{if("inset"==l.substring(0,5)){var R=c.geometry,O=L.width,P=L.height,N=(300-O)/2,H=(300-P)/2,m=l.match(/\(([^)]+)\)/)[1].split(/[ ,]+/),v=parseFloat(m[0]),A=parseFloat(m[1]),I=parseFloat(m[2]),g=parseFloat(m[3]);isFinite(v)&&isFinite(A)&&isFinite(I)&&isFinite(g)?(R.x=g/100*O+N,R.y=v/100*P+H,R.width=(100-A)/100*O+N-R.x,R.height=(100-I)/100*P+H-R.y,"round"==m[4]?"50%"==m[5]?p.setAttribute("checked",
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
"style"):M.createElement("style");g.setAttribute("type","text/css");mxUtils.setTextContent(g,x);F.appendChild(g)}};Editor.prototype.isExportToCanvas=function(){return mxClient.IS_CHROMEAPP||this.useCanvasForExport};Editor.prototype.getMaxCanvasScale=function(g,x,F){var M=mxClient.IS_FF?8192:16384;return Math.min(F,Math.min(M/g,M/x))};Editor.prototype.exportToCanvas=function(g,x,F,M,Q,S,W,T,X,Z,Y,ba,fa,ca,aa,ra,za,Ba){try{S=null!=S?S:!0;W=null!=W?W:!0;ba=null!=ba?ba:this.graph;fa=null!=fa?fa:0;var ea=
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
ra.className="gePropHeaderCell";var za=document.createElement("img");za.src=Sidebar.prototype.expandedImage;za.style.verticalAlign="middle";ra.appendChild(za);mxUtils.write(ra,mxResources.get("property"));aa.style.cursor="pointer";var Ba=function(){var qa=ca.querySelectorAll(".gePropNonHeaderRow");if(Y.editorUi.propertiesCollapsed){za.src=Sidebar.prototype.collapsedImage;var ta="none";for(var ua=g.childNodes.length-1;0<=ua;ua--)try{var Da=g.childNodes[ua],Ea=Da.nodeName.toUpperCase();"INPUT"!=Ea&& "SELECT"!=Ea||g.removeChild(Da)}catch(Ta){}}else za.src=Sidebar.prototype.expandedImage,ta="";for(ua=0;ua<qa.length;ua++)qa[ua].style.display=ta};mxEvent.addListener(aa,"click",function(){Y.editorUi.propertiesCollapsed=!Y.editorUi.propertiesCollapsed;Ba()});aa.appendChild(ra);ra=document.createElement("th");ra.className="gePropHeaderCell";ra.innerHTML=mxResources.get("value");aa.appendChild(ra);ca.appendChild(aa);var ea=!1,ha=!1;aa=null;1==F.vertices.length&&0==F.edges.length?aa=F.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
0==F%2,aa.flipBkg),x.parentNode.insertBefore(pa,x.nextSibling),x=pa;g.appendChild(ca);Ba();return g};StyleFormatPanel.prototype.addStyles=function(g){if(null!=this.defaultColorSchemes){var x=function(aa){mxEvent.addListener(aa,"mouseenter",function(){aa.style.opacity="1"});mxEvent.addListener(aa,"mouseleave",function(){aa.style.opacity="0.5"})},F=this.editorUi,M=F.editor.graph,Q=document.createElement("div");Q.style.whiteSpace="nowrap";Q.style.paddingLeft="24px";Q.style.paddingRight="20px";g.style.paddingLeft=
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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.view.validate());O=I;P=A}));var N=e.labelLinkClicked;e.labelLinkClicked=function(A,I,g){var x=I.getAttribute("href");if(null==x||!e.isCustomLink(x)||!mxEvent.isTouchEvent(g)&&mxEvent.isPopupTrigger(g))N.apply(this,arguments);else{if(!e.isEnabled()||null!=A&&e.isCellLocked(A.cell))e.customLinkClicked(x),e.getRubberband().reset();mxEvent.consume(g)}};this.editor.getOrCreateFilename=function(){var A=c.defaultFilename,I=c.getCurrentFile();null!=I&&(A=null!=I.getTitle()?I.getTitle():A);return A};var H=
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
ma.join(" ")}null!=ja?(M=ja,M.className+=" "+da,Q=la,na.className="geTempDlgCreateBtn"):(Q=M=null,na.className="geTempDlgCreateBtn geTempDlgBtnDisabled")}function C(ja,da){if(null!=Q){var la=function(wa){ka.isExternal?L(ka,function(sa){ma(sa,wa)},oa):ka.url?mxUtils.get(TEMPLATE_PATH+"/"+ka.url,mxUtils.bind(this,function(sa){200<=sa.getStatus()&&299>=sa.getStatus()?ma(sa.getText(),wa):oa()})):ma(b.emptyDiagramXml,wa)},ma=function(wa,sa){e||b.hideDialog(!0);f(wa,sa,ka,da)},oa=function(){k(mxResources.get("cannotLoad")); ia()},ia=function(){Q=ka;na.className="geTempDlgCreateBtn";da&&(Aa.className="geTempDlgOpenBtn")},ka=Q;Q=null;"boolean"!==typeof da&&(da=ka.isExternal&&U);1==ja?K(ka.url,ka):da?(Aa.className="geTempDlgOpenBtn geTempDlgBtnDisabled geTempDlgBtnBusy",la()):(na.className="geTempDlgCreateBtn geTempDlgBtnDisabled geTempDlgBtnBusy",ja=null==b.mode||b.mode==App.MODE_GOOGLE||b.mode==App.MODE_BROWSER?mxResources.get("diagramName"):mxResources.get("filename"),ja=new FilenameDialog(b,b.defaultFilename+".drawio", mxResources.get("ok"),la,ja,function(wa){var sa=null!=wa&&0<wa.length;return sa&&e?(la(wa),!1):sa},null,null,null,ia,c?null:[]),b.showDialog(ja.container,350,80,!0,!0),ja.init())}}function G(ja){na.innerText=mxResources.get(fa||ja?"create":"copy");ja=ja?"none":"";U&&(Aa.style.display=ja);for(var da=A.querySelectorAll(".geTempDlgLinkToDiagram"),la=0;la<da.length;la++)da[la].style.display=ja}function B(ja,da,la,ma,oa){oa||(aa.innerText="",y(),X=ja,Z=ma);var ia=null;if(la){ia=document.createElement("table");
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
function(){k.checked&&(null==e||e.checked)?t.removeAttribute("disabled"):t.setAttribute("disabled","disabled")}));mxUtils.br(c);return{getLink:function(){return k.checked?"blank"===t.value?"_blank":p:null},getEditInput:function(){return k},getEditSelect:function(){return t}}};EditorUi.prototype.addLinkSection=function(c,e){function k(){var C=document.createElement("div");C.style.width="100%";C.style.height="100%";C.style.boxSizing="border-box";null!=t&&t!=mxConstants.NONE?(C.style.border="1px solid black",
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
App.prototype.getServiceForName=function(b){return b==App.MODE_GOOGLE?this.drive:b==App.MODE_ONEDRIVE?this.oneDrive:b==App.MODE_DROPBOX?this.dropbox:b==App.MODE_GITHUB?this.gitHub:b==App.MODE_GITLAB?this.gitLab:b==App.MODE_TRELLO?this.trello:null};App.prototype.getTitleForService=function(b){return b==App.MODE_GOOGLE?mxResources.get("googleDrive"):b==App.MODE_ONEDRIVE?mxResources.get("oneDrive"):EditorUi.prototype.getTitleForService.apply(this,arguments)};
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
(0!=e.getStatus()?": "+e.getStatus():"")}))}));EditorUi.debug("DrawioFileSync.fileSaved",[this],"from",L,"to",K,"etag",this.file.getCurrentEtag(),"diff",E,U.length,"bytes","checksum",u)}else this.notify(D),null!=l&&l(),EditorUi.debug("DrawioFileSync.fileSaved",[this],"from",L,"to",K,"etag",this.file.getCurrentEtag())}this.file.setShadowPages(b);this.scheduleCleanup()};
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
wa.innerText=ka;ia.appendChild(wa);pa.appendChild(ia);mxEvent.addListener(ia,"click",function(){function Ja(){var ya=Ha.querySelector(".geTemplateDrawioCatLink");null!=ya?ya.click():setTimeout(Ja,200)}fa=!0;var Ha=A.querySelector(".geTemplatesList");Ha.style.display="block";Ba.style.width="";Fa.style.display="";Fa.value="";Y=null;Ja()});ca.style.display=ja.length<=la?"none":""}function R(ja,da,la){function ma(Oa,Xa){Oa=mxResources.get(Oa,null,Oa.substring(0,1).toUpperCase()+Oa.substring(1));var Qa= Oa+" ("+Xa.length+")",Ra=Oa=mxUtils.htmlEntities(Oa);15<Oa.length&&(Oa=Oa.substring(0,15)+"&hellip;");return{lbl:Oa+" ("+Xa.length+")",fullLbl:Qa,lblOnly:Ra}}function oa(Oa,Xa,Qa,Ra,Pa){mxEvent.addListener(Qa,"click",function(){x!=Qa&&(null!=x?(x.style.fontWeight="normal",x.style.textDecoration="none"):(ha.style.display="none",ea.style.minHeight="100%"),x=Qa,x.style.fontWeight="bold",x.style.textDecoration="underline",Ba.scrollTop=0,I&&(g=!0),ra.innerHTML=Xa,za.style.display="none",B(Pa?da[Oa]:Ra?
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
x=/\.png$/i.test(g)||/\.pdf$/i.test(g)||x;var F="t="+(new Date).getTime();g=PROXY_URL+"?url="+encodeURIComponent(g)+"&"+F+(x?"&base64=1":"")}return g};Editor.prototype.isCorsEnabledForUrl=function(g){if(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||g.substring(0,window.location.origin.length)==window.location.origin)return!0;null!=urlParams.cors&&null==this.corsRegExp&&(this.corsRegExp=new RegExp(decodeURIComponent(urlParams.cors)));return null!=this.corsRegExp&&this.corsRegExp.test(g)||"https://raw.githubusercontent.com/"=== g.substring(0,34)||"https://fonts.googleapis.com/"===g.substring(0,29)||"https://fonts.gstatic.com/"===g.substring(0,26)};Editor.prototype.createImageUrlConverter=function(){var g=new mxUrlConverter;g.updateBaseUrl();var x=g.convert,F=this;g.convert=function(M){if(null!=M){var Q="http://"==M.substring(0,7)||"https://"==M.substring(0,8);Q&&!navigator.onLine?M=Editor.svgBrokenImage.src:!Q||M.substring(0,g.baseUrl.length)==g.baseUrl||F.crossOriginImages&&F.isCorsEnabledForUrl(M)?"chrome-extension://"==
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
App.prototype.fileCreated=function(b,f,l,d,q,u){var z=window.location.pathname;null!=f&&0<f.length&&(z+="?libs="+f);null!=q&&0<q.length&&(z+="?clibs="+q);z=this.getUrl(z);b.getMode()!=App.MODE_DEVICE&&(z+="#"+b.getHash());if(this.spinner.spin(document.body,mxResources.get("inserting"))){var D=b.getData();D=0<D.length?this.editor.extractGraphModel(mxUtils.parseXml(D).documentElement,!0):null;var L=window.location.protocol+"//"+window.location.hostname+z,K=D,E=null;null!=D&&/\.svg$/i.test(b.getTitle())&&(E= this.createTemporaryGraph(this.editor.graph.getStylesheet()),document.body.appendChild(E.container),K=this.decodeNodeIntoGraph(K,E));b.setData(this.createFileData(D,E,b,L));null!=E&&E.container.parentNode.removeChild(E.container);var U=mxUtils.bind(this,function(){this.spinner.stop()}),J=mxUtils.bind(this,function(){U();var c=this.getCurrentFile();null==l&&null!=c&&(l=!c.isModified()&&null==c.getMode());var e=mxUtils.bind(this,function(){window.openFile=null;this.fileLoaded(b,null,u);l&&b.addAllSavedStatus(); null!=f&&this.sidebar.showEntries(f);if(null!=q){for(var n=[],p=q.split(";"),t=0;t<p.length;t++)n.push(decodeURIComponent(p[t]));this.loadLibraries(n)}null!=d&&d()}),k=mxUtils.bind(this,function(){l||null==c||!c.isModified()?e():this.confirm(mxResources.get("allChangesLost"),null,e,mxResources.get("cancel"),mxResources.get("discardChanges"))});null==l||l?k():(b.constructor==LocalFile&&(window.openFile=new OpenFile(function(){window.openFile=null}),window.openFile.setData(b.getData(),b.getTitle(), null==b.getMode())),window.openWindow(z,null,k))});b.constructor==LocalFile?J():b.saveFile(b.getTitle(),!1,mxUtils.bind(this,function(){J()}),mxUtils.bind(this,function(c){U();null!=c&&"AbortError"==c.name||this.handleError(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
"mermaidData",JSON.stringify({data:F,config:x.config},null,2))}finally{e.getModel().endUpdate()}},function(M){c.handleError(M)})},null,null,400,220);c.showDialog(I.container,420,300,!0,!0);I.init()};var k=e.cellEditor.startEditing;e.cellEditor.startEditing=function(A,I){try{var g=this.graph.getAttributeForCell(A,"plantUmlData");if(null!=g)this.editPlantUmlData(A,I,g);else if(g=this.graph.getAttributeForCell(A,"mermaidData"),null!=g)this.editMermaidData(A,I,g);else{var x=e.getCellStyle(A);"1"==mxUtils.getValue(x, "metaEdit","0")?c.showDataDialog(A):k.apply(this,arguments)}}catch(F){c.handleError(F)}};e.getLinkTitle=function(A){return c.getLinkTitle(A)};e.customLinkClicked=function(A){var I=!1;try{c.handleCustomLink(A),I=!0}catch(g){c.handleError(g)}return I};var n=e.parseBackgroundImage;e.parseBackgroundImage=function(A){var I=n.apply(this,arguments);null!=I&&null!=I.src&&Graph.isPageLink(I.src)&&(I={originalSrc:I.src});return I};var p=e.setBackgroundImage;e.setBackgroundImage=function(A){null!=A&&null!=A.originalSrc&&
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
function(N){this.spinner.stop();try{this.saveCanvas(N,p?this.getFileData(!0,null,null,null,k,C):null,G,null==this.pages||0==this.pages.length,V)}catch(H){this.handleError(H)}}),null,this.thumbImageCache,null,mxUtils.bind(this,function(N){this.spinner.stop();this.handleError(N)}),null,k,c||1,e,n,null,null,t,y,B,R,O)}catch(N){this.spinner.stop(),this.handleError(N)}}};EditorUi.prototype.isCorsEnabledForUrl=function(c){return this.editor.isCorsEnabledForUrl(c)};EditorUi.prototype.importXml=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
d.appendChild(K);mxUtils.br(d);this.init=function(){K.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?K.select():document.execCommand("selectAll",!1,null)};mxUtils.write(d,mxResources.get("top")+":");var E=document.createElement("input");E.setAttribute("type","text");E.setAttribute("size","4");E.style.marginRight="16px";E.style.marginLeft="4px";E.value=D;d.appendChild(E);mxUtils.write(d,mxResources.get("height")+":");var U=document.createElement("input");U.setAttribute("type","text");
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements 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.substring(0,1).toUpperCase()+Ca.substring(1));18<Ca.length&&(Ca=Ca.substring(0,18)+"&hellip;");return Ca+(null!=va?" ("+va.length+")":"")}function la(Ca,va,Ma){mxEvent.addListener(va,"click",function(){Ka!=va&&(null!=Ka&&(Ka.style.backgroundColor=""),Ka=va,Ka.style.backgroundColor=z,ha.scrollTop=0,ha.innerText="",v=0,null!=ta[Ca].content?(ha.appendChild(ta[Ca].content),ca=ea,Ia=null,null!=ta[Ca].content.init&&ta[Ca].content.init()):(Ia=Ma?ua[Ca][Ma]:ta[Ca],S=null,t(!1)))});null!=urlParams["smart-template"]&& "smartTemplate"==Ca&&va.click()}Ta&&(Ta=!1,mxEvent.addListener(ha,"scroll",function(Ca){ha.scrollTop+ha.clientHeight>=ha.scrollHeight&&(t(),mxEvent.consume(Ca))}));if(0<Ea){var ma=document.createElement("div");ma.style.cssText="font-weight: bold;background: #f9f9f9;padding: 5px 0 5px 0;text-align: center;";mxUtils.write(ma,mxResources.get("custom"));xa.appendChild(ma);for(var oa in Da){var ia=document.createElement("div");ma=oa;var ka=Da[oa];18<ma.length&&(ma=ma.substring(0,18)+"&hellip;");ia.style.cssText=
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
"click",sa):(mxEvent.addListener(va,"click",function(Na){B(va,null,null,da,wa)}),mxEvent.addListener(va,"dblclick",function(Na){G();mxEvent.consume(Na)}));null!=da&&(ia=g.cloneNode(!0),va.appendChild(ia),mxEvent.addGestureListeners(ia,mxUtils.bind(this,function(Na){M=b.sidebar.currentElt==va}),null,null),mxEvent.addListener(ia,"click",mxUtils.bind(this,function(Na){M||Ca(Na,null!=ma?ma:oa);mxEvent.consume(Na)})));ha.appendChild(va);return va}function R(){function da(Ca,va){Ca=mxResources.get(Ca,null, Ca.substring(0,1).toUpperCase()+Ca.substring(1));18<Ca.length&&(Ca=Ca.substring(0,18)+"&hellip;");return Ca+(null!=va?" ("+va.length+")":"")}function la(Ca,va,Ma){mxEvent.addListener(va,"click",function(){Ka!=va&&(null!=Ka&&(Ka.style.backgroundColor=""),Ka=va,Ka.style.backgroundColor=z,ha.scrollTop=0,ha.innerText="",v=0,null!=ta[Ca].content?(ha.appendChild(ta[Ca].content),ca=ea,Ia=null,null!=ta[Ca].content.init&&ta[Ca].content.init()):(Ia=Ma?ua[Ca][Ma]:ta[Ca],S=null,t(!1)))});null!=urlParams["smart-template"]&&
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
va,La.width*va,La.height*va))}return ya};var Ha=ja.getGlobalVariable;ja.getGlobalVariable=function(ya){return"page"==ya?ka.getName():"pagenumber"==ya?ia+1:"pagecount"==ya?null!=g.pages?g.pages.length:1:Ha.apply(this,arguments)};document.body.appendChild(ja.container);g.updatePageRoot(ka);ja.model.setRoot(ka.root)}ma=Ka(ja,ma,ia!=la,ka.getId());ja!=Q&&ja.container.parentNode.removeChild(ja.container)}}else ma=Ka(Q);null==ma||null==ma.wnd?g.handleError({message:mxResources.get("errorUpdatingPreview")}): (ma.mathEnabled&&(la=ma.wnd.document,Ta&&(ma.wnd.IMMEDIATE_PRINT=!0),la.writeln('<script type="text/javascript" src="'+DRAWIO_BASE_URL+'/js/math-print.js">\x3c/script>')),ma.closeDocument(),Graph.rewritePageLinks(ma.wnd.document),!ma.mathEnabled&&Ta&&PrintDialog.printPreview(ma));null!=Ia&&(Q.shapeForegroundColor=Va,Q.shapeBackgroundColor=Ua,Q.stylesheet=Ia,Q.refresh())}}var Q=g.editor.graph,S=document.createElement("div"),W=document.createElement("h3");W.style.width="100%";W.style.textAlign="center";
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe
360,null!=c.pages&&1<c.pages.length?470:390,!0,!0)};this.defaultFilename=mxResources.get("untitledDiagram");var V=e.getExportVariables;e.getExportVariables=function(){var A=V.apply(this,arguments),I=c.getCurrentFile();null!=I&&(A.filename=I.getTitle());A.pagecount=null!=c.pages?c.pages.length:1;A.page=null!=c.currentPage?c.currentPage.getName():"";A.pagenumber=null!=c.pages&&null!=c.currentPage?mxUtils.indexOf(c.pages,c.currentPage)+1:1;return A};var R=e.getGlobalVariable;e.getGlobalVariable=function(A){var 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
}finally{e.getModel().endUpdate()}t&&(e.setSelectionCell(k),e.scrollCellToVisible(k))}};l=mxUtils.button(mxResources.get("preview"),function(){c(E,U,!1)});l.className="geBtn";L.appendChild(l);l=mxUtils.button(mxResources.get("apply"),function(){c(b.editor.graph,f,!0)});l.className="geBtn gePrimaryBtn";L.appendChild(l);b.editor.cancelFirst||L.appendChild(q);D.appendChild(L);z.appendChild(D);u.appendChild(z);this.container=u},CustomDialog=function(b,f,l,d,q,u,z,D,L,K,E,U){var J=document.createElement("div");
1
JavaScript
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
https://cwe.mitre.org/data/definitions/78.html
safe