nextauth.js next-auth 在web页面生成时对输入的转义处理不恰当(跨站脚本)

admin 2023-11-30 07:03:55 Ali_nvd 来源:ZONE.CI 全球网 0 阅读模式
中危 nextauth.js next-auth 在web页面生成时对输入的转义处理不恰当(跨站脚本)

CVE编号

CVE-2022-31127

利用情况

暂无

补丁情况

官方补丁

披露时间

2022-07-07
漏洞描述
NextAuth.js is a complete open source authentication solution for Next.js applications. An attacker can pass a compromised input to the e-mail [signin endpoint](https://next-auth.js.org/getting-started/rest-api#post-apiauthsigninprovider) that contains some malicious HTML, tricking the e-mail server to send it to the user, so they can perform a phishing attack. Eg.: `[email protected], <a href="http://attacker.com">Before signing in, claim your money!</a>`. This was previously sent to `[email protected]`, and the content of the email containing a link to the attacker's site was rendered in the HTML. This has been remedied in the following releases, by simply not rendering that e-mail in the HTML, since it should be obvious to the receiver what e-mail they used: next-auth v3 users before version 3.29.8 are impacted. (We recommend upgrading to v4, as v3 is considered unmaintained. next-auth v4 users before version 4.9.0 are impacted. If for some reason you cannot upgrade, the workaround requires you to sanitize the `email` parameter that is passed to `sendVerificationRequest` and rendered in the HTML. If you haven't created a custom `sendVerificationRequest`, you only need to upgrade. Otherwise, make sure to either exclude `email` from the HTML body or efficiently sanitize it.
解决建议
建议您更新当前系统或软件至最新版,完成漏洞的修复。
参考链接
https://github.com/nextauthjs/next-auth/commit/ae834f1e08a4a9915665eecb9479c7...
https://github.com/nextauthjs/next-auth/releases/tag/next-auth%40v4.9.0
https://github.com/nextauthjs/next-auth/security/advisories/GHSA-pgjx-7f9g-9463
https://next-auth.js.org/getting-started/upgrade-v4
https://next-auth.js.org/providers/email
受影响软件情况
# 类型 厂商 产品 版本 影响面
1
运行在以下环境
应用 nextauth.js next-auth * Up to (excluding) 3.29.8
运行在以下环境
应用 nextauth.js next-auth * From (including) 4.0.0 Up to (excluding) 4.9.0
阿里云评分 5.7
  • 攻击路径 本地
  • 攻击复杂度 困难
  • 权限要求 普通权限
  • 影响范围 有限影响
  • EXP成熟度 未验证
  • 补丁情况 官方补丁
  • 数据保密性 无影响
  • 数据完整性 无影响
  • 服务器危害 无影响
  • 全网数量 N/A
CWE-ID 漏洞类型
CWE-79 在Web页面生成时对输入的转义处理不恰当(跨站脚本)
- avd.aliyun.com
weinxin
版权声明
本站原创文章转载请注明文章出处及链接,谢谢合作!
N/A Ali_nvd

N/A

N/ACVE编号 CVE-2024-9120利用情况 暂无补丁情况 N/A披露时间 2024-09-23漏洞描述Use after free in Dawn
评论:0   参与:  0