Skip to content

Allow use of secure session only - #1

Closed
tmandke wants to merge 1 commit into
masterfrom
optional-insecure-session-fallback
Closed

tmandke wants to merge 1 commit into
masterfrom
optional-insecure-session-fallback

Conversation

@tmandke

@tmandke tmandke commented Mar 27, 2023

Copy link
Copy Markdown

This change allows the disabling of fallback used to access old, insecure sessions, and rewrite them as secure sessions. The fallback was originally added as part of the mitigation of CVE-2019-25025 several years back.

Motivation

This fallback mechanism was added 4 years ago. In many cases, or at least in our case, the expiry on old, insecure, sessions has long since passed. We'd like the ability to disable the fallback entirely as it will never be a valid path for us.

@tmandke tmandke changed the title Optional insecure session fallback Allow use of secure session only Mar 27, 2023
@tmandke
tmandke force-pushed the optional-insecure-session-fallback branch from 23ccf4f to 0eb5495 Compare March 28, 2023 17:48
@stevenharman
stevenharman force-pushed the optional-insecure-session-fallback branch 2 times, most recently from 0db1d35 to 7743696 Compare November 3, 2023 15:03
@stevenharman
stevenharman force-pushed the optional-insecure-session-fallback branch 2 times, most recently from 11b5406 to ba695f3 Compare March 26, 2025 12:32
@stevenharman
stevenharman force-pushed the optional-insecure-session-fallback branch 2 times, most recently from 18cd1ee to e9fed90 Compare April 2, 2025 18:58
This change allows the disabling of fallback used to access old,
insecure sessions, and rewrite them as secure sessions. The fallback was
originally added as part of the mitigation of CVE-2019-25025 several
years back.

However, this fallback mechanism was added over 5 years ago. In many
cases, or at least in our case, the expiry on old, insecure, sessions
has long since passed. We'd like the ability to disable the fallback
entirely as it will never be a valid path for us.

See: rails#151

Also, we had to improve our patch for
`ActionDispatch::Assertions::RoutingAssertions::WithIntegrationRouting`
to handle middleware correctly. This is the same implementation as was
added in Rails 8.0.

See: rails/rails#54705
@stevenharman
stevenharman force-pushed the optional-insecure-session-fallback branch from e9fed90 to 44e4b7e Compare April 3, 2025 20:32
@stevenharman
stevenharman deleted the optional-insecure-session-fallback branch April 7, 2025 18:52
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

Successfully merging this pull request may close these issues.

2 participants