通过“style”元素内容的中和不足来消除跨站点脚本攻击的漏洞 (CVE-2023-36823)

admin 2023-11-29 22:49:39 Ali_nvd 来源:ZONE.CI 全球网 0 阅读模式
中危 通过“style”元素内容的中和不足来消除跨站点脚本攻击的漏洞 (CVE-2023-36823)

CVE编号

CVE-2023-36823

利用情况

暂无

补丁情况

官方补丁

披露时间

2023-07-07
漏洞描述
Sanitize is an allowlist-based HTML and CSS sanitizer. Using carefully crafted input, an attacker may be able to sneak arbitrary HTML and CSS through Sanitize starting with version 3.0.0 and prior to version 6.0.2 when Sanitize is configured to use the built-in "relaxed" config or when using a custom config that allows `style` elements and one or more CSS at-rules. This could result in cross-site scripting or other undesired behavior when the malicious HTML and CSS are rendered in a browser. Sanitize 6.0.2 performs additional escaping of CSS in `style` element content, which fixes this issue. Users who are unable to upgrade can prevent this issue by using a Sanitize config that doesn't allow `style` elements, using a Sanitize config that doesn't allow CSS at-rules, or by manually escaping the character sequence `</` as `<\/` in `style` element content.
解决建议
建议您更新当前系统或软件至最新版,完成漏洞的修复。
参考链接
https://github.com/rgrove/sanitize/commit/76ed46e6dc70820f38efe27de8dabd54dddb5220
https://github.com/rgrove/sanitize/releases/tag/v6.0.2
https://github.com/rgrove/sanitize/security/advisories/GHSA-f5ww-cq3m-q3g7
https://lists.debian.org/debian-lts-announce/2023/11/msg00008.html
受影响软件情况
# 类型 厂商 产品 版本 影响面
1
运行在以下环境
应用 sanitize_project sanitize * From (including) 3.0.0 Up to (excluding) 6.0.2
运行在以下环境
系统 debian_10 ruby-sanitize * Up to (including) 4.6.6-2.1~deb10u1
运行在以下环境
系统 debian_11 ruby-sanitize * Up to (including) 5.2.1-2
运行在以下环境
系统 debian_12 ruby-sanitize * Up to (including) 6.0.0-1.1
运行在以下环境
系统 debian_sid ruby-sanitize * Up to (including) 6.0.0-1.1
阿里云评分 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