shubhamjain svg loaderXSS漏洞(CVE-2023-40013)

admin 2023-11-29 21:24:39 Ali_nvd 来源:ZONE.CI 全球网 0 阅读模式
中危 shubhamjain svg loaderXSS漏洞(CVE-2023-40013)

CVE编号

CVE-2023-40013

利用情况

暂无

补丁情况

官方补丁

披露时间

2023-08-15
漏洞描述
SVG Loader is a javascript library that fetches SVGs using XMLHttpRequests and injects the SVG code in the tag's place. According to the docs, svg-loader will strip all JS code before injecting the SVG file for security reasons but the input sanitization logic is not sufficient and can be trivially bypassed. This allows an attacker to craft a malicious SVG which can result in Cross-site Scripting (XSS). When trying to sanitize the svg the lib removes event attributes such as `onmouseover`, `onclick` but the list of events is not exhaustive. Any website which uses external-svg-loader and allows its users to provide svg src, upload svg files would be susceptible to stored XSS attack. This issue has been addressed in commit `d3562fc08` which is included in releases from 1.6.9. Users are advised to upgrade. There are no known workarounds for this vulnerability.
解决建议
"将组件 external-svg-loader 升级至 1.6.9 及以上版本"
参考链接
https://github.com/shubhamjain/svg-loader/blob/main/svg-loader.js
https://github.com/shubhamjain/svg-loader/commit/d3562fc08497aec5f33eb82017fa...
https://github.com/shubhamjain/svg-loader/security/advisories/GHSA-xc2r-jf2x-gjr8
https://github.com/shubhamjain/svg-loader/tree/main
受影响软件情况
# 类型 厂商 产品 版本 影响面
1
运行在以下环境
应用 shubhamjain svg_loader * Up to (excluding) 1.6.9
阿里云评分 4.9
  • 攻击路径 本地
  • 攻击复杂度 困难
  • 权限要求 管控权限
  • 影响范围 有限影响
  • 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