{"action":"opened","issue":{"url":"https://api.github.com/repos/lionleaf/dwitter/issues/367","repository_url":"https://api.github.com/repos/lionleaf/dwitter","labels_url":"https://api.github.com/repos/lionleaf/dwitter/issues/367/labels{/name}","comments_url":"https://api.github.com/repos/lionleaf/dwitter/issues/367/comments","events_url":"https://api.github.com/repos/lionleaf/dwitter/issues/367/events","html_url":"https://github.com/lionleaf/dwitter/issues/367","id":347750977,"node_id":"MDU6SXNzdWUzNDc3NTA5Nzc=","number":367,"title":"Dweets can still redirect the iframe","user":{"login":"lionleaf","id":610925,"node_id":"MDQ6VXNlcjYxMDkyNQ==","avatar_url":"https://avatars3.githubusercontent.com/u/610925?v=4","gravatar_id":"","url":"https://api.github.com/users/lionleaf","html_url":"https://github.com/lionleaf","followers_url":"https://api.github.com/users/lionleaf/followers","following_url":"https://api.github.com/users/lionleaf/following{/other_user}","gists_url":"https://api.github.com/users/lionleaf/gists{/gist_id}","starred_url":"https://api.github.com/users/lionleaf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lionleaf/subscriptions","organizations_url":"https://api.github.com/users/lionleaf/orgs","repos_url":"https://api.github.com/users/lionleaf/repos","events_url":"https://api.github.com/users/lionleaf/events{/privacy}","received_events_url":"https://api.github.com/users/lionleaf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-06T01:29:45Z","updated_at":"2018-08-06T01:29:45Z","closed_at":null,"author_association":"OWNER","body":"Now that the CSP-header has been added, loading external content into a dweet shouldn't be possible. However, dweets can still redirect the whole iframe, for instance through \r\n\r\n`document.location=\"//www.example.com/\";`\r\n\r\nExample dweet:\r\nhttps://www.dwitter.net/d/7645\r\n\r\nAny ideas on how to block this? As far as I can tell there aren't any way to whitelist domains for an iframe? Could we actively intercept attempts to change document.location?"}}
{"actor":{"display_login":"lionleaf"}}