Rack parses encoded cookie names allowing an attacker to send malicious `__Host-` and `__Secure-` prefixed cookies
访问控制 / Reliance on Cookies without Validation and Integrity Checking in a Security Decision / #895727
该报告还没有中文解读。
原文摘录
摘自原文(4699 字符中的一小部分)
The [rack cookie parser](https://github.com/rack/rack/blob/c9ff9709afa70ca0e427aa06643c851f498359dc/lib/rack/utils.rb#L215) parses the cookie string using [`unescape`](https://github.com/rack/rack/blob/c9ff9709afa70ca0e427aa06643c851f498359dc/lib/rack/utils.rb#L215). This allows a malicious …
原文中的代码
# frozen_string_literal: true require_relative 'helper' describe Rack::Utils, "malicious cookie" do # Fails and __Host-evil reads the malicious value and sets it as the cookie # rather than reading the actual __Host cookie # # Furthermore, browsers enforce HostOnly for `__Host-` cookies …
默认不展示报告全文。以上为简短摘录,完整复现过程请阅读原文。版权归研究员与 Ruby on Rails 所有。
时间线
- 报告提交
- 公开披露
阅读 HackerOne 原文 ↗作者 @fletchto99 · 版权归作者与 Ruby on Rails 所有