Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

postMessage handler doesn't verify origin #373

Open
andresriancho opened this issue Mar 21, 2019 · 0 comments
Open

postMessage handler doesn't verify origin #373

andresriancho opened this issue Mar 21, 2019 · 0 comments

Comments

@andresriancho
Copy link

handlePostMessage: (ev) ->
defines a postMessage handler.

The code for this handler does NOT verify the message origin. This is an issue because any site can send a postMessage to the application and it will be processed.

Details in this blog post

As far as I can see, the attacker has the potential to:

  • Force the victim's application to be logged in using attacker credentials by sending a postMessage with deliverCredentials and valid OAuth token for the attacker account. If the attack is well crafted, the victim might end up sending private data to the attacker's account, the attacker can then read this information.

  • Force the victim to logout (to be confirmed) by sending authFailure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant