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

Confusion of (session-)contexts #318

Open
tvdijen opened this issue Mar 19, 2024 · 2 comments
Open

Confusion of (session-)contexts #318

tvdijen opened this issue Mar 19, 2024 · 2 comments

Comments

@tvdijen
Copy link
Contributor

tvdijen commented Mar 19, 2024

Scenario:

I have two instances of Engineblock that share the same instance of Stepup for MFA.
I open two tabs to Manage on both EB-instances. Manage is configured to require MFA.
On both tabs the token selection-page is shown. I authenticate using a Yubikey on one, then again on the second tab.

Issue:
After MFA authentication on the second one, it redirects me to the wrong EB-instance. This leads to a 'Session lost' page. It seems as if Gateway is unable to distinguish the two authentication flows.

Expected:
Gateway should be able to distinguish the two authentication flow based on the message IDs.

@MKodde
Copy link
Member

MKodde commented Mar 21, 2024

@tvdijen Thanks for your observation. In this case this is not an actual bug. But something we do intentional. The different types authentications (SSO+StepUp, SecondFactorOnly, GSSP second factor authentcation) are built in such a way that only one of the three flavours can be handed by the gateway at one time.

You can see this happening here:

We have considered to allow multiple in flight authentications which are tracked on the Request id of the SAML messages. But that opens whole other realm of complexities and possible exploitation avenues.

Do SSP IdP/SP's allow for handling multiple AuthnRequests for a single user from a concurrent browser session?

@tvdijen
Copy link
Contributor Author

tvdijen commented Mar 21, 2024

Do SSP IdP/SP's allow for handling multiple AuthnRequests for a single user from a concurrent browser session?

Yes, the different flows are separated using the AuthState url parameter.

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