Flask Middleware Flask-security跨站请求伪造漏洞

admin 2023-12-01 17:02:43 Ali_nvd 来源:ZONE.CI 全球网 0 阅读模式
中危 Flask Middleware Flask-security跨站请求伪造漏洞

CVE编号

CVE-2021-21241

利用情况

暂无

补丁情况

官方补丁

披露时间

2021-01-12
漏洞描述
The Python "Flask-Security-Too" package is used for adding security features to your Flask application. It is an is a independently maintained version of Flask-Security based on the 3.0.0 version of Flask-Security. In Flask-Security-Too from version 3.3.0 and before version 3.4.5, the /login and /change endpoints can return the authenticated user's authentication token in response to a GET request. Since GET requests aren't protected with a CSRF token, this could lead to a malicious 3rd party site acquiring the authentication token. Version 3.4.5 and version 4.0.0 are patched. As a workaround, if you aren't using authentication tokens - you can set the SECURITY_TOKEN_MAX_AGE to "0" (seconds) which should make the token unusable.
解决建议
建议您更新当前系统或软件至最新版,完成漏洞的修复。
参考链接
https://github.com/Flask-Middleware/flask-security/commit/61d313150b5f620d0b8...
https://github.com/Flask-Middleware/flask-security/commit/6d50ee9169acf813257...
https://github.com/Flask-Middleware/flask-security/pull/422
https://github.com/Flask-Middleware/flask-security/releases/tag/3.4.5
https://github.com/Flask-Middleware/flask-security/security/advisories/GHSA-h...
https://pypi.org/project/Flask-Security-Too
受影响软件情况
# 类型 厂商 产品 版本 影响面
1
运行在以下环境
应用 flask-security_project flask-security * From (including) 3.3.0 Up to (excluding) 3.4.5
运行在以下环境
系统 debian_10 flask-security * Up to (excluding) 1.7.5-2
运行在以下环境
系统 debian_11 flask-security * Up to (excluding) 4.0.0-1
运行在以下环境
系统 debian_12 flask-security * Up to (excluding) 4.0.0-1
运行在以下环境
系统 debian_sid flask-security * Up to (excluding) 4.0.0-1
运行在以下环境
系统 opensuse_Leap_15.3 python3-Flask-Security-Too * Up to (excluding) 3.4.2-150200.3.3.1
运行在以下环境
系统 opensuse_Leap_15.4 python3-Flask-Security-Too * Up to (excluding) 3.4.2-150200.3.3.1
阿里云评分 6.2
  • 攻击路径 本地
  • 攻击复杂度 复杂
  • 权限要求 无需权限
  • 影响范围 越权影响
  • EXP成熟度 未验证
  • 补丁情况 官方补丁
  • 数据保密性 数据泄露
  • 数据完整性 无影响
  • 服务器危害 无影响
  • 全网数量 N/A
CWE-ID 漏洞类型
CWE-352 跨站请求伪造(CSRF)
- 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