POJIA破甲
地图 / Rails::Html::SafeListSanitizer vulnerable to xss attack in an environment that allows the style tag

Rails::Html::SafeListSanitizer vulnerable to xss attack in an environment that allows the style tag

跨站脚本 / XSS(通用) / #1530898

厂商
Ruby on Rails
严重程度
低危 · CVSS 6.5
赏金
—
弱点
XSS(通用)
研究员
@windshock
披露日期
2022-06-14
资产
https://github.com/rails/rails
CVE
CVE-2022-32209

该报告还没有中文解读。

原文摘录

摘自原文(1572 字符中的一小部分)
It seems to be a problem caused by a difference between the nokogiri java implementation and the ruby implementation. It seems to be an ambiguous case as to whether to do it with nokogiri or have rails-html-sanitizer defend it.
原文中的代码
tags = %w(select style)
puts "------------------------------------------------------------------"
puts "use Rails::Html::SafeListSanitizer.new.sanitize, allow select/style tag"
puts "input: <select<style/>W<xmp<script>alert(1)</script>"
puts "output: …

默认不展示报告全文。以上为简短摘录,完整复现过程请阅读原文。版权归研究员与 Ruby on Rails 所有。

时间线

  • 报告提交
  • 公开披露
阅读 HackerOne 原文 ↗作者 @windshock · 版权归作者与 Ruby on Rails 所有

同类报告

[Grab Android/iOS] Insecure deeplink leads to sensitive information disclosureGrab · 2019-03-15XSS vulnerable parameter in a location hashSlack · 2019-10-16[accounts.reddit.com] Redirect parameter allows for XSSReddit · 2023-05-18 · $5,000yelp.com XSS ATO (via login keylogger, link Google account)Yelp · 2023-08-15XSS At "pages.et.uber.com"Uber · 2016-08-19XSS at jamfpro.shopifycloud.comShopify · 2023-02-02 · $9,400