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 |
---|---|---|---|---|---|---|---|
stencils:D}}catch(Ra){console.log("Stencil parsing error:",Ra)}}function sc(u,F,D,t,e,O,r,q){u=new mxCell("",new mxGeometry(u,F,0,0),"strokeColor=none;fillColor=none;");u.vertex=!0;r.insert(u);O=[u];D=D.clone();q.insertEdge(D,!1);u.insertEdge(D,!0);O.push(D);t.push(e.addCell(D,null,null,null,null))}function fb(u,F,D,t,e,O,r,q,Z){u=new mxCell("",new mxGeometry(u,F,0,0),"strokeColor=none;fillColor=none;");u.vertex=!0;Z.insert(u);D=new mxCell("",new mxGeometry(D,t,0,0),"strokeColor=none;fillColor=none;");
D.vertex=!0;Z.insert(D);q=[D];e=e.clone();u.insertEdge(e,!0);D.insertEdge(e,!1);q.push(e);O.push(r.addCell(e,null,null,null,null))}function Sa(u,F,D,t,e,O){t.style="rounded=1;absoluteArcSize=1;fillColor=#ffffff;arcSize=2;strokeColor=#dddddd;";t.style+=b(t.style,e,O,t);F=m(e);t.vertex=!0;u=new mxCell(F,new mxGeometry(0,.5,24,24),"dashed=0;connectable=0;html=1;strokeColor=none;"+mxConstants.STYLE_SHAPE+"=mxgraph.gcp2."+u+";part=1;shadow=0;labelPosition=right;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=5;");
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
f);var k=function(I,L){null==I.entries&&(I.entries=[]);for(var N=0;N<I.entries.length;N++)if(null!=I.entries[N].key.equals&&I.entries[N].key.equals(L)||I.entries[N].key===L)return I.entries[N].value;return null}(this.edgeShapeMap,f);if(null==k)return null;var p=function(I,L){null==I.entries&&(I.entries=[]);for(var N=0;N<I.entries.length;N++)if(null!=I.entries[N].key.equals&&I.entries[N].key.equals(L)||I.entries[N].key===L)return I.entries[N].value;return null}(this.parentsMap,new g.mxgraph.io.vsdx.ShapePageId(b,
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
(function(g){(function(y){(function(z){(function(B){var m=function(){function h(c){this.themeIndex=-1;this.themeVariant=0;this.baseColors={};this.variantsColors=function(a){var b=function(d){if(0!=d.length){for(var f=[],k=0;k<d[0];k++)f.push(b(d.slice(1)));return f}};return b(a)}([4,7]);this.isMonotoneVariant=Array(4);this.defaultClr=new g.mxgraph.io.vsdx.theme.Color(255,255,255);this.defaultLineClr=new g.mxgraph.io.vsdx.theme.Color(0,0,0);this.defaultLineStyle=new g.mxgraph.io.vsdx.theme.LineStyle;this.fillStyles=
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
l(t);mxEvent.consume(t)}));return n};EditorUi.prototype.createMenuItem=function(c,e,l){var p=this.actions.get(c),n=null!=p?p.funct:null,t=this.createToolbarButton(e,mxResources.get(c)+(null!=p&&null!=p.shortcut?" ("+p.shortcut+")":""),n);null==p||l||(c=function(){p.isEnabled()?(t.removeAttribute("disabled"),t.style.cursor="pointer"):(t.setAttribute("disabled","disabled"),t.style.cursor="default");t.style.opacity=p.isEnabled()?"":"0.2"},this.editor.graph.addListener("enabledChanged",c),p.addListener("stateChanged",
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
a,b,d,f):this.addVertex(c,a,b,d,f);(function(n,x,A){null==n.entries&&(n.entries=[]);for(var C=0;C<n.entries.length;C++)if(null!=n.entries[C].key.equals&&n.entries[C].key.equals(x)||n.entries[C].key===x){n.entries[C].value=A;return}n.entries.push({key:x,value:A,getKey:function(){return this.key},getValue:function(){return this.value}})})(this.vertexShapeMap,new g.mxgraph.io.vsdx.ShapePageId(d,p),a);b=a.getHyperlink();b.extLink?c.setLinkForCell(k,b.extLink):b.pageLink&&c.setLinkForCell(k,"data:page/id,"+
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
c))return d}return null};h.prototype.getMaster=function(c){var a=this.masters;return a[c]?a[c]:null};h.prototype.createPage=function(c){return new g.mxgraph.io.vsdx.mxVsdxPage(c,this)};h.prototype.getPropertiesManager=function(){return this.pm};h.prototype.setPropertiesManager=function(c){this.pm=c};h.prototype.getMasterShapes=function(){return this.masters};h.prototype.setMasterShapes=function(c){this.masters=c};h.prototype.getStylesheet=function(c){var a=this.stylesheets;return a[c]?a[c]:null};
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
c.PageScale:null;return null!=c?parseFloat(c.getAttribute("V"))*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$():1};h.prototype.getCellValue=function(c){var a=this.cellElements;c=a[c]?a[c]:null;return null!=c?c.getAttribute("V")||"":null};h.prototype.getCellIntValue=function(c,a){c=this.getCellValue(c);return null!=c?parseInt(c):a};h.prototype.getId=function(){return this.Id};h.prototype.getPageName=function(){return this.pageName};h.prototype.getPageNameU=function(){return this.pageNameU};h.prototype.getShapes=
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
r.Message&&(e=Pd(r.Message,e,u,D,t,F))}u.Hidden&&(e.visible=!1);return e}function Pd(u,F,D,t,e,O){var r=2*(parseFloat(u.Location)-.5);isNaN(r)&&null!=u.Text&&null!=u.Text.Location&&(r=2*(parseFloat(u.Text.Location)-.5));O=m(u);var q=mxCell;r=new mxGeometry(isNaN(r)?0:r,0,0,0);var Z=ge;var aa=D;if(G)aa=lb;else{var U="13",wa="";if(null!=u&&null!=u.Value&&null!=u.Value.m){wa=A(u.Value.m);for(var ja=0;ja<u.Value.m.length;ja++)if("s"==u.Value.m[ja].n&&u.Value.m[ja].v)U=z(.75*parseFloat(u.Value.m[ja].v));
else if("c"==u.Value.m[ja].n){var na=T(u.Value.m[ja].v);null!=na&&(na=na.substring(0,7));"#000000"==na&&(na="default");wa+="fontColor="+na+";"}wa+=k(aa);lb=""}aa=wa+";fontSize="+U+";"}q=new q(O,r,Z+aa);q.geometry.relative=!0;q.vertex=!0;if(u.Side)try{D.Action&&D.Action.Properties&&(D=D.Action.Properties);if(null!=t&&null!=e){var ra=t.geometry,Aa=e.geometry;var ma=Math.abs(ra.x+ra.width*D.Endpoint1.LinkX-(Aa.x+Aa.width*D.Endpoint2.LinkX));var Ba=Math.abs(ra.y+ra.height*D.Endpoint1.LinkY-(Aa.y+Aa.height*
D.Endpoint2.LinkY))}else ma=Math.abs(D.Endpoint1.x-D.Endpoint2.x),Ba=Math.abs(D.Endpoint1.y-D.Endpoint2.y);var Pa=mxUtils.getSizeForString(O.replace(/\n/g,"<br>"));q.geometry.offset=0==ma||ma<Ba?new mxPoint(Math.sign(D.Endpoint1.y-D.Endpoint2.y)*u.Side*(Pa.width/2+5+ma),0):new mxPoint(0,Math.sign(D.Endpoint2.x-D.Endpoint1.x)*u.Side*(Pa.height/2+5+Ba))}catch(Ca){console.log(Ca)}q.lucidchartObject=u;F.insert(q);return F}function Zb(u,F,D,t){null!=F&&null!=t&&(F=t(F));return null!=F&&F!=D?u+"="+F+";":
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
x),p&&a.createLabelSubShape(c,A),A):null};m.calculateAbsolutePoint=function(c){for(var a=0,b=0;null!=c;){var d=c.geometry;null!=d&&(a+=d.x,b+=d.y);c=c.parent}return new mxPoint(a,b)};m.prototype.processEdgeGeo=function(c,a){try{var b=c.geomList.geomList[0].rows;for(c=0;c<b.length;c++)if(b[c]instanceof g.mxgraph.io.vsdx.geometry.ArcTo){a.style+="jumpStyle=arc;";break}for(c=0;c<b.length;c++);}catch(d){}};m.prototype.addConnectedEdge=function(c,a,b,d){var f=a.getFromSheet();f=new g.mxgraph.io.vsdx.ShapePageId(b,
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
(null==I?"1":I)];return null!=H?H:1}function k(H){return null==H?2:2>=H?0:3>=H?1:5>=H?2:7>=H?3:9>=H?4:22>=H?5:6}function p(H,I,L,N,Q,ha){var V=L.view.getState(H,!0);if(null==V||null==V.absolutePoints||null==V.cellBounds)return null;L=z(N,M.XMLNS,"Shape");var T=B(H.id);L.setAttribute("ID",T);L.setAttribute("NameU","Dynamic connector."+T);L.setAttribute("Name","Dynamic connector."+T);L.setAttribute("Type","Shape");L.setAttribute("Master","4");var W=K.state;T=V.absolutePoints;var oa=V.cellBounds,ca=
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
this.connLineStylesExt,this.connLineStyles)};h.prototype.getArrowSize=function(c,a,b,d){b=this.getLineStyleExt(c.getQuickStyleLineMatrix(),b);if(null!=b)return a?b.getStartSize():b.getEndSize();c=this.getLineStyle(c.getQuickStyleLineMatrix(),d);return null!=c?a?c.getStartSize():c.getEndSize():4};h.prototype.getStartSize=function(c){return this.getArrowSize(c,!0,this.lineStylesExt,this.lineStyles)};h.prototype.getConnStartSize=function(c){return this.getArrowSize(c,!0,this.connLineStylesExt,this.connLineStyles)};
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
h.prototype.getXmlDoc=function(c){var a=this.xmlDocs;return a[c]?a[c]:null};h.prototype.getMedia=function(c){var a=this.media;return a[c]?a[c]:null};return h}();B.mxVsdxModel=m;m.__class="com.mxgraph.io.vsdx.mxVsdxModel"})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
k.getId()));if(null!=p){var n=c.getModel().getGeometry(p);null!=n&&(d=n.height)}var x=k.getStartXY(d),A=k.getEndXY(d);n=k.getRoutingPoints(d,x,k.getRotation());this.rotateChildEdge(c.getModel(),p,x,A,n);var C=null,J=a.getSourceToSheet();J=null!=J?function(I,L){null==I.entries&&(I.entries=[]);for(var N=0;N<I.entries.length;N++)if(null!=I.entries[N].key.equals&&I.entries[N].key.equals(L)||I.entries[N].key===L)return I.entries[N].value;return null}(this.vertexMap,new g.mxgraph.io.vsdx.ShapePageId(b,
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
d.sidebar.showPalette("search",!f);isLocalStorage&&(mxSettings.settings.search=!f,mxSettings.save())});H.label=mxResources.get("searchShapes");H.setToggleAction(!0);H.setSelectedCallback(function(){return d.sidebar.isEntryVisible("search")});d.actions.get("clearDefaultStyle").funct=function(f){q.isEnabled()&&(d.clearDefaultStyle(),Editor.sketchMode&&d.setSketchMode(!1))};"1"==urlParams.embed&&(d.actions.get("save").funct=function(f){q.isEditing()&&q.stopEditing();var u="0"!=urlParams.pages||null!=
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
u.geometry.relative=!0;u.geometry.offset=new mxPoint(-F*t*.35,10+(1-D)*t*.35);u.vertex=!0;u.style+=b(u.style,r,q,u,G);O.insert(u)}function Xc(u,F){return null!=u&&null!=F&&(F==mxConstants.STYLE_ALIGN+"Global"&&(F=mxConstants.STYLE_ALIGN),u.includes(";"+F+"=")||u.substring(0,F.length+1)==F+"=")?!0:!1}function Rd(u,F){function D(t){t=Math.round(parseInt("0x"+t)*F).toString(16);return 1==t.length?"0"+t:t}return"#"+D(u.substr(1,2))+D(u.substr(3,2))+D(u.substr(5,2))}function Ie(u,F,D){var t=h(u),e=t.Properties,
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
k=[];d(c.getShapes());if(0<k.length){var p=function(n,x){function A(){n<k.length-1?p(n+1,x):x()}var C=k[n],J=C.toBeCroppedImg,M=function(P,R){null==P.entries&&(P.entries=[]);for(var H=0;H<P.entries.length;H++)if(null!=P.entries[H].key.equals&&P.entries[H].key.equals(R)||P.entries[H].key===R)return P.entries[H].value;return null}(f.vertexMap,new g.mxgraph.io.vsdx.ShapePageId(c.Id,C.Id)),K=new Image;K.onload=function(){var P=J.iData,R=J.iType;try{var H=K.width/J.imgWidth,I=K.height/J.imgHeight,L=-J.imgOffsetX*
H,N=(J.imgHeight-J.height+J.imgOffsetY)*I,Q=document.createElement("canvas");Q.width=J.width*H;Q.height=J.height*I;var ha=Q.getContext("2d");ha.fillStyle="#FFFFFF";ha.fillRect(0,0,Q.width,Q.height);ha.drawImage(K,L,N,Q.width,Q.height,0,0,Q.width,Q.height);P=Q.toDataURL("image/jpeg").substr(23);R="jpg"}catch(V){console.log(V)}M.style+=";image=data:image/"+R+","+P;A()};K.src="data:image/"+J.iType+";base64,"+J.iData;K.onerror=function(){M.style+=";image=data:image/"+J.iType+","+J.iData;A()}};p(0,b)}else b()}catch(n){console.log(n),
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
"#000000")}function L(u){return null!=u?mxConstants.STYLE_FILLCOLOR+"="+W(u)+";":""}function N(u){return null!=u?"swimlaneFillColor="+W(u)+";":""}function Q(u,F,D){F="";if("string"===typeof u.LineColor&&(u.LineColor=T(u.LineColor),7<u.LineColor.length)){var t="0x"+u.LineColor.substring(u.LineColor.length-2,u.LineColor.length);D.style.includes("strokeOpacity")||(F+="strokeOpacity="+Math.round(parseInt(t)/2.55)+";")}"string"===typeof u.FillColor&&(u.FillColor=T(u.FillColor),7<u.FillColor.length&&(u=
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
this);this.stylesheets[f]=d}}for(c=function(k){var p=0;return{next:function(){return p<k.length?k[p++]:null},hasNext:function(){return p<k.length}}}(function(k){return Object.keys(k).map(function(p){return k[p]})}(this.stylesheets));c.hasNext();)d=c.next(),d.stylesheetRefs(this)};h.prototype.initMasters=function(){if(null!=this.xmlDocs){var c=function(b,d){return b[d]?b[d]:null}(this.xmlDocs,g.mxgraph.io.mxVsdxCodec.vsdxPlaceholder+"/masters/masters.xml");if(null!=c)for(c=c.firstChild;null!=c;){if(null!=
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
a,b,d,f):this.addVertex(c,a,b,d,f);(function(n,x,A){null==n.entries&&(n.entries=[]);for(var C=0;C<n.entries.length;C++)if(null!=n.entries[C].key.equals&&n.entries[C].key.equals(x)||n.entries[C].key===x){n.entries[C].value=A;return}n.entries.push({key:x,value:A,getKey:function(){return this.key},getValue:function(){return this.value}})})(this.vertexShapeMap,new g.mxgraph.io.vsdx.ShapePageId(d,p),a);b=a.getHyperlink();b.extLink?c.setLinkForCell(k,b.extLink):b.pageLink&&c.setLinkForCell(k,"data:page/id,"+
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
u){var F=0,D=!1;if(null!=u)for(var t=0;!D&&t<u.length;){var e=u[t];"b"==e.n?null!=e.v&&e.v&&(D=!0,F+=1):"fc"==e.n&&"Bold"==e.v&&(D=!0,F+=1);t++}D=!1;if(null!=u)for(t=0;!D&&t<u.length;)e=u[t],"i"==e.n&&null!=e.v&&e.v&&(D=!0,F+=2),t++;D=!1;if(null!=u)for(t=0;!D&&t<u.length;)e=u[t],"u"==e.n&&null!=e.v&&e.v&&(D=!0,F+=4),t++;if(0<F)return"fontStyle="+F+";"}return""}function C(u){u=c(u);if(null!=u)for(var F=0;F<u.length;){var D=u[F];if("a"==D.n&&null!=D.v)return"align="+D.v+";";F++}return""}function J(u){u=
c(u);if(null!=u)for(var F=0;F<u.length;){var D=u[F];if(null!=D.v&&"il"==D.n)return"spacingLeft="+z(.75*D.v)+";";F++}return""}function M(u){u=c(u);if(null!=u)for(var F=0;F<u.length;){var D=u[F];if("ir"==D.n&&null!=D.v)return"spacingRight="+z(.75*D.v)+";";F++}return""}function K(u){u=c(u);if(null!=u)for(var F=0;F<u.length;){var D=u[F];if("mt"==D.n&&null!=D.v)return"spacingTop="+z(.75*D.v)+";";F++}return""}function P(u){u=c(u);if(null!=u)for(var F=0;F<u.length;){var D=u[F];if("mb"==D.n&&null!=D.v)return"spacingBottom="+
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(){function c(a,b,d){this.formulaE=this.formulaA=this.d=this.c=this.b=this.a=this.y=this.x=null;this.index=0;this.index=a;this.x=b;this.y=d}c.prototype.getX=function(){return this.x};c.prototype.getY=function(){return this.y};c.prototype.getA=function(){return this.a};c.prototype.getB=function(){return this.b};c.prototype.getC=function(){return this.c};c.prototype.getD=function(){return this.d};c.prototype.getFormulaA=
function(){return this.formulaA};c.prototype.getFormulaE=function(){return this.formulaE};c.prototype.getIndex=function(){return this.index};return c}();m.Row=h;h.__class="com.mxgraph.io.vsdx.geometry.Row"})(B.geometry||(B.geometry={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
getValue:function(){return this.value}})}(this.connects,p.getFromSheet(),p)}f=f.nextSibling}}d=d.nextSibling}for(d=c.firstChild;null!=d;)null!=d&&1==d.nodeType&&(f=d,k=f.nodeName,function(x,A){return x&&x.equals?x.equals(A):x===A}(k,"Rel")?this.resolveRel(f,a,b):function(x,A){return x&&x.equals?x.equals(A):x===A}(k,"Shapes")?this.shapes=this.parseShapes(f,null,!1):function(x,A){return x&&x.equals?x.equals(A):x===A}(k,"PageSheet")&&(this.pageSheet=f)),d=d.nextSibling};h.prototype.resolveRel=function(c,
a,b){b=a.getRelationship(c.getAttribute("r:id"),g.mxgraph.io.mxVsdxCodec.vsdxPlaceholder+"/pages/_rels/"+b+".xml.rels");c=b.getAttribute("Target");b=b.getAttribute("Type");if(function(f,k){var p=f.length-k.length;f=f.indexOf(k,p);return-1!==f&&f===p}((new String(b)).toString(),"page")){var d=null;null!=b&&function(f,k){var p=f.length-k.length;f=f.indexOf(k,p);return-1!==f&&f===p}(b,"page")&&(d=a.getXmlDoc(g.mxgraph.io.mxVsdxCodec.vsdxPlaceholder+"/pages/"+c));if(null!=d)for(b=d.firstChild;null!=b;){if(null!=
b&&1==b.nodeType&&function(f,k){return f&&f.equals?f.equals(k):f===k}(b.tagName,"PageContents")){d=c.indexOf(".");-1!==d&&this.parseNodes(b,a,c.substring(0,d));break}b=b.nextSibling}}};h.prototype.parseShapes=function(c,a,b){b={};c=c.getElementsByTagName(g.mxgraph.io.vsdx.mxVsdxConstants.SHAPE);for(c=null!=c&&0<c.length?c.item(0):null;null!=c;){if(null!=c&&1==c.nodeType){var d=c,f=a;if(null==f){var k=d.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.MASTER);null==k||function(n,x){return n&&n.equals?
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
b[x]=p}a=a.getElementsByTagName("Rel");for(f=0;f<a.length;f++)if(n=a.item(f),p=function(C,J){return C[J]?C[J]:null}(b,n.getAttribute("r:id")),p=k+"/"+p,null!=p&&(x=d[p]?d[p]:null,null!=x)){n=n.parentNode;for(x=x.firstChild;null!=x&&1!=x.nodeType;)x=x.nextSibling;if(null!=x&&1==x.nodeType)for(x=x.firstChild;null!=x;){if(null!=x&&1==x.nodeType){var A=n.appendChild(c.importNode(x,!0));this.importNodes(c,A,p,d)}x=x.nextSibling}}}};m.prototype.layerIndexToNames=function(c){var a=[];if(c)for(var b=0;b<
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
F.Class)?(u-=90,D.geometry.rotate90()):0<=mxUtils.indexOf(wf,F.Class)&&(u+=180);0!=u&&(t+="rotation="+u+";");e||(t+="horizontal=0;")}return t}function V(u){return null!=u.Shadow?mxConstants.STYLE_SHADOW+"=1;":""}function T(u){if(u){if("object"===typeof u)try{u=u.cs[0].c}catch(F){console.log(F),u="#ffffff"}"rgb"==u.substring(0,3)?u="#"+u.match(/\d+/g).map(function(F){F=parseInt(F).toString(16);return(1==F.length?"0":"")+F}).join(""):"#"!=u.charAt(0)&&(u="#"+u)}return u}function W(u){return(u=T(u))?
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
d.applyStyle(b,this):a?null:this.getStyleColor(b);b=c.getQuickStyleVariation();if(null!=a&&0<(b&8)){b=this.getStyleColor(8).toHsl();c=this.getLineColor$com_mxgraph_io_vsdx_theme_QuickStyleVals(c);d=c.toHsl();var f=a.toHsl();.1666<=Math.abs(b.getLum()-f.getLum())||(.7292>=b.getLum()?a=new g.mxgraph.io.vsdx.theme.Color(255,255,255):Math.abs(b.getLum()-d.getLum())>Math.abs(b.getLum()-f.getLum())&&(a=c))}return a};h.prototype.getFillColor=function(c,a){if(!(null!=c&&c instanceof g.mxgraph.io.vsdx.theme.QuickStyleVals||
null===c)||"boolean"!==typeof a&&null!==a){if((null!=c&&c instanceof g.mxgraph.io.vsdx.theme.QuickStyleVals||null===c)&&void 0===a)return this.getFillColor$com_mxgraph_io_vsdx_theme_QuickStyleVals(c);throw Error("invalid overload");}return this.getFillColor$com_mxgraph_io_vsdx_theme_QuickStyleVals$boolean(c,a)};h.prototype.getLineStyle=function(c,a){this.processTheme();var b=null;switch(c){case 1:case 2:case 3:case 4:case 5:case 6:b=a[c-1];break;case 100:case 101:case 102:case 103:b=a===this.lineStyles?
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
A;return}n.entries.push({key:x,value:A,getKey:function(){return this.key},getValue:function(){return this.value}})})(b,d.getId(),d)}c=c.nextSibling}return b};h.prototype.createCell=function(c,a,b){return new g.mxgraph.io.vsdx.VsdxShape(this,c,a,this.model.getMasterShapes(),b,this.model)};h.prototype.isEdge=function(c){if(null!=c&&(c=c.childNodes,null!=c))for(c=c.item(0);null!=c;){if(null!=c&&1==c.nodeType){var a=c;if(function(b,d){return b&&b.equals?b.equals(d):b===d}(a.nodeName,"Cell")&&(a=a.getAttribute("N"),
function(b,d){return b&&b.equals?b.equals(d):b===d}(a,"BeginX")||function(b,d){return b&&b.equals?b.equals(d):b===d}(a,"BeginY")||function(b,d){return b&&b.equals?b.equals(d):b===d}(a,"EndY")||function(b,d){return b&&b.equals?b.equals(d):b===d}(a,"EndX")))return!0}c=c.nextSibling}return!1};h.prototype.getPageDimensions=function(){var c=0,a=0,b=function(f,k){return f[k]?f[k]:null}(this.cellElements,"PageHeight"),d=function(f,k){return f[k]?f[k]:null}(this.cellElements,"PageWidth");null!=b&&(c=parseFloat(b.getAttribute("V"))*
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
z(.75*D.v)+";";F++}return""}function R(u){return"number"===typeof u.InsetMargin?"spacing="+Math.max(0,z(.75*u.InsetMargin))+";":""}function H(u){return null!=u.Text_VAlign&&"string"===typeof u.Text_VAlign?"verticalAlign="+u.Text_VAlign+";":null!=u.Title_VAlign&&"string"===typeof u.Title_VAlign?"verticalAlign="+u.Title_VAlign+";":Zb(mxConstants.STYLE_VERTICAL_ALIGN,u.TextVAlign,"middle")}function I(u,F){return 0==u.LineWidth?mxConstants.STYLE_STROKECOLOR+"=none;":Zb(mxConstants.STYLE_STROKECOLOR,W(u.LineColor),
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
this.lineStyles[this.variantLineIdx[this.themeVariant][c-100]-1]:this.defaultLineStyle}return b};h.prototype.getLineStyleExt=function(c,a){this.processTheme();var b=null;switch(c){case 0:case 1:case 2:case 3:case 4:case 5:case 6:b=a[c]}return b};h.prototype.getLineColor$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList=function(c,a){this.processTheme();var b=c.getQuickStyleLineColor();a=this.getLineStyle(c.getQuickStyleLineMatrix(),a);switch(c.getQuickStyleLineMatrix()){case 100:case 101:case 102:case 103:this.isMonotoneVariant[this.themeVariant]&&
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
m.prototype.scalePoint=function(c,a){null!=c&&(c.x*=a,c.y*=a);return c};m.prototype.scaleRect=function(c,a){null!=c&&(c.x*=a,c.y*=a,c.height*=a,c.width*=a);return c};m.prototype.importNodes=function(c,a,b,d){var f=b.lastIndexOf("/"),k=b,p=b;if(-1!==f&&(k=b.substring(0,f),p=b.substring(f+1,b.length),b=function(C,J){return C[J]?C[J]:null}(d,k+"/_rels/"+p+".rels"),null!=b)){var n=b.getElementsByTagName("Relationship");b={};for(f=0;f<n.length;f++){p=n.item(f);var x=p.getAttribute("Id");p=p.getAttribute("Target");
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
c.PageScale:null;return null!=c?parseFloat(c.getAttribute("V"))*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$():1};h.prototype.getCellValue=function(c){var a=this.cellElements;c=a[c]?a[c]:null;return null!=c?c.getAttribute("V")||"":null};h.prototype.getCellIntValue=function(c,a){c=this.getCellValue(c);return null!=c?parseInt(c):a};h.prototype.getId=function(){return this.Id};h.prototype.getPageName=function(){return this.pageName};h.prototype.getPageNameU=function(){return this.pageNameU};h.prototype.getShapes=
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
Menus.prototype.createMenubar;Menus.prototype.createMenubar=function(f){var u=I.apply(this,arguments);if(("1"!=urlParams.embed||"1"==urlParams.atlas)&&null!=u&&Editor.enableSimpleTheme&&"atlassian"!=d.getServiceName()){var D=this.get("dynamicAppearance");if(null!=D){var E=u.addMenu("",D.funct);E.setAttribute("title",mxResources.get("appearance"));E.className="geToolbarButton geAdaptiveAsset";E.style.backgroundPosition="center center";E.style.backgroundRepeat="no-repeat";E.style.backgroundSize="100% 100%";
E.style.display="inline-block";E.style.cursor="pointer";E.style.zIndex="1";E.style.position="absolute";E.style.height="18px";E.style.width="18px";"atlas"==Editor.currentTheme?(E.style.filter="invert(100%)",E.style.right="11px",E.style.top="10px"):(E.style.right="10px",E.style.top="5px");document.body.appendChild(E);u.langIcon=E;D=mxUtils.bind(this,function(){var M=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;E.style.display="atlas"==Editor.currentTheme||"min"==
Editor.currentTheme||"sketch"==Editor.currentTheme?"none":"";E.style.backgroundImage="simple"==Editor.currentTheme?750>M?"url("+Editor.thinDoubleArrowRightImage+")":"url("+(Editor.isDarkMode()||Editor.cssDarkMode?Editor.thinDarkImage:Editor.thinLightImage)+")":"url("+(Editor.isDarkMode()?Editor.darkModeImage:Editor.lightModeImage)+")"});this.editorUi.addListener("currentThemeChanged",D);this.editorUi.addListener("darkModeChanged",D);mxEvent.addListener(window,"resize",D);D()}}return u}}d.customLayoutConfig=
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
"1",Q));vb.appendChild(c("NameUniv",Za[yb].name,Q));vb.appendChild(c("ColorTrans","0",Q))}sa.appendChild(ka);qa.appendChild(sa);qa.appendChild(Fa);V.appendChild(qa);qa=z(ha,M.RELS_XMLNS,"Relationship");qa.setAttribute("Id","rId"+W);qa.setAttribute("Type",M.PAGES_TYPE);qa.setAttribute("Target",ca);T.appendChild(qa);A(H,M.VISIO_PAGES+ca,I[oa]);W++}Q.appendChild(V);ha.appendChild(T);A(H,M.VISIO_PAGES+"pages.xml",Q);A(H,M.VISIO_PAGES+"_rels/pages.xml.rels",ha)}function J(H,I){I=M.VISIO_PAGES_RELS+"page"+
I+".xml.rels";var L=mxUtils.createXmlDocument(),N=z(L,M.RELS_XMLNS,"Relationships"),Q=z(L,M.RELS_XMLNS,"Relationship");Q.setAttribute("Type","http://schemas.microsoft.com/visio/2010/relationships/master");Q.setAttribute("Id","rId1");Q.setAttribute("Target","../masters/master1.xml");N.appendChild(Q);var ha=K.images;if(0<ha.length)for(var V=0;V<ha.length;V++)Q=z(L,M.RELS_XMLNS,"Relationship"),Q.setAttribute("Type",M.XMLNS_R+"/image"),Q.setAttribute("Id","rId"+(V+2)),Q.setAttribute("Target","../media/"+
ha[V]),N.appendChild(Q);L.appendChild(N);A(H,I,L)}var M=this,K=new mxVsdxCanvas2D,P={},R=1;this.exportCurrentDiagrams=function(H){try{if(g.spinner.spin(document.body,mxResources.get("exporting"))){var I=function(Fa,ka){Fa=Fa.model.getChildCells(Fa.model.root);Q[ka]=[];for(var Za=0;Za<Fa.length;Za++)Fa[Za].visible&&Q[ka].push({name:Fa[Za].value||"Background",visible:Fa[Za].visible,locked:Fa[Za].style&&0<=Fa[Za].style.indexOf("locked=1")})},L=new JSZip;K.init(L);P={};R=1;var N={},Q={},ha={},V=null!=
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
try{var f=q.model.cells,u=0,D=[],E=[],M;for(M in f){var k=f[M],x=q.getCurrentCellStyle(k)[mxConstants.STYLE_IMAGE];null!=x&&"data:"==x.substring(0,5)&&(null==D[x]&&(D[x]=(D[x]||0)+1,u++),E.push(k))}q.setCellStyles(mxConstants.STYLE_IMAGE,null,E);console.log("Removed",u,"image(s) from",E.length,"cell(s): ",[E,D])}finally{q.model.endUpdate()}}));d.actions.addAction("testInspect",mxUtils.bind(this,function(){console.log(d,q.getModel())}));d.actions.addAction("testXmlImageExport",mxUtils.bind(this,function(){var f=
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
c||1!=c.nodeType)&&null!==c||"string"!==typeof a&&null!==a||void 0!==b)throw Error("invalid overload");return g.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(c,a)}return g.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String$int(c,a,b)};h.getIntAttr$org_w3c_dom_Element$java_lang_String=function(c,a){return h.getIntAttr$org_w3c_dom_Element$java_lang_String$int(c,a,0)};h.getStyleString=function(c,a){for(var b="",d=function(n){var x=0;return{next:function(){return x<
n.length?n[x++]:null},hasNext:function(){return x<n.length}}}(function(n){return Object.keys(n).map(function(x){return n[x]})}(c)),f=function(n){var x=0;return{next:function(){return x<n.length?n[x++]:null},hasNext:function(){return x<n.length}}}(Object.keys(c));f.hasNext();){var k=f.next(),p=d.next();if(!function(n,x){return n&&n.equals?n.equals(x):n===x}(k,mxConstants.STYLE_SHAPE)||!function(n,x,A){void 0===A&&(A=0);return n.substr(A,x.length)===x}(c[k]?c[k]:null,"image")&&!function(n,x,A){void 0===
A&&(A=0);return n.substr(A,x.length)===x}(c[k]?c[k]:null,"rounded="))try{b=b+k+a}catch(n){}b=b+p+";"}return b};h.surroundByTags=function(c,a,b){return"<"+a+(b?' style="'+b+'"':"")+">"+c+"</"+a+">"};h.htmlEntities=function(c){return c.replace(RegExp("&","g"),"&").replace(RegExp('"',"g"),""").replace(RegExp("'","g"),"′").replace(RegExp("<","g"),"<").replace(RegExp(">","g"),">")};h.toInitialCapital=function(c){c=c.split(" ");for(var a="",b=0;b<c.length;b++){var d=c[b],f=d.substring(0,
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
c.firstChild;null!=c;c=c.nextSibling)null!=c&&1==c.nodeType&&a.push(c);return a};h.getDirectFirstChildElement=function(c){for(c=c.firstChild;null!=c;c=c.nextSibling)if(null!=c&&1==c.nodeType)return c;return null};h.getIntAttr$org_w3c_dom_Element$java_lang_String$int=function(c,a,b){try{var d=c.getAttribute(a);if(null!=d)return parseInt(d)}catch(f){}return b};h.getIntAttr=function(c,a,b){if((null==c||1!=c.nodeType)&&null!==c||"string"!==typeof a&&null!==a||"number"!==typeof b&&null!==b){if((null==
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
""}function Fe(u,F,D,t,e,O){if(null!=F&&null!=F.LinkX&&null!=F.LinkY&&(F.LinkX=Math.round(1E3*F.LinkX)/1E3,F.LinkY=Math.round(1E3*F.LinkY)/1E3,null!=O&&O.style&&-1<O.style.indexOf("flipH=1")&&(F.LinkX=1-F.LinkX),null!=O&&O.style&&-1<O.style.indexOf("flipV=1")&&(F.LinkY=1-F.LinkY),u.style+=(t?"":(D?"exitX":"entryX")+"="+F.LinkX+";")+(e?"":(D?"exitY":"entryY")+"="+F.LinkY+";")+(D?"exitPerimeter":"entryPerimeter")+"=0;",F.Inside))return"["+F.LinkX+","+F.LinkY+",0]"}function He(u,F,D,t,e){try{var O=function(ma,
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
a),this.scalePoint(f.targetPoint,a),this.scalePoint(f.offset,a),d=f.points,null!=d)))for(f=0;f<d.length;f++)this.scalePoint(d[f],a)}}};m.incorrectXMLReqExp=[{regExp:/&(?!amp;|lt;|gt;|quot;|#)/g,repl:"&"}];m.prototype.decodeVsdx=function(c,a,b,d){var f=this,k={},p={},n=function(){function J(){R=R.concat(f.RESPONSE_END);a&&a(R)}for(var M=m.vsdxPlaceholder+"/document.xml",K=k[M]?k[M]:null,P=K.firstChild;null!=P&&1!=P.nodeType;)P=P.nextSibling;if(null!=P&&1==P.nodeType)f.importNodes(K,P,M,k);else return null;
f.vsdxModel=new g.mxgraph.io.vsdx.mxVsdxModel(K,k,p);M=f.vsdxModel.getPages();var R=f.RESPONSE_HEADER;var H=function(N){null==N.entries&&(N.entries=[]);return N.entries}(M),I=function(N,Q){var ha=H[N].getValue(),V=L.createMxGraph();V.getModel().beginUpdate();L.importPage(ha,V,V.getDefaultParent(),!0);L.scaleGraph(V,ha.getPageScale()/ha.getDrawingScale());V.getModel().endUpdate();L.postImportPage(ha,V,function(){L.sanitiseGraph(V);R=R.concat(f.RESPONSE_DIAGRAM_START);R=R.concat(f.processPage(V,ha));
R=R.concat(f.RESPONSE_DIAGRAM_END);N<H.length-1?I(N+1,Q):Q()})},L=f;0<H.length?I(0,J):J()},x=0,A=0,C=function(){if(A==x)try{n()}catch(J){console.log(J),null!=d?d(J):a("")}};JSZip.loadAsync(c).then(function(J){0==Object.keys(J.files).length?null!=d&&d():J.forEach(function(M,K){var P=K.name,R=P.toLowerCase();M=R.length;R.indexOf(".xml")==M-4||R.indexOf(".rels")==M-5?(x++,K.async("string").then(function(H){if(0!==H.length){65279==H.charCodeAt(0)&&(H=H.substring(1));var I=m.parseXml(H);if(null==I)if(0===
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
C.x=A;C.y=x;c.push(C)}}}}return c};h.prototype.getShapeXML=function(c){var a=new mxPoint(0,0),b={str:'<shape strokewidth="inherit"><foreground>',toString:function(){return this.str}},d=b.str.length;var f=this.processGeo(c,a,b,-1,!0);f=this.processGeo(c,a,b,f,!1);if(b.str.length===d)return"";this.closePath(b,f);b.str=b.str.concat("</foreground></shape>");return b.str};h.prototype.processGeo=function(c,a,b,d,f){var k=c.getRounding(),p="";0<k&&(p=' rounded="1" arcSize="'+k*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor+
'" ');for(k=0;k<this.geomList.length;k++){var n=this.geomList[k];if(f!==n.isNoFill()){var x=n.getPathXML(a,c);0!==x.length&&(n=this.getGeoStyle(n),-1===d?b.str=b.str.concat("<path"+p+">"):d!==n&&(this.closePath(b,d),b.str=b.str.concat("<path"+p+">")),b.str=b.str.concat(x),d=n)}}return d};h.prototype.getGeoStyle=function(c){var a=0;c.isNoLine()||c.isNoFill()?c.isNoFill()?c.isNoLine()||(a=3):a=2:a=1;return a};h.prototype.closePath=function(c,a){c.str=c.str.concat("</path>");1===a?c.str=c.str.concat("<fillstroke/>"):
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
A;return}n.entries.push({key:x,value:A,getKey:function(){return this.key},getValue:function(){return this.value}})})(b,d.getId(),d)}c=c.nextSibling}return b};h.prototype.createCell=function(c,a,b){return new g.mxgraph.io.vsdx.VsdxShape(this,c,a,this.model.getMasterShapes(),b,this.model)};h.prototype.isEdge=function(c){if(null!=c&&(c=c.childNodes,null!=c))for(c=c.item(0);null!=c;){if(null!=c&&1==c.nodeType){var a=c;if(function(b,d){return b&&b.equals?b.equals(d):b===d}(a.nodeName,"Cell")&&(a=a.getAttribute("N"),
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
mxVsdxCanvas2D.prototype.convertSvg2Png=function(g,y,z){var B=this;this.filesLoading++;try{var m=document.createElement("canvas"),h=m.getContext("2d");y||(g=String.fromCharCode.apply(null,new Uint8Array(g)),g=window.btoa?btoa(g):Base64.encode(g,!0));y="data:image/svg+xml;base64,"+g;img=new Image;img.onload=function(){m.width=this.width;m.height=this.height;h.drawImage(this,0,0);try{z(m.toDataURL("image/png"))}catch(c){}B.filesLoading--;if(0==B.filesLoading)B.onFilesLoaded()};img.onerror=function(){console.log("SVG2PNG conversion failed");
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
h.prototype.getDefaultTheme=function(){null==this.defaultTheme&&null!=this.themes.entries&&0<this.themes.entries.length&&(this.defaultTheme=this.themes.entries[0].getValue());return this.defaultTheme};h.prototype.getRelationship=function(c,a){a=function(f,k){return f[k]?f[k]:null}(this.xmlDocs,a);if(null==a||null==c||0===c.length)return null;a=a.getElementsByTagName("Relationship");for(var b=0;b<a.length;b++){var d=a.item(b);if(function(f,k){return f&&f.equals?f.equals(k):f===k}(d.getAttribute("Id"),
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
"0x"+u.FillColor.substring(u.FillColor.length-2,u.FillColor.length),D.style.includes("fillOpacity")||(F+="fillOpacity="+Math.round(parseInt(u)/2.55)+";")));return F}function ha(u,F,D){var t="";if(null!=u.Rotation){u=mxUtils.toDegree(parseFloat(u.Rotation));var e=!0;0!=u&&F.Class&&("UMLSwimLaneBlockV2"==F.Class||(0<=F.Class.indexOf("Rotated")||-90==u||270==u)&&(0<=F.Class.indexOf("Pool")||0<=F.Class.indexOf("SwimLane")))?(u+=90,D.geometry.rotate90(),D.geometry.isRotated=!0,e=!1):0<=mxUtils.indexOf(vf,
F.Class)?(u-=90,D.geometry.rotate90()):0<=mxUtils.indexOf(wf,F.Class)&&(u+=180);0!=u&&(t+="rotation="+u+";");e||(t+="horizontal=0;")}return t}function V(u){return null!=u.Shadow?mxConstants.STYLE_SHADOW+"=1;":""}function T(u){if(u){if("object"===typeof u)try{u=u.cs[0].c}catch(F){console.log(F),u="#ffffff"}"rgb"==u.substring(0,3)?u="#"+u.match(/\d+/g).map(function(F){F=parseInt(F).toString(16);return(1==F.length?"0":"")+F}).join(""):"#"!=u.charAt(0)&&(u="#"+u)}return u}function W(u){return(u=T(u))?
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(){function c(a,b,d){this.formulaE=this.formulaA=this.d=this.c=this.b=this.a=this.y=this.x=null;this.index=0;this.index=a;this.x=b;this.y=d}c.prototype.getX=function(){return this.x};c.prototype.getY=function(){return this.y};c.prototype.getA=function(){return this.a};c.prototype.getB=function(){return this.b};c.prototype.getC=function(){return this.c};c.prototype.getD=function(){return this.d};c.prototype.getFormulaA=
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
this.fontElementMap[d]=k}};h.prototype.getColor=function(c){var a=function(b,d){return b[d]?b[d]:null}(this.colorElementMap,c);return null==a&&(a=function(b,d){return b[d]?b[d]:null}(h.defaultColors_$LI$(),c),null==a)?"":a};h.prototype.getFont=function(c){var a=this.fontElementMap;c=a[c]?a[c]:null;return null==c?"":c};return h}();m.__static_initialized=!1;B.mxPropertiesManager=m;m.__class="com.mxgraph.io.vsdx.mxPropertiesManager"})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
mxVsdxCanvas2D.prototype.convertSvg2Png=function(g,y,z){var B=this;this.filesLoading++;try{var m=document.createElement("canvas"),h=m.getContext("2d");y||(g=String.fromCharCode.apply(null,new Uint8Array(g)),g=window.btoa?btoa(g):Base64.encode(g,!0));y="data:image/svg+xml;base64,"+g;img=new Image;img.onload=function(){m.width=this.width;m.height=this.height;h.drawImage(this,0,0);try{z(m.toDataURL("image/png"))}catch(c){}B.filesLoading--;if(0==B.filesLoading)B.onFilesLoaded()};img.onerror=function(){console.log("SVG2PNG conversion failed");
try{z(g)}catch(c){}B.filesLoading--;if(0==B.filesLoading)B.onFilesLoaded()};img.src=y}catch(c){console.log("SVG2PNG conversion failed"+c.message);try{z(g)}catch(a){}this.filesLoading--;if(0==B.filesLoading)B.onFilesLoaded()}};
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
!1};h.prototype.isLineDashed=function(c,a,b){if((null!=c&&c instanceof g.mxgraph.io.vsdx.theme.QuickStyleVals||null===c)&&(null!=a&&a instanceof Array||null===a)&&(null!=b&&b instanceof Array||null===b))return this.isLineDashed$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList$java_util_ArrayList(c,a,b);if((null!=c&&c instanceof g.mxgraph.io.vsdx.theme.QuickStyleVals||null===c)&&void 0===a&&void 0===b)return this.isLineDashed$com_mxgraph_io_vsdx_theme_QuickStyleVals(c);throw Error("invalid overload");
};h.prototype.isLineDashed$com_mxgraph_io_vsdx_theme_QuickStyleVals=function(c){return this.isLineDashed$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList$java_util_ArrayList(c,this.lineStylesExt,this.lineStyles)};h.prototype.isConnLineDashed=function(c){return this.isLineDashed$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList$java_util_ArrayList(c,this.connLineStylesExt,this.connLineStyles)};h.prototype.getLineDashPattern$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList$java_util_ArrayList=
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
function(){return this.shapes};h.prototype.getLayers=function(){return this.layers};h.prototype.getConnects=function(){return this.connects};h.prototype.isBackground=function(){return this.__isBackground};h.prototype.getBackPageId=function(){return this.backPageId};h.prototype.setBackPage=function(c){this.backPage=c};h.prototype.getBackPage=function(){return this.backPage};return h}();B.mxVsdxPage=m;m.__class="com.mxgraph.io.vsdx.mxVsdxPage"})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
[];this.connFillStyles=[];this.lineStyles=[];this.connLineStyles=[];this.lineStylesExt=[];this.connLineStylesExt=[];this.connFontColors=[];this.connFontStyles=[];this.fontColors=[];this.fontStyles=[];this.variantEmbellishment=[0,0,0,0];this.variantFillIdx=function(a){var b=function(d){if(0==d.length)return 0;for(var f=[],k=0;k<d[0];k++)f.push(b(d.slice(1)));return f};return b(a)}([4,4]);this.variantLineIdx=function(a){var b=function(d){if(0==d.length)return 0;for(var f=[],k=0;k<d[0];k++)f.push(b(d.slice(1)));
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
ha[V]),N.appendChild(Q);L.appendChild(N);A(H,I,L)}var M=this,K=new mxVsdxCanvas2D,P={},R=1;this.exportCurrentDiagrams=function(H){try{if(g.spinner.spin(document.body,mxResources.get("exporting"))){var I=function(Fa,ka){Fa=Fa.model.getChildCells(Fa.model.root);Q[ka]=[];for(var Za=0;Za<Fa.length;Za++)Fa[Za].visible&&Q[ka].push({name:Fa[Za].value||"Background",visible:Fa[Za].visible,locked:Fa[Za].style&&0<=Fa[Za].style.indexOf("locked=1")})},L=new JSZip;K.init(L);P={};R=1;var N={},Q={},ha={},V=null!=
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
BmpDecoder.prototype.bit32=function(){for(var g=this.height-1;0<=g;g--)for(var y=0;y<this.width;y++){var z=this.buffer[this.pos++],B=this.buffer[this.pos++],m=this.buffer[this.pos++],h=this.buffer[this.pos++],c=g*this.width*4+4*y;this.data[c]=m;this.data[c+1]=B;this.data[c+2]=z;this.data[c+3]=h}};BmpDecoder.prototype.getData=function(){return this.data};var __extends=this&&this.__extends||function(g,y){function z(){this.constructor=g}for(var B in y)y.hasOwnProperty(B)&&(g[B]=y[B]);g.prototype=null===y?Object.create(y):(z.prototype=y.prototype,new z)},com;
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
else for(a(x.sourcePoint),a(x.targetPoint),n=x.points,x=0;null!=n&&x<n.length;x++)a(n[x])}var A={x:b,y:d};for(p in c.model.cells)if(n=c.model.cells[p],x=n.geometry,null!=x&&1==n.parent.id&&(x.x-=b,x.y-=d,n.isEdge()))for(this.transPoint(x.sourcePoint,A),this.transPoint(x.targetPoint,A),this.transPoint(x.offset,A),n=x.points,x=0;null!=n&&x<n.length;x++)this.transPoint(n[x],A);return{width:f-b,height:k-d}};h.prototype.transPoint=function(c,a){null!=c&&(c.x-=a.x,c.y-=a.y)};h.prototype.processPage=function(c,
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
parseFloat(b):-1,d=!1);this.findToPart(c,d)};h.prototype.findToPart=function(c,a){c=c.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.TO_PART);c=null!=c&&0!==c.length?parseFloat(c):-1;a?this.sourceToPart=c:this.targetToPart=c};h.prototype.getFromSheet=function(){return this.fromSheet};h.prototype.getSourceToSheet=function(){return this.sourceToSheet};h.prototype.getTargetToSheet=function(){return this.targetToSheet};h.prototype.getSourceToPart=function(){return this.sourceToPart};h.prototype.getTargetToPart=
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
u.style+=b(u.style,e,O,u,G);u.geometry.relative=!0;u.geometry.offset=new mxPoint(5,-12);u.vertex=!0;t.insert(u)}function Wa(u,F,D,t,e,O,r,q){e="transparent"!=u?mxConstants.STYLE_SHAPE+"=mxgraph.gcp2.":mxConstants.STYLE_SHAPE+"=";O.style="rounded=1;absoluteArcSize=1;arcSize=2;verticalAlign=bottom;fillColor=#ffffff;strokeColor=#dddddd;whiteSpace=wrap;";O.style+=b(O.style,r,q,O);O.value=m(r);O.vertex=!0;u=new mxCell(null,new mxGeometry(.5,0,.7*t*F,.7*t*D),e+u+";part=1;dashed=0;connectable=0;html=1;strokeColor=none;shadow=0;");
u.geometry.relative=!0;u.geometry.offset=new mxPoint(-F*t*.35,10+(1-D)*t*.35);u.vertex=!0;u.style+=b(u.style,r,q,u,G);O.insert(u)}function Xc(u,F){return null!=u&&null!=F&&(F==mxConstants.STYLE_ALIGN+"Global"&&(F=mxConstants.STYLE_ALIGN),u.includes(";"+F+"=")||u.substring(0,F.length+1)==F+"=")?!0:!1}function Rd(u,F){function D(t){t=Math.round(parseInt("0x"+t)*F).toString(16);return 1==t.length?"0"+t:t}return"#"+D(u.substr(1,2))+D(u.substr(3,2))+D(u.substr(5,2))}function Ie(u,F,D){var t=h(u),e=t.Properties,
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
mxGraphHandler.prototype.getGuideStates=function(){var a=this.graph.getDefaultParent(),b=this.graph.getModel(),c=mxUtils.bind(this,function(d){return null!=this.graph.view.getState(d)&&b.isVertex(d)&&null!=b.getGeometry(d)&&!b.getGeometry(d).relative});return this.graph.view.getCellStates(b.filterDescendants(c,a))};mxGraphHandler.prototype.getCells=function(a){return!this.delayedSelection&&this.graph.isCellMovable(a)?[a]:this.graph.getMovableCells(this.graph.getSelectionCells())};
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
c(u);if(null!=u)for(var F=0;F<u.length;){var D=u[F];if(null!=D.v&&"il"==D.n)return"spacingLeft="+z(.75*D.v)+";";F++}return""}function M(u){u=c(u);if(null!=u)for(var F=0;F<u.length;){var D=u[F];if("ir"==D.n&&null!=D.v)return"spacingRight="+z(.75*D.v)+";";F++}return""}function K(u){u=c(u);if(null!=u)for(var F=0;F<u.length;){var D=u[F];if("mt"==D.n&&null!=D.v)return"spacingTop="+z(.75*D.v)+";";F++}return""}function P(u){u=c(u);if(null!=u)for(var F=0;F<u.length;){var D=u[F];if("mb"==D.n&&null!=D.v)return"spacingBottom="+
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
n;n=a.getOriginPoint(f,!0);if(x)n=c.insertVertex(b,null,null,Math.floor(Math.round(100*n.x)/100),Math.floor(Math.round(100*n.y)/100),Math.floor(Math.round(100*k.x)/100),Math.floor(Math.round(100*k.y)/100),A);else{var J=a.getTextLabel();n=c.insertVertex(b,null,J,Math.floor(Math.round(100*n.x)/100),Math.floor(Math.round(100*n.y)/100),Math.floor(Math.round(100*k.x)/100),Math.floor(Math.round(100*k.y)/100),A)}b=n.geometry.height;for(C=function(K){var P=0;return{next:function(){return P<K.length?K[P++]:
null},hasNext:function(){return P<K.length}}}(function(K){null==K.entries&&(K.entries=[]);return K.entries}(C));C.hasNext();)if(A=C.next().getValue(),J=A.getId(),A.isVertex()){var M=g.mxgraph.io.vsdx.VsdxShape.getType(A.getShape());null!=M&&(function(K,P){return K&&K.equals?K.equals(P):K===P}(M,g.mxgraph.io.vsdx.mxVsdxConstants.TYPE_SHAPE)||function(K,P){return K&&K.equals?K.equals(P):K===P}(M,g.mxgraph.io.vsdx.mxVsdxConstants.TYPE_GROUP)||function(K,P){return K&&K.equals?K.equals(P):K===P}(M,g.mxgraph.io.vsdx.mxVsdxConstants.FOREIGN))&&
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
Editor.currentTheme||"simple"==Editor.currentTheme||"min"==Editor.currentTheme)){var u=document.createElement("span");u.style.display="flex";u.style.alignItems="center";u.style["float"]="right";u.style.cursor="pointer";u.style.userSelect="none";u.style.marginTop="-3px";u.appendChild(f);mxUtils.write(u,mxResources.get("showStartScreen"));mxEvent.addListener(u,"click",function(E){mxEvent.getSource(E)!=f&&(f.checked=!f.checked)});header=u}u=[[mxResources.get("reset"),function(){d.confirm(mxResources.get("areYouSure"),
function(){try{localStorage.removeItem(Editor.configurationKey),d.hideDialog(),d.alert(mxResources.get("restartForChangeRequired"))}catch(E){d.handleError(E)}})}]];if(!d.isOfflineApp()&&isLocalStorage&&d.mode!=App.MODE_ATLAS){var D=d.actions.get("plugins");null==D||"sketch"!=Editor.currentTheme&&"simple"!=Editor.currentTheme&&"min"!=Editor.currentTheme||u.push([mxResources.get("plugins"),D.funct])}EditorUi.isElectronApp||u.push([mxResources.get("link"),function(E,M){if(0<M.value.length)try{var k=
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
z(.75*D.v)+";";F++}return""}function R(u){return"number"===typeof u.InsetMargin?"spacing="+Math.max(0,z(.75*u.InsetMargin))+";":""}function H(u){return null!=u.Text_VAlign&&"string"===typeof u.Text_VAlign?"verticalAlign="+u.Text_VAlign+";":null!=u.Title_VAlign&&"string"===typeof u.Title_VAlign?"verticalAlign="+u.Title_VAlign+";":Zb(mxConstants.STYLE_VERTICAL_ALIGN,u.TextVAlign,"middle")}function I(u,F){return 0==u.LineWidth?mxConstants.STYLE_STROKECOLOR+"=none;":Zb(mxConstants.STYLE_STROKECOLOR,W(u.LineColor),
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
k,mxUtils.bind(this,function(Y,ca,fa){Y=X?Math.min(1,Math.min(d.maxImageSize/ca,d.maxImageSize/fa)):1;d.importFile(k,x,U,R,Math.round(ca*Y),Math.round(fa*Y),F,function(aa){d.spinner.stop();q.setSelectionCells(aa);q.scrollCellToVisible(q.getSelectionCell())})}),X)});k.length>d.resampleThreshold?d.confirmImageResize(function(Y){X=Y;Z()}):Z()}),mxUtils.bind(this,function(){d.handleError({message:mxResources.get("cannotOpenFile")})})):d.importFile(k,x,U,R,0,0,F,function(W){d.spinner.stop();q.setSelectionCells(W);
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
(this.customFonts.push({name:fa,url:aa}),this.editorUi.fireEvent(new mxEventObject("customFontsChanged","customFonts",this.customFonts)))}finally{R.getModel().endUpdate()}}}));this.editorUi.showDialog(X.container,380,Editor.enableWebFonts?250:180,!0,!0);X.init()}),u,null,!0)})))}})();function DiagramPage(b,g){this.node=b;null!=g?this.node.setAttribute("id",g):null==this.getId()&&this.node.setAttribute("id",Editor.guid())}DiagramPage.prototype.node=null;DiagramPage.prototype.root=null;DiagramPage.prototype.viewState=null;DiagramPage.prototype.getId=function(){return this.node.getAttribute("id")};DiagramPage.prototype.getName=function(){return this.node.getAttribute("name")};
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
function(){return this.noLine};h.prototype.isNoShow=function(){return this.noShow};h.prototype.isNoSnap=function(){return this.noSnap};h.prototype.isNoQuickDrag=function(){return this.noQuickDrag};h.prototype.getRows=function(){return this.rows};h.prototype.getPathXML=function(c,a){if(this.noShow)return"";for(var b="",d=0;d<this.rows.length;d++){var f=this.rows[d];b=b.concat(null!=f?f.handle(c,a):"")}return b};return h}();B.mxVsdxGeometry=m;m.__class="com.mxgraph.io.vsdx.mxVsdxGeometry";(function(h){var c=
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
f);this.layers[parseInt(p[f].getAttribute("IX"))]=n}}this.parseNodes(c,a,"pages")}h.prototype.parseNodes=function(c,a,b){for(var d=c.firstChild;null!=d;){if(null!=d&&1==d.nodeType){var f=d,k=f.nodeName;if(function(x,A){return x&&x.equals?x.equals(A):x===A}(k,"Connects"))for(f=f.getElementsByTagName(g.mxgraph.io.vsdx.mxVsdxConstants.CONNECT),f=null!=f&&0<f.length?f.item(0):null;null!=f;){if(null!=f&&1==f.nodeType){k=f;var p=new g.mxgraph.io.vsdx.mxVsdxConnect(k),n=p.getFromSheet();this.connectsMap[n]=
!0;n=null!=n&&-1<n?function(x,A){null==x.entries&&(x.entries=[]);for(var C=0;C<x.entries.length;C++)if(null!=x.entries[C].key.equals&&x.entries[C].key.equals(A)||x.entries[C].key===A)return x.entries[C].value;return null}(this.connects,n):null;null!=n?n.addConnect(k):function(x,A,C){null==x.entries&&(x.entries=[]);for(var J=0;J<x.entries.length;J++)if(null!=x.entries[J].key.equals&&x.entries[J].key.equals(A)||x.entries[J].key===A){x.entries[J].value=C;return}x.entries.push({key:A,value:C,getKey:function(){return this.key},
getValue:function(){return this.value}})}(this.connects,p.getFromSheet(),p)}f=f.nextSibling}}d=d.nextSibling}for(d=c.firstChild;null!=d;)null!=d&&1==d.nodeType&&(f=d,k=f.nodeName,function(x,A){return x&&x.equals?x.equals(A):x===A}(k,"Rel")?this.resolveRel(f,a,b):function(x,A){return x&&x.equals?x.equals(A):x===A}(k,"Shapes")?this.shapes=this.parseShapes(f,null,!1):function(x,A){return x&&x.equals?x.equals(A):x===A}(k,"PageSheet")&&(this.pageSheet=f)),d=d.nextSibling};h.prototype.resolveRel=function(c,
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
W.type="number";W.value=M;W.style.width="200px";W.style.boxSizing="border-box";x.appendChild(W);mxEvent.addListener(W,"change",function(){M=W.value});F=mxUtils.button(mxResources.get("custom")+"...",function(){var X=[{layout:"mxOrgChartLayout",config:{branchOptimizer:parseInt(Q.value),parentChildSpacing:parseInt(R.value),siblingSpacing:parseInt(W.value)}}];d.hideDialog();d.showCustomLayoutDialog(JSON.stringify(X,null,2))});F.className="geBtn";x=new CustomDialog(d,x,function(){null==D&&(D=2);d.loadOrgChartLayouts(k)},
null,null,null,F);d.showDialog(x.container,355,140,!0,!0)},u,null,v());f.addSeparator(u);f.addItem(mxResources.get("parallels"),null,mxUtils.bind(this,function(){d.tryAndHandle(mxUtils.bind(this,function(){var D=new mxParallelEdgeLayout(q);D.checkOverlap=!0;d.prompt(mxResources.get("spacing"),D.spacing,mxUtils.bind(this,function(E){d.tryAndHandle(mxUtils.bind(this,function(){D.spacing=E;d.executeLayout(function(){D.execute(q.getDefaultParent(),q.isSelectionEmpty()?null:q.getSelectionCells())},!1)}))}))}))}),
u);f.addSeparator(u);d.menus.addMenuItem(f,"runLayout",u,null,null,mxResources.get("custom")+"...")};this.put("help",new Menu(mxUtils.bind(this,function(f,u){if(!mxClient.IS_CHROMEAPP&&d.isOffline())this.addMenuItems(f,["about"],u);else{var D=f.addItem("Search:",null,null,u,null,null,!1);D.style.cursor="default";var E=document.createElement("input");E.setAttribute("type","text");E.setAttribute("size","25");E.style.borderWidth="1px";E.style.marginLeft="8px";mxEvent.addListener(E,"keydown",mxUtils.bind(this,
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
H,N=(J.imgHeight-J.height+J.imgOffsetY)*I,Q=document.createElement("canvas");Q.width=J.width*H;Q.height=J.height*I;var ha=Q.getContext("2d");ha.fillStyle="#FFFFFF";ha.fillRect(0,0,Q.width,Q.height);ha.drawImage(K,L,N,Q.width,Q.height,0,0,Q.width,Q.height);P=Q.toDataURL("image/jpeg").substr(23);R="jpg"}catch(V){console.log(V)}M.style+=";image=data:image/"+R+","+P;A()};K.src="data:image/"+J.iType+";base64,"+J.iData;K.onerror=function(){M.style+=";image=data:image/"+J.iType+","+J.iData;A()}};p(0,b)}else b()}catch(n){console.log(n),
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
function(c,a,b,d){b=this.getLineStyleExt(c.getQuickStyleLineMatrix(),b);if(null!=b)return a?b.getStart():b.getEnd();c=this.getLineStyle(c.getQuickStyleLineMatrix(),d);return null!=c?a?c.getStart():c.getEnd():0};h.prototype.getEdgeMarker=function(c,a){return this.getArrowType(a,c,this.lineStylesExt,this.lineStyles)};h.prototype.getConnEdgeMarker=function(c,a){return this.getArrowType(a,c,this.connLineStylesExt,this.connLineStyles)};h.prototype.getLineWidth$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList=
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
h.defaultColors_$LI$()["16"]="#CDCDCD";h.defaultColors_$LI$()["17"]="#B3B3B3";h.defaultColors_$LI$()["18"]="#9A9A9A";h.defaultColors_$LI$()["19"]="#808080";h.defaultColors_$LI$()["20"]="#666666";h.defaultColors_$LI$()["21"]="#4D4D4D";h.defaultColors_$LI$()["22"]="#333333";h.defaultColors_$LI$()["23"]="#1A1A1A"};h.prototype.initialise=function(c,a){if(null!=c){a=c.getElementsByTagName(g.mxgraph.io.vsdx.mxVsdxConstants.COLORS);if(0<a.length){var b=a.item(0).getElementsByTagName(g.mxgraph.io.vsdx.mxVsdxConstants.COLOR_ENTRY),
d=b.length;for(a=0;a<d;a++){var f=b.item(a),k=f.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.INDEX);f=f.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.RGB);this.colorElementMap[k]=f}}a=c.getElementsByTagName(g.mxgraph.io.vsdx.mxVsdxConstants.FACE_NAMES);if(0<a.length)for(c=a.item(0).getElementsByTagName(g.mxgraph.io.vsdx.mxVsdxConstants.FACE_NAME),b=c.length,a=0;a<b;a++)k=c.item(a),d=k.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.ID),k=k.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.FONT_NAME),
this.fontElementMap[d]=k}};h.prototype.getColor=function(c){var a=function(b,d){return b[d]?b[d]:null}(this.colorElementMap,c);return null==a&&(a=function(b,d){return b[d]?b[d]:null}(h.defaultColors_$LI$(),c),null==a)?"":a};h.prototype.getFont=function(c){var a=this.fontElementMap;c=a[c]?a[c]:null;return null==c?"":c};return h}();m.__static_initialized=!1;B.mxPropertiesManager=m;m.__class="com.mxgraph.io.vsdx.mxPropertiesManager"})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
g.pages?g.pages.length:1;if(null!=g.pages){var T=function(Fa){Fa=Fa.getName();var ka=g.editor.graph,Za=null;null!=ka.themes&&"darkTheme"==ka.defaultThemeName&&(Za=ka.stylesheet,ka.stylesheet=ka.getDefaultStylesheet(),ka.refresh());try{var yb=m(ka);N[Fa]=x(ka,yb);I(ka,Fa);J(L,ca+1);ha[Fa]=yb}finally{null!=Za&&(ka.stylesheet=Za,ka.refresh())}},W=g.editor.graph.getSelectionCells(),oa=g.currentPage;if(H)T(oa);else{for(var ca=0;ca<g.pages.length;ca++){var qa=g.pages[ca];g.currentPage!=qa&&g.selectPage(qa,
!0);T(qa)}oa!=g.currentPage&&g.selectPage(oa,!0);g.editor.graph.setSelectionCells(W)}}else{T=g.editor.graph;var sa=m(T);N.Page1=x(T,sa);I(T,"Page1");J(L,1);ha.Page1=sa}y(L,V);C(L,N,Q,ha);H=function(){L.generateAsync({type:"base64"}).then(function(Fa){g.spinner.stop();var ka=g.getBaseFilename();g.saveData(ka+".vsdx","vsdx",Fa,"application/vnd.visio2013",!0)})};0<K.filesLoading?K.onFilesLoaded=H:H()}return!0}catch(Fa){return console.log(Fa),g.spinner.stop(),!1}}}
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
(sa=!0,oa++);L(qa,x,A,C,(W.OL?W.LiIndex+". ":"")+ca.textContent+(sa?"\n":""))}else if(1==ca.nodeType){sa=ca.nodeName.toUpperCase();var Fa=ca.childNodes.length;qa=window.getComputedStyle(ca,null);qa={bold:"bold"==qa.getPropertyValue("font-weight")||W.bold,italic:"italic"==qa.getPropertyValue("font-style")||W.italic,underline:0<=qa.getPropertyValue("text-decoration").indexOf("underline")||W.underline,align:qa.getPropertyValue("text-align"),fontColor:qa.getPropertyValue("color"),fontSize:parseFloat(qa.getPropertyValue("font-size")),
fontFamily:qa.getPropertyValue("font-family").replace(/"/g,""),blockElem:"block"==qa.getPropertyValue("display")||"BR"==sa||"LI"==sa,OL:W.OL,LiIndex:W.LiIndex};if("UL"==sa){var ka=n.createElt("Row");ka.setAttribute("IX",M);ka.appendChild(n.createCellElem("HorzAlign","0"));ka.appendChild(n.createCellElem("Bullet","1"));A.appendChild(ka);ka=n.createElt("pp");ka.setAttribute("IX",M++);C.appendChild(ka)}else"OL"==sa?qa.OL=!0:"LI"==sa&&(qa.LiIndex=oa+1);0<Fa?(N(ca.childNodes,qa),"UL"==sa&&(ka=n.createElt("Row"),
ka.setAttribute("IX",M),ka.appendChild(n.createCellElem("Bullet","0")),A.appendChild(ka),ka=n.createElt("pp"),ka.setAttribute("IX",M++),C.appendChild(ka)),L(qa,x,A,C,"")):L(qa,x,A,C,(W.OL?W.LiIndex+". ":"")+ca.textContent)}}};"html"==b&&mxClient.IS_SVG?(m=this.cellState.text.node.getElementsByTagName("div")[mxClient.NO_FO?0:1],null!=m&&N(m.childNodes,{})):L({fontColor:n.cellState.style.fontColor,fontSize:n.cellState.style.fontSize,fontFamily:n.cellState.style.fontFamily},x,A,C,m);b=m=0;B=Math.max(B,
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(){function c(){}c.getIndex=function(a){try{return parseInt(a.getAttribute("IX"))||1}catch(b){return 1}};c.getDoubleVal=function(a){try{if(null!=a&&0!==a.length){var b=parseFloat(a);if(isFinite(b))return b}}catch(d){}return null};c.getRowObj=function(a,b){var d=a.getAttribute("T"),f=c.getIndex(a);var k=(k=a.getAttribute("Del"))&&k.equals?k.equals("1"):"1"===k;if(!k){var p=null;f<=b.length&&(p=b[f-1]);var n=k=b=null,x=null,
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
u.geometry.relative=!0;u.geometry.offset=new mxPoint(-F*t*.35,10+(1-D)*t*.35);u.vertex=!0;u.style+=b(u.style,r,q,u,G);O.insert(u)}function Xc(u,F){return null!=u&&null!=F&&(F==mxConstants.STYLE_ALIGN+"Global"&&(F=mxConstants.STYLE_ALIGN),u.includes(";"+F+"=")||u.substring(0,F.length+1)==F+"=")?!0:!1}function Rd(u,F){function D(t){t=Math.round(parseInt("0x"+t)*F).toString(16);return 1==t.length?"0"+t:t}return"#"+D(u.substr(1,2))+D(u.substr(3,2))+D(u.substr(5,2))}function Ie(u,F,D){var t=h(u),e=t.Properties,
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
(function(g){(function(y){(function(z){var B=function(m){function h(c){var a=m.call(this)||this;a.RESPONSE_END="";a.RESPONSE_DIAGRAM_START="";a.RESPONSE_DIAGRAM_END="";a.RESPONSE_HEADER="";a.editorUi=c;return a}__extends(h,m);h.prototype.decodeVssx=function(c,a,b,d){var f=this,k="<mxlibrary>[";this.decodeVsdx(c,function(p){k=k.concat(p);var n=f.vsdxModel.getMasterShapes(),x=function(P){var R=0;return{next:function(){return R<P.length?P[R++]:null},hasNext:function(){return R<P.length}}}(function(P){var R=
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
D.style=mxUtils.setStyle(mxUtils.setStyle(F.style,"container","1"),"collapsible","0");F.removeFromParent()}}}function Df(){var u=new Graph;u.setExtendParents(!1);u.setExtendParentsOnAdd(!1);u.setConstrainChildren(!1);u.setHtmlLabels(!0);u.getModel().maintainEdgeParent=!1;return u}function Qd(u,F,D,t,e,O,r,q){this.nurbsValues=[1,3,0,0,100*(u+D),100-100*(1-(F+t)),0,1,100*(e+r),100-100*(1-(O+q)),0,1]}function Ke(u,F){try{for(var D=[],t=F.BoundingBox.w,e=F.BoundingBox.h,O=0;O<F.Shapes.length;O++){var r=
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
(function(g){(function(y){(function(z){var B=function(){function m(c){this.RESPONSE_END="</mxfile>";this.RESPONSE_DIAGRAM_START="";this.RESPONSE_DIAGRAM_END="</diagram>";this.RESPONSE_HEADER='<?xml version="1.0" encoding="UTF-8"?><mxfile>';this.vertexMap={};this.edgeShapeMap={};this.vertexShapeMap={};this.parentsMap={};this.layerNames=[];this.debugPaths=!1;this.vsdxModel=null;this.editorUi=c;this.shapeIndexShift=0}function h(c,a,b,d,f){c=b.createLabelSubShape(c,a);null!=c&&(0!==d&&(a=c.getStyle().match(/;rotation=(\d+\.*\d+)/),
null!=a&&(d+=parseFloat(a[1])),c.setStyle(c.getStyle().replace(/;rotation=(\d+\.*\d+)/,"")+";rotation="+(60<d&&240>d?(d+180)%360:d))),d=c.getGeometry(),d.x=0,d.y=0,d.relative=!0,f=f||new mxPoint(0,0),d.offset=new mxPoint(f.x-d.width/2,f.y-d.height/2))}m.vsdxPlaceholder_$LI$=function(){null==m.vsdxPlaceholder&&(m.vsdxPlaceholder=window.atob?atob("dmlzaW8="):Base64.decode("dmlzaW8=",!0));return m.vsdxPlaceholder};m.parsererrorNS_$LI$=function(){m.parsererrorNS=mxConstants.NS_XHTML;return m.parsererrorNS};
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(){function c(a,b,d){this.formulaE=this.formulaA=this.d=this.c=this.b=this.a=this.y=this.x=null;this.index=0;this.index=a;this.x=b;this.y=d}c.prototype.getX=function(){return this.x};c.prototype.getY=function(){return this.y};c.prototype.getA=function(){return this.a};c.prototype.getB=function(){return this.b};c.prototype.getC=function(){return this.c};c.prototype.getD=function(){return this.d};c.prototype.getFormulaA=
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
return u});null!=y?(d.patchPages=y,y=null):(y=d.patchPages,d.patchPages=function(){var f=Date.now(),u=y.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.patchPages",[this],"time",Date.now()-f+" ms","args",arguments);return u});null!=A?(d.clonePages=A,A=null):(A=d.clonePages,d.clonePages=function(){var f=Date.now(),u=A.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.clonePages",[this],"time",Date.now()-f+" ms","args",arguments);return u});null!=G?(d.getHashValueForPages=G,
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
!a.isNoLine())return!1}return!0};h.prototype.hasGeom=function(){return 0!=this.geomList.length};h.prototype.getGeoCount=function(){for(var c=0,a=0;a<this.geomList.length;a++)this.geomList[a].isNoShow()||c++;return c};h.prototype.rotatedPoint=function(c,a,b){var d=c.y*a+c.x*b;c.x=c.x*a-c.y*b;c.y=d};h.prototype.getRoutingPoints=function(c,a,b){this.sort();c=[];c.push(a.clone());for(var d=0,f=0,k=0;k<this.geomList.length;k++){var p=this.geomList[k];if(!p.isNoShow()){p=p.getRows();for(var n=0;n<p.length;n++){var x=
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
20),F.style=mxUtils.setStyle(F.style,"entryY",Math.round(20*D.style.entryY)/20))}}function Bf(u,F){if(u.model.contains(F)&&null!=F.style&&""!=F.style){u=F.style.split(";");for(var D={},t=[],e=u.length-1;0<=e;e--){var O=u[e].split("=");if(2!=O.length||null==D[O[0]])D[O[0]]=O[1],""!=u[e]&&t.push(u[e])}F.style=t.reverse().join(";")+";"}}function Af(u,F){if(u.model.contains(F)&&null!=F.children&&null!=F.geometry&&F.vertex&&"group;dropTarget=0;pointerEvents=0;"==F.style){for(var D=null,t=0;t<F.children.length;t++)if(F.children[t].vertex){var e=
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
h.prototype.getSubShape=function(c){var a=this.childShapes;return a[c]?a[c]:null};h.prototype.getNameU=function(){return this.master.getAttribute("NameU")||""};h.prototype.getName=function(){return this.master.getAttribute("Name")||""};h.prototype.getUniqueID=function(){var c="";this.master.hasAttribute("UniqueID")&&(c=this.master.getAttribute("UniqueID"));return c};h.prototype.getId=function(){return this.Id};h.prototype.getMasterElement=function(){return this.master};return h}();B.mxVsdxMaster=
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
c.entries&&(c.entries=[]);for(var d=0;d<c.entries.length;d++)if(null!=c.entries[d].key.equals&&c.entries[d].key.equals(a)||c.entries[d].key===a){c.entries[d].value=b;return}c.entries.push({key:a,value:b,getKey:function(){return this.key},getValue:function(){return this.value}})})(h.colorIds_$LI$(),7,"accent6")};h.prototype.getThemeIndex=function(){return this.themeIndex};h.prototype.setVariant=function(c){this.themeVariant=c};h.prototype.isPure=function(){return this.__isPure};h.prototype.processTheme=
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
function(c,e){mxSettings.setUi(c);(e=this.doSetCurrentTheme(c)||e)||this.alert(mxResources.get("restartForChangeRequired"))};EditorUi.prototype.isDefaultTheme=function(c){return""==c||"dark"==c||"default"==c||"kennedy"==c||null==c};EditorUi.prototype.doSetCurrentTheme=function(c,e,l){function p(A){return"simple"==A||0==e&&"sketch"==A}e=null!=e?e:150;var n=Editor.currentTheme,t=p(n)&&this.isDefaultTheme(c)||this.isDefaultTheme(n)&&p(c),y=t&&"sketch"!=c&&"sketch"!=n;t&&!this.themeSwitching&&(Editor.currentTheme=
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
h.prototype.getSubShape=function(c){var a=this.childShapes;return a[c]?a[c]:null};h.prototype.getNameU=function(){return this.master.getAttribute("NameU")||""};h.prototype.getName=function(){return this.master.getAttribute("Name")||""};h.prototype.getUniqueID=function(){var c="";this.master.hasAttribute("UniqueID")&&(c=this.master.getAttribute("UniqueID"));return c};h.prototype.getId=function(){return this.Id};h.prototype.getMasterElement=function(){return this.master};return h}();B.mxVsdxMaster=
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
h.prototype.getSubShape=function(c){var a=this.childShapes;return a[c]?a[c]:null};h.prototype.getNameU=function(){return this.master.getAttribute("NameU")||""};h.prototype.getName=function(){return this.master.getAttribute("Name")||""};h.prototype.getUniqueID=function(){var c="";this.master.hasAttribute("UniqueID")&&(c=this.master.getAttribute("UniqueID"));return c};h.prototype.getId=function(){return this.Id};h.prototype.getMasterElement=function(){return this.master};return h}();B.mxVsdxMaster=
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
F.Class)?(u-=90,D.geometry.rotate90()):0<=mxUtils.indexOf(wf,F.Class)&&(u+=180);0!=u&&(t+="rotation="+u+";");e||(t+="horizontal=0;")}return t}function V(u){return null!=u.Shadow?mxConstants.STYLE_SHADOW+"=1;":""}function T(u){if(u){if("object"===typeof u)try{u=u.cs[0].c}catch(F){console.log(F),u="#ffffff"}"rgb"==u.substring(0,3)?u="#"+u.match(/\d+/g).map(function(F){F=parseInt(F).toString(16);return(1==F.length?"0":"")+F}).join(""):"#"!=u.charAt(0)&&(u="#"+u)}return u}function W(u){return(u=T(u))?
u.substring(0,7):null}function oa(u,F){return(u=T(u))&&7<u.length?F+"="+Math.round(parseInt("0x"+u.substr(7))/2.55)+";":""}function ca(u,F){if(null!=u.FillColor)if("object"===typeof u.FillColor){if(null!=u.FillColor.cs&&1<u.FillColor.cs.length)return Zb(mxConstants.STYLE_FILLCOLOR,W(u.FillColor.cs[0].c))+Zb(mxConstants.STYLE_GRADIENTCOLOR,W(u.FillColor.cs[1].c))}else return"string"===typeof u.FillColor?Zb(mxConstants.STYLE_FILLCOLOR,W(u.FillColor),"#FFFFFF"):Zb(mxConstants.STYLE_FILLCOLOR,"none");
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
G=null):(G=d.getHashValueForPages,d.getHashValueForPages=function(){var f=Date.now(),u=G.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.getHashValueForPages",[this],"time",Date.now()-f+" ms","args",arguments);return u});null!=C?(d.resolveCrossReferences=C,C=null):(C=d.resolveCrossReferences,d.resolveCrossReferences=function(){var f=Date.now(),u=C.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.resolveCrossReferences",[this],"time",Date.now()-f+" ms","args",arguments);return u});
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
mxGraph.prototype.getBoundingBoxFromGeometry=function(a,b,c){b=null!=b?b:!1;var d=null;if(null!=a)for(var e=0;e<a.length;e++)if(b||this.model.isVertex(a[e])){var f=this.getCellGeometry(a[e]);if(null!=f){var g=null;if(this.model.isEdge(a[e])){g=function(m){null!=m&&(null==k?k=new mxRectangle(m.x,m.y,0,0):k.add(new mxRectangle(m.x,m.y,0,0)))};null==this.model.getTerminal(a[e],!0)&&g(f.getTerminalPoint(!0));null==this.model.getTerminal(a[e],!1)&&g(f.getTerminalPoint(!1));f=f.points;if(null!=f&&0<f.length)for(var k=
new mxRectangle(f[0].x,f[0].y,0,0),l=1;l<f.length;l++)g(f[l]);g=k}else l=this.model.getParent(a[e]),f.relative?this.model.isVertex(l)&&l!=this.view.currentRoot&&(k=this.getBoundingBoxFromGeometry([l],!1,null!=c?c:a),null!=k&&(g=new mxRectangle(f.x*k.width,f.y*k.height,f.width,f.height),0<=mxUtils.indexOf(null!=c?c:a,l)&&(g.x+=k.x,g.y+=k.y))):(g=mxRectangle.fromRectangle(f),this.model.isVertex(l)&&0<=mxUtils.indexOf(null!=c?c:a,l)&&(k=this.getBoundingBoxFromGeometry([l],!1,null!=c?c:a),null!=k&&(g.x+=
k.x,g.y+=k.y))),null!=g&&null!=f.offset&&(g.x+=f.offset.x,g.y+=f.offset.y),f=this.getCurrentCellStyle(a[e]),null!=g&&(f=mxUtils.getValue(f,mxConstants.STYLE_ROTATION,0),0!=f&&(g=mxUtils.getBoundingBox(g,f)));null!=g&&(null==d?d=mxRectangle.fromRectangle(g):d.add(g))}}return d};mxGraph.prototype.refresh=function(a){this.view.clear(a,null==a);this.view.validate();this.sizeDidChange();this.fireEvent(new mxEventObject(mxEvent.REFRESH))};
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
new mxImageExport,u=q.getGraphBounds(),D=q.view.scale,E=mxUtils.createXmlDocument(),M=E.createElement("output");E.appendChild(M);E=new mxXmlCanvas2D(M);E.translate(Math.floor((1-u.x)/D),Math.floor((1-u.y)/D));E.scale(1/D);var k=0,x=E.save;E.save=function(){k++;x.apply(this,arguments)};var F=E.restore;E.restore=function(){k--;F.apply(this,arguments)};var Q=f.drawShape;f.drawShape=function(N){mxLog.debug("entering shape",N,k);Q.apply(this,arguments);mxLog.debug("leaving shape",N,k)};f.drawState(q.getView().getState(q.model.root),
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
(function(g){(function(y){(function(z){(function(B){var m=function(){function h(c,a){this.masterShape=this.Id=null;this.childShapes={};this.master=c;this.Id=c.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.ID)||"";this.processMasterShapes(a)}h.prototype.processMasterShapes=function(c){for(var a=this.master.firstChild;null!=a;){if(null!=a&&1==a.nodeType&&function(k,p){return k&&k.equals?k.equals(p):k===p}(a.nodeName,"Rel")){var b=c.getRelationship(a.getAttribute("r:id"),g.mxgraph.io.mxVsdxCodec.vsdxPlaceholder+"/masters/_rels/masters.xml.rels"),
d=b.getAttribute("Target");b=b.getAttribute("Type");var f=null;null!=b&&function(k,p){var n=k.length-p.length;k=k.indexOf(p,n);return-1!==k&&k===n}(b,"master")&&(f=c.getXmlDoc(g.mxgraph.io.mxVsdxCodec.vsdxPlaceholder+"/masters/"+d));if(null!=f)for(d=f.firstChild;null!=d;){if(null!=d&&1==d.nodeType&&function(k,p){return k&&k.equals?k.equals(p):k===p}(d.nodeName,"MasterContents")){this.processMasterShape(d,c);break}d=d.nextSibling}}else if(1==a.nodeType&&"PageSheet"==a.nodeName)for(this.pageSheet={},
d=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(a,"Cell"),b=0;b<d.length;b++)this.pageSheet[d[b].getAttribute("N")]=d[b];a=a.nextSibling}};h.prototype.processMasterShape=function(c,a,b){b||(this.firstLevelShapes=[]);for(c=c.firstChild;null!=c;){if(null!=c&&1==c.nodeType&&function(n,x){return n&&n.equals?n.equals(x):n===x}(c.nodeName,"Shapes"))for(var d=c.firstChild;null!=d;){if(null!=d&&1==d.nodeType&&function(n,x){return n&&n.equals?n.equals(x):n===x}(d.nodeName,"Shape")){var f=d,k=f.getAttribute("ID"),
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
var k=!1;0==f.indexOf("svg")&&(f="png",k=!0);d+=f;h=new XMLHttpRequest;h.open("GET",m,!0);h.responseType="arraybuffer";h.onreadystatechange=function(p){if(4==this.readyState&&(200==this.status&&(k?b.convertSvg2Png(this.response,!1,function(n){b.zip.file("visio/media/"+d,n.substring(22),{base64:!0})}):b.zip.file("visio/media/"+d,this.response)),b.filesLoading--,0==b.filesLoading))b.onFilesLoaded()};h.send()}this.images.push(d);this.shapeImg={type:f,id:this.images.length+1};m=this.state;z*=m.scale;
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
this);this.stylesheets[f]=d}}for(c=function(k){var p=0;return{next:function(){return p<k.length?k[p++]:null},hasNext:function(){return p<k.length}}}(function(k){return Object.keys(k).map(function(p){return k[p]})}(this.stylesheets));c.hasNext();)d=c.next(),d.stylesheetRefs(this)};h.prototype.initMasters=function(){if(null!=this.xmlDocs){var c=function(b,d){return b[d]?b[d]:null}(this.xmlDocs,g.mxgraph.io.mxVsdxCodec.vsdxPlaceholder+"/masters/masters.xml");if(null!=c)for(c=c.firstChild;null!=c;){if(null!=
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
mxUtils.bind(this,function(){var f=null!=d.pages&&null!=d.getCurrentFile()?d.getCurrentFile().getAnonymizedXmlForPages(d.pages):"";f=new TextareaDialog(d,"Paste Data:",f,function(u){if(0<u.length)try{var D=function(F){function Q(aa){if(null==fa[aa]){if(fa[aa]=!0,null!=R[aa]){for(;0<R[aa].length;){var ea=R[aa].pop();Q(ea)}delete R[aa]}}else mxLog.debug(N+": Visited: "+aa)}var N=F.parentNode.id,U=F.childNodes;F={};for(var R={},W=null,X={},Z=0;Z<U.length;Z++){var Y=U[Z];if(null!=Y.id&&0<Y.id.length)if(null==
F[Y.id]){F[Y.id]=Y.id;var ca=Y.getAttribute("parent");null==ca?null!=W?mxLog.debug(N+": Multiple roots: "+Y.id):W=Y.id:(null==R[ca]&&(R[ca]=[]),R[ca].push(Y.id))}else X[Y.id]=Y.id}U=Object.keys(X);0<U.length?(U=N+": "+U.length+" Duplicates: "+U.join(", "),mxLog.debug(U+" (see console)")):mxLog.debug(N+": Checked");var fa={};null==W?mxLog.debug(N+": No root"):(Q(W),Object.keys(fa).length!=Object.keys(F).length&&(mxLog.debug(N+": Invalid tree: (see console)"),console.log(N+": Invalid tree",R)))};"<"!=
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
"dashed32"==u.StrokeStyle?"dashed=1;fixDash=1;dashPattern=6 5;":"dashed44"==u.StrokeStyle?"dashed=1;fixDash=1;dashPattern=8 8;":null!=u.StrokeStyle&&"dashed"==u.StrokeStyle.substring(0,6)?"dashed=1;fixDash=1;":""}function sa(u){return null!=u.LineWidth?Zb(mxConstants.STYLE_STROKEWIDTH,z(.75*parseFloat(u.LineWidth)),"1"):""}function Fa(u,F,D){var t="";u.FillColor&&u.FillColor.url?(D=u.FillColor.url,"fill"==u.FillColor.pos&&(t="imageAspect=0;")):"ImageSearchBlock2"==F.Class?D=u.URL:"UserImage2Block"==
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
"_");this.layerNames.push(A);0==x.Visible&&f.push(A)}x=function(C){var J=0;return{next:function(){return J<C.length?C[J++]:null},hasNext:function(){return J<C.length}}}(function(C){null==C.entries&&(C.entries=[]);return C.entries}(k));k=c.getPageDimensions().y;for(n=c.getId();x.hasNext();)p=x.next(),p=p.getValue(),A=this.addShape(a,p,b,n,k),p=this.layerIndexToNames(p.layerMember),null!=A&&null!=p&&a.addTagsForCells([A],p);for(c=function(C){var J=0;return{next:function(){return J<C.length?C[J++]:null},
hasNext:function(){return J<C.length}}}(function(C){null==C.entries&&(C.entries=[]);return C.entries}(c.getConnects()));c.hasNext();)p=c.next(),p=this.addConnectedEdge(a,p.getValue(),n,k),null!=p&&function(C,J){null==C.entries&&(C.entries=[]);for(var M=0;M<C.entries.length;M++)if(null!=C.entries[M].key.equals&&C.entries[M].key.equals(J)||C.entries[M].key===J)return C.entries.splice(M,1)[0]}(this.edgeShapeMap,p);for(c=function(C){var J=0;return{next:function(){return J<C.length?C[J++]:null},hasNext:function(){return J<
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
"_");this.layerNames.push(A);0==x.Visible&&f.push(A)}x=function(C){var J=0;return{next:function(){return J<C.length?C[J++]:null},hasNext:function(){return J<C.length}}}(function(C){null==C.entries&&(C.entries=[]);return C.entries}(k));k=c.getPageDimensions().y;for(n=c.getId();x.hasNext();)p=x.next(),p=p.getValue(),A=this.addShape(a,p,b,n,k),p=this.layerIndexToNames(p.layerMember),null!=A&&null!=p&&a.addTagsForCells([A],p);for(c=function(C){var J=0;return{next:function(){return J<C.length?C[J++]:null},
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
h.prototype.getConnLineColor=function(c){return this.getLineColor$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList(c,this.connLineStyles)};h.prototype.getDefaultLineClr=function(){return this.defaultLineClr};h.prototype.isLineDashed$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList$java_util_ArrayList=function(c,a,b){a=this.getLineStyleExt(c.getQuickStyleLineMatrix(),a);if(null!=a)return a.isDashed();c=this.getLineStyle(c.getQuickStyleLineMatrix(),b);return null!=c?c.isDashed():
!1};h.prototype.isLineDashed=function(c,a,b){if((null!=c&&c instanceof g.mxgraph.io.vsdx.theme.QuickStyleVals||null===c)&&(null!=a&&a instanceof Array||null===a)&&(null!=b&&b instanceof Array||null===b))return this.isLineDashed$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList$java_util_ArrayList(c,a,b);if((null!=c&&c instanceof g.mxgraph.io.vsdx.theme.QuickStyleVals||null===c)&&void 0===a&&void 0===b)return this.isLineDashed$com_mxgraph_io_vsdx_theme_QuickStyleVals(c);throw Error("invalid overload");
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
'" ');for(k=0;k<this.geomList.length;k++){var n=this.geomList[k];if(f!==n.isNoFill()){var x=n.getPathXML(a,c);0!==x.length&&(n=this.getGeoStyle(n),-1===d?b.str=b.str.concat("<path"+p+">"):d!==n&&(this.closePath(b,d),b.str=b.str.concat("<path"+p+">")),b.str=b.str.concat(x),d=n)}}return d};h.prototype.getGeoStyle=function(c){var a=0;c.isNoLine()||c.isNoFill()?c.isNoFill()?c.isNoLine()||(a=3):a=2:a=1;return a};h.prototype.closePath=function(c,a){c.str=c.str.concat("</path>");1===a?c.str=c.str.concat("<fillstroke/>"):
2===a?c.str=c.str.concat("<fill/>"):3===a&&(c.str=c.str.concat("<stroke/>"))};return h}();B.mxVsdxGeometryList=m;m.__class="com.mxgraph.io.vsdx.mxVsdxGeometryList";(function(h){var c=function(){function a(b){this.__parent=b}a.prototype.compare=function(b,d){return b.getIndex()-d.getIndex()};return a}();h.mxVsdxGeometryList$0=c;c.__interfaces=["java.util.Comparator"]})(m=B.mxVsdxGeometryList||(B.mxVsdxGeometryList={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com=
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
h.prototype.getConnLineColor=function(c){return this.getLineColor$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList(c,this.connLineStyles)};h.prototype.getDefaultLineClr=function(){return this.defaultLineClr};h.prototype.isLineDashed$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList$java_util_ArrayList=function(c,a,b){a=this.getLineStyleExt(c.getQuickStyleLineMatrix(),a);if(null!=a)return a.isDashed();c=this.getLineStyle(c.getQuickStyleLineMatrix(),b);return null!=c?c.isDashed():
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
R;null!=Y&&Z.setAttribute("title",Y)}),E={},M=0;M<this.defaultFonts.length;M++){var k=this.defaultFonts[M];"string"===typeof k?D(k):null!=k.fontFamily&&null!=k.fontUrl&&(E[encodeURIComponent(k.fontFamily)+"@"+encodeURIComponent(k.fontUrl)]=!0,D(k.fontFamily,k.fontUrl))}f.addSeparator(u);if("1"!=urlParams["ext-fonts"]){k=function(R){var W=encodeURIComponent(R.name)+(null==R.url?"":"@"+encodeURIComponent(R.url));if(!E[W]){for(var X=R.name,Z=0;null!=F[X.toLowerCase()];)X=R.name+" ("+ ++Z+")";null==x[W]&&
(Q.push({name:R.name,url:R.url,label:X,title:R.url}),F[X.toLowerCase()]=R,x[W]=R)}};var x={},F={},Q=[];for(M=0;M<this.customFonts.length;M++)k(this.customFonts[M]);for(var N in Graph.recentCustomFonts)k(Graph.recentCustomFonts[N]);Q.sort(function(R,W){return R.label<W.label?-1:R.label>W.label?1:0});if(0<Q.length){for(M=0;M<Q.length;M++)D(Q[M].name,Q[M].url,!0,Q[M].label,Q[M].url);f.addSeparator(u)}f.addItem(mxResources.get("reset"),null,mxUtils.bind(this,function(){Graph.recentCustomFonts={};this.customFonts=
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
1);H=I/H}I=!1;for(L=0;null!=P.firstLevelShapes&&L<P.firstLevelShapes.length;L++){var N=P.firstLevelShapes[L].getShape(),Q=new g.mxgraph.io.vsdx.VsdxShape(x,N,!x.isEdge(N),n,null,M.vsdxModel);N=null;if(Q.isVertex()){M.edgeShapeMap.entries=[];M.parentsMap.entries=[];N=M.addShape(R,Q,R.getDefaultParent(),0,1169);Q=function(W){null==W.entries&&(W.entries=[]);return W.entries}(M.edgeShapeMap);for(var ha=0;ha<Q.length;ha++){var V=Q[ha],T=function(W,oa){null==W.entries&&(W.entries=[]);for(var ca=0;ca<W.entries.length;ca++)if(null!=
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
Na[Ia].y+'" x3="'+La[Ia].x+'" y3="'+La[Ia].y+'"/>';var Ea=bb}else Ea=void 0;ja.push(Ea)}else ma=U[Aa.p2].x,Ba=U[Aa.p2].y,ma=100*ma/t,Ba=100*Ba/e,ma=Math.round(100*ma)/100,Ba=Math.round(100*Ba)/100,ja.push('<line x="'+ma+'" y="'+Ba+'"/>');na=Aa.p2}ja.push("</path>");ja.push("<fillstroke/>");ja.push("</foreground></shape>");D.push({shapeStencil:"stencil("+Graph.compress(ja.join(""))+")",FillColor:q,LineColor:Z,LineWidth:aa})}LucidImporter.stencilsMap[u]={text:F.Text,w:t,h:e,x:F.BoundingBox.x,y:F.BoundingBox.y,
stencils:D}}catch(Ra){console.log("Stencil parsing error:",Ra)}}function sc(u,F,D,t,e,O,r,q){u=new mxCell("",new mxGeometry(u,F,0,0),"strokeColor=none;fillColor=none;");u.vertex=!0;r.insert(u);O=[u];D=D.clone();q.insertEdge(D,!1);u.insertEdge(D,!0);O.push(D);t.push(e.addCell(D,null,null,null,null))}function fb(u,F,D,t,e,O,r,q,Z){u=new mxCell("",new mxGeometry(u,F,0,0),"strokeColor=none;fillColor=none;");u.vertex=!0;Z.insert(u);D=new mxCell("",new mxGeometry(D,t,0,0),"strokeColor=none;fillColor=none;");
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(){function c(){}c.getIndex=function(a){try{return parseInt(a.getAttribute("IX"))||1}catch(b){return 1}};c.getDoubleVal=function(a){try{if(null!=a&&0!==a.length){var b=parseFloat(a);if(isFinite(b))return b}}catch(d){}return null};c.getRowObj=function(a,b){var d=a.getAttribute("T"),f=c.getIndex(a);var k=(k=a.getAttribute("Del"))&&k.equals?k.equals("1"):"1"===k;if(!k){var p=null;f<=b.length&&(p=b[f-1]);var n=k=b=null,x=null,
| 1 |
JavaScript
|
CWE-79
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
|
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|
https://cwe.mitre.org/data/definitions/79.html
|
safe
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.