{"action":"closed","issue":{"url":"https://api.github.com/repos/mozilla/fxa-content-server/issues/2855","labels_url":"https://api.github.com/repos/mozilla/fxa-content-server/issues/2855/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/fxa-content-server/issues/2855/comments","events_url":"https://api.github.com/repos/mozilla/fxa-content-server/issues/2855/events","html_url":"https://github.com/mozilla/fxa-content-server/issues/2855","id":98026907,"number":2855,"title":"iframe checking doesn't verify port match?","user":{"login":"rfk","id":34695,"avatar_url":"https://avatars.githubusercontent.com/u/34695?v=3","gravatar_id":"","url":"https://api.github.com/users/rfk","html_url":"https://github.com/rfk","followers_url":"https://api.github.com/users/rfk/followers","following_url":"https://api.github.com/users/rfk/following{/other_user}","gists_url":"https://api.github.com/users/rfk/gists{/gist_id}","starred_url":"https://api.github.com/users/rfk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rfk/subscriptions","organizations_url":"https://api.github.com/users/rfk/orgs","repos_url":"https://api.github.com/users/rfk/repos","events_url":"https://api.github.com/users/rfk/events{/privacy}","received_events_url":"https://api.github.com/users/rfk/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-29T20:51:40Z","updated_at":"2015-07-30T20:37:54Z","closed_at":"2015-07-30T20:37:54Z","body":"From https://bugzilla.mozilla.org/show_bug.cgi?id=1188458\r\n\r\n--------------------------\r\n\r\nSteps to reproduce:\r\n\r\n* Create a trusted FxA client whitelisted for the site http://some.site/\r\n* Using the client lib (https://github.com/mozilla/fxa-relier-client) do a sign-in from the same domain but on a different port like http://some.site:8080/ : \r\n\r\nvar fxaRelierClient = new FxaRelierClient(clientId);\r\nfxaRelierClient.auth.signIn({ui: 'lightbox'});\r\n\r\nI would expect this to cause an error because the port is different, something like: \r\n\r\n**Error: Firefox Accounts can only be placed into an IFRAME on approved sites**\r\n\r\nbut it does not. It lets you sign in using the iframe without error.\r\n\r\nIf an attacker got through on a different port then they could maybe do damage?"}}