chore(deps): update dependency @fastify/secure-session to v7.3.0 [security]#201
Open
renovate[bot] wants to merge 1 commit into
Open
chore(deps): update dependency @fastify/secure-session to v7.3.0 [security]#201renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
|
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the
Comment |
0b6e66d to
887bb1b
Compare
806e2db to
655f88d
Compare
e140954 to
f87fcd3
Compare
0aad106 to
9f4abc6
Compare
3bf1afd to
5e8f656
Compare
5e8f656 to
127da8c
Compare
2aa0d58 to
bf9cb9a
Compare
bf9cb9a to
5a6a58d
Compare
5a6a58d to
169a0a7
Compare
169a0a7 to
938059d
Compare
3b60eb6 to
2e144c7
Compare
ddc63a3 to
7bdd109
Compare
7bdd109 to
2904346
Compare
2904346 to
0404e08
Compare
0404e08 to
f76578b
Compare
f76578b to
7998f6b
Compare
d2df469 to
c425913
Compare
c425913 to
cb110ae
Compare
cb110ae to
0a04dbd
Compare
2adb4f2 to
fed7e0d
Compare
fed7e0d to
3d3281e
Compare
cd67c08 to
57fff0b
Compare
57fff0b to
23c6d3f
Compare
23c6d3f to
32f3402
Compare
5eaf747 to
dda0326
Compare
dda0326 to
9aca092
Compare
79649a5 to
47a2607
Compare
47a2607 to
30adbe2
Compare
30adbe2 to
bbda7f2
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
7.0.0→7.3.0@fastify/secure-session: Reuse of destroyed secure session cookie
CVE-2024-31999 / GHSA-9wwp-q7wq-jx35
More information
Details
Impact
At the end of the request handling, it will encrypt all data in the session with a secret key and attach the ciphertext as a cookie value with the defined cookie name. After that, the session on the server side is destroyed. When an encrypted cookie with matching session name is provided with subsequent requests, it will decrypt the ciphertext to get the data. The plugin then creates a new session with the data in the ciphertext. Thus theoretically the web instance is still accessing the data from a server-side session, but technically that session is generated solely from a user provided cookie (which is assumed to be non-craftable because it is encrypted with a secret key not known to the user).
The issue exists in the session removal process. In the delete function of the code, when the session is deleted, it is marked for deletion. However, if an attacker could gain access to the cookie, they could keep using it forever.
Patches
Fixed in 56d66642ecc633cff0606927601e81cdac361370.
Update to v7.3.0.
Workarounds
Include a "last update" field in the session, and treat "old sessions" as expired.
Make sure to configure your cookie as "http only".
References
Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Release Notes
fastify/fastify-secure-session (@fastify/secure-session)
v7.3.0Compare Source
Fixes GHSA-9wwp-q7wq-jx35
What's Changed
New Contributors
Full Changelog: fastify/fastify-secure-session@v7.2.0...v7.3.0
v7.1.0Compare Source
What's Changed
New Contributors
Full Changelog: fastify/fastify-secure-session@v7.0.0...v7.1.0
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.