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

#5375: jfwid may not leak session id #5402

Merged
merged 1 commit into from
Feb 20, 2024

Conversation

BalusC
Copy link
Contributor

@BalusC BalusC commented Feb 18, 2024

Original PR for #5375 was against master instead of 4.0 #5376. I cherrypicked it for 4.0 #5395 but there was a license concern (and I accidentally upmerged with 4.1 instead of 4.0) so I declined it.

Here's a improved and license safe impl. I will update 4.0/5.0 accordingly once PR is approved.

@BalusC BalusC changed the title Improved impl for https://github.com/eclipse-ee4j/mojarra/issues/5375 #5375: jfwid may not leak session id Feb 18, 2024
@arjantijms arjantijms merged commit 0c2052d into 4.0 Feb 20, 2024
3 checks passed
@arjantijms arjantijms deleted the mojarra_issue_5375_jfwid_may_not_leak_session_id branch February 20, 2024 16:39
Copy link
Contributor

@mnriem mnriem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a potential for clashing here?

@BalusC
Copy link
Contributor Author

BalusC commented Feb 21, 2024

Nope. It's now an UUID. Which is "too much" actually because it only needs to be session scoped. But that's OK for now and much easier to do. It's internally already using SecureRandom and friends, so we can ditch the whole TokenGenerator.

@arjantijms arjantijms added this to the 4.0.6 milestone Mar 4, 2024
@arjantijms arjantijms added the 4.0 label Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants