🛡️ GHSA-hgxv-3497-3hhj — oauth2 (CVE-2023-31999)
Description
Duplicate Advisory: @fastify/oauth2 Oauth2 state parameter reuse
Duplicate Advisory
This advisory has been withdrawn because it is a duplicate of GHSA-g8x5-p9qc-cf95. This link is maintained to preserve external references.
Original Description
All versions of @fastify/oauth2 used a statically generated state parameter at startup time and were used across all requests for all users. The purpose of the Oauth2 state parameter is to prevent Cross-Site-Request-Forgery attacks. As such, it should be unique per user and should be connected to the user's session in some way that will allow the server to validate it.
v7.2.0 changes the default behavior to store the state in a cookie with the http-only and same-site=lax attributes set. The state is now by default generated for every user. Note that this contains a breaking change in the checkStateFunction function, which now accepts the full Request object.
Affected software
GHSA-hgxv-3497-3hhj is recorded against 1 package.
- @fastify/oauth2
Timeline and source
Published on 4 July 2023 and last revised on 6 July 2023. No public exploit is currently recorded for this entry. Record sourced from OSV.
References
nvd.nist.gov (Advisory)
hackerone.com (Web)
auth0.com (Web)
github.com (Package)
github.com (Web)
Details
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| @fastify/oauth2 | — | — |
References
Similar Threats
- High CVE-2023-31999
Free Vulnerability Check
Is your site affected by GHSA-hgxv-3497-3hhj?
BotEraser helps you identify potentially vulnerable plugins and themes by checking your installation against GHSA-hgxv-3497-3hhj and other known CVE records.
Scan My Site Free →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.