漏洞信息
尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。
Vulnerability Title
@fastify/oauth2 vulnerable to Login CSRF via plantable OAuth state cookies
Vulnerability Description
@fastify/oauth2 is an OAuth 2.0 plugin for Fastify. In versions from 7.2.0 up to but not including 8.3.0, the plugin validates the OAuth state, and with PKCE the code verifier, by comparing the callback query parameter against an unprefixed, predictable cookie, with no server-side binding to the browser that began the flow. Any party able to write a cookie for the application's host, such as a sibling subdomain under the same registrable domain, can plant matching state and verifier cookies and complete an attacker-owned OAuth flow inside a victim's browser, silently signing the victim in to the attacker's account (login CSRF). It does not expose the victim's own account, credentials, or tokens. The issue is fixed in @fastify/oauth2 8.3.0, which adds an opt-in hostPrefixedCookies option. Users should upgrade to 8.3.0 and enable it, or bind state to a server-side session.
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N
Vulnerability Type
跨站请求伪造(CSRF)
Vulnerability Title
Fastify @fastify/oauth2 跨站请求伪造漏洞
Vulnerability Description
Fastify @fastify/oauth2是Fastify组织的一款支持OAuth2认证的插件。 Fastify @fastify/oauth2 7.2.0版本至8.3.0之前版本存在跨站请求伪造漏洞,该漏洞源于对OAuth状态和PKCE验证器的验证不当,通过比较回调查询参数与未加前缀的可预测cookie且无服务器端绑定,可能导致跨站请求伪造攻击,使受害者登录攻击者账户。
CVSS Information
N/A
Vulnerability Type
N/A