Ammonia 是一个用于修复和加固不可信 HTML 的 Rust 库。在版本 3.3.2、4.0.2 和 4.1.3 之前,如果应用程序明确允许使用 标签、 元素以及至少一种原始文本型 HTML 元素,同时禁止使用 属性,则可能导致跨站脚本攻击(XSS)。 具体而言,Ammonia 在属性过滤移除 属性后,未能正确实现 所依赖的 MathML 集成点行为。这导致 sanitizers(过滤器)在一种命名空间解释下对某个后代元素进行验证,而浏览器在重新解析输出时却采用另一种命名空间解释。攻击者可利用这种命名空间转换
| Vendor | Product | Version Range | Status |
|---|---|---|---|
| rust-ammonia | ammonia | < 3.3.2 |
affected |
>= 4.0.0, < 4.0.2 |
affected | ||
>= 4.1.0, < 4.1.3 |
affected |
Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.
| Vendor | Product | Affected Versions | CPE | Subscribe |
|---|---|---|---|---|
| rust-ammonia | ammonia | < 3.3.2 | - |
|
| # | POC Description | Source Link | Shenlong Link |
|---|
No public POC found.
Login to generate AI POCNo comments yet