nday
CVE-2022-32209

Ruby on Rails:XSS标题由 nday 生成;CVE 记录未提供标题。

披露于 。本站尚未获取修复依据,不能据此认为没有补丁。四个 PoC 来源都还没有收录。尚未列入 CISA KEV。

标签 漏洞类型XSS 攻击途径网络无需认证 产品Ruby on Rails 产品类型开源库/框架
这些标签的依据

这些标签由 nday 按固定规则从下列事实自动推导,不是 NVD、编号分配方或其他来源给出的。全部标签和规则见 ~/tags。

XSS
CWE-79(来源:编号分配方 hackerone、NVD 分析人员、NVD(转录自 [email protected]))
网络
NVD 分析人员 给出的 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N(CVSS 3.1)中的 AV:N
无需认证
NVD 分析人员 给出的 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N(CVSS 3.1)中的 PR:N
Ruby on Rails
NVD 分析人员标为易受攻击的 CPE 名称:a:rubyonrails:rails_html_sanitizers
开源库/框架
NVD 分析人员标为易受攻击的 CPE 名称:a:rubyonrails:rails_html_sanitizersnday 产品登记表中 Ruby on Rails 的产品类型
当前阶段
DIS
披露
CVSS
暂无评分

生命周期

横轴 UTC;点=精确到分钟,宽条=仅日期,空心=未知或推定。
时间未知
DIS披露
2022-06-24T00:00Z
PAT补丁
尚无记录
ANA分析
尚无记录
POCPoC
尚无记录
ITW在野
尚无记录
KEVKEV
尚无记录

摘要

# Possible XSS Vulnerability in Rails::Html::SanitizerThere is a possible XSS vulnerability with certain configurations of Rails::Html::Sanitizer.This vulnerability has been assigned the CVE identifier CVE-2022-32209.Versions Affected: ALLNot affected: NONEFixed Versions: v1.4.3## ImpactA possible XSS vulnerability with certain configurations of Rails::Html::Sanitizer may allow an attacker to inject content if the application developer has overridden the sanitizer's allowed tags to allow both select and style elements.Code is only impacted if allowed tags are being overridden. This may be done via application configuration:``ruby# In config/application.rbconfig.action_view.sanitized_allowed_tags = ["select", "style"]`see https://guides.rubyonrails.org/configuring.html#configuring-action-viewOr it may be done with a :tags option to the Action View helper sanitize:`<%= sanitize @comment.body, tags: ["select", "style"] %>``see https://api.rubyonrails.org/classes/ActionView/Helpers/SanitizeHelper.html#method-i-sanitizeOr it may be done with Rails::Html::SafeListSanitizer directly:``ruby# class-level optionRails::Html::SafeListSanitizer.allowed_tags = ["select", "style"]`or`ruby# instance-level optionRails::Html::SafeListSanitizer.new.sanitize(@article.body, tags: ["select", "style"])``All users overriding the allowed tags by any of the above mechanisms to include both "select" and "style" should either upgrade or use one of the workarounds immediately.## ReleasesThe FIXED releases are available at the normal locations.## WorkaroundsRemove either select or style from the overridden allowed tags.## CreditsThis vulnerability was responsibly reported by [windshock](https://hackerone.com/windshock?type=user).

以上是 CVE 记录(cvelist)中的原文,未经改写。

事件记录

+DIS披露

CVE 记录发布,编号分配方是 hackerone。

来源 cvelist · 本站 批量导入 · 原始记录
{
  "id": 267412,
  "type": "disclosed",
  "source": "cvelist",
  "url": "https://www.cve.org/CVERecord?id=CVE-2022-32209",
  "occurred_at": "2022-06-24T00:00:00Z",
  "observed_at": "2026-11-13T05:37:42.261111Z",
  "is_backfill": true,
  "dedupe_key": "",
  "detail": {
    "state": "PUBLISHED",
    "date_published": "2022-06-24T00:00:00.000Z",
    "assigner_short_name": "hackerone"
  }
}

纠错

报告错误或缺失

页面有误或缺失?告诉编辑;采纳后在本页修订记录公开说明,上游数据不会被改动。

研究员讨论

近 7 天有 0 位研究员提到

研究员在 X 上提到此 CVE 的帖子,原文照录,nday 不核实。

尚未采集到名单内研究员在 X 上提到此 CVE 的帖子。

讨论

0 条评论

还没有评论。