codeigniter codeigniter 跨站请求伪造(csrf)

admin 2023-11-30 06:26:17 Ali_nvd 来源:ZONE.CI 全球网 0 阅读模式
中危 codeigniter codeigniter 跨站请求伪造(csrf)

CVE编号

CVE-2022-35943

利用情况

暂无

补丁情况

官方补丁

披露时间

2022-08-13
漏洞描述
Shield is an authentication and authorization framework for CodeIgniter 4. This vulnerability may allow [SameSite Attackers](https://canitakeyoursubdomain.name/) to bypass the [CodeIgniter4 CSRF protection](https://codeigniter4.github.io/userguide/libraries/security.html) mechanism with CodeIgniter Shield. For this attack to succeed, the attacker must have direct (or indirect, e.g., XSS) control over a subdomain site (e.g., `https://a.example.com/`) of the target site (e.g., `http://example.com/`). Upgrade to **CodeIgniter v4.2.3 or later** and **Shield v1.0.0-beta.2 or later**. As a workaround: set `Config\Security::$csrfProtection` to `'session,'`remove old session data right after login (immediately after ID and password match) and regenerate CSRF token right after login (immediately after ID and password match)
解决建议
建议您更新当前系统或软件至最新版,完成漏洞的修复。
参考链接
https://codeigniter4.github.io/userguide/libraries/security.htm
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie/SameSite
https://github.com/codeigniter4/shield/security/advisories/GHSA-5hm8-vh6r-2cjq
https://jub0bs.com/posts/2021-01-29-great-samesite-confusion
受影响软件情况
# 类型 厂商 产品 版本 影响面
1
运行在以下环境
应用 codeigniter codeigniter * Up to (excluding) 4.2.3
运行在以下环境
应用 codeigniter shield 1.0.0 -
阿里云评分 6.6
  • 攻击路径 远程
  • 攻击复杂度 复杂
  • 权限要求 普通权限
  • 影响范围 全局影响
  • 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