POJIA破甲
地图 / Rails::Html::SafeListSanitizer vulnerable to XSS when certain tags are allowed (math+style || svg+style)

Rails::Html::SafeListSanitizer vulnerable to XSS when certain tags are allowed (math+style || svg+style)

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

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

该报告还没有中文解读。

原文摘录

摘自原文(8236 字符中的一小部分)
The Rails HTML sanitzier allows to set certain combinations of tags in it's allow list that are not properly handled. Similar to the report [1530898](https://hackerone.com/reports/1530898), which identified the combination`select` and `style` as vulnerable, my fuzz testing from today suggests that …
原文中的代码
irb(main):016:0> require 'rails-html-sanitizer'
=> false
irb(main):017:0> Rails::Html::SafeListSanitizer.new.sanitize("<svg><style><script>alert(1)</script></style></svg>", tags: ["svg", "style"]).to_s
=> "<svg><style><script>alert(1)</script></style></svg>"
irb(main):018:0> …

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

时间线

  • 报告提交
  • 公开披露
阅读 HackerOne 原文 ↗作者 @0b5cur17y · 版权归作者与 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