influxdata / influxdata/influxdb

Session can be used in UI after user is removed from an organization

Open
#23,068 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
31.7k
Forks
3.7k
Avg merge
13h 37m
Merged PRs (30d)
8

Description

When a user is removed from IDPE, the session can be used to gain access. The current theory is the session is not expired
by idpe. Expiring the session won't necessarily fix the issue as the UI has access to a copy of an unexpired session. We aren't checking to see if the user is active on the org represented by the session

Steps to recreate
1.In owner browser, invite a user
2. In new user browser, open a session - grab the URL
3. Logout but do not close the browser
3. In Owner browser, remove the user
4. In user browser- log back in. Browser will do some redirects
5. Paste in the URL from #2 until it renders and allows access

Checking the orgID and verifying that the user is still on the organization should fix this issue #14475

Contributor guide

Open the contributing guide

Research direction

No file or test is named. Start by tracing session URL handling and the organization-membership check, then reproduce the listed browser steps with a removed user. Done means a session URL no longer renders or grants access after the user is removed from the organization.

Written by the indexing model from the issue text.

Assessment

Domain
authentication, authorization, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.