CNVD-2020-52696
Vulnerability from cnvd - Published: 2020-09-18
VLAI
Title
Sanitize跨站脚本漏洞
Description
Sanitize是美国Ryan Grove软件开发者的一款HTML和CSS清理器,它支持从字符串中删除HTML和CSS等。
Sanitize 3.0.0及之后版本(5.2.1版本已修复)中存在跨站脚本漏洞。使用Sanitize的“relaxed”配置或允许某些元素的自定义配置清理HTML时,即使math和svg不在allowlist中,math或svg元素中的某些内容也可能无法正确清理。如果使用Sanitize的松弛配置或允许以下一个或多个HTML元素的自定义配置,则很可能容易出现此问题:iframe、math、noembed、noframes、noscript、纯文本、脚本、样式、svg、xmp。攻击者可借助特制输入利用该漏洞注入任意的HTML或造成其他危害。
Severity
中
Patch Name
Sanitize跨站脚本漏洞的补丁
Patch Description
Sanitize是美国Ryan Grove软件开发者的一款HTML和CSS清理器,它支持从字符串中删除HTML和CSS等。
Sanitize 3.0.0及之后版本(5.2.1版本已修复)中存在跨站脚本漏洞。使用Sanitize的“relaxed”配置或允许某些元素的自定义配置清理HTML时,即使math和svg不在allowlist中,math或svg元素中的某些内容也可能无法正确清理。如果使用Sanitize的松弛配置或允许以下一个或多个HTML元素的自定义配置,则很可能容易出现此问题:iframe、math、noembed、noframes、noscript、纯文本、脚本、样式、svg、xmp。攻击者可借助特制输入利用该漏洞注入任意的HTML或造成其他危害。目前,供应商发布了安全公告及相关补丁信息,修复了此漏洞。
Formal description
目前厂商已发布升级补丁以修复漏洞,补丁获取链接: https://github.com/rgrove/sanitize/releases/tag/v5.2.1
Reference
https://nvd.nist.gov/vuln/detail/CVE-2020-4054
Impacted products
| Name | Sanitize Sanitize >=3.0.0,<5.2.1 |
|---|
{
"cves": {
"cve": {
"cveNumber": "CVE-2020-4054"
}
},
"description": "Sanitize\u662f\u7f8e\u56fdRyan Grove\u8f6f\u4ef6\u5f00\u53d1\u8005\u7684\u4e00\u6b3eHTML\u548cCSS\u6e05\u7406\u5668\uff0c\u5b83\u652f\u6301\u4ece\u5b57\u7b26\u4e32\u4e2d\u5220\u9664HTML\u548cCSS\u7b49\u3002\n\nSanitize 3.0.0\u53ca\u4e4b\u540e\u7248\u672c\uff085.2.1\u7248\u672c\u5df2\u4fee\u590d\uff09\u4e2d\u5b58\u5728\u8de8\u7ad9\u811a\u672c\u6f0f\u6d1e\u3002\u4f7f\u7528Sanitize\u7684\u201crelaxed\u201d\u914d\u7f6e\u6216\u5141\u8bb8\u67d0\u4e9b\u5143\u7d20\u7684\u81ea\u5b9a\u4e49\u914d\u7f6e\u6e05\u7406HTML\u65f6\uff0c\u5373\u4f7fmath\u548csvg\u4e0d\u5728allowlist\u4e2d\uff0cmath\u6216svg\u5143\u7d20\u4e2d\u7684\u67d0\u4e9b\u5185\u5bb9\u4e5f\u53ef\u80fd\u65e0\u6cd5\u6b63\u786e\u6e05\u7406\u3002\u5982\u679c\u4f7f\u7528Sanitize\u7684\u677e\u5f1b\u914d\u7f6e\u6216\u5141\u8bb8\u4ee5\u4e0b\u4e00\u4e2a\u6216\u591a\u4e2aHTML\u5143\u7d20\u7684\u81ea\u5b9a\u4e49\u914d\u7f6e\uff0c\u5219\u5f88\u53ef\u80fd\u5bb9\u6613\u51fa\u73b0\u6b64\u95ee\u9898\uff1aiframe\u3001math\u3001noembed\u3001noframes\u3001noscript\u3001\u7eaf\u6587\u672c\u3001\u811a\u672c\u3001\u6837\u5f0f\u3001svg\u3001xmp\u3002\u653b\u51fb\u8005\u53ef\u501f\u52a9\u7279\u5236\u8f93\u5165\u5229\u7528\u8be5\u6f0f\u6d1e\u6ce8\u5165\u4efb\u610f\u7684HTML\u6216\u9020\u6210\u5176\u4ed6\u5371\u5bb3\u3002",
"formalWay": "\u76ee\u524d\u5382\u5546\u5df2\u53d1\u5e03\u5347\u7ea7\u8865\u4e01\u4ee5\u4fee\u590d\u6f0f\u6d1e\uff0c\u8865\u4e01\u83b7\u53d6\u94fe\u63a5\uff1a\r\nhttps://github.com/rgrove/sanitize/releases/tag/v5.2.1",
"isEvent": "\u901a\u7528\u8f6f\u786c\u4ef6\u6f0f\u6d1e",
"number": "CNVD-2020-52696",
"openTime": "2020-09-18",
"patchDescription": "Sanitize\u662f\u7f8e\u56fdRyan Grove\u8f6f\u4ef6\u5f00\u53d1\u8005\u7684\u4e00\u6b3eHTML\u548cCSS\u6e05\u7406\u5668\uff0c\u5b83\u652f\u6301\u4ece\u5b57\u7b26\u4e32\u4e2d\u5220\u9664HTML\u548cCSS\u7b49\u3002\r\n\r\nSanitize 3.0.0\u53ca\u4e4b\u540e\u7248\u672c\uff085.2.1\u7248\u672c\u5df2\u4fee\u590d\uff09\u4e2d\u5b58\u5728\u8de8\u7ad9\u811a\u672c\u6f0f\u6d1e\u3002\u4f7f\u7528Sanitize\u7684\u201crelaxed\u201d\u914d\u7f6e\u6216\u5141\u8bb8\u67d0\u4e9b\u5143\u7d20\u7684\u81ea\u5b9a\u4e49\u914d\u7f6e\u6e05\u7406HTML\u65f6\uff0c\u5373\u4f7fmath\u548csvg\u4e0d\u5728allowlist\u4e2d\uff0cmath\u6216svg\u5143\u7d20\u4e2d\u7684\u67d0\u4e9b\u5185\u5bb9\u4e5f\u53ef\u80fd\u65e0\u6cd5\u6b63\u786e\u6e05\u7406\u3002\u5982\u679c\u4f7f\u7528Sanitize\u7684\u677e\u5f1b\u914d\u7f6e\u6216\u5141\u8bb8\u4ee5\u4e0b\u4e00\u4e2a\u6216\u591a\u4e2aHTML\u5143\u7d20\u7684\u81ea\u5b9a\u4e49\u914d\u7f6e\uff0c\u5219\u5f88\u53ef\u80fd\u5bb9\u6613\u51fa\u73b0\u6b64\u95ee\u9898\uff1aiframe\u3001math\u3001noembed\u3001noframes\u3001noscript\u3001\u7eaf\u6587\u672c\u3001\u811a\u672c\u3001\u6837\u5f0f\u3001svg\u3001xmp\u3002\u653b\u51fb\u8005\u53ef\u501f\u52a9\u7279\u5236\u8f93\u5165\u5229\u7528\u8be5\u6f0f\u6d1e\u6ce8\u5165\u4efb\u610f\u7684HTML\u6216\u9020\u6210\u5176\u4ed6\u5371\u5bb3\u3002\u76ee\u524d\uff0c\u4f9b\u5e94\u5546\u53d1\u5e03\u4e86\u5b89\u5168\u516c\u544a\u53ca\u76f8\u5173\u8865\u4e01\u4fe1\u606f\uff0c\u4fee\u590d\u4e86\u6b64\u6f0f\u6d1e\u3002",
"patchName": "Sanitize\u8de8\u7ad9\u811a\u672c\u6f0f\u6d1e\u7684\u8865\u4e01",
"products": {
"product": "Sanitize Sanitize \u003e=3.0.0\uff0c\u003c5.2.1"
},
"referenceLink": "https://nvd.nist.gov/vuln/detail/CVE-2020-4054",
"serverity": "\u4e2d",
"submitTime": "2020-06-17",
"title": "Sanitize\u8de8\u7ad9\u811a\u672c\u6f0f\u6d1e"
}
Loading…
Loading…
Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.
Experimental. This forecast is provided for visualization only and may change without notice. Do not use it for operational decisions.
Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline
Sightings and recorded dates, grouped by day · UTC
Loading timeline…
Loading…
Loading…
The MITRE ATT&CK techniques below are AI-generated suggestions, inferred from the description of the
vulnerability by the CIRCL/vulnerability-attack-technique-classification-roberta-base
model, served locally by ML-Gateway.
They have not been verified by an analyst and are provided for guidance only.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Loading…
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.