Language: JavaScript
Label: vulnerable
CWE: CWE-78 \u2014 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.

Code:
q,z=0;8>z;z++)u=1==(u&1)?3988292384^u>>>1:u>>>1,Editor.crcTable[q]=u;Editor.updateCRC=function(g,x,F,M){for(var P=0;P<M;P++)g=Editor.crcTable[(g^x.charCodeAt(F+P))&255]^g>>>8;return g};Editor.crc32=function(g){for(var x=-1,F=0;F<g.length;F++)x=x>>>8^Editor.crcTable[(x^g.charCodeAt(F))&255];return(x^-1)>>>0};Editor.writeGraphModelToPng=function(g,x,F,M,P){function T(Y,ba){var fa=X;X+=ba;return Y.substring(fa,X)}function W(Y){Y=T(Y,4);return Y.charCodeAt(3)+(Y.charCodeAt(2)<<8)+(Y.charCodeAt(1)<<16)+
(Y.charCodeAt(0)<<24)}function U(Y){return String.fromCharCode(Y>>24&255,Y>>16&255,Y>>8&255,Y&255)}g=g.substring(g.indexOf(",")+1);g=window.atob?atob(g):Base64.decode(g,!0);var X=0;if(T(g,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=P&&P();else if(T(g,4),"IHDR"!=T(g,4))null!=P&&P();else{T(g,17);P=g.substring(0,X);do{var Z=W(g);if("IDAT"==T(g,4)){P=g.substring(0,X-8);"pHYs"==x&&"dpi"==F?(F=Math.round(M/.0254),F=U(F)+U(F)+String.fromCharCode(1)):F=F+String.fromCharCode(0)+
("zTXt"==x?String.fromCharCode(0):"")+M;M=4294967295;M=Editor.updateCRC(M,x,0,4);M=Editor.updateCRC(M,F,0,F.length);P+=U(F.length)+x+F+U(M^4294967295);P+=g.substring(X-8,g.length);break}P+=g.substring(X-8,X-4+Z);T(g,Z);T(g,4)}while(Z);return"data:image/png;base64,"+(window.btoa?btoa(P):Base64.encode(P,!0))}};if(window.ColorDialog){FilenameDialog.filenameHelpLink="https://www.drawio.com/doc/faq/save-file-formats";var D=ColorDialog.addRecentColor;ColorDialog.addRecentColor=function(g,x){D.apply(this,