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

Shutdown Helper error prone, causes privacy issue on static home pages and intermittent connections #291

Open
eliotsykes opened this issue Jun 27, 2018 · 0 comments

Comments

@eliotsykes
Copy link

eliotsykes commented Jun 27, 2018

Version info

  • intercom-rails version: all at time of writing

Expected behavior

  1. User logs out
  2. Logged out user is redirected to / served from public/index.html
  3. Previous intercom conversations are no longer visible

Actual behavior

  1. User logs out
  2. Logged out user is redirected to / served from public/index.html
  3. Previous intercom conversations are visible

Cause

The shutdown callback is never called for the static home page.

This exposes the logged out user's conversations to another user who shares their device and browser.

This issue is partly due to the 2-request approach used by ShutdownHelper. The advice on not clearing cookies added in #174 on redirects appears outdated or incorrect - see #249. There is evidence that the cookies could be successfully cleared on redirect when SessionsController#destroy is called on logout, contrary to the README advice. Clearing the cookies in SessionsController#destroy instead of using the 2-request approach would solve this issue.

(Note, the above issue could also happen with a dynamic home page if the user loses connectivity after logout but before the redirected response completes.)

@keloe keloe added invalid and removed invalid labels Jul 5, 2018
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

2 participants