Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2022-32209

Quick assessment

Affected
n/a https://github.com/rails/rails-html-sanitizer
Exploitation
High exploitation probability; assess promptly
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Rails是Rails团队的一套基于Ruby语言的开源Web应用框架。 Rails 存在安全漏洞,攻击者利用该漏洞可以绕过 Rails::Html::SafeListSanitizer 过滤并执行 XSS 攻击。

AI Predicted 6.1 Difficulty: Easy EPSS 29.35% · P98
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2022-32209

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

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.

Vulnerability Title
N/A
Source: CVE Program / CVE List V5
Vulnerability Description
# 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).
Source: CVE Program / CVE List V5
CVSS Information
N/A
Source: CVE Program / CVE List V5
Vulnerability Type
在Web页面生成时对输入的转义处理不恰当(跨站脚本)
Source: CVE Program / CVE List V5
Vulnerability Title
Rails 跨站脚本漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Rails是Rails团队的一套基于Ruby语言的开源Web应用框架。 Rails 存在安全漏洞,攻击者利用该漏洞可以绕过 Rails::Html::SafeListSanitizer 过滤并执行 XSS 攻击。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
- https://github.com/rails/rails-html-sanitizer v1.4.3 -

II. Public POCs for CVE-2022-32209

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2022-32209

登录查看更多情报信息。

Mailing List Discussions for CVE-2022-32209 (3)

Other References for CVE-2022-32209 (1)

Same Patch Batch · n/a · 2022-06-24 · 69 CVEs total

CVE-2022-21231 7.5 HIGH Prototype Pollution
CVE-2022-32996 RootInteractive 安全漏洞
CVE-2022-34065 rondolu-yt-concate 安全漏洞
CVE-2022-34066 Texercise 安全漏洞
CVE-2022-34064 Zibal 安全漏洞
CVE-2022-33002 KGExplore 安全漏洞
CVE-2022-33001 AAmiles 安全漏洞
CVE-2022-33000 AAmiles 安全漏洞
CVE-2022-32999 PyPI cloudlabeling 安全漏洞
CVE-2022-32998 cryptoasset-data-downloader 安全漏洞
CVE-2022-32997 RootInteractive 安全漏洞
CVE-2022-33003 watools 安全漏洞
CVE-2022-33910 MantisBT 跨站脚本漏洞
CVE-2022-29578 Meridian Cooperative Meridian 授权问题漏洞
CVE-2022-30028 Dradis 竞争条件问题漏洞
CVE-2021-39409 Online Student Rate System 安全漏洞
CVE-2021-39408 Online Student Rate System 跨站脚本漏洞
CVE-2021-42056 Thales Safenet Authentication Client 后置链接漏洞
CVE-2021-40893 validate-data 安全漏洞
CVE-2022-29330 VitalPBX 安全特征问题漏洞

Showing top 20 of 69 CVEs. View all on vendor page &rarr; →

IV. Related Vulnerabilities

V. Comments for CVE-2022-32209

No comments yet


Leave a comment