中危 通过“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.解决建议
建议您更新当前系统或软件至最新版,完成漏洞的修复。受影响软件情况
# | 类型 | 厂商 | 产品 | 版本 | 影响面 | ||||
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 | |||||
- 攻击路径 本地
- 攻击复杂度 困难
- 权限要求 普通权限
- 影响范围 有限影响
- EXP成熟度 未验证
- 补丁情况 官方补丁
- 数据保密性 无影响
- 数据完整性 无影响
- 服务器危害 无影响
- 全网数量 N/A
CWE-ID | 漏洞类型 |
CWE-79 | 在Web页面生成时对输入的转义处理不恰当(跨站脚本) |
Exp相关链接

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