中危 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.解决建议
建议您更新当前系统或软件至最新版,完成漏洞的修复。受影响软件情况
# | 类型 | 厂商 | 产品 | 版本 | 影响面 | ||||
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 | |||||
- 攻击路径 本地
- 攻击复杂度 复杂
- 权限要求 无需权限
- 影响范围 越权影响
- EXP成熟度 未验证
- 补丁情况 官方补丁
- 数据保密性 数据泄露
- 数据完整性 无影响
- 服务器危害 无影响
- 全网数量 N/A
CWE-ID | 漏洞类型 |
CWE-352 | 跨站请求伪造(CSRF) |
Exp相关链接

版权声明
本站原创文章转载请注明文章出处及链接,谢谢合作!
评论