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

SECURITY: API PUT /users/self - verify e-mail on update - read the description please #54

Closed
1 task done
tiblu opened this issue Nov 21, 2018 · 2 comments
Closed
1 task done
Labels
critical App down / data leak / core functionality not usable.

Comments

@tiblu
Copy link
Member

tiblu commented Nov 21, 2018

Overview

When User updates e-mail in the profile, it does not get verified.

PANIC!? I don't think so, but definitely not nice.

What vector does it open up?

  1. User A has never used the application, has no account with his e-mail.
  2. User B registers with an e-mail belonging to him (B), doing the full verification flow.
  3. User B updates his e-mail to e-mail belonging to A, NO verification.
  4. User A:
    4.1 Logs in with FB/Google that has the e-mail in the profile, User A sees whatever malicious user B has done in the account. If A changes the password, B is lock out and cannot access it any more.
    4.2 Tries to create an account with e-mail/password and gets an error "e-mail already in use". He is confused and goes for the "Forgot password flow" after which A verifies the ownership of e-mail and gets the account locking malicious user B out.

Credits

  • @moll who brought this to our attention

Related code:

TODO

  • Create a flow to verify every new e-mails ownership
@tiblu tiblu added this to Wish list in Winter Push For Perfection (WPFP) via automation Nov 21, 2018
@tiblu
Copy link
Member Author

tiblu commented Nov 21, 2018

Credits to @moll for pointing this out.

@tiblu tiblu added critical App down / data leak / core functionality not usable. security labels Nov 21, 2018
@tiblu tiblu moved this from Wish list to TODO - prioritized in Winter Push For Perfection (WPFP) Jan 21, 2019
@ilmartyrk
Copy link
Member

Fixed by cc30bd2

Winter Push For Perfection (WPFP) automation moved this from TODO - prioritized to DONE - deployed to production Jan 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
critical App down / data leak / core functionality not usable.
Projects
No open projects
Winter Push For Perfection (WPFP)
  
DONE - deployed to production
Development

No branches or pull requests

2 participants