getsentry / sentry

Developer-first error tracking and performance monitoring
https://sentry.io
Other
39.18k stars 4.2k forks source link

Incorrect Organization Membership Assignment on Invitation Acceptance #78254

Open umairahmed515 opened 1 month ago

umairahmed515 commented 1 month ago

Environment

SaaS (https://sentry.io/)

Incorrect Organization Membership Assignment on Invitation Acceptance

Issue:
When a user is logged in with their account from organization X (with email X), and they receive an invitation to join organization Y via email Y, upon accepting the invitation, the system adds the user to organization Y with their email X instead of email Y.


Steps to Reproduce:

  1. Log in to your account using organization X with email X.
  2. Receive an invitation to join organization Y at email Y.
  3. Follow the invitation link to join organization Y.
  4. The system initially displays the error message:
    There was an error loading the data.
  5. Refresh the page.
  6. Observe that you have been added as a member of organization Y, but using your email X (from organization X), not the invited email Y.

Expected Behavior:

In either case, the system should prevent membership to organization Y being created under the incorrect email X.

Actual Behavior:


Severity:

getsantry[bot] commented 1 month ago

Assigning to @getsentry/support for routing ⏲️

Het4304 commented 1 month ago

Hi i am interested in solving the issue can you assign it to me?? @umairahmed515 @getsentry-bot

getsantry[bot] commented 1 month ago

Routing to @getsentry/product-owners-settings-members for triage ⏲️

leedongwei commented 1 month ago

Thanks for the bug report, this is definitely a footgun that we should fix.